嘀嘀嘀 1 рік тому
батько
коміт
635c779456

+ 2 - 2
src/config/app.js

@@ -38,12 +38,12 @@ export default {
     /**
      * 首页侧边栏显示的title
      */
-    title: '赣西云数据中心',
+    title: '数字巡检系统',
 
     /**
      * 登录页面显示的title
      */
-    loginTitle: '赣西云数据中心运维平台',
+    loginTitle: '数字巡检系统运维平台',
 
     /**
      * @type {boolean} true | false

+ 4 - 3
src/config/patrol.js

@@ -14,7 +14,8 @@ export default {
      */
     baseUrl: {
         dev: '/request_patrol',
-        pro: 'https://xj.chuanghai-tech.com/patrol-web'
+        pro: 'https://www.zwywpt.top/patrol-web',
+        excel:'/excel'
     },
 
     /**
@@ -38,12 +39,12 @@ export default {
     /**
      * 首页侧边栏显示的title
      */
-    title: '赣西云数据中心',
+    title: '数字巡检系统',
 
     /**
      * 登录页面显示的title
      */
-    loginTitle: '赣西云数据中心运维平台',
+    loginTitle: '数字巡检系统运维平台',
 
     /**
      * @type {boolean} true | false

+ 3 - 1
src/views/patrol/device/device/index.vue

@@ -103,6 +103,7 @@
 import {dateFormat} from "@/utils/dateUtil"
 import {upload} from "@/utils/httpUtil";
 import {saveAs} from 'file-saver'
+import settings from '@/config'
 
 export default {
   name: "DeviceDevice",
@@ -241,7 +242,8 @@ export default {
     // 下载模板
     fileDownload() {
       // TODO 修改文件地址
-      saveAs('https://xj.chuanghai-tech.com/doc/device.xlsx')
+      saveAs(settings.baseUrl.excel+'/device.xlsx')
+      // saveAs('https://www.zwywpt.top/excel/device.xlsx')
     },
 
     // 上传文件

+ 1 - 1
src/views/patrol/device/room/index.vue

@@ -247,7 +247,7 @@ export default {
 
     // 房间二维码
     onQRCode(row) {
-      let url = encodeURIComponent(`https://xj.chuanghai-tech.com/exitwritoff/pages/onsitpection/selectplain/selectplain?id=${row.id}`)
+      let url = encodeURIComponent(`https://www.zwywpt.top/exitwritoff/pages/onsitpection/selectplain/selectplain?id=${row.id}`)
       let qrUrl = `http://yun.huaxiyou.cc/internal.qcode.stream?dstUrl=${url}`;
       this.$alert(`<img id="qrcode" src="${qrUrl}" style="width:100%; height:100%">`, `【${row.name}】二维码`, {
             dangerouslyUseHTMLString: true,

+ 1 - 1
src/views/patrol/system/dept/index.vue

@@ -81,7 +81,7 @@ export default {
       this.$axios.get("/v1/system/dept/list/tree").then((data) => {
         this.dept = [{
           "id": 0,
-          "name": "赣西云数据中心运维平台",
+          "name": "数字巡检系统运维平台",
           "parentId": 0,
           "children": data
         }];

+ 2 - 2
src/views/patrol/visitor/audit/index.vue

@@ -364,7 +364,7 @@ export default {
 
     // 进入登记二维码
     showQrCodeIn() {
-      let url = encodeURIComponent(`https://xj.chuanghai-tech.com/visited/pages/writeoff/register/register`)
+      let url = encodeURIComponent(`https://www.zwywpt.top/visited/pages/writeoff/register/register`)
       let qrUrl = `https://yun.huaxiyou.cc/internal.qcode.stream?dstUrl=${url}`;
       this.$alert(`<img src="${qrUrl}" style="width:100%; height:100%">`, `进入登记二维码`, {
             dangerouslyUseHTMLString: true,
@@ -380,7 +380,7 @@ export default {
 
     // 出场核销二维码
     showQrCodeOut() {
-      let url = encodeURIComponent(`https://xj.chuanghai-tech.com/register/pages/writeoff/exitwritoff/exitwritoff`)
+      let url = encodeURIComponent(`https://www.zwywpt.top/register/pages/writeoff/exitwritoff/exitwritoff`)
       let qrUrl = `https://yun.huaxiyou.cc/internal.qcode.stream?dstUrl=${url}`;
       this.$alert(`<img src="${qrUrl}" style="width:100%; height:100%">`, `出场核销二维码`, {
         dangerouslyUseHTMLString: true,

+ 18 - 7
vue.config.js

@@ -189,24 +189,35 @@ module.exports = {
         hotOnly: true,
         // assetsPublicPath: '/manageWeb',
         proxy: { // 设置代理
-            '/app': {
-                target: 'http://localhost:8897/', // 设置你调用的接口域名和端口号 别忘了加http
+            // '/app': {
+            //     target: 'http://localhost:8897/', // 设置你调用的接口域名和端口号 别忘了加http
+            //     changeOrigin: true,
+            //     ws: true,
+            //     pathRewrite: {
+            //         '^/app': ''//这里理解成用‘/app’代替target里面的地址,后面组件中我们调接口时直接用api代替域名及端口号
+            //         // 比如要调用'https://a.com/user/add',直接写‘/app/user/add’即可
+            //     }
+            // },
+            '/request_patrol': {
+                // target: 'https://www.jxydyw.cn/patrol-web',//线下
+                target: 'https://www.zwywpt.top/patrol-web',//正式
+                // target: 'http://localhost/patrol-web',
+                // target: 'http://localhost:8899',
                 changeOrigin: true,
                 ws: true,
                 pathRewrite: {
-                    '^/app': ''//这里理解成用‘/app’代替target里面的地址,后面组件中我们调接口时直接用api代替域名及端口号
-                    // 比如要调用'https://a.com/user/add',直接写‘/app/user/add’即可
+                    '^/request_patrol': ''
                 }
             },
-            '/request_patrol': {
+            '/excel': {
                 // target: 'https://www.jxydyw.cn/patrol-web',//线下
-                target: 'https://xj.chuanghai-tech.com/patrol-web',//正式
+                target: 'https://www.zwywpt.top/excel',//正式
                 // target: 'http://localhost/patrol-web',
                 // target: 'http://localhost:8899',
                 changeOrigin: true,
                 ws: true,
                 pathRewrite: {
-                    '^/request_patrol': ''
+                    '^/excel': ''
                 }
             },
         },