From 668c1bcf7cc078e23e233ee2d574683c99d1351e Mon Sep 17 00:00:00 2001 From: wu <2468489804@qq.com> Date: Sun, 21 Aug 2022 13:06:08 +0800 Subject: [PATCH] =?UTF-8?q?parent=5Fcode=E4=BF=AE=E6=94=B9=E4=B8=BA@Parent?= =?UTF-8?q?DeviceCode=EF=BC=8C=E9=A1=BA=E4=BE=BF=E5=85=88=E5=BC=80?= =?UTF-8?q?=E6=94=BE=E4=B8=8B=E6=8B=89=E6=A1=86=E5=87=BA=E6=9D=A5----?= =?UTF-8?q?=E6=B7=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edgeServerConfigure/deviceConfigure.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/edgeServer/edgeServerConfigure/deviceConfigure.vue b/src/views/edgeServer/edgeServerConfigure/deviceConfigure.vue index ca57ea7..80bcb63 100644 --- a/src/views/edgeServer/edgeServerConfigure/deviceConfigure.vue +++ b/src/views/edgeServer/edgeServerConfigure/deviceConfigure.vue @@ -8,9 +8,9 @@ - - - + + + @@ -115,15 +115,17 @@ export default { } }) this.rules = rules - this.deviceConfigureModelValue = this.choosable === 'true' ? assign(deviceConfigureModelValue, { parent_device_code: '' }) : deviceConfigureModelValue + this.deviceConfigureModelValue = assign(deviceConfigureModelValue, { '@ParentDeviceCode': '' }) + //this.deviceConfigureModelValue = this.choosable === 'true' ? assign(deviceConfigureModelValue, { parent_device_code: '' }) : deviceConfigureModelValue console.log(this.deviceConfigureModelValue) this.deviceConfigureFormItem = deviceConfigureFormItemData[e] }, setDeviceDefaultFormItemValue (val) { const deviceConfigureModelValue = {} - if (this.choosable === 'true') { - deviceConfigureModelValue.parent_device_code = val.parent_device_code - } + // if (this.choosable === 'true') { + // deviceConfigureModelValue["@ParentDeviceCode"] = val["@ParentDeviceCode"] + // } + deviceConfigureModelValue["@ParentDeviceCode"] = val["@ParentDeviceCode"] each(deviceConfigureFormItemData[this.defaultDeviceTypeNameValue], (item) => { if (item.type === 'time') { deviceConfigureModelValue[item.key] = val[item.key] ? val[item.key] : new Date()