fix(测试用例): 自定义字段无法批量编辑#1006271

--bug=1006271 --user=lyh 【github#5726】测试跟踪-测试用例-批量编辑,自定义字段无法批量编辑
https://www.tapd.cn/55049933/s/1042597
This commit is contained in:
shiziyuan9527 2021-09-01 18:04:44 +08:00 committed by 刘瑞斌
parent 66d7e18d36
commit 1f3c4a392b
2 changed files with 7 additions and 5 deletions

View File

@ -455,6 +455,7 @@ export default {
if (this.$refs.table) {
this.$refs.table.reloadTable();
}
this.typeArr = [];
getCustomFieldBatchEditOption(template.customFields, this.typeArr, this.valueArr, this.members);
});
},
@ -773,7 +774,7 @@ export default {
},
handleBatchEdit() {
this.getMaintainerOptions();
this.$refs.batchEdit.open();
this.$refs.batchEdit.open(this.$refs.table.selectRows.size);
},
handleBatchMove() {
this.$refs.testBatchMove.open(this.treeNodes, this.$refs.table.selectIds, this.moduleOptions);

View File

@ -1,9 +1,10 @@
<template>
<div>
<ms-tag v-if="value == 'P0'" type="danger" :content="value"/>
<ms-tag v-if="value == 'P1'" type="warning" :content="value"/>
<ms-tag v-if="value == 'P2'" effect="light" type="danger" :content="value"/>
<ms-tag v-if="value == 'P3'" effect="light" type="warning" :content="value"/>
<ms-tag v-if="value === 'P0'" type="danger" :content="value"/>
<ms-tag v-else-if="value === 'P1'" type="warning" :content="value"/>
<ms-tag v-else-if="value === 'P2'" effect="light" type="danger" :content="value"/>
<ms-tag v-else-if="value === 'P3'" effect="light" type="warning" :content="value"/>
<ms-tag v-else-if="value" :content="value"/>
</div>
</template>