|
@ -14,7 +14,8 @@ const questionTypeList = await getDictionaryByTypeName(DictEnum.QUESTION_TYPE); |
|
|
export const getEditFormSchema: ( |
|
|
export const getEditFormSchema: ( |
|
|
row?: Partial<TableListItem>, |
|
|
row?: Partial<TableListItem>, |
|
|
isDetail?: boolean, |
|
|
isDetail?: boolean, |
|
|
) => FormSchema[] = (record = {}, isDetail = false) => { |
|
|
|
|
|
|
|
|
isClient?: boolean, |
|
|
|
|
|
) => FormSchema[] = (record = {}, isDetail = false, isClient = false) => { |
|
|
console.log('questionTypeList: ', questionTypeList); |
|
|
console.log('questionTypeList: ', questionTypeList); |
|
|
|
|
|
|
|
|
return [ |
|
|
return [ |
|
@ -194,6 +195,7 @@ export const getEditFormSchema: ( |
|
|
colProps: { |
|
|
colProps: { |
|
|
span: 6, |
|
|
span: 6, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'zentaoNos', |
|
|
field: 'zentaoNos', |
|
@ -202,6 +204,7 @@ export const getEditFormSchema: ( |
|
|
colProps: { |
|
|
colProps: { |
|
|
span: 6, |
|
|
span: 6, |
|
|
}, |
|
|
}, |
|
|
|
|
|
vIf: () => !isClient, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
@ -216,6 +219,7 @@ export const getEditFormSchema: ( |
|
|
options: stateTypeList, |
|
|
options: stateTypeList, |
|
|
disabled: true, |
|
|
disabled: true, |
|
|
}, |
|
|
}, |
|
|
|
|
|
vIf: () => !isClient, |
|
|
rules: [{ required: true, type: 'number' }], |
|
|
rules: [{ required: true, type: 'number' }], |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|