修改部分指标加工界面

main
于阔 9 months ago
commit 6df06f8f83

@ -65,3 +65,18 @@ export const getIndexType = ({ paramName, systemCode }): Promise<IResponse> => {
});
};
/** 查询指标集类型树形结构 */
export const getIndexSetTreeApi = async () => {
const res = await request.post({
url: '/RepIndexSet/spi/dataset/RepIndexSet/IndexSetTree',
});
if (res?.body?.menutree?.length > 0) {
const data = res.body.menutree
return data.sort((a:AppCustomRouteRecordRaw, b:AppCustomRouteRecordRaw) => {
return a?.props?.sort && b?.props?.sort ? a.props.sort - b.props.sort : 0
});
}
return [];
};

@ -1328,7 +1328,7 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
name: 'RepDataSource',
menuId: 'param/RepDataSource',
meta: {
title: '数据源管理',
title: '数据源',
sort:5
}
},
@ -1788,6 +1788,16 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
title: '报表模板管理'
}
},
{
path: 'repVariableManagement',
component: () => import('@/views/reporting/RepVariableManagement/RepVariableManagement.vue'),
name: 'repVariableManagement',
menuId: 'reporting/repVariableManagement',
meta: {
title: '报告变量管理'
}
},
{
path: 'RepDataProblem',
component: () => import('@/views/reporting/RepDataProblem/RepDataProblem.vue'),
@ -1844,18 +1854,6 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
sort:4,
}
},
{
path: 'repVariableManagement',
component: () => import('@/views/reporting/RepVariableManagement/RepVariableManagement.vue'),
name: 'repVariableManagement',
menuId: 'repVariableManagement',
meta: {
title: '报告变量管理',
alwaysShow: true,
type:"ybt",
sort:5,
}
},
// {
// path: 'codeRepItem',
// component: () => import('@/views/dataset/CodeRepItem/CodeRepItem.vue'),

@ -95,25 +95,6 @@ const tableColumns = reactive<TableColumn[]>([
default: (data: any) => {
return (
<>
<ElLink type="primary" underline={false} onClick={() => action(data.row, 'edit')}>
{t('tableDemo.edit')}
</ElLink>
<ElPopconfirm
title={t('common.delTableMsg')}
width={200}
v-slots={{
reference: () => {
return (
<>
<ElLink type="primary" underline={false}>
{t('tableDemo.del')}
</ElLink>
</>
)
}
}}
onConfirm={() => delData(data.row)}
></ElPopconfirm>
<ElLink type="primary" underline={false} onClick={() => lookRule(data.row)}>
{'查询'}
</ElLink>

@ -68,22 +68,14 @@ const tableColumns = reactive<TableColumn[]>([
field: 'modelName',
label: '模型名称'
},
{
field: 'description',
label: '描述'
},
{
field: 'organCode',
label: '用户所属机构'
},
{
field: 'createUser',
label: '登录用户'
},
{
field: 'createDate',
label: '创建日期'
},
{
field: 'description',
label: '描述'
},
{
field: 'action',
label: t('tableDemo.action'),

@ -7,7 +7,8 @@ import {
delRepIndexSetApi,
queryRepIndexSetApi,
importExcelApiUrl,
exportExcelApi
exportExcelApi,
getIndexSetTreeApi
} from '@/api/dataset/RepIndexSet'
import { TableData } from '@/api/dataset/RepIndexSet/types'
@ -185,7 +186,7 @@ const searchSchema = reactive<FormSchema[]>([
},
component: 'TreeSelect',
optionApi: async () => {
const res = await getIndexCategoryTreeApi();
const res = await getIndexSetTreeApi();
IndexTypeParamsList.value = res;
indexType_param_LIST.value = res;
res.forEach(item=>{

@ -37,7 +37,7 @@ const detailSchema = ref<DescriptionsSchema[]>([
label: '存储规则id'
},
{
field: 'scheme',
field: 'schema',
label: '数据库用户'
},
{

@ -89,7 +89,7 @@ const formSchema = reactive<FormSchema[]>([
},
},
{
field: 'scheme',
field: 'schema',
label: '数据库用户',
component: 'Input',
componentProps: {

Loading…
Cancel
Save