|
|
|
@ -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'"
|
|
|
|
|