|
|
|
@ -1,12 +1,8 @@
|
|
|
|
|
<script setup lang="tsx">
|
|
|
|
|
import { reactive, ref, unref } from 'vue'
|
|
|
|
|
import {
|
|
|
|
|
getRepDataProblemListApi,
|
|
|
|
|
saveRepDataProblemApi,
|
|
|
|
|
delRepDataProblemListApi,
|
|
|
|
|
delRepDataProblemApi,
|
|
|
|
|
queryRepDataProblemApi,
|
|
|
|
|
} from '@/api/reporting/RepDataProblem/RepDataProblem'
|
|
|
|
|
getRepIndexSetListApi
|
|
|
|
|
} from '@/api/dataset/RepIndexSet'
|
|
|
|
|
import { TableData } from '@/api/reporting/RepDataProblem/RepDataProblem/types'
|
|
|
|
|
import { useTable } from '@/hooks/web/useTable'
|
|
|
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
|
|
@ -22,6 +18,22 @@ import Detail from './components/Detail.vue'
|
|
|
|
|
import { useValidator } from '@/hooks/web/useValidator'
|
|
|
|
|
import { getLoginOrganCodeByUserInfo } from '@/utils/auth'
|
|
|
|
|
import { getOrganTree } from '@/api/common'
|
|
|
|
|
import { getIndexType } from '@/api/dataset/RepIndexSet';
|
|
|
|
|
import { transfDictList } from '@/utils';
|
|
|
|
|
|
|
|
|
|
import {useRoute} from "vue-router"
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
const pageQuery = ref(route || null);
|
|
|
|
|
const dicid = pageQuery.value?.query?.dicid;
|
|
|
|
|
|
|
|
|
|
let frequency_param_LIST = ref([]);
|
|
|
|
|
|
|
|
|
|
//获取字典项
|
|
|
|
|
const getDictInfoList = async ()=>{
|
|
|
|
|
const res = await getIndexType({ paramName: 'frequency_param', systemCode: 'ordb' });
|
|
|
|
|
frequency_param_LIST.value = transfDictList(res.body.result);
|
|
|
|
|
}
|
|
|
|
|
getDictInfoList();
|
|
|
|
|
|
|
|
|
|
defineOptions({
|
|
|
|
|
name: 'IndexSearchServiceMs',
|
|
|
|
@ -36,7 +48,7 @@ const ids = ref<string[]>([])
|
|
|
|
|
const { tableRegister, tableState, tableMethods } = useTable({
|
|
|
|
|
fetchDataApi: async () => {
|
|
|
|
|
const { currentPage, pageSize } = tableState
|
|
|
|
|
const res = await getRepDataProblemListApi({
|
|
|
|
|
const res = await getRepIndexSetListApi({
|
|
|
|
|
pageIndex: unref(currentPage),
|
|
|
|
|
pageSize: unref(pageSize),
|
|
|
|
|
...unref(searchParams)
|
|
|
|
@ -62,8 +74,33 @@ const tableColumns = reactive<TableColumn[]>([
|
|
|
|
|
fixed: true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'dataDate',
|
|
|
|
|
label: '指标代码',
|
|
|
|
|
field: 'indexsetCode',
|
|
|
|
|
label: '指标集编码'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'indexsetName',
|
|
|
|
|
label: '指标集名称'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'beginDate',
|
|
|
|
|
label: '开始日期'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'endDate',
|
|
|
|
|
label: '结束日期'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'organCode',
|
|
|
|
|
label: '机构编码'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'frequency',
|
|
|
|
|
label: '频度',
|
|
|
|
|
slots:{
|
|
|
|
|
default:(data)=>{
|
|
|
|
|
return <span>{data.row.frequency?frequency_param_LIST.value[data.row.frequency]?.label:''}</span>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'createTime',
|
|
|
|
@ -188,7 +225,7 @@ const setSearchParams = (data: any) => {
|
|
|
|
|
searchParams.value = data
|
|
|
|
|
getList()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setSearchParams({indexsetType:dicid});
|
|
|
|
|
const dialogVisible = ref(false)
|
|
|
|
|
const dialogTitle = ref('')
|
|
|
|
|
|
|
|
|
|