|
|
|
@ -3,8 +3,9 @@ import { Form, FormSchema } from '@/components/Form'
|
|
|
|
|
import { useForm } from '@/hooks/web/useForm'
|
|
|
|
|
import { PropType, reactive, watch } from 'vue'
|
|
|
|
|
import { useValidator } from '@/hooks/web/useValidator'
|
|
|
|
|
import { getIndexType } from '@/api/dataset/RepIndexSet';
|
|
|
|
|
import { getIndexSetTreeApi, getIndexType } from '@/api/dataset/RepIndexSet';
|
|
|
|
|
import { transfDictList } from '@/utils';
|
|
|
|
|
import { getIndexCategoryTreeApi } from '@/api/dataset/IndexCategory';
|
|
|
|
|
|
|
|
|
|
const { required } = useValidator()
|
|
|
|
|
|
|
|
|
@ -82,15 +83,18 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'frequency',
|
|
|
|
|
label: '频度',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
optionApi: async () => {
|
|
|
|
|
const res = await getIndexType({ paramName: 'frequency_param', systemCode: 'ordb' });
|
|
|
|
|
return transfDictList(res.body.result);
|
|
|
|
|
},
|
|
|
|
|
value: '1',
|
|
|
|
|
component: 'Select'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'isOrgCollect',
|
|
|
|
|
label: '是否机构汇总',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
hidden:true,
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -114,39 +118,92 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'itemType1',
|
|
|
|
|
label: '业务类型1',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
nodeKey: 'id',
|
|
|
|
|
props: { children: 'childs', label: 'nodeName' },
|
|
|
|
|
filterable: true,
|
|
|
|
|
collapseTags: true,
|
|
|
|
|
showCheckbox: true,
|
|
|
|
|
style: { minWidth: '200px' },
|
|
|
|
|
checkOnClickNode: true
|
|
|
|
|
},
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
|
optionApi: async () => {
|
|
|
|
|
const res = await getIndexCategoryTreeApi();
|
|
|
|
|
const res0=res.filter(item=>item.props.dicvalue=='Class0100');
|
|
|
|
|
return res0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'itemType2',
|
|
|
|
|
label: '业务类型2',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
nodeKey: 'id',
|
|
|
|
|
props: { children: 'childs', label: 'nodeName' },
|
|
|
|
|
filterable: true,
|
|
|
|
|
collapseTags: true,
|
|
|
|
|
showCheckbox: true,
|
|
|
|
|
style: { minWidth: '200px' },
|
|
|
|
|
checkOnClickNode: true
|
|
|
|
|
},
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
|
optionApi: async () => {
|
|
|
|
|
const res = await getIndexCategoryTreeApi();
|
|
|
|
|
const res0=res.filter(item=>item.props.dicvalue=='Class0200');
|
|
|
|
|
return res0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'itemType3',
|
|
|
|
|
label: '业务类型3',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
nodeKey: 'id',
|
|
|
|
|
props: { children: 'childs', label: 'nodeName' },
|
|
|
|
|
filterable: true,
|
|
|
|
|
collapseTags: true,
|
|
|
|
|
showCheckbox: true,
|
|
|
|
|
style: { minWidth: '200px' },
|
|
|
|
|
checkOnClickNode: true
|
|
|
|
|
},
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
|
optionApi: async () => {
|
|
|
|
|
const res = await getIndexCategoryTreeApi();
|
|
|
|
|
const res0=res.filter(item=>item.props.dicvalue=='Class0300');
|
|
|
|
|
return res0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'itemType4',
|
|
|
|
|
label: '业务类型4',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
nodeKey: 'id',
|
|
|
|
|
props: { children: 'childs', label: 'nodeName' },
|
|
|
|
|
filterable: true,
|
|
|
|
|
collapseTags: true,
|
|
|
|
|
showCheckbox: true,
|
|
|
|
|
style: { minWidth: '200px' },
|
|
|
|
|
checkOnClickNode: true
|
|
|
|
|
},
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
|
optionApi: async () => {
|
|
|
|
|
const res = await getIndexCategoryTreeApi();
|
|
|
|
|
const res0=res.filter(item=>item.props.dicvalue=='Class0400');
|
|
|
|
|
return res0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'itemType5',
|
|
|
|
|
label: '业务类型5',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -154,6 +211,7 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'indexType',
|
|
|
|
|
label: '指标类型',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
optionApi: async () => {
|
|
|
|
|
const indexType = await getIndexType({ paramName: 'indexType_param', systemCode: 'ordb' });
|
|
|
|
|
return transfDictList(indexType.body.result);
|
|
|
|
@ -174,6 +232,7 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'indexdataType',
|
|
|
|
|
label: '指标数据类型',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
optionApi: async () => {
|
|
|
|
|
const indexDataType = await getIndexType({ paramName: 'indexDataType_param', systemCode: 'ordb' });
|
|
|
|
|
return transfDictList(indexDataType.body.result);
|
|
|
|
|