Commit 5ba87f9f authored by 曹泽华's avatar 曹泽华

数据治理 物理模型-返回按钮

parent 8dcee740
<template> <template>
<PageWrapper dense contentFullHeight fixedHeight contentClass="flex"> <PageWrapper
title="建表记录"
dense
contentFullHeight
fixedHeight
contentClass="flex"
@back="handleGoBack"
>
<BasicTable @register="registerTable" :searchInfo="searchInfo"> <BasicTable @register="registerTable" :searchInfo="searchInfo">
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
...@@ -124,6 +131,11 @@ ...@@ -124,6 +131,11 @@
}); });
} }
const router = useRouter();
function handleGoBack() {
router.go(-1);
}
onMounted(() => { onMounted(() => {
tableData.value = TreeData; tableData.value = TreeData;
const path = route.path; const path = route.path;
......
<template> <template>
<PageWrapper title="资产关系图谱" contentBackground headerSticky> <PageWrapper title="资产关系图谱" contentBackground headerSticky @back="handleGoBack">
<template #extra> <template #extra>
<a-button type="primary">导出</a-button> <a-button type="primary">导出</a-button>
<a-button type="primary">刷新</a-button> <a-button type="primary">刷新</a-button>
<a-button type="primary">全屏</a-button> <a-button type="primary">全屏</a-button>
<a-button type="primary">退出</a-button> <a-button type="primary">退出</a-button>
</template> </template>
<img src="../../../../../assets/images/assetER.png" style="width: 100%" /> <img src="../../../../../assets/images/assetER.png" style="width: 100%" />
</PageWrapper> </PageWrapper>
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
import CrossModel from '@/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/crossModel.vue'; import CrossModel from '@/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/crossModel.vue';
import { useModal } from '@/components/Modal'; import { useModal } from '@/components/Modal';
import { ref } from 'vue'; import { ref } from 'vue';
import { useRouter } from 'vue-router';
// 模态框 // 模态框
const [crossModal, { openModal }] = useModal(); const [crossModal, { openModal }] = useModal();
...@@ -30,6 +31,11 @@ ...@@ -30,6 +31,11 @@
modelLevel.value = '0'; modelLevel.value = '0';
} }
} }
const router = useRouter();
function handleGoBack() {
router.go(-1);
}
function handleAdd() { function handleAdd() {
openModal(true); openModal(true);
} }
......
<template> <template>
<PageWrapper :title="modelName" contentBackground headerSticky> <PageWrapper :title="modelName" contentBackground headerSticky @back="handleGoBack">
<template #extra> <template #extra>
<a-button type="primary" v-if="!editFlag" @click="handleCreateTable">自动建表</a-button> <a-button type="primary" v-if="!editFlag" @click="handleCreateTable">自动建表</a-button>
<a-button type="primary" v-if="!editFlag" @click="handleVersion">版本管理</a-button> <a-button type="primary" v-if="!editFlag" @click="handleVersion">版本管理</a-button>
...@@ -235,6 +235,7 @@ ...@@ -235,6 +235,7 @@
import { RollbackOutlined } from '@ant-design/icons-vue'; import { RollbackOutlined } from '@ant-design/icons-vue';
import FailModal from '@/views/dataWarehousePlanning/physicalModel/modelDetail/failModal.vue'; import FailModal from '@/views/dataWarehousePlanning/physicalModel/modelDetail/failModal.vue';
const router = useRouter();
const [registerModal, { openModal }] = useModal(); const [registerModal, { openModal }] = useModal();
const [registerDebugModal, { openModal: openDebugModal }] = useModal(); const [registerDebugModal, { openModal: openDebugModal }] = useModal();
const [registerCreateModal, { openModal: openCreateModal }] = useModal(); const [registerCreateModal, { openModal: openCreateModal }] = useModal();
...@@ -410,6 +411,10 @@ ...@@ -410,6 +411,10 @@
} }
} }
function handleGoBack() {
router.go(-1);
}
/** 版本管理*/ /** 版本管理*/
function handleVersion() { function handleVersion() {
openVersionModal(true, { openVersionModal(true, {
......
<template> <template>
<PageWrapper title="模型关系" contentBackground headerSticky> <PageWrapper title="模型关系" contentBackground headerSticky @back="handleGoBack">
<template #extra> <template #extra>
<a-button type="primary">刷新</a-button> <a-button type="primary">刷新</a-button>
<a-button type="primary">全屏</a-button> <a-button type="primary">全屏</a-button>
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
import CrossModel from '@/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/crossModel.vue'; import CrossModel from '@/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/crossModel.vue';
import { useModal } from '@/components/Modal'; import { useModal } from '@/components/Modal';
import { ref } from 'vue'; import { ref } from 'vue';
import { useRouter } from 'vue-router';
// 模态框 // 模态框
const [crossModal, { openModal }] = useModal(); const [crossModal, { openModal }] = useModal();
...@@ -72,6 +73,11 @@ ...@@ -72,6 +73,11 @@
function handleAdd() { function handleAdd() {
openModal(true); openModal(true);
} }
const router = useRouter();
function handleGoBack() {
router.go(-1);
}
// const options = [ // const options = [
// { // {
// label: '全部实体', // label: '全部实体',
......
<template> <template>
<PageWrapper title="版本对比" contentBackground headerSticky> <PageWrapper title="版本对比" contentBackground headerSticky @back="handleGoBack">
<template #extra> <template #extra>
<a-button type="primary">导出对比结果</a-button> <a-button type="primary">导出对比结果</a-button>
<a-button type="primary" @click="handleCancel">取消对比</a-button> <a-button type="primary" @click="handleCancel">取消对比</a-button>
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
import Detail from '@/views/dataWarehousePlanning/physicalModel/upload/detail.vue'; import Detail from '@/views/dataWarehousePlanning/physicalModel/upload/detail.vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
const router = useRouter();
defineOptions({ name: 'AccountManagement' }); defineOptions({ name: 'AccountManagement' });
const { push } = useRouter(); const { push } = useRouter();
const basicVersion = ref('V1.0 2023-06-15 15:34:40'); const basicVersion = ref('V1.0 2023-06-15 15:34:40');
...@@ -53,6 +54,9 @@ ...@@ -53,6 +54,9 @@
path: '/dataWarehousePlanning/physicalModel/detail', path: '/dataWarehousePlanning/physicalModel/detail',
}); });
} }
function handleGoBack() {
router.go(-1);
}
</script> </script>
<style scoped></style> <style scoped></style>
<template> <template>
<PageWrapper title="申请发布" contentBackground headerSticky> <PageWrapper title="申请发布" contentBackground headerSticky @back="handleGoBack">
<template #extra> <template #extra>
<a-button type="primary" @click="handleCancel">取消</a-button> <a-button type="primary" @click="handleCancel">取消</a-button>
<a-button type="primary" @click="handleSubmit">提交申请</a-button> <a-button type="primary" @click="handleSubmit">提交申请</a-button>
</template> </template>
<template #footer> <template #footer>
<span class="table-title" style="font-size: 15px; margin: 12px 10px 0;font-weight: 550">申请信息</span> <span class="table-title" style="font-size: 15px; margin: 12px 10px 0; font-weight: 550"
>申请信息</span
>
<BasicForm @register="registerForm"> <BasicForm @register="registerForm">
<template #person="{ model, field }"> <template #person="{ model, field }">
{{ model[field] }} {{ model[field] }}
...@@ -17,7 +19,9 @@ ...@@ -17,7 +19,9 @@
{{ model[field] }} {{ model[field] }}
</template> </template>
</BasicForm> </BasicForm>
<span class="table-title" style="font-size: 15px; margin: 12px 10px 0;font-weight: 550">数据模型详情</span> <span class="table-title" style="font-size: 15px; margin: 12px 10px 0; font-weight: 550"
>数据模型详情</span
>
<div style="display: flex"> <div style="display: flex">
<BasicTable class="w-1/5" @register="registerTable" :searchInfo="searchInfo" /> <BasicTable class="w-1/5" @register="registerTable" :searchInfo="searchInfo" />
<div class="w-4/5"> <div class="w-4/5">
...@@ -79,6 +83,9 @@ ...@@ -79,6 +83,9 @@
value: 'V1.0 2023-06-15 15:34:40', value: 'V1.0 2023-06-15 15:34:40',
}, },
]); ]);
function handleGoBack() {
router.go(-1);
}
function handleCancel() { function handleCancel() {
router.go(-1); router.go(-1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment