diff --git a/src/components/customModule/selectModule.vue b/src/components/customModule/selectModule.vue index 84669cd..ed2b9af 100644 --- a/src/components/customModule/selectModule.vue +++ b/src/components/customModule/selectModule.vue @@ -166,6 +166,7 @@ type: String, default: '100%' }, + // 是否多选 multiple: { type: Boolean, default: false @@ -346,6 +347,10 @@ // 选项点击事件 handleOptionClick(value) { + // 如果选中的选项为正在编辑的选项,则阻止选中 + if (this.editingItem && this.editingItem === value) { + return; + } if (this.multiple) { if (this.editingItem) { return; @@ -375,17 +380,18 @@ // 开始编辑 startEdit(item) { - this.editingItem = item.value; - this.tempEditValue = item.label; - - // // 下一个tick聚焦到输入框 - this.$nextTick(() => { - if (this.$refs.editInputRef) { - if (this.$refs.editInputRef.length > 0) { - this.$refs.editInputRef[0].focus(); + setTimeout(() => { + this.editingItem = item.value; + this.tempEditValue = item.label; + // // 下一个tick聚焦到输入框 + this.$nextTick(() => { + if (this.$refs.editInputRef) { + if (this.$refs.editInputRef.length > 0) { + this.$refs.editInputRef[0].focus(); + } } - } - }); + }); + },300); }, // 取消编辑 @@ -732,4 +738,7 @@ line-height: 35px!important; border: none!important; } + ::v-deep .el-input__suffix .el-icon-circle-check { + display: none!important; + } diff --git a/src/views/resource/messagePush/details.vue b/src/views/resource/messagePush/details.vue index c525633..d6aac5b 100644 --- a/src/views/resource/messagePush/details.vue +++ b/src/views/resource/messagePush/details.vue @@ -1,6 +1,6 @@ @@ -80,6 +80,7 @@ }); break; case 'pushMethod': + this.ruleForm = Object.assign({}, this.ruleForm, this.$refs.formRef.$refs.ruleForm.model); if (dataVal === '1') { this.formList[0].controls.pushAddress['hidden'] = false; this.formList[0].controls.contactPhones['required'] = false; @@ -87,8 +88,14 @@ this.formList[0].controls.pushAddress['hidden'] = true; this.formList[0].controls.contactPhones['required'] = true; } + // 1. 获取表单引用 + const formRef = this.$refs.formRef; + // 2. 先清除所有表单校验 + if (formRef && formRef.$refs.ruleForm) { + formRef.$refs.ruleForm.clearValidate(); // 清除校验提示 + } // 强制更新表单 - this.$set(this.ruleForm, 'updateFormVal', Date.now()); + // this.$set(this.ruleForm, 'updateFormVal', Date.now()); break; case 'cancel': this.$router.push("/resource/messagePush"); diff --git a/src/views/resource/monitorBoard/monitorBoardView.vue b/src/views/resource/monitorBoard/monitorBoardView.vue index 0dcf63e..9728f07 100644 --- a/src/views/resource/monitorBoard/monitorBoardView.vue +++ b/src/views/resource/monitorBoard/monitorBoardView.vue @@ -347,7 +347,6 @@ fnConfigName(groupId) { monitorConfigList({groupId: groupId}).then(res => { if (res && res.data) { - this.configModel = ''; this.configNameList = res && res.data; let index = 0; res && res.data.forEach(item => { @@ -357,8 +356,8 @@ }); if (index === 0 && this.configNameList.length > 0) { this.configModel = this.configNameList[0].id; - this.fnChartView(); } + this.fnChartView(); } }); }, @@ -398,6 +397,7 @@ delMonitorConfig(this.reserveForm.id).then(res => { this.reserveForm = {}; this.lineDataParams = {}; + this.configModel = ''; this.fnConfigName(this.groupData); }); }).catch(() => {}); @@ -415,6 +415,7 @@ // 分组 fnGroupChange(val) { // this.groupData + this.configModel = ''; this.fnConfigName(val); }, addMonitor() { diff --git a/src/views/resource/serverRegister/details.vue b/src/views/resource/serverRegister/details.vue index 73298c2..80e4bda 100644 --- a/src/views/resource/serverRegister/details.vue +++ b/src/views/resource/serverRegister/details.vue @@ -129,7 +129,7 @@ {name: '带宽', num: 0, unit: 'Mbps', imgUrl: bandWImg}, {name: 'CPU', num: 0, unit: '核', imgUrl: cpuImg}, {name: '内存', num: 0, unit: 'G', imgUrl: memoryImg}, - {name: '磁盘容量', num: 0, unit: 'GB', imgUrl: diskSizeImg}, + {name: '磁盘容量(HDD)', num: 0, unit: 'GB', imgUrl: diskSizeImg}, ], activeName: '网卡流量监控', echartList: {}, @@ -547,7 +547,9 @@ // 网卡流量监控 async fnNetChartList(keyVal, time, interCardName, onlyInterCard) { if (onlyInterCard) { - this.mapDataList[keyVal]['网卡信息'].echartList = [this.mapDataList[keyVal]['网卡信息'].echartList[0]]; + if (!this.interCartList[interCardName].businessFlag) { + this.mapDataList[keyVal]['网卡信息'].echartList = [this.mapDataList[keyVal]['网卡信息'].echartList[0],this.mapDataList[keyVal]['网卡信息'].echartList[1]]; + } if (await this.getNetEcharts(time, keyVal, '网卡信息', interCardName)) { if (await this.getNetPingDropCharts(time, keyVal, '网卡信息', interCardName)) { if (this.interCartList[interCardName].businessFlag) { diff --git a/src/views/resource/serverRegister/flowForm.vue b/src/views/resource/serverRegister/flowForm.vue index b2df1e3..a55c6ad 100644 --- a/src/views/resource/serverRegister/flowForm.vue +++ b/src/views/resource/serverRegister/flowForm.vue @@ -30,9 +30,14 @@
出省流量统计 -
-
-
{{item.description}}
+
+ +
+
{{item.description}}
+
+
+
+ 暂无数据