修改ParentDeviceCode为undefined时,自动请求自动删除问题

This commit is contained in:
wu
2022-08-22 12:16:02 +08:00
parent 1eb319915a
commit 7a1f26ed80

View File

@@ -125,7 +125,7 @@ export default {
// if (this.choosable === 'true') {
// deviceConfigureModelValue["@ParentDeviceCode"] = val["@ParentDeviceCode"]
// }
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()