fix(测试跟踪): 自定义字段用例等级改为必填
--bug=1024382 --user=宋昌昌 [BUG]测试跟踪,首页统计功能用例数量错误,新增用例之后,统计数据不更新 #22587 https://www.tapd.cn/55049933/s/1349881
This commit is contained in:
parent
b1496c48d2
commit
41195e24a7
|
@ -43,7 +43,7 @@
|
|||
width="80"
|
||||
prop="type">
|
||||
<template v-slot="scope">
|
||||
<el-checkbox v-model="scope.row.required"/>
|
||||
<el-checkbox :disabled="scope.row.disabled" v-model="scope.row.required"/>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
|
||||
|
|
|
@ -197,6 +197,9 @@ export default {
|
|||
this.loading = getCustomFieldTemplates(condition).then((response) => {
|
||||
this.relateFields = response.data;
|
||||
this.relateFields.forEach(item => {
|
||||
if (item.name === '用例等级' && item.system) {
|
||||
item.disabled = true;
|
||||
}
|
||||
if (item.options) {
|
||||
item.options = JSON.parse(item.options);
|
||||
}
|
||||
|
@ -221,6 +224,10 @@ export default {
|
|||
this.loading = getCustomFieldDefault(condition).then((response) => {
|
||||
let data = response.data;
|
||||
data.forEach(item => {
|
||||
if (item.name === '用例等级' && item.system && item.scene === 'TEST_CASE') {
|
||||
item.required = true;
|
||||
item.disabled = true;
|
||||
}
|
||||
if (item.id) {
|
||||
this.templateContainIds.add(item.id);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- 修改自定义字段用例等级为必填字段
|
||||
UPDATE custom_field_template SET required = 1 WHERE field_id IN (
|
||||
SELECT id FROM custom_field WHERE scene = 'TEST_CASE' AND name = '用例等级' AND `system` is true
|
||||
);
|
||||
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
|
@ -142,7 +142,7 @@
|
|||
:fields-width="fieldsWidth"
|
||||
:label="$t('commons.tag')"
|
||||
:show-overflow-tooltip="false"
|
||||
min-width="80">
|
||||
min-width="180">
|
||||
<template v-slot:default="scope">
|
||||
<el-tooltip class="item" effect="dark" placement="top">
|
||||
<div v-html="getTagToolTips(scope.row.tags)" slot="content"></div>
|
||||
|
|
Loading…
Reference in New Issue