消息推送表单关联值显隐时清除校验提示、网卡流量图展示优化

1、消息推送表单关联值显隐时清除校验提示
2、优化自定义下拉中下拉框状态切换的内容展示
3、出省流量统计为空时,添加暂无数据提示
4、优化并修改bug
This commit is contained in:
康冉冉
2026-01-29 18:04:32 +08:00
parent e19cdd4c09
commit 76dfeb3d0d
5 changed files with 43 additions and 19 deletions
+19 -10
View File
@@ -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;
}
</style>