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 f8ad0fb0a8
commit 4374666f96
6 changed files with 23 additions and 11 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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