Browse Source

fix system link equip bug

haojianlong 5 years ago
parent
commit
03a93ce3bb
2 changed files with 8 additions and 6 deletions
  1. 1 1
      src/api/scan/request.js
  2. 7 5
      src/components/ledger/tableTransfers.vue

+ 1 - 1
src/api/scan/request.js

@@ -915,7 +915,7 @@ export function equipLinkSys(param, success) {
 
 //设备清单 - 设备关联系统 系统1-n   
 export function sysLinkEquip(param, success) {
-    let url = `${baseUrl}/datacenter/sy-in-eq/link-eq`;
+    let url = `${baseUrl}/datacenter/sy-in-eq/link-sy-eq`;
     http.postJson(url, param, success)
 } 
 

+ 7 - 5
src/components/ledger/tableTransfers.vue

@@ -187,10 +187,12 @@ export default {
       this.getRightData()
     },
     //pages1改变
-    changePages1() {
+    changePages1(page) {
+      this.pages1.PageNumber = page
       this.getLeftData()
     },
-    changePages2() {
+    changePages2(page) {
+      this.pages2.PageNumber = page
       this.getRightData()
     },
     //修改设备类型
@@ -246,8 +248,8 @@ export default {
       let param = {
         Filters: `sysId='${this.id}'`,
         Orders: "EquipID desc",
-        PageNumber: this.pages1.currentPage,
-        PageSize: this.pages1.size
+        PageNumber: this.pages2.currentPage,
+        PageSize: this.pages2.size
       }
       if (this.search2 != '') {
         param.Filters += `;EquipLocalName contain "${this.search2}"`
@@ -268,7 +270,7 @@ export default {
     },
     //关联
     leftToRight() {
-      let relationList = this.multipleSelection.concat(this.table2Data)
+      let relationList = this.multipleSelection
       relationList = relationList.map(t => {
         return t.EquipID || t.EquipId
       })