fix(接口定义): 缺陷修复
This commit is contained in:
parent
b6401b776f
commit
7d74605533
|
@ -29,7 +29,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label class="ms-api-label">{{$t('test_track.case.priority')}}</label>
|
<label class="ms-api-label">{{$t('test_track.case.priority')}}</label>
|
||||||
<el-select size="small" v-model="item.priority" class="ms-api-select">
|
<el-select size="small" v-model="item.priority" class="ms-api-select" @change="changePriority(item)">
|
||||||
<el-option v-for="grd in priorities" :key="grd.id" :label="grd.name" :value="grd.id"/>
|
<el-option v-for="grd in priorities" :key="grd.id" :label="grd.name" :value="grd.id"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -57,11 +57,11 @@
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<ms-tip-button @click="singleRun(item)" :tip="$t('api_test.run')" icon="el-icon-video-play"
|
<ms-tip-button @click="singleRun(item)" :tip="$t('api_test.run')" icon="el-icon-video-play"
|
||||||
style="background-color: #409EFF;color: white" size="mini" circle/>
|
style="background-color: #409EFF;color: white" size="mini" :disabled="item.type=='create'" circle/>
|
||||||
<ms-tip-button @click="copyCase(item)" :tip="$t('commons.copy')" icon="el-icon-document-copy"
|
<ms-tip-button @click="copyCase(item)" :tip="$t('commons.copy')" icon="el-icon-document-copy"
|
||||||
size="mini" circle/>
|
size="mini" :disabled="item.type=='create'" circle/>
|
||||||
<ms-tip-button @click="deleteCase(index,item)" :tip="$t('commons.delete')" icon="el-icon-delete"
|
<ms-tip-button @click="deleteCase(index,item)" :tip="$t('commons.delete')" icon="el-icon-delete"
|
||||||
size="mini" circle/>
|
size="mini" :disabled="item.type=='create'" circle/>
|
||||||
<ms-api-extend-btns :row="item"/>
|
<ms-api-extend-btns :row="item"/>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
|
@ -222,7 +222,6 @@
|
||||||
this.$warning(this.$t('api_test.environment.select_environment'));
|
this.$warning(this.$t('api_test.environment.select_environment'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.loading = true;
|
|
||||||
if (this.apiCaseList.length > 0) {
|
if (this.apiCaseList.length > 0) {
|
||||||
this.apiCaseList.forEach(item => {
|
this.apiCaseList.forEach(item => {
|
||||||
if (item.type != "create") {
|
if (item.type != "create") {
|
||||||
|
@ -231,9 +230,13 @@
|
||||||
this.runData.push(item.request);
|
this.runData.push(item.request);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.loading = true;
|
if (this.runData.length > 0) {
|
||||||
/*触发执行操作*/
|
this.loading = true;
|
||||||
this.reportId = getUUID().substring(0, 8);
|
/*触发执行操作*/
|
||||||
|
this.reportId = getUUID().substring(0, 8);
|
||||||
|
} else {
|
||||||
|
this.$warning("没有可执行的用例!");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$warning("没有可执行的用例!");
|
this.$warning("没有可执行的用例!");
|
||||||
}
|
}
|
||||||
|
@ -343,6 +346,11 @@
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
changePriority(row) {
|
||||||
|
if (row.type != 'create') {
|
||||||
|
this.saveTestCase(row);
|
||||||
|
}
|
||||||
|
},
|
||||||
saveTestCase(row) {
|
saveTestCase(row) {
|
||||||
if (this.validate(row)) {
|
if (this.validate(row)) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
<el-col :span="3">
|
<el-col :span="3">
|
||||||
<div class="ms-api-header-select">
|
<div class="ms-api-header-select">
|
||||||
<el-input size="small" :placeholder="$t('api_test.definition.request.select_case')"
|
<el-input size="small" :placeholder="$t('api_test.definition.request.select_case')"
|
||||||
v-model="condition.name" @blur="getApiTest"/>
|
v-model="condition.name" @blur="getApiTest" @keyup.enter.native="getApiTest"/>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
|
|
Loading…
Reference in New Issue