Bläddra i källkod

返回系统台账添加回参

LXXXY 5 år sedan
förälder
incheckning
ac172255eb

+ 1 - 1
src/components/ledger/handsontables/system.vue

@@ -526,7 +526,7 @@ export default {
           // this.$message("开发中...")
           this.$router.push({
             path: "/ledger/systemDetail",
-            query: { RoomID: infos.SysID, Name: infos.SysLocalName || infos.SysName, SysType:infos.Category }
+            query: { SysID: infos.SysID, Name: infos.SysLocalName || infos.SysName, SysType:infos.Category }
           })
           return false
         //设备二维码图片

+ 3 - 4
src/views/ledger/system/index.vue

@@ -59,11 +59,10 @@ export default {
     this.param.ProjId = this.projectId
     this.param.secret = this.secret
     this.countGeneralSys()
-
-    let deviceId = this.$route.params.deviceId;
-    if (deviceId) {
+    let SysType = this.$route.params.SysType;
+    if (SysType) {
       this.$nextTick(() => {
-        this.$refs.cascader.changeVal(deviceId)
+        this.$refs.cascader.changeVal(SysType)
       })
     }
   },

+ 1 - 1
src/views/ledger/system/systemDetail/index.vue

@@ -77,7 +77,7 @@ export default {
     // 查询系统详情
     getSystemDetails() {
       let pa = {
-        Filters: `SysID="${this.params.RoomID}"`
+        Filters: `SysID="${this.params.SysID}"`
       }
       queryLinkSys(pa, res => {
         this.systemDetails = res.Content[0];