fix(环境管理): 修复环境条件切换显示问题
This commit is contained in:
parent
bfd47a0d95
commit
56393743aa
|
@ -46,7 +46,7 @@
|
|||
</el-form-item>
|
||||
</div>
|
||||
<div class="ms-border">
|
||||
<el-table :data="httpConfig.conditions" highlight-current-row @current-change="selectRow" v-if="!loading">
|
||||
<el-table :data="httpConfig.conditions" highlight-current-row @current-change="selectRow">
|
||||
<el-table-column prop="socket" :label="$t('load_test.domain')" show-overflow-tooltip width="180">
|
||||
<template v-slot:default="{row}">
|
||||
{{getUrl(row)}}
|
||||
|
@ -203,6 +203,7 @@
|
|||
}
|
||||
}
|
||||
this.beforeCondition = JSON.parse(JSON.stringify(this.condition));
|
||||
this.reload();
|
||||
},
|
||||
typeChange() {
|
||||
if (this.condition.type === "NONE" && this.condition.id && this.checkNode(this.condition.id)) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div>
|
||||
<div v-loading="loading">
|
||||
<div class="mask" v-show="isShowSelect"></div>
|
||||
<el-popover placement="bottom-start" :width="popoverWidth" trigger="manual" v-model="isShowSelect" @hide="popoverHide" v-outside-click="outsideClick">
|
||||
<el-input
|
||||
|
@ -145,6 +145,7 @@
|
|||
returnDatas: [],//返回给父组件数组对象
|
||||
returnDataKeys: [],//返回父组件数组主键值
|
||||
filterText: "",
|
||||
loading:false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
@ -256,6 +257,7 @@
|
|||
thisKeys.map((item) => {//设置option选项
|
||||
let node = this.$refs.tree.getNode(item); // 所有被选中的节点对应的node
|
||||
t.push(node.data);
|
||||
this.options.push({label: node.label, value: node.key});
|
||||
return {label: node.label, value: node.key};
|
||||
});
|
||||
this.returnDatas = t;
|
||||
|
@ -338,7 +340,14 @@
|
|||
}
|
||||
return false;
|
||||
},
|
||||
reload() {
|
||||
this.loading = true
|
||||
this.$nextTick(() => {
|
||||
this.loading = false
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
watch: {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
isShowSelect(val) {
|
||||
|
|
Loading…
Reference in New Issue