|
|
|
@ -11,15 +11,20 @@ export const columns: BasicColumn[] = [ |
|
|
|
|
dataIndex: 'typeName' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '描述', |
|
|
|
|
title: '年度', |
|
|
|
|
align:"center", |
|
|
|
|
dataIndex: 'mark' |
|
|
|
|
dataIndex: 'annualId_dictText' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '状态', |
|
|
|
|
align:"center", |
|
|
|
|
dataIndex: 'status_dictText' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '描述', |
|
|
|
|
align:"center", |
|
|
|
|
dataIndex: 'mark' |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
//查询数据 |
|
|
|
|
export const searchFormSchema: FormSchema[] = [ |
|
|
|
@ -29,15 +34,6 @@ export const searchFormSchema: FormSchema[] = [ |
|
|
|
|
component: 'Input', |
|
|
|
|
//colProps: {span: 6}, |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// label: "状态", |
|
|
|
|
// field: 'status', |
|
|
|
|
// component: 'JSelectMultiple', |
|
|
|
|
// componentProps:{ |
|
|
|
|
// dictCode:"projectType_status" |
|
|
|
|
// }, |
|
|
|
|
// //colProps: {span: 6}, |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
label: '状态', |
|
|
|
|
field: 'status', |
|
|
|
@ -55,20 +51,47 @@ export const formSchema: FormSchema[] = [ |
|
|
|
|
label: '类型名称', |
|
|
|
|
field: 'typeName', |
|
|
|
|
component: 'Input', |
|
|
|
|
dynamicRules: ({model,schema}) => { |
|
|
|
|
return [ |
|
|
|
|
{ required: true, message: '请输入类型名称!'}, |
|
|
|
|
]; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '状态', |
|
|
|
|
field: 'status_dictText', |
|
|
|
|
component: 'JDictSelectTag', |
|
|
|
|
// defaultValue: '请选择', |
|
|
|
|
componentProps: { |
|
|
|
|
dictCode: 'projectType_status', |
|
|
|
|
}, |
|
|
|
|
dynamicRules: ({model,schema}) => { |
|
|
|
|
return [ |
|
|
|
|
{ required: true, message: '请选择项目状态!'}, |
|
|
|
|
]; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '年度', |
|
|
|
|
field: 'annualId', |
|
|
|
|
component: 'JDictSelectTag', |
|
|
|
|
componentProps: { |
|
|
|
|
dictCode: 'annual,annual_name,id', |
|
|
|
|
}, |
|
|
|
|
ifShow: ({ values }) => { |
|
|
|
|
return values.status_dictText == 1; |
|
|
|
|
}, |
|
|
|
|
dynamicRules: ({model,schema}) => { |
|
|
|
|
return [ |
|
|
|
|
{ required: true, message: '请选择年度!'}, |
|
|
|
|
]; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '描述', |
|
|
|
|
field: 'mark', |
|
|
|
|
component: 'Input', |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// label: '状态', |
|
|
|
|
// field: 'status', |
|
|
|
|
// component: 'JDictSelectTag', |
|
|
|
|
// componentProps:{ |
|
|
|
|
// dictCode:"projectType_status" |
|
|
|
|
// }, |
|
|
|
|
// }, |
|
|
|
|
// TODO 主键隐藏字段,目前写死为ID |
|
|
|
|
{ |
|
|
|
|
label: '', |
|
|
|
|