fix(缺陷管理): 自定义字段严重程度筛选有误
--bug=1044347 --user=宋昌昌 【缺陷管理】项目集成jira-缺陷列表-三方平台的严重程度字段-筛选未返回符合数据 https://www.tapd.cn/55049933/s/1552881
This commit is contained in:
parent
269922dd1c
commit
d69fefcfd9
|
@ -903,7 +903,7 @@ export function getCustomFieldIndex(field: CustomFieldItem) {
|
|||
// 表格自定义字段转column
|
||||
export function customFieldToColumns(customFields: CustomFieldItem[]) {
|
||||
return customFields.map((field) => {
|
||||
const { fieldName, fieldKey, fieldId } = field;
|
||||
const { fieldName, fieldKey, fieldId, options, platformOptionJson } = field;
|
||||
const column: MsTableColumnData = {
|
||||
title: fieldName,
|
||||
dataIndex: ['handleUser', 'status'].includes(fieldId) ? fieldKey : getCustomFieldIndex(field),
|
||||
|
@ -911,6 +911,7 @@ export function customFieldToColumns(customFields: CustomFieldItem[]) {
|
|||
showDrag: true,
|
||||
showInTable: true,
|
||||
width: 200,
|
||||
options: options || JSON.parse(platformOptionJson),
|
||||
};
|
||||
return column;
|
||||
});
|
||||
|
|
|
@ -167,7 +167,6 @@
|
|||
import { useRoute } from 'vue-router';
|
||||
import { useIntervalFn } from '@vueuse/core';
|
||||
import { Message, TableData } from '@arco-design/web-vue';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
|
||||
import { MsAdvanceFilter, timeSelectOptions } from '@/components/pure/ms-advance-filter';
|
||||
import { BackEndEnum, FilterFormItem, FilterResult, FilterType } from '@/components/pure/ms-advance-filter/type';
|
||||
|
@ -784,12 +783,14 @@
|
|||
async function getColumnHeaders() {
|
||||
try {
|
||||
customColumns = await getCustomFieldColumns();
|
||||
console.log(customColumns);
|
||||
customColumns.forEach((item) => {
|
||||
// 目前自定义字段的过滤只支持严重程度
|
||||
if (item.title === '严重程度' || item.title === 'Bug Degree') {
|
||||
item.showInTable = true;
|
||||
item.slotName = 'severity';
|
||||
item.filterConfig = {
|
||||
options: cloneDeep(unref(severityFilterOptions.value)) || [],
|
||||
options: item.options || [],
|
||||
labelKey: 'text',
|
||||
};
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue