|
|
|
@ -26,17 +26,31 @@ import { saveRepDataProblemApi } from '@/api/reporting/RepDataProblem/RepDataPro
|
|
|
|
|
import {useRoute} from "vue-router"
|
|
|
|
|
import RepSetRuleWrite from '@/views/dataset/RepSetRule/components/Write.vue'
|
|
|
|
|
import { RULE_TYPE_LIST } from '@/views/IndexProcess/constants'
|
|
|
|
|
import { getIndexType } from '@/api/dataset/RepIndexSet'
|
|
|
|
|
import { transfDictList } from '@/utils';
|
|
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
const pageQuery = ref(route || null);
|
|
|
|
|
const indexsetCode = pageQuery.value?.query?.indexsetCode;
|
|
|
|
|
|
|
|
|
|
let indexType_param_LIST = ref([]);
|
|
|
|
|
let indexCalType_param_LIST = ref([]);
|
|
|
|
|
let indexDataType_param_LIST = ref([]);
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
|
|
const ids = ref<string[]>([])
|
|
|
|
|
const ruleConfigRef = ref<ComponentRef<typeof RuleConfig>>()
|
|
|
|
|
|
|
|
|
|
//获取字典项
|
|
|
|
|
const getDictInfoList = async ()=>{
|
|
|
|
|
const indexType = await getIndexType({ paramName: 'indexType_param', systemCode: 'ordb' });
|
|
|
|
|
indexType_param_LIST.value = transfDictList(indexType.body.result);
|
|
|
|
|
const indexCalType = await getIndexType({ paramName: 'indexCalType_param', systemCode: 'ordb' });
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
getDictInfoList();
|
|
|
|
|
|
|
|
|
|
const { tableRegister, tableState, tableMethods } = useTable({
|
|
|
|
|
fetchDataApi: async () => {
|
|
|
|
@ -82,16 +96,31 @@ const tableColumns = reactive<TableColumn[]>([
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'indexType',
|
|
|
|
|
label: '指标类型'
|
|
|
|
|
label: '指标类型',
|
|
|
|
|
slots:{
|
|
|
|
|
default:(data)=>{
|
|
|
|
|
return <span>{data.row.indexType?indexType_param_LIST.value[data.row.indexType - 1]?.label:''}</span>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'indexcalType',
|
|
|
|
|
label: '指标计算类型'
|
|
|
|
|
label: '指标计算类型',
|
|
|
|
|
slots:{
|
|
|
|
|
default:(data)=>{
|
|
|
|
|
return <span>{data.row.indexcalType?indexCalType_param_LIST.value[data.row.indexcalType - 1]?.label:''}</span>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'indexdataType',
|
|
|
|
|
label: '指标数据类型'
|
|
|
|
|
label: '指标数据类型',
|
|
|
|
|
slots:{
|
|
|
|
|
default:(data)=>{
|
|
|
|
|
return <span>{data.row.indexdataType?indexDataType_param_LIST.value[data.row.indexdataType - 1]?.label:''}</span>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'beginDate',
|
|
|
|
|