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()