refactor(接口测试): 优化创建场景状态是空的缺陷 (#15834)

--bug=1014924 --user=王孝刚 【接口测试】场景-更多操作-创建场景,状态是空的
https://www.tapd.cn/55049933/s/1202822

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-07-15 17:24:47 +08:00 committed by GitHub
parent 76ae965d7c
commit 71bdf13387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -113,6 +113,8 @@ export default {
if (valid) { if (valid) {
let path = "/api/automation/create"; let path = "/api/automation/create";
this.setParameter(); this.setParameter();
this.scenarioForm.status = 'Underway';
this.scenarioForm.level = 'P0';
if (saveAs) { if (saveAs) {
this.scenarioForm.request = JSON.stringify(this.scenarioForm.request); this.scenarioForm.request = JSON.stringify(this.scenarioForm.request);
this.$emit('saveAsEdit', this.scenarioForm); this.$emit('saveAsEdit', this.scenarioForm);

View File

@ -137,6 +137,7 @@ export default {
let bodyFiles = []; let bodyFiles = [];
let path = "/api/definition/create"; let path = "/api/definition/create";
this.setParameter(); this.setParameter();
this.httpForm.status = 'Underway';
// //
if (this.httpForm.request) { if (this.httpForm.request) {
this.httpForm.request.clazzName = TYPE_TO_C.get(this.httpForm.request.type); this.httpForm.request.clazzName = TYPE_TO_C.get(this.httpForm.request.type);