fix(测试跟踪): 新建功能用例步骤填写自动保存问题
--bug=1022806 --user=宋昌昌 【测试跟踪】新建功能用例,填写步骤后会自动保存,用例模块和责任人会提示不能为空 https://www.tapd.cn/55049933/s/1335754
This commit is contained in:
parent
41773e97d5
commit
83b484ab08
|
@ -1242,13 +1242,13 @@ export default {
|
|||
"," +
|
||||
this.$t("test_track.case.expected_results") +
|
||||
this.$t("test_track.length_less_than") +
|
||||
"300"
|
||||
"300", false
|
||||
);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (param.name === "") {
|
||||
this.$warning(this.$t("test_track.case.input_name"));
|
||||
this.$warning(this.$t("test_track.case.input_name"), false);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -1307,7 +1307,7 @@ export default {
|
|||
let curTabId = useStore().curTabId;
|
||||
if (curTabId === this.tabId) {
|
||||
if (event.keyCode === 83 && event.ctrlKey && this.readOnly) {
|
||||
this.$warning(this.$t("commons.no_operation_permission"));
|
||||
this.$warning(this.$t("commons.no_operation_permission"), false);
|
||||
return false;
|
||||
}
|
||||
handleCtrlSEvent(event, this.saveCase);
|
||||
|
@ -1522,9 +1522,7 @@ export default {
|
|||
}
|
||||
}
|
||||
this.isValidate = true;
|
||||
this.$warning(
|
||||
this.currentValidateName + this.$t("commons.cannot_be_null")
|
||||
);
|
||||
this.$warning(this.currentValidateName + this.$t("commons.cannot_be_null"), false);
|
||||
this.currentValidateName = "";
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -466,6 +466,8 @@ export default {
|
|||
this.treeNodes.forEach(node => {
|
||||
if (node.label === '未规划用例') {
|
||||
defaultNodeKey = node.id;
|
||||
this.form.module = defaultNodeKey;
|
||||
this.form.nodePath = node.path;
|
||||
}
|
||||
})
|
||||
return defaultNodeKey;
|
||||
|
|
|
@ -116,6 +116,7 @@
|
|||
<test-case-step-item
|
||||
v-if="form.stepModel === 'STEP' || !form.stepModel"
|
||||
:form="form"
|
||||
:editable="editable"
|
||||
:read-only="readOnly"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -142,6 +142,10 @@ export default {
|
|||
labelWidth: String,
|
||||
form: Object,
|
||||
readOnly: Boolean,
|
||||
editable: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -172,6 +176,9 @@ export default {
|
|||
this.$EventBus.$emit("handleSaveCaseWithEvent", this.form);
|
||||
},
|
||||
onInputBlur() {
|
||||
if (this.editable) {
|
||||
return;
|
||||
}
|
||||
clearTimeout(this.TIMER);
|
||||
this.TIMER = setTimeout(() => {
|
||||
this.$emit("saveCase");
|
||||
|
|
Loading…
Reference in New Issue