diff --git a/api/device.js b/api/device.js index 2cdb5bc..bad6616 100644 --- a/api/device.js +++ b/api/device.js @@ -8,10 +8,11 @@ const getBsFeiBaSetByCode=(fsCode)=> { }) } // 获取设备 -const getEcByDeviceCodeS=(deviceCode)=> { +const getEcByDeviceCodeS=(params)=> { return http.request({ - url: '/blade-desk/pdaLoad/getEcByDeviceCode/'+deviceCode, + url: '/blade-desk/pdaLoad/getEcByDeviceCode', method: 'get', + params }) } diff --git a/pages/plan/binding.vue b/pages/plan/binding.vue index 51c44f4..cb49ca9 100644 --- a/pages/plan/binding.vue +++ b/pages/plan/binding.vue @@ -401,7 +401,7 @@ if (this.facilityValue.length >= 1) { this.facilityValue = e.detail.value.slice(this.oldFacilityValue.length); this.oldValue = this.facilityValue; - this.getEcByDeviceCode(this.facilityValue); + this.getEcByDeviceCodeS({deviceCode:this.facilityValue}); } }, 2000); } diff --git a/pages/production/cardEquipmentSet.vue b/pages/production/cardEquipmentSet.vue index 32561f5..b676003 100644 --- a/pages/production/cardEquipmentSet.vue +++ b/pages/production/cardEquipmentSet.vue @@ -186,7 +186,7 @@ export default { }, getEcByDeviceCode(code) { this.twoInput = code; - this.$u.api.getEcByDeviceCode(code).then((res) => { + this.$u.api.getEcByDeviceCodeS({deviceCode:code}).then((res) => { let data = res.data; this.facilityObj = data; this.clearTwoInput(); diff --git a/pages/production/feibaDevice.vue b/pages/production/feibaDevice.vue index 1d5e2fc..3e14023 100644 --- a/pages/production/feibaDevice.vue +++ b/pages/production/feibaDevice.vue @@ -161,7 +161,7 @@ export default { // }); } else { this.twoInput = code; - this.$u.api.getEcByDeviceCodeS(code).then((res) => { + this.$u.api.getEcByDeviceCodeS({deviceCode:code}).then((res) => { let data = res.data; this.facilityObj = data; this.clearTwoInput(); diff --git a/pages/production/rackEcSet.vue b/pages/production/rackEcSet.vue index 9e78553..ad153a0 100644 --- a/pages/production/rackEcSet.vue +++ b/pages/production/rackEcSet.vue @@ -154,7 +154,7 @@ export default { getEcByDeviceCode(code) { this.twoInput = code; - this.$u.api.getEcByDeviceCode(code).then((res) => { + this.$u.api.getEcByDeviceCodeS({deviceCode:code}).then((res) => { let data = res.data; this.facilityObj = data; this.clearTwoInput(); diff --git a/pages/production/sjCardEquipmentSet.vue b/pages/production/sjCardEquipmentSet.vue index 0cff607..04b58e3 100644 --- a/pages/production/sjCardEquipmentSet.vue +++ b/pages/production/sjCardEquipmentSet.vue @@ -461,7 +461,7 @@ export default { }, getEcByDeviceCode(code) { this.twoInput = code; - this.$u.api.getEcByDeviceCode(code).then((res) => { + this.$u.api.getEcByDeviceCodeS({deviceCode:code}).then((res) => { let data = res.data; this.facilityObj = data; this.clearTwoInput(); diff --git a/pages/production/unBinding.vue b/pages/production/unBinding.vue index 6bb4c6d..512c0ef 100644 --- a/pages/production/unBinding.vue +++ b/pages/production/unBinding.vue @@ -208,7 +208,7 @@ export default { }, getEcByDeviceCode(code) { this.therrInput = code; - this.$u.api.getEcByDeviceCode(code).then((res) => { + this.$u.api.getEcByDeviceCodeS({deviceCode:code}).then((res) => { let data = res.data; this.facilityObj = data; this.oneFlag = true;