Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/dataType' into dataType

shaun-sheep 4 gadi atpakaļ
vecāks
revīzija
72288522bc

+ 4 - 4
config/index.js

@@ -210,8 +210,8 @@ module.exports = {
         }
       },
       '/api': {
-        target: 'http://192.168.64.17:28888/',
-        // target: 'http://192.168.64.14:28888/',
+        // target: 'http://192.168.64.17:28888/',
+        target: 'http://192.168.64.14:28888/',
         changeOrigin: true,
         pathRewrite: {
           "^/api": "/"
@@ -293,8 +293,8 @@ module.exports = {
         // 目标 API 地址
         // target: 'http://192.168.12.238:8080/',
         // target: 'http://60.205.177.43:28888',
-        // target: 'http://192.168.64.14:28888',
-        target: 'http://192.168.64.17:28888',
+        target: 'http://192.168.64.14:28888',
+        // target: 'http://192.168.64.17:28888',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL

+ 21 - 21
src/components/ledger/handsontables/device.vue

@@ -1156,27 +1156,27 @@ export default {
         /**
          * 关联资产后才可维护的信息点
          */
-        case 'flowBuild': //所属建筑楼层
-        case 'infos.productDate': //生产日期
-        case 'infos.serialNum': //出厂编号
-        case 'infos.assetID': //资产编号
-        case 'infos.purchasePrice': //采购价格
-        case 'infos.insuranceNum': //保险单号
-        case 'infos.insuranceFile': //保险文件
-            if (!this.onlyRead) {
-                const linkId = this.tableData[row.row].linkId;
-                if (!linkId) { //未关联资产
-                    this.$confirm('您暂未关联设备对应的资产,该信息点不可编辑', '提示', {
-                        confirmButtonText: '我知道了',
-                        showCancelButton: false,
-                        type: 'warning',
-                        center: true
-                    }).then(() => {
-                        return false;
-                    });
-                }
-            }
-            return false;
+        // case 'flowBuild': //所属建筑楼层
+        // case 'infos.productDate': //生产日期
+        // case 'infos.serialNum': //出厂编号
+        // case 'infos.assetID': //资产编号
+        // case 'infos.purchasePrice': //采购价格
+        // case 'infos.insuranceNum': //保险单号
+        // case 'infos.insuranceFile': //保险文件
+        //     if (!this.onlyRead) {
+        //         const linkId = this.tableData[row.row].linkId;
+        //         if (!linkId) { //未关联资产
+        //             this.$confirm('您暂未关联设备对应的资产,该信息点不可编辑', '提示', {
+        //                 confirmButtonText: '我知道了',
+        //                 showCancelButton: false,
+        //                 type: 'warning',
+        //                 center: true
+        //             }).then(() => {
+        //                 return false;
+        //             });
+        //         }
+        //     }
+        //     return false;
         //保险文件--设备文档--安装质检报告
         case "infos.insuranceFile": //保险文件(F2)
         case "infos.archive": //设备文档(F2)

+ 3 - 3
src/components/relation/overview/Modal/RelationMaintain.vue

@@ -487,13 +487,13 @@
           relType = this.ManualMaintenance.RelationType ? `&relType=${this.ManualMaintenance.RelationType}` : ''
           // url = `/api/datacenter/graphic/export?code=对象ID${relType}${zoneType}`
           if (zoneType) {
-            url = '/api/datacenter/graphic/export?code=对象ID' + relType + zoneType
+            url = `/api/datacenter/graphic/export${relType}${zoneType}&projectId=${this.projectId}&code=对象ID`
 
           } else {
-            url = '/api/datacenter/graphic/export?code=对象ID' + relType
+            url = `/api/datacenter/graphic/export${relType}&projectId=${this.projectId}&code=对象ID`
           }
         } else {
-          url = `/api/datacenter/graphic/report-downloads${relType}${zoneType}`
+          url = `/api/datacenter/graphic/report-downloads${relType}${zoneType}&projectId=${this.projectId}`
         }
         return url
       },

+ 6 - 3
src/components/relation/relationShip/Modal/exportExcel.vue

@@ -68,7 +68,10 @@
         </el-timeline>
       </div>
       <!--            下载报告-->
-      <a :href="downloadProject('report')">
+      <!-- <a :href="downloadProject('report')">
+        <el-button>{{values.downloadFile}}</el-button>
+      </a> -->
+      <a @click="downloadProject('report')">
         <el-button>{{values.downloadFile}}</el-button>
       </a>
       <footer
@@ -137,9 +140,9 @@ export default {
         let url;
         if (str === 'excel') {
           relType = localStorage.getItem('RelationType') ? `&relType=${localStorage.getItem('RelationType')}` : '';
-          url = `/api/datacenter/graphic/export?projectId=${this.projectId}&code=对象ID${relType}${zoneType}`
+          url = `/api/datacenter/graphic/export${relType}${zoneType}&projectId=${this.projectId}&code=对象ID`
         } else {
-          url = `/api/datacenter/graphic/report-downloads${relType}${zoneType}`
+          url = `/api/datacenter/graphic/report-downloads${relType}${zoneType}&projectId=${this.projectId}`
         }
         return url
       },

+ 5 - 5
src/data/menus.js

@@ -46,11 +46,11 @@ export default [
     icon: 'icon-jianzhu'
   },
 // 需采集的信息点
-  {
-    path: '/ready/collectsetting',
-    name: '需采集的信息点',
-    icon: 'icon-xinxi'
-  },
+//   {
+//     path: '/ready/collectsetting',
+//     name: '需采集的信息点',
+//     icon: 'icon-xinxi'
+//   },
 // 扫楼App用户管理
   {
     path: '/ready/appuser',

+ 21 - 21
src/views/ledger/facility/addfacility.vue

@@ -489,27 +489,27 @@ export default {
         /**
          * 关联资产后才可维护的信息点
          */
-        case 'flowBuild': //所属建筑楼层
-        case 'infos.productDate': //生产日期
-        case 'infos.serialNum': //出厂编号
-        case 'infos.assetID': //资产编号
-        case 'infos.purchasePrice': //采购价格
-        case 'infos.insuranceNum': //保险单号
-        case 'infos.insuranceFile': //保险文件
-            if (!this.onlyRead) {
-                const linkId = this.tableData[row.row].linkId;
-                if (!linkId) { //未关联资产
-                    this.$confirm('您暂未关联设备对应的资产,该信息点不可编辑', '提示', {
-                        confirmButtonText: '我知道了',
-                        showCancelButton: false,
-                        type: 'warning',
-                        center: true
-                    }).then(() => {
-                        return false;
-                    });
-                }
-            }
-            break
+        // case 'flowBuild': //所属建筑楼层
+        // case 'infos.productDate': //生产日期
+        // case 'infos.serialNum': //出厂编号
+        // case 'infos.assetID': //资产编号
+        // case 'infos.purchasePrice': //采购价格
+        // case 'infos.insuranceNum': //保险单号
+        // case 'infos.insuranceFile': //保险文件
+        //     if (!this.onlyRead) {
+        //         const linkId = this.tableData[row.row].linkId;
+        //         if (!linkId) { //未关联资产
+        //             this.$confirm('您暂未关联设备对应的资产,该信息点不可编辑', '提示', {
+        //                 confirmButtonText: '我知道了',
+        //                 showCancelButton: false,
+        //                 type: 'warning',
+        //                 center: true
+        //             }).then(() => {
+        //                 return false;
+        //             });
+        //         }
+        //     }
+        //     break
         //保险文件--设备文档--安装质检报告
         case 'infos.insuranceFile': //保险文件
         case 'infos.archive': //设备文档

+ 22 - 22
src/views/ledger/facility/partsmanage/addparts/index.vue

@@ -410,28 +410,28 @@ export default {
         this.myDialog.qrcode = true;
         this.$refs.qrcode.getCanvas(1111);
       }
-      if (
-        val == "flowBuild" || //所属建筑楼层
-        val == "infos.productDate" || //生产日期
-        val == "infos.serialNum" || //出厂编号
-        val == "infos.assetID" || //资产编号
-        val == "infos.purchasePrice" || //采购价格
-        val == "infos.insuranceNum" || //保险单号
-        val == "infos.insuranceFile" //保险文件
-      ) {
-        const propertyId = this.tableData[row.row].propertyId;
-        if (!propertyId) { //未关联资产
-            this.$confirm('您暂未关联设备对应的资产,该信息点不可编辑', '提示', {
-                confirmButtonText: '我知道了',
-                showCancelButton: false,
-                type: 'warning',
-                center: true
-            }).then(() => {
-                return false;
-            });
-        }
-        return false
-      }
+    //   if (
+    //     val == "flowBuild" || //所属建筑楼层
+    //     val == "infos.productDate" || //生产日期
+    //     val == "infos.serialNum" || //出厂编号
+    //     val == "infos.assetID" || //资产编号
+    //     val == "infos.purchasePrice" || //采购价格
+    //     val == "infos.insuranceNum" || //保险单号
+    //     val == "infos.insuranceFile" //保险文件
+    //   ) {
+    //     const propertyId = this.tableData[row.row].propertyId;
+    //     if (!propertyId) { //未关联资产
+    //         this.$confirm('您暂未关联设备对应的资产,该信息点不可编辑', '提示', {
+    //             confirmButtonText: '我知道了',
+    //             showCancelButton: false,
+    //             type: 'warning',
+    //             center: true
+    //         }).then(() => {
+    //             return false;
+    //         });
+    //     }
+    //     return false
+    //   }
       //保险文件--设备文档--安装质检报告
       if (
         val == "infos.insuranceFile" || //保险文件

+ 19 - 19
src/views/ledger/facility/partsmanage/index.vue

@@ -556,25 +556,25 @@ export default {
         /**
          * 关联资产后才可维护的信息点
          */
-        case 'flowBuild': //所属建筑楼层
-        case 'infos.productDate': //生产日期
-        case 'infos.serialNum': //出厂编号
-        case 'infos.assetID': //资产编号
-        case 'infos.purchasePrice': //采购价格
-        case 'infos.insuranceNum': //保险单号
-        case 'infos.insuranceFile': //保险文件
-            const propertyId = this.tableData[row.row].propertyId;
-            if (!propertyId) { //未关联资产
-                this.$confirm('您暂未关联设备对应的资产,该信息点不可编辑', '提示', {
-                    confirmButtonText: '我知道了',
-                    showCancelButton: false,
-                    type: 'warning',
-                    center: true
-                }).then(() => {
-                    return false;
-                });
-            }
-            break
+        // case 'flowBuild': //所属建筑楼层
+        // case 'infos.productDate': //生产日期
+        // case 'infos.serialNum': //出厂编号
+        // case 'infos.assetID': //资产编号
+        // case 'infos.purchasePrice': //采购价格
+        // case 'infos.insuranceNum': //保险单号
+        // case 'infos.insuranceFile': //保险文件
+        //     const propertyId = this.tableData[row.row].propertyId;
+        //     if (!propertyId) { //未关联资产
+        //         this.$confirm('您暂未关联设备对应的资产,该信息点不可编辑', '提示', {
+        //             confirmButtonText: '我知道了',
+        //             showCancelButton: false,
+        //             type: 'warning',
+        //             center: true
+        //         }).then(() => {
+        //             return false;
+        //         });
+        //     }
+        //     break
         //保险文件--设备文档--安装质检报告
         case 'infos.insuranceFile': //保险文件
         case 'infos.archive': //设备文档