fix(测试跟踪): 添加到公共用例库提示文案问题
--bug=1023376 --user=宋昌昌 【测试跟踪】功能用例-编辑-添加到公共用例库-提示信息和原型不符 https://www.tapd.cn/55049933/s/1337997
This commit is contained in:
parent
e21ba009fd
commit
e6649ef7b4
|
@ -80,6 +80,8 @@ const message = {
|
|||
save_as: 'Save as',
|
||||
update: 'Update',
|
||||
save_success: 'Saved successfully',
|
||||
add_success: 'Add successfully',
|
||||
cancel_add_success: 'Cancel successfully',
|
||||
recover_success: 'Recover successfully',
|
||||
warning_module_add: "Tree modules are up to 8 levels deep",
|
||||
send_success: 'Send successfully',
|
||||
|
|
|
@ -79,6 +79,8 @@ const message = {
|
|||
save_as: '另存为',
|
||||
update: '更新',
|
||||
save_success: '保存成功',
|
||||
add_success: '添加成功',
|
||||
cancel_add_success: '取消添加成功',
|
||||
recover_success: '恢复成功',
|
||||
warning_module_add: "模块树深度最大为8层",
|
||||
send_success: '发送成功',
|
||||
|
|
|
@ -79,6 +79,8 @@ const message = {
|
|||
save_as: '另存為',
|
||||
update: '更新',
|
||||
save_success: '保存成功',
|
||||
add_success: '添加成功',
|
||||
cancel_add_success: '取消添加成功',
|
||||
recover_success: '恢復成功',
|
||||
send_success: '發送成功',
|
||||
delete_success: '刪除成功',
|
||||
|
|
|
@ -877,11 +877,11 @@ export default {
|
|||
},
|
||||
addPublic() {
|
||||
this.casePublic = true;
|
||||
this.saveCase();
|
||||
this.saveCase(true);
|
||||
},
|
||||
removePublic() {
|
||||
this.casePublic = false;
|
||||
this.saveCase();
|
||||
this.saveCase(true);
|
||||
},
|
||||
handleCommand(e) {
|
||||
this.saveType = e;
|
||||
|
@ -1091,9 +1091,9 @@ export default {
|
|||
removeGoBackListener(this.close);
|
||||
this.dialogFormVisible = false;
|
||||
},
|
||||
saveCase() {
|
||||
saveCase(isAddPublic) {
|
||||
if (this.validateForm()) {
|
||||
this._saveCase();
|
||||
this._saveCase(isAddPublic);
|
||||
} else {
|
||||
if (this.$refs.versionHistory) {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
|
@ -1103,7 +1103,7 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
_saveCase() {
|
||||
_saveCase(isAddPublic) {
|
||||
let param = this.buildParam();
|
||||
if (this.validate(param)) {
|
||||
let option = this.getOption(param);
|
||||
|
@ -1117,7 +1117,11 @@ export default {
|
|||
this.$refs.otherInfo.getFileMetaData(response.data.id);
|
||||
}
|
||||
this.loading = false;
|
||||
if (isAddPublic) {
|
||||
this.$success(this.casePublic ? this.$t("commons.add_success") : this.$t("commons.cancel_add_success"), false);
|
||||
} else {
|
||||
this.$success(this.$t("commons.save_success"), false);
|
||||
}
|
||||
this.operationType = "edit";
|
||||
this.$emit("refreshTestCase");
|
||||
store.testCaseMap.set(this.form.id, 0);
|
||||
|
|
Loading…
Reference in New Issue