Browse Source

系统、设备,资产详情链接添加

zhulizhen 5 years ago
parent
commit
9124cb79e4

+ 13 - 11
src/components/ledger/handsontables/assets.vue

@@ -908,17 +908,19 @@ export default {
       //其他的开始判断
       let val = this.hot.colToProp(row.col);
       if (val == "caozuo") {
-        this.iframeSrc =
-          process.env.BASE_URL +
-          ":8889/#/details?perjectId=" +
-          this.projectId +
-          "&secret=" +
-          this.secret +
-          "&FmId=" +
-          infos.id +
-          "&type=1&code=" +
-          infos.family;
-        this.dialog.details = true
+        window.open(`
+http://47.94.89.44:8058/asset?id=${infos.id}&pid=${this.projectId}`,"_blank")
+        // this.iframeSrc =
+        //   process.env.BASE_URL +
+        //   ":8889/#/details?perjectId=" +
+        //   this.projectId +
+        //   "&secret=" +
+        //   this.secret +
+        //   "&FmId=" +
+        //   infos.id +
+        //   "&type=1&code=" +
+        //   infos.family;
+        // this.dialog.details = true
       }
       if (val == "infos.EquipQRCode") {
         this.qrcodeUrl = this.main[row.row].infos.EquipQRCode

+ 13 - 11
src/components/ledger/handsontables/device.vue

@@ -1015,17 +1015,19 @@ export default {
       this.messKey = val
       this.systemId = infos.id
       if (val == "caozuo") {
-        this.iframeSrc =
-          process.env.BASE_URL +
-          ":8889/#/details?perjectId=" +
-          this.projectId +
-          "&secret=" +
-          this.secret +
-          "&FmId=" +
-          infos.id +
-          "&type=1&code=" +
-          infos.category.substring(2, 6);
-        this.dialog.details = true
+         window.open(`
+http://47.94.89.44:8058/spread?id=${infos.id}&pid=${this.projectId}`,"_blank")
+        // this.iframeSrc =
+        //   process.env.BASE_URL +
+        //   ":8889/#/details?perjectId=" +
+        //   this.projectId +
+        //   "&secret=" +
+        //   this.secret +
+        //   "&FmId=" +
+        //   infos.id +
+        //   "&type=1&code=" +
+        //   infos.category.substring(2, 6);
+        // this.dialog.details = true
       }
 
       //图片弹窗

+ 13 - 11
src/components/ledger/handsontables/system.vue

@@ -808,17 +808,19 @@ export default {
         this.dialog.relevance = true
       }
       if (val == "caozuo") {
-        this.iframeSrc =
-          process.env.BASE_URL +
-          ":8889/#/details?perjectId=" +
-          this.projectId +
-          "&secret=" +
-          this.secret +
-          "&FmId=" +
-          infos.id +
-          "&type=1&code=" +
-          infos.category.substring(2, 4);
-        this.dialog.details = true
+         window.open(`
+http://47.94.89.44:8058/system?id=${infos.id}&pid=${this.projectId}`,"_blank")
+        // this.iframeSrc =
+        //   process.env.BASE_URL +
+        //   ":8889/#/details?perjectId=" +
+        //   this.projectId +
+        //   "&secret=" +
+        //   this.secret +
+        //   "&FmId=" +
+        //   infos.id +
+        //   "&type=1&code=" +
+        //   infos.category.substring(2, 4);
+        // this.dialog.details = true
       }
 
       if (val == "infos.EquipQRCode") {