修改指标管理界面的tab页

main
于阔 9 months ago
parent 04741e7f8c
commit 35ed7fd79d

@ -1856,30 +1856,30 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
sort:5,
}
},
{
path: 'codeRepItem',
component: () => import('@/views/dataset/CodeRepItem/CodeRepItem.vue'),
name: 'codeRepItem',
menuId: 'codeRepItem',
meta: {
title: '指标定义',
alwaysShow: true,
type:"ybt",
sort:6,
}
},
{
path: 'codeRepTarget',
component: () => import('@/views/dataset/CodeRepTarget/CodeRepTarget.vue'),
name: 'codeRepTarget',
menuId: 'codeRepTarget',
meta: {
title: '指标属性',
alwaysShow: true,
type:"ybt",
sort:7,
}
},
// {
// path: 'codeRepItem',
// component: () => import('@/views/dataset/CodeRepItem/CodeRepItem.vue'),
// name: 'codeRepItem',
// menuId: 'codeRepItem',
// meta: {
// title: '指标定义',
// alwaysShow: true,
// type:"ybt",
// sort:6,
// }
// },
// {
// path: 'codeRepTarget',
// component: () => import('@/views/dataset/CodeRepTarget/CodeRepTarget.vue'),
// name: 'codeRepTarget',
// menuId: 'codeRepTarget',
// meta: {
// title: '指标属性',
// alwaysShow: true,
// type:"ybt",
// sort:7,
// }
// },
{
path: 'repStoreMapping',
component: () => import('@/views/dataset/RepStoreMapping/RepStoreMapping.vue'),

@ -15,6 +15,9 @@ import { ElButton, ElLink, ElLoading, ElPopconfirm, ElMessage } from 'element-pl
import { Search } from '@/components/Search'
import { FormSchema } from '@/components/Form'
import { ContentWrap } from '@/components/ContentWrap'
import CodeRepItem from '@/views/dataset/CodeRepItem/CodeRepItem.vue';//
import CodeRepTarget from '@/views/dataset/CodeRepTarget/CodeRepTarget.vue';//
import RuleConfig from './components/Ruleconfig.vue'
import Write from './components/Write.vue'
import { Dialog } from '@/components/Dialog'
@ -353,71 +356,16 @@ const handleClick=(tab: any, event: Event | undefined)=> {
</script>
<template>
<ElTabs v-model="activeName" type="" @tab-click="handleClick">
<ElTabPane label="指标定义" name="indexDefination">
<ContentWrap>
<Search :schema="indexDefineSearchSchema" @reset="indexDefineSetSearchParams" @search="indexDefineSetSearchParams" />
<Table
:columns="indexDefineTableColumns"
v-model:pageSize="pageSize"
v-model:currentPage="currentPage"
default-expand-all
node-key="pId"
:data="dataList"
:loading="loading"
:pagination="{
total
}"
@selection-change="onSelectionChange"
@register="tableRegister"
@refresh="refresh"
>
<template #buttons>
<ElButton type="primary" @click="AddAction">{{ t('tableDemo.add') }}</ElButton>
<ElButton :loading="delLoading" type="primary" :disabled="disabled" @click="delDataBatch()">
{{ t('tableDemo.del') }}
</ElButton>
<ElButton type="primary" :disabled="disabled" @click="AddAction">{{ 'EXCEL' }}</ElButton>
<ElButton :loading="delLoading" type="primary" @click="delDataBatch()">
{{ '导入excel' }}
</ElButton>
</template>
</Table>
</ContentWrap>
</ElTabPane>
<ElTabPane label="指标属性" name="indexProperties">
<ContentWrap>
<Search :schema="indexPropertiesSearchSchema" @reset="indexPropertieSetSearchParams" @search="indexPropertieSetSearchParams" />
<Table
:columns="indexPropertiesTableColumns"
v-model:pageSize="pageSize"
v-model:currentPage="currentPage"
default-expand-all
node-key="pId"
:data="dataList"
:loading="loading"
:pagination="{
total
}"
@selection-change="onSelectionChange"
@register="tableRegister"
@refresh="refresh"
>
<template #buttons>
<ElButton type="primary" @click="AddAction">{{ t('tableDemo.add') }}</ElButton>
<ElButton :loading="delLoading" type="primary" :disabled="disabled" @click="delDataBatch()">
{{ t('tableDemo.del') }}
</ElButton>
<ElButton type="primary" :disabled="disabled" @click="AddAction">{{ 'EXCEL' }}</ElButton>
<ElButton :loading="delLoading" type="primary" @click="delDataBatch()">
{{ '导入excel' }}
</ElButton>
</template>
</Table>
</ContentWrap>
</ElTabPane>
</ElTabs>
<ContentWrap>
<ElTabs v-model="activeName" type="" @tab-click="handleClick">
<ElTabPane label="指标定义" name="indexDefination">
<CodeRepItem />
</ElTabPane>
<ElTabPane label="指标属性" name="indexProperties">
<CodeRepTarget />
</ElTabPane>
</ElTabs>
</ContentWrap>
<Dialog v-model="dialogVisible" :title="dialogTitle">
<Write
v-if="actionType !== 'ruleconfig'"

Loading…
Cancel
Save