diff --git a/src/views/modules/eam/com_eam_object_add_update.vue b/src/views/modules/eam/com_eam_object_add_update.vue index 2e754ee..5babc28 100644 --- a/src/views/modules/eam/com_eam_object_add_update.vue +++ b/src/views/modules/eam/com_eam_object_add_update.vue @@ -3,7 +3,7 @@ - + - + + + + + + + @@ -65,34 +71,38 @@ - - - - - + + + + + + - + - + - - - - - + + + + + - + + + + - + - + @@ -109,7 +119,7 @@ 保存 - 关闭 + 关闭 @@ -165,7 +175,10 @@ export default { standardMaintenanceDuration: '', timeOutMaintenanceDuration: '', standardResponseDuration: '', - timeOutResponseDuration: '' + timeOutResponseDuration: '', + cycleTimeSend: undefined, + mesType: '', + mesTypeList: [] }, dataListLoading: false, rules:{ @@ -295,6 +308,7 @@ export default { this.$message.warning("所属部门不能为空!"); return false } + this.pageData.mesType = this.pageData.mesTypeList.join(',') // 判断是否是新增标签自定义 if (this.pageData.addFlag === 'Y') { this.insertEamObjectData() diff --git a/src/views/modules/eam/eam_device_list.vue b/src/views/modules/eam/eam_device_list.vue index 798bfd4..297183f 100644 --- a/src/views/modules/eam/eam_device_list.vue +++ b/src/views/modules/eam/eam_device_list.vue @@ -68,6 +68,7 @@ highlight-current-row @row-click="setCurrentRow" @current-change="changeCurrentRow" + v-loading="searchLoading" border style="width: 100%;"> { if (data && data.code === 0) { this.dataList = data.page.list @@ -3530,7 +3533,12 @@ //设置选中行 this.$refs.eamObjectTable.setCurrentRow(this.dataList[0]) } + this.searchLoading = false + } else { + this.searchLoading = false } + }).catch(() => { + this.searchLoading = false }) }, @@ -3711,7 +3719,10 @@ standardMaintenanceDuration: '', timeOutMaintenanceDuration: '', standardResponseDuration: '', - timeOutResponseDuration: '' + timeOutResponseDuration: '', + cycleTimeSend: undefined, + mesType: '', + mesTypeList: [] } //打开组件 去做新增业务 this.$nextTick(() => { @@ -3736,8 +3747,13 @@ }, updateEamObjectModal (row) { - let currentData = row - currentData.addFlag = 'N' + let currentData = { + ...row, + addFlag: 'N', + mesType: row.mesType, + mesTypeList: row.mesType == null || row.mesType === '' ? [] : row.mesType.split(','), + cycleTimeSend: row.cycleTimeSend == null || row.cycleTimeSend === '' ? undefined : row.cycleTimeSend, + } //打开组件 去做新增业务 this.$nextTick(() => { this.$refs.comAddUpdateEamObject.init(currentData)