From 850618a035d9999cf60d77dafd6da8a09f36a1fe Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期二, 06 五月 2025 18:32:07 +0800
Subject: [PATCH] 修改了对应文件

---
 ruoyi-ui/src/permission.js            |    4 +-
 ruoyi-ui/.env.production              |    1 
 ruoyi-ui/src/views/qrcode/index.vue   |    2 
 ruoyi-ui/src/views/qrcode/pdfShow.vue |   85 ++++++++++++++++++++++++++++++++++++++++++
 ruoyi-ui/.env.development             |    4 ++
 ruoyi-ui/vue.config.js                |    2 
 ruoyi-ui/src/router/index.js          |    6 +++
 7 files changed, 100 insertions(+), 4 deletions(-)

diff --git a/ruoyi-ui/.env.development b/ruoyi-ui/.env.development
index 235107d..a3b4192 100644
--- a/ruoyi-ui/.env.development
+++ b/ruoyi-ui/.env.development
@@ -8,5 +8,9 @@
 VUE_APP_BASE_API = '/dev-api'
 VUE_APP_BASE_TRUE_API = 'https://www.bendudu.com:8080/'
 VUE_APP_BASE_OTHER_API = 'https://www.bendudu.com:8085/'
+
+
+VUE_APP_BASE_FRONT = 'https://www.bendudu.com/pdfShow?id='
+
 # 璺敱鎳掑姞杞�
 VUE_CLI_BABEL_TRANSPILE_MODULES = true
diff --git a/ruoyi-ui/.env.production b/ruoyi-ui/.env.production
index 3b28f56..e9d0788 100644
--- a/ruoyi-ui/.env.production
+++ b/ruoyi-ui/.env.production
@@ -8,3 +8,4 @@
 VUE_APP_BASE_API = '/prod-api'
 VUE_APP_BASE_TRUE_API = 'https://www.bendudu.com:8080/'
 VUE_APP_BASE_OTHER_API = 'https://www.bendudu.com:8085/'
+VUE_APP_BASE_FRONT = 'https://www.bendudu.com/pdfShow?id='
diff --git a/ruoyi-ui/src/permission.js b/ruoyi-ui/src/permission.js
index d67452c..c009de4 100644
--- a/ruoyi-ui/src/permission.js
+++ b/ruoyi-ui/src/permission.js
@@ -8,8 +8,8 @@
 
 NProgress.configure({ showSpinner: false })
 
-const whiteList = ['/login', '/register']
-
+// const whiteList = ['/login', '/register']
+const whiteList = ['/login', '/register','/pdfShow','/pdfShowInfo']
 router.beforeEach((to, from, next) => {
   NProgress.start()
   if (getToken()) {
diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js
index fec5764..eeee8c4 100644
--- a/ruoyi-ui/src/router/index.js
+++ b/ruoyi-ui/src/router/index.js
@@ -139,8 +139,14 @@
       }
     ]
   },
+  {
+    path: '/pdfShow',
+    component: () => import('@/views/qrcode/pdfShow'),
   
   
+    },
+ 
+  
   // {
   //   path: '/pscan',
   //   component: Layout,
diff --git a/ruoyi-ui/src/views/qrcode/index.vue b/ruoyi-ui/src/views/qrcode/index.vue
index 95471e4..e9f457b 100644
--- a/ruoyi-ui/src/views/qrcode/index.vue
+++ b/ruoyi-ui/src/views/qrcode/index.vue
@@ -592,7 +592,7 @@
       const url =  process.env.VUE_APP_BASE_FRONT+row.id;
       const id = row.id;
     //  alert(id)
-   // alert(url)
+   alert(url)
       generateCode(id, url).then(response => {
       //  alert(23)
       this.openDataScope = true;
diff --git a/ruoyi-ui/src/views/qrcode/pdfShow.vue b/ruoyi-ui/src/views/qrcode/pdfShow.vue
new file mode 100644
index 0000000..ef5be06
--- /dev/null
+++ b/ruoyi-ui/src/views/qrcode/pdfShow.vue
@@ -0,0 +1,85 @@
+<template>
+
+
+  <div>
+    <div class="form-header mt">
+      <h1 style="font-size:21px;padding-top:30px;display: flex;justify-content: space-between;align-items: center;" >
+        <span>瑙嗛璇︽儏涓嬭浇</span>
+
+      </h1>
+    </div>
+    <li v-for="(item,index) in fileList1">
+          <el-link :href="'/pdfShowInfo?filePath='+item" type="success">{{fileList[index]}}</el-link>
+    </li>
+      <!--  <h4 class="form-header"> </h4>
+        <div style="margin-left: 20px;">
+           <el-link :href="'/register'" class="psf" type="success">娉ㄥ唽             </el-link>
+                <el-link :href="'/login'" type="success">鐧诲綍</el-link>
+        </div> -->
+
+  </div>
+</template>
+
+<script>
+import {listFScan,getFScanInfo,addFScan,delFScan,getFSInfo,updateFScan, uploadPic, uploadPic1, download} from "@/api/fscan/index";
+
+export default {
+  components: {
+    pdf
+  },
+  data() {
+    return {
+      	  fileList1:[],
+          fileList:[],
+      pdfSrc: '',
+        numPages: undefined,
+    }
+  },
+  mounted() {
+
+    const id = (this.$route.query.id)
+    //鍙戣捣璇锋眰鎷垮埌pdfSrc
+    let _this = this
+    getFScanInfo(id).then(response => {
+     // alert(23)
+      //console.log(response)
+     // if(response.msg=="鎿嶄綔鎴愬姛")
+      {
+        console.log(response.data)
+    ///    _this.pdfSrc= process.env.VUE_APP_BASE_TRUE_API+response.data.filePath;
+        // alert(_this.pdfSrc)
+        this.fileList1 = response.data.filePath.split(",");
+        for(let i = 0; i < this.fileList1.length; i++)
+        {
+          var lsr = this.fileList1[i].split("/")
+          var ls = lsr[lsr.length - 1].split("_")
+          var lr = ls[ls.length-1].split(".")
+          var pnam = ls[0] + "." + lr[lr.length-1]
+          this.fileList.push(pnam)
+
+
+        }
+        // alert(1234)
+      }
+   
+      })
+  }
+}
+</script>
+<style>
+    li {
+      list-style-type:none;
+      margin-left:20px;
+      padding:10px 20px;
+      background:#fff;
+
+      transition:all 0.3s ease;
+    }
+     li:hover {
+      background:#ccc;
+      color:#fff;
+    }
+    .psf{
+      margin-right: 20px;
+    }
+</style>
diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js
index b779961..72916bf 100644
--- a/ruoyi-ui/vue.config.js
+++ b/ruoyi-ui/vue.config.js
@@ -37,7 +37,7 @@
       // detail: https://cli.vuewww.bendudu.comjs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
    //   target: `https://10.39.18.174:8080/`,
-	 // target: `https://192.168.1.7:8080/`,
+//	  target: `https://192.168.1.7:8080/`,
       target: 'https://www.bendudu.com:8080/',
         changeOrigin: true,
         pathRewrite: {

--
Gitblit v1.9.1