refactor(接口测试): 环境变更后同步更新场景域名
This commit is contained in:
parent
acaf562ce2
commit
4fab6f7930
|
@ -140,6 +140,7 @@
|
||||||
@setProjectEnvMap="setProjectEnvMap"
|
@setProjectEnvMap="setProjectEnvMap"
|
||||||
@setEnvGroup="setEnvGroup"
|
@setEnvGroup="setEnvGroup"
|
||||||
@showPopover="showPopover"
|
@showPopover="showPopover"
|
||||||
|
@saveRefresh="setDomain"
|
||||||
:has-option-group="true"
|
:has-option-group="true"
|
||||||
ref="envPopover"
|
ref="envPopover"
|
||||||
class="ms-message-right" />
|
class="ms-message-right" />
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
:env-map="envMap"
|
:env-map="envMap"
|
||||||
:project-list="projectList"
|
:project-list="projectList"
|
||||||
@close="visible = false"
|
@close="visible = false"
|
||||||
|
@saveRefresh="saveRefresh"
|
||||||
@setProjectEnvMap="setProjectEnvMap"
|
@setProjectEnvMap="setProjectEnvMap"
|
||||||
v-show="!radio || radio === ENV_TYPE.JSON"
|
v-show="!radio || radio === ENV_TYPE.JSON"
|
||||||
:btnStyle="btnStyle"
|
:btnStyle="btnStyle"
|
||||||
|
@ -184,6 +185,9 @@ export default {
|
||||||
radioChange(val) {
|
radioChange(val) {
|
||||||
this.$emit('update:environmentType', val);
|
this.$emit('update:environmentType', val);
|
||||||
},
|
},
|
||||||
|
saveRefresh() {
|
||||||
|
this.$emit('saveRefresh');
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
<template v-slot:empty>
|
<template v-slot:empty>
|
||||||
<!--这里只做没有可搜索内容时使用,否则如果没有符合搜索条件的,也会显示该项,与上面的btn重复显示 -->
|
<!--这里只做没有可搜索内容时使用,否则如果没有符合搜索条件的,也会显示该项,与上面的btn重复显示 -->
|
||||||
<div v-if="isShowConfirmButton(pe.id) && pe.envs.length===0" class="empty-environment">
|
<div v-if="isShowConfirmButton(pe.id) && pe.envs.length === 0" class="empty-environment">
|
||||||
<el-button
|
<el-button
|
||||||
class="ms-scenario-button"
|
class="ms-scenario-button"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
<!-- 环境配置 -->
|
<!-- 环境配置 -->
|
||||||
<api-environment-config ref="environmentConfig" @close="environmentConfigClose" />
|
<api-environment-config ref="environmentConfig" @saveRefresh="environmentConfigClose" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -215,7 +215,7 @@ export default {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
environmentConfigClose() {
|
environmentConfigClose() {
|
||||||
// todo 关闭处理
|
this.$emit('saveRefresh');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -245,6 +245,7 @@ export default {
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
this.$refs.environmentEdit.save();
|
this.$refs.environmentEdit.save();
|
||||||
|
this.$emit('saveRefresh');
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.$emit('close');
|
this.$emit('close');
|
||||||
|
|
Loading…
Reference in New Issue