修改指标分类管理跳转到指标查询界面

main
zhangxiaodi1 9 months ago
parent 5a2dceac55
commit 952074a5b6

@ -58,10 +58,6 @@ const { tableRegister, tableState, tableMethods } = useTable({
const { loading, dataList, total, currentPage, pageSize } = tableState
const { getList, refresh } = tableMethods
const lookRule = async (row: any) => {
router.push({name:"IndexSearchServiceMs"})
};
const tableColumns = reactive<TableColumn[]>([
{
field: 'selection',
@ -170,7 +166,15 @@ const action = async (row: any, type: string) => {
}
}
/** 指标查询 **/
const lookRule = (data)=>{
router.push({
name:'IndexSearchServiceMs',
query:{
dicid:data.dicid,
}
})
}
/** 单行删除 */
const delData = async (row: TableData) => {

@ -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('')

Loading…
Cancel
Save