wangfei 6 jaren geleden
bovenliggende
commit
28b014af81

+ 3
- 1
src/pages/system/caseManager/deviceManager/add.vue Bestand weergeven

@@ -87,8 +87,10 @@ export default {
87 87
     ]),
88 88
     submit () {
89 89
       if ((this.detail.EquipmentId || '') === '') {
90
-        this.detail.CaseId = this.caseid
91 90
         this.detail.OrgId = this.orgid
91
+        if (!this.detail.CaseId || this.detail.CaseId === '') {
92
+          this.detail.CaseId = this.caseid
93
+        }
92 94
         this.AddDevice(this.detail)
93 95
       } else {
94 96
         this.UpdateDevice(this.detail)

+ 1
- 0
src/pages/system/caseManager/deviceManager/index.vue Bestand weergeven

@@ -76,6 +76,7 @@ export default {
76 76
       console.log(`每页 ${val} 条`)
77 77
     },
78 78
     handleCurrentChange (val) {
79
+      this.GetDeviceList({ page: val })
79 80
       console.log(`当前页: ${val}`)
80 81
     },
81 82
     handleEdit (index, row) {

+ 1
- 0
src/pages/system/systemSet/roleManager/index.vue Bestand weergeven

@@ -103,6 +103,7 @@ export default {
103 103
       console.log(`每页 ${val} 条`)
104 104
     },
105 105
     handleCurrentChange (val) {
106
+      this.GetRolesList({ page: val })
106 107
       console.log(`当前页: ${val}`)
107 108
     },
108 109
     handleEdit (index, row) {

+ 2
- 1
src/store/case/device.js Bestand weergeven

@@ -16,9 +16,10 @@ export default {
16 16
     },
17 17
   },
18 18
   actions: {
19
-    GetDeviceList ({ commit }) {
19
+    GetDeviceList ({ commit }, payload) {
20 20
       ajax(api.device.list.url, {
21 21
         method: api.device.list.method,
22
+        queryData: { ...payload }
22 23
       }).then(res => {
23 24
         commit('updateList', res)
24 25
       })