|
|
@ -9,6 +9,7 @@ import { DictEnum } from '@/enums/dictEnum'; |
|
|
import { getDictionaryByTypeName } from '@/utils/dict'; |
|
|
import { getDictionaryByTypeName } from '@/utils/dict'; |
|
|
import { fetchProdList, fetchVersionPageList } from '@/api/prodVersion'; |
|
|
import { fetchProdList, fetchVersionPageList } from '@/api/prodVersion'; |
|
|
const questionTypeList = await getDictionaryByTypeName(DictEnum.QUESTION_TYPE); |
|
|
const questionTypeList = await getDictionaryByTypeName(DictEnum.QUESTION_TYPE); |
|
|
|
|
|
const solutionTypeList = await getDictionaryByTypeName(DictEnum.SOLUTION_TYPE); |
|
|
// 编辑页字段
|
|
|
// 编辑页字段
|
|
|
export const getEditFormSchema: ( |
|
|
export const getEditFormSchema: ( |
|
|
row?: Partial<TableListItem>, |
|
|
row?: Partial<TableListItem>, |
|
|
@ -43,6 +44,19 @@ export const getEditFormSchema: ( |
|
|
vIf: () => !isClient && isDetail, |
|
|
vIf: () => !isClient && isDetail, |
|
|
rules: [{ required: true, type: 'string' }], |
|
|
rules: [{ required: true, type: 'string' }], |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '解决方式', |
|
|
|
|
|
field: 'solutionType', |
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
options: solutionTypeList, |
|
|
|
|
|
}, |
|
|
|
|
|
colProps: { |
|
|
|
|
|
span: 8, |
|
|
|
|
|
}, |
|
|
|
|
|
vIf: () => !isClient && isDetail, |
|
|
|
|
|
rules: [{ required: true, type: 'string' }], |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'tags', |
|
|
field: 'tags', |
|
|
component: 'Select', |
|
|
component: 'Select', |
|
|
@ -232,7 +246,6 @@ export const getEditFormSchema: ( |
|
|
span: 6, |
|
|
span: 6, |
|
|
}, |
|
|
}, |
|
|
vIf: () => !isClient && isDetail, |
|
|
vIf: () => !isClient && isDetail, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
@ -384,6 +397,19 @@ export const getFlowFormSchema: (row?: Partial<TableListItem>, state?: any) => F |
|
|
vIf: () => state === 5 || state === 6, |
|
|
vIf: () => state === 5 || state === 6, |
|
|
rules: [{ required: true, type: 'string' }], |
|
|
rules: [{ required: true, type: 'string' }], |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '解决方式', |
|
|
|
|
|
field: 'solutionType', |
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
options: solutionTypeList, |
|
|
|
|
|
}, |
|
|
|
|
|
colProps: { |
|
|
|
|
|
span: 24, |
|
|
|
|
|
}, |
|
|
|
|
|
vIf: () => state === 5 || state === 6, |
|
|
|
|
|
rules: [{ required: true, type: 'string' }], |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'remark', |
|
|
field: 'remark', |
|
|
component: 'InputTextArea', |
|
|
component: 'InputTextArea', |
|
|
|