修改指标管理界面的tab页

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

@ -1856,30 +1856,30 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
sort:5, sort:5,
} }
}, },
{ // {
path: 'codeRepItem', // path: 'codeRepItem',
component: () => import('@/views/dataset/CodeRepItem/CodeRepItem.vue'), // component: () => import('@/views/dataset/CodeRepItem/CodeRepItem.vue'),
name: 'codeRepItem', // name: 'codeRepItem',
menuId: 'codeRepItem', // menuId: 'codeRepItem',
meta: { // meta: {
title: '指标定义', // title: '指标定义',
alwaysShow: true, // alwaysShow: true,
type:"ybt", // type:"ybt",
sort:6, // sort:6,
} // }
}, // },
{ // {
path: 'codeRepTarget', // path: 'codeRepTarget',
component: () => import('@/views/dataset/CodeRepTarget/CodeRepTarget.vue'), // component: () => import('@/views/dataset/CodeRepTarget/CodeRepTarget.vue'),
name: 'codeRepTarget', // name: 'codeRepTarget',
menuId: 'codeRepTarget', // menuId: 'codeRepTarget',
meta: { // meta: {
title: '指标属性', // title: '指标属性',
alwaysShow: true, // alwaysShow: true,
type:"ybt", // type:"ybt",
sort:7, // sort:7,
} // }
}, // },
{ {
path: 'repStoreMapping', path: 'repStoreMapping',
component: () => import('@/views/dataset/RepStoreMapping/RepStoreMapping.vue'), 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 { Search } from '@/components/Search'
import { FormSchema } from '@/components/Form' import { FormSchema } from '@/components/Form'
import { ContentWrap } from '@/components/ContentWrap' 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 RuleConfig from './components/Ruleconfig.vue'
import Write from './components/Write.vue' import Write from './components/Write.vue'
import { Dialog } from '@/components/Dialog' import { Dialog } from '@/components/Dialog'
@ -353,71 +356,16 @@ const handleClick=(tab: any, event: Event | undefined)=> {
</script> </script>
<template> <template>
<ElTabs v-model="activeName" type="" @tab-click="handleClick"> <ContentWrap>
<ElTabPane label="指标定义" name="indexDefination"> <ElTabs v-model="activeName" type="" @tab-click="handleClick">
<ContentWrap> <ElTabPane label="指标定义" name="indexDefination">
<Search :schema="indexDefineSearchSchema" @reset="indexDefineSetSearchParams" @search="indexDefineSetSearchParams" /> <CodeRepItem />
<Table </ElTabPane>
:columns="indexDefineTableColumns" <ElTabPane label="指标属性" name="indexProperties">
v-model:pageSize="pageSize" <CodeRepTarget />
v-model:currentPage="currentPage" </ElTabPane>
default-expand-all </ElTabs>
node-key="pId" </ContentWrap>
: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>
<Dialog v-model="dialogVisible" :title="dialogTitle"> <Dialog v-model="dialogVisible" :title="dialogTitle">
<Write <Write
v-if="actionType !== 'ruleconfig'" v-if="actionType !== 'ruleconfig'"

Loading…
Cancel
Save