diff --git a/frontend/src/business/components/common/components/search/custom-component.js b/frontend/src/business/components/common/components/search/custom-component.js index 66fb4813c0..6b30745cc3 100644 --- a/frontend/src/business/components/common/components/search/custom-component.js +++ b/frontend/src/business/components/common/components/search/custom-component.js @@ -133,11 +133,13 @@ export function _findIndexByKey(components, key) { return components.findIndex(co => co.key === key); } -export function generateFilterColumnKey(field) { +export function generateColumnKey(field) { if (field.type === 'select' || field.type === 'radio' || field.type === 'member') { // 修改标识 return 'custom_single-' + field.id; } else if (field.type === 'multipleSelect' || field.type === 'checkbox' || field.type === 'multipleMember') { return 'custom_multiple-' + field.id; + } else { + return 'custom-' + field.id; } } diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue index 12427dbefb..cd84a43e12 100644 --- a/frontend/src/business/components/track/case/components/TestCaseList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseList.vue @@ -177,7 +177,7 @@ :fields-width="fieldsWidth" :label="field.system ? $t(systemFiledMap[field.name]) :field.name" :min-width="120" - :column-key="field.columnKey ? field.columnKey : generateFilterColumnKey(field)" + :column-key="field.columnKey ? field.columnKey : generateColumnKey(field)" :prop="field.name">