fix(接口定义): 测试中另存新接口缺陷修复

This commit is contained in:
fit2-zhao 2021-02-07 11:36:57 +08:00
parent 61992c14d5
commit f3e0eb5b9d
4 changed files with 16 additions and 10 deletions

View File

@ -89,7 +89,7 @@
reportId: "",
}
},
props: {apiData: {}, currentProtocol: String,syncTabs: Array, projectId: String},
props: {apiData: {}, currentProtocol: String, syncTabs: Array, projectId: String},
methods: {
handleCommand(e) {
switch (e) {
@ -105,7 +105,7 @@
return this.runTest();
}
},
refresh(){
refresh() {
this.$emit('refresh');
},
runTest() {
@ -161,7 +161,9 @@
},
saveAsApi() {
let data = {};
data.request = JSON.stringify(this.api.request);
let req = this.api.request;
req.id = getUUID();
data.request = JSON.stringify(req);
data.method = this.api.method;
data.status = this.api.status;
data.userId = this.api.userId;

View File

@ -186,11 +186,11 @@
},
saveAsApi() {
let data = {};
data.request = JSON.stringify(this.api.request);
let req = this.api.request;
req.id = getUUID();
data.request = JSON.stringify(req);
data.method = this.api.method;
data.url = this.api.url;
let id = getUUID();
data.id = id;
data.status = this.api.status;
data.userId = this.api.userId;
data.description = this.api.description;

View File

@ -160,7 +160,9 @@
},
saveAsApi() {
let data = {};
data.request = JSON.stringify(this.api.request);
let req = this.api.request;
req.id = getUUID();
data.request = JSON.stringify(req);
data.method = this.api.method;
data.status = this.api.status;
data.userId = this.api.userId;

View File

@ -98,7 +98,7 @@
reportId: "",
}
},
props: {apiData: {}, currentProtocol: String,syncTabs: Array, projectId: String},
props: {apiData: {}, currentProtocol: String, syncTabs: Array, projectId: String},
methods: {
handleCommand(e) {
switch (e) {
@ -114,7 +114,7 @@
return this.$refs['requestForm'].validate();
}
},
refresh(){
refresh() {
this.$emit('refresh');
},
runTest() {
@ -173,7 +173,9 @@
},
saveAsApi() {
let data = {};
data.request = JSON.stringify(this.api.request);
let req = this.api.request;
req.id = getUUID();
data.request = JSON.stringify(req);
data.method = this.api.method;
data.status = this.api.status;
data.userId = this.api.userId;