fix(测试跟踪): 功能用例开启自定义ID后,无法编辑ID

--bug=1019035 --user=陈建星 【测试跟踪】开启“测试用例自定义ID”-创建测试用例-用例基础信息不显示ID字段 https://www.tapd.cn/55049933/s/1280845
This commit is contained in:
chenjianxing 2022-10-27 17:28:00 +08:00 committed by jianxing
parent 5fec89ef92
commit 9b0253761f
6 changed files with 23 additions and 11 deletions

View File

@ -770,8 +770,10 @@ export default {
getProjectApplicationConfig('CASE_CUSTOM_NUM')
.then(result => {
let data = result.data;
if (data) {
store.currentProjectIsCustomNum = data.caseCustomNum;
if (data && data.typeValue === 'true') {
store.currentProjectIsCustomNum = true;
} else {
store.currentProjectIsCustomNum = false;
}
});
},

View File

@ -6,7 +6,6 @@
<ms-aside-container :height="pageHeight">
<test-case-base-info
:form="form"
:is-form-alive="isFormAlive"
:isloading="loading"
:read-only="readOnly"
@ -452,6 +451,8 @@ export default {
let data = res.data;
if (data && data.typeValue === 'true') {
this.isPublic = true;
} else {
this.isPublic = false;
}
});
if (hasLicense()) {

View File

@ -245,8 +245,10 @@ export default {
getProjectApplicationConfig(projectId, 'SCENARIO_CUSTOM_NUM')
.then(result => {
let data = result.data;
if (data) {
this.customNum = data.scenarioCustomNum;
if (data && data.typeValue === 'true') {
this.customNum = true;
} else {
this.customNum = false;
}
});
}

View File

@ -235,8 +235,10 @@ export default {
getProjectApplicationConfig('CASE_CUSTOM_NUM')
.then(result => {
let data = result.data;
if (data) {
this.customNum = data.caseCustomNum;
if (data && data.typeValue === 'true') {
this.customNum = true;
} else {
this.customNum = false;
}
});
},

View File

@ -222,8 +222,10 @@ export default {
getProjectApplicationConfig('SCENARIO_CUSTOM_NUM')
.then(result => {
let data = result.data;
if (data) {
this.customNum = data.scenarioCustomNum;
if (data && data.typeValue === 'true') {
this.customNum = true;
} else {
this.customNum = false;
}
});
}

View File

@ -462,9 +462,12 @@ export default {
getProject() {
getProjectConfig(this.projectId, "/CASE_CUSTOM_NUM")
.then(result => {
let store = useStore();
let data = result.data;
if (data) {
useStore().currentProjectIsCustomNum = data.caseCustomNum;
if (data && data.typeValue === 'true') {
store.currentProjectIsCustomNum = true;
} else {
store.currentProjectIsCustomNum = false;
}
});
},