diff --git a/frontend/src/components/business/ms-filter-panel/caseUtils.ts b/frontend/src/components/business/ms-filter-panel/caseUtils.ts deleted file mode 100644 index 315377dea0..0000000000 --- a/frontend/src/components/business/ms-filter-panel/caseUtils.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { OPERATORS } from './operator'; -import type { SearchKeyType } from './type'; - -// eslint-disable-next-line no-shadow -export enum CaseKeyEnum { - NAME = 'name', - UPDATE_TIME = 'updateTime', - MODULES = 'modules', - CREATE_TIME = 'createTime', - CREATOR = 'creator', - TAGS = 'tags', - REVIEW_RESULT = 'reviewResults', - FOLLOW_PEOPLE = 'followPeople', - ASSOCIATED_REQUIREMENTS = 'associated_requirements', - CASE_LEVEL = 'caseLevel', - CASE_STATUS = 'caseStatus', - PRINCIPAL = 'principal', // 责任人 -} - -// 名称 -export const NAME: SearchKeyType = { - key: CaseKeyEnum.NAME, // 对应字段key - type: 'a-input', // Vue控件名称 - label: '显示名称', // 显示名称 - operator: { - value: OPERATORS.LIKE.value, // 如果未设置value初始值,则value初始值为options[0] - options: [OPERATORS.LIKE, OPERATORS.NOT_LIKE], // 运算符选项 - }, -}; - -// 标签 -export const TAGS: SearchKeyType = { - key: CaseKeyEnum.TAGS, - type: 'a-input', - label: '标签', - operator: { - value: OPERATORS.LIKE.value, - options: [OPERATORS.LIKE, OPERATORS.NOT_LIKE], - }, -}; - -// 所属模块 -export const MODULE: SearchKeyType = { - key: 'module', - type: 'a-tree-select', - label: '所属模块', - operator: { - value: OPERATORS.LIKE.value, - options: [OPERATORS.LIKE, OPERATORS.NOT_LIKE], - }, -}; - -// 创建时间 -export const CREATE_TIME: SearchKeyType = { - key: CaseKeyEnum.CREATE_TIME, - type: 'time-select', // 时间选择器 - label: '创建时间', - rules: [{ required: true, message: '请选择创建时间!' }], - props: {}, - operator: { - value: '', - options: [OPERATORS.BETWEEN, OPERATORS.GT, OPERATORS.LT], - }, -}; - -// 更新时间 -export const UPDATE_TIME: SearchKeyType = { - key: CaseKeyEnum.UPDATE_TIME, - type: 'time-select', - label: '更新时间', - rules: [{ required: true, message: '请选择更新时间!' }], - props: {}, - operator: { - value: '', - options: [OPERATORS.BETWEEN, OPERATORS.GT, OPERATORS.LT], - }, -}; -// 功能用例所需要列表 -export const TEST_PLAN_TEST_CASE = [NAME, TAGS, MODULE, CREATE_TIME, UPDATE_TIME]; - -export default {}; diff --git a/frontend/src/components/business/ms-filter-panel/locale/en-US.ts b/frontend/src/components/business/ms-filter-panel/locale/en-US.ts deleted file mode 100644 index 0e2cf8d290..0000000000 --- a/frontend/src/components/business/ms-filter-panel/locale/en-US.ts +++ /dev/null @@ -1,28 +0,0 @@ -export default { - operators: { - is_empty: 'Is empty', - is_not_empty: 'Is not empty', - like: 'Contains', - not_like: 'Not included', - in: 'Belong to', - not_in: 'Not belonging', - gt: 'Greater than', - ge: 'Greater than or equal to', - lt: 'Less than', - le: 'Less than or equal to', - equals: 'Equal to', - not_equals: 'Not Equal to', - between: 'Between', - current_user: 'Current user', - }, - condition: { - all: 'all', - oneOf: 'or', - }, - searchPanel: { - addCondition: 'Add Conditions', - reset: 'reset', - filter: 'filter', - selectTip: 'Please select the query field', - }, -}; diff --git a/frontend/src/components/business/ms-filter-panel/locale/zh-CN.ts b/frontend/src/components/business/ms-filter-panel/locale/zh-CN.ts deleted file mode 100644 index 3679efa013..0000000000 --- a/frontend/src/components/business/ms-filter-panel/locale/zh-CN.ts +++ /dev/null @@ -1,29 +0,0 @@ -export default { - // 操作符号 - operators: { - is_empty: '空', - is_not_empty: '非空', - like: '包含', - not_like: '不包含', - in: '属于', - not_in: '不属于', - gt: '大于', - ge: '大于等于', - lt: '小于', - le: '小于等于', - equals: '等于', - not_equals: '不等于', - between: '之间', - current_user: '是当前用户', - }, - condition: { - all: '所有', - oneOf: '任一', - }, - searchPanel: { - addCondition: '添加条件', - reset: '重置', - filter: '筛选', - selectTip: '请选择查询字段', - }, -}; diff --git a/frontend/src/components/business/ms-filter-panel/operator.ts b/frontend/src/components/business/ms-filter-panel/operator.ts deleted file mode 100644 index 63e91a5452..0000000000 --- a/frontend/src/components/business/ms-filter-panel/operator.ts +++ /dev/null @@ -1,49 +0,0 @@ -// 运算符号 -export const OPERATORS = { - LIKE: { - label: 'operators.like', - value: 'like', - }, - NOT_LIKE: { - label: 'operators.not_like', - value: 'not like', - }, - IN: { - label: 'operators.in', - value: 'in', - }, - NOT_IN: { - label: 'operators.not_in', - value: 'not in', - }, - GT: { - label: 'operators.gt', - value: 'gt', - }, - GE: { - label: 'operators.ge', - value: 'ge', - }, - LT: { - label: 'operators.lt', - value: 'lt', - }, - LE: { - label: 'operators.le', - value: 'le', - }, - EQ: { - label: 'operators.equals', - value: 'eq', - }, - BETWEEN: { - label: 'operators.between', - value: 'between', - }, - CURRENT_USER: { - label: 'operators.current_user', - value: 'current user', - }, -}; - -export default {}; diff --git a/frontend/src/components/business/ms-filter-panel/query-form-item.vue b/frontend/src/components/business/ms-filter-panel/query-form-item.vue deleted file mode 100644 index a9a6ff2acd..0000000000 --- a/frontend/src/components/business/ms-filter-panel/query-form-item.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - - {{ groupOptions.label }} - - - - - - - {{ t(operator.label) }} - - - - - - - - - - {{ - opt.label - }} - - - - - {{ - groupOptions.label - }} - - - - - - - - - - - - - - - diff --git a/frontend/src/components/business/ms-filter-panel/searchForm.vue b/frontend/src/components/business/ms-filter-panel/searchForm.vue deleted file mode 100644 index 9c3dff41f5..0000000000 --- a/frontend/src/components/business/ms-filter-panel/searchForm.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - {{ t('caseManagement.featureCase.setFilterCondition') }} - - {{ t('caseManagement.featureCase.followingCondition') }} - - {{ - version.name - }} - - {{ t('caseManagement.featureCase.condition') }} - - - - - - - - - - - - - - - - - {{ t('searchPanel.addCondition') }} - - - {{ t('searchPanel.reset') }} - {{ t('searchPanel.filter') }} - - - - - - - - diff --git a/frontend/src/components/business/ms-filter-panel/time-select.vue b/frontend/src/components/business/ms-filter-panel/time-select.vue deleted file mode 100644 index c2fa0cd025..0000000000 --- a/frontend/src/components/business/ms-filter-panel/time-select.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - diff --git a/frontend/src/components/business/ms-filter-panel/type.ts b/frontend/src/components/business/ms-filter-panel/type.ts deleted file mode 100644 index 41e32aff45..0000000000 --- a/frontend/src/components/business/ms-filter-panel/type.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { FieldRule, SelectOptionData } from '@arco-design/web-vue'; - -export interface ConditionOptions { - id: string; - name: string; - value: string; -} - -// 选项组下拉options -export interface Option { - value: string; - label: string; -} - -export interface QueryField { - label: string; - type: 'a-select' | 'a-input' | 'a-input-number' | 'time-select' | 'a-tree-select'; - value: string; - field: string; - rules?: FieldRule[]; - props?: { - [key: string]: string | number | boolean; - }; - options?: SelectOptionData[]; -} - -export interface QueryTemplate { - searchKey: QueryField; - operatorCondition: QueryField; - queryContent: QueryField; -} - -export interface OptionsType { - label: string; - value: string; -} -export interface OperatorValue { - value: string; // 如果未设置value初始值,则value初始值为options[0] - options: OptionsType[]; // 运算符选项 -} - -export interface SearchKeyType { - key: string; // 对应字段key - type: string; // Vue控件名称 - label: string; // 显示名称 - rules?: FieldRule[]; - request?: any; - props?: { - [key: string]: string | number | boolean; - }; - operator: OperatorValue; -} diff --git a/frontend/src/components/pure/ms-form-create/form-create.vue b/frontend/src/components/pure/ms-form-create/form-create.vue deleted file mode 100644 index aab6e5210b..0000000000 --- a/frontend/src/components/pure/ms-form-create/form-create.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - diff --git a/frontend/src/components/pure/ms-form-create/formCreate.vue b/frontend/src/components/pure/ms-form-create/formCreate.vue index c3820e14b0..3dd3944d5c 100644 --- a/frontend/src/components/pure/ms-form-create/formCreate.vue +++ b/frontend/src/components/pure/ms-form-create/formCreate.vue @@ -3,6 +3,9 @@