指标数据项单位,数据精度参数下拉回显

main
zhangxiaodi1 9 months ago
parent 764b52d86f
commit cab9d66c43

@ -35,6 +35,8 @@ const indexsetCode = pageQuery.value?.query?.indexsetCode;
let indexType_param_LIST = ref([]);
let indexCalType_param_LIST = ref([]);
let indexDataType_param_LIST = ref([]);
let indexDataPrecision_param_LIST = ref([]);
let indexDataUnit_param_LIST = ref([]);
const { t } = useI18n()
@ -49,6 +51,10 @@ const getDictInfoList = async ()=>{
indexCalType_param_LIST.value = transfDictList(indexCalType.body.result);
const indexDataType = await getIndexType({ paramName: 'indexDataType_param', systemCode: 'ordb' });
indexDataType_param_LIST.value = transfDictList(indexDataType.body.result);
const indexDataPrecision = await getIndexType({ paramName: 'indexDataPrecision_param', systemCode: 'ordb' });
indexDataPrecision_param_LIST.value = transfDictList(indexDataPrecision.body.result);
const indexDataUnit = await getIndexType({ paramName: 'indexDataUnit_param', systemCode: 'ordb' });
indexDataUnit_param_LIST.value = transfDictList(indexDataUnit.body.result);
}
getDictInfoList();

@ -184,18 +184,22 @@ const formSchema = reactive<FormSchema[]>([
{
field: 'indexdataPrecision',
label: '指标数据精度',
component: 'Input',
componentProps: {
optionApi: async () => {
const indexDataPrecision = await getIndexType({ paramName: 'indexDataPrecision_param', systemCode: 'ordb' });
return transfDictList(indexDataPrecision.body.result);
},
value: '1',
component: 'Select'
},
{
field: 'indexdataUnit',
label: '指标数据项单位',
component: 'Input',
componentProps: {
optionApi: async () => {
const indexDataUnit = await getIndexType({ paramName: 'indexDataUnit_param', systemCode: 'ordb' });
return transfDictList(indexDataUnit.body.result);
},
value: '1',
component: 'Select'
}
])

Loading…
Cancel
Save