fix(接口测试): 接口定义定时同步增加覆盖模块

--task=1008675 --user=王孝刚 定时任务导入模式增加“同步覆盖API模块”选项
https://www.tapd.cn/55049933/s/1196271
This commit is contained in:
wxg0103 2022-07-06 18:07:29 +08:00 committed by xiaomeinvG
parent 73c3f07165
commit 00b081fc45
1 changed files with 9 additions and 5 deletions

View File

@ -21,13 +21,16 @@
:defaultKey="formData.moduleId" :defaultKey="formData.moduleId"
@getValue="setModule" @getValue="setModule"
:obj="moduleObj" clearable checkStrictly ref="selectTree"/> :obj="moduleObj" clearable checkStrictly ref="selectTree"/>
<!-- <ms-select-tree :disabled="readOnly" :data="treeNodes" :defaultKey="form.module" :obj="moduleObj"-->
<!-- @getValue="setModule" clearable checkStrictly size="small"/>-->
</el-form-item> </el-form-item>
<el-form-item :label-width="labelWith" :label="$t('commons.import_mode')" prop="modeId"> <el-form-item :label-width="labelWith" :label="$t('commons.import_mode')" prop="modeId">
<el-select size="small" v-model="formData.modeId" clearable> <el-select size="small" v-model="formData.modeId" clearable>
<el-option v-for="item in modeOptions" :key="item.id" :label="item.name" :value="item.id"/> <el-option v-for="item in modeOptions" :key="item.id" :label="item.name" :value="item.id"/>
</el-select> </el-select>
<el-checkbox size="mini" v-if="formData.modeId === 'fullCoverage'" v-model="formData.coverModule"
style="padding-left: 10px">
{{ this.$t('commons.cover_api') }}
</el-checkbox>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -130,7 +133,7 @@ import MsApiVariable from "../ApiVariable";
import MsApiAuthConfig from "../auth/ApiAuthConfig"; import MsApiAuthConfig from "../auth/ApiAuthConfig";
import {REQUEST_HEADERS} from "@/common/js/constants"; import {REQUEST_HEADERS} from "@/common/js/constants";
import {KeyValue} from "../../model/ApiTestModel"; import {KeyValue} from "../../model/ApiTestModel";
import {ELEMENT_TYPE, TYPE_TO_C} from "@/business/components/api/automation/scenario/Setting"; import {TYPE_TO_C} from "@/business/components/api/automation/scenario/Setting";
export default { export default {
name: "ApiSchedule", name: "ApiSchedule",
@ -204,7 +207,8 @@ export default {
swaggerUrl: '', swaggerUrl: '',
modeId: this.$t('commons.not_cover'), modeId: this.$t('commons.not_cover'),
moduleId: '', moduleId: '',
rule: '' rule: '',
coverModule: false
}, },
modeOptions: [ modeOptions: [
{ {
@ -328,7 +332,7 @@ export default {
this.clear(); this.clear();
}); });
}, },
searchTaskList(){ searchTaskList() {
this.$refs.taskList.search(); this.$refs.taskList.search();
}, },
intervalValidate() { intervalValidate() {