前端新增指标查询接口

main
zhangxiaodi1 9 months ago
parent 952074a5b6
commit 4503b1b8a7

@ -6,6 +6,11 @@ export const getRepIndexSetListApi = (data: any) => {
return request.postJson({ url: '/RepIndexSet/spi/dataset/RepIndexSet/RepIndexSetQueryPage', data });
};
/** 获取指标查询数据 */
export const getRepIndexSearchListApi = (data: any) => {
return request.postJson({ url: '/RepIndexSet/spi/dataset/RepIndexSet/RepIndexSetSearchPage', data });
};
/** 批量删除 */
export const delRepIndexSetListApi = (list: string[] | number[]): Promise<IResponse> => {
const _list = list.map(v => {

@ -1,7 +1,7 @@
<script setup lang="tsx">
import { reactive, ref, unref } from 'vue'
import {
getRepIndexSetListApi
getRepIndexSearchListApi
} from '@/api/dataset/RepIndexSet'
import { TableData } from '@/api/reporting/RepDataProblem/RepDataProblem/types'
import { useTable } from '@/hooks/web/useTable'
@ -48,7 +48,7 @@ const ids = ref<string[]>([])
const { tableRegister, tableState, tableMethods } = useTable({
fetchDataApi: async () => {
const { currentPage, pageSize } = tableState
const res = await getRepIndexSetListApi({
const res = await getRepIndexSearchListApi({
pageIndex: unref(currentPage),
pageSize: unref(pageSize),
...unref(searchParams)

Loading…
Cancel
Save