refactor(接口测试): 优化接口用例未保存提示
--story=1012512 --user=王孝刚 新建接口case优化 https://www.tapd.cn/55049933/s/1397203
This commit is contained in:
parent
848a3589ed
commit
2877049e62
|
@ -349,7 +349,6 @@ export default {
|
|||
beforeUpdateRequest: {},
|
||||
compare: [],
|
||||
isSave: false,
|
||||
tagCount: 0,
|
||||
requestCount: 0,
|
||||
readonly: false,
|
||||
noShowSyncRuleRelation: false,
|
||||
|
@ -463,20 +462,20 @@ export default {
|
|||
},
|
||||
},
|
||||
'apiCase.tags': {
|
||||
handler(v) {
|
||||
this.tagCount++;
|
||||
if (this.tagCount > 2) {
|
||||
handler(v, v1) {
|
||||
if (v1) {
|
||||
this.saveStatus();
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
'apiCase.request': {
|
||||
handler(v) {
|
||||
this.requestCount++;
|
||||
if (this.requestCount > 1) {
|
||||
if (this.requestCount > 2) {
|
||||
this.saveStatus();
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
'caseSyncRuleRelation.showUpdateRule': {
|
||||
handler(v) {
|
||||
|
@ -747,7 +746,6 @@ export default {
|
|||
row.updateUser = getCurrentUser().name;
|
||||
row.type = null;
|
||||
this.$success(this.$t('commons.save_success'));
|
||||
this.tagCount = 0;
|
||||
this.requestCount = 0;
|
||||
this.reload();
|
||||
this.isSave = false;
|
||||
|
|
|
@ -303,7 +303,7 @@ export default {
|
|||
apiCaseClose() {
|
||||
if (this.apiCaseList && this.apiCaseList.length > 0) {
|
||||
let message = '';
|
||||
if (store.apiCaseMap.has(this.apiCaseList[0].id) && store.apiCaseMap.get(this.apiCaseList[0].id) > 1) {
|
||||
if (store.apiCaseMap.has(this.apiCaseList[0].id) && store.apiCaseMap.get(this.apiCaseList[0].id) > 0) {
|
||||
message += this.apiCaseList[0].name + ',';
|
||||
}
|
||||
if (this.apiCaseList[0].type === 'AddCase') {
|
||||
|
|
Loading…
Reference in New Issue