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

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

parent 8dcee740
<template>
<PageWrapper dense contentFullHeight fixedHeight contentClass="flex">
<PageWrapper
title="建表记录"
dense
contentFullHeight
fixedHeight
contentClass="flex"
@back="handleGoBack"
>
<BasicTable @register="registerTable" :searchInfo="searchInfo">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
......@@ -124,6 +131,11 @@
});
}
const router = useRouter();
function handleGoBack() {
router.go(-1);
}
onMounted(() => {
tableData.value = TreeData;
const path = route.path;
......
<template>
<PageWrapper title="资产关系图谱" contentBackground headerSticky>
<PageWrapper title="资产关系图谱" contentBackground headerSticky @back="handleGoBack">
<template #extra>
<a-button type="primary">导出</a-button>
<a-button type="primary">刷新</a-button>
......@@ -18,6 +18,7 @@
import CrossModel from '@/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/crossModel.vue';
import { useModal } from '@/components/Modal';
import { ref } from 'vue';
import { useRouter } from 'vue-router';
// 模态框
const [crossModal, { openModal }] = useModal();
......@@ -30,6 +31,11 @@
modelLevel.value = '0';
}
}
const router = useRouter();
function handleGoBack() {
router.go(-1);
}
function handleAdd() {
openModal(true);
}
......
<template>
<PageWrapper :title="modelName" contentBackground headerSticky>
<PageWrapper :title="modelName" contentBackground headerSticky @back="handleGoBack">
<template #extra>
<a-button type="primary" v-if="!editFlag" @click="handleCreateTable">自动建表</a-button>
<a-button type="primary" v-if="!editFlag" @click="handleVersion">版本管理</a-button>
......@@ -235,6 +235,7 @@
import { RollbackOutlined } from '@ant-design/icons-vue';
import FailModal from '@/views/dataWarehousePlanning/physicalModel/modelDetail/failModal.vue';
const router = useRouter();
const [registerModal, { openModal }] = useModal();
const [registerDebugModal, { openModal: openDebugModal }] = useModal();
const [registerCreateModal, { openModal: openCreateModal }] = useModal();
......@@ -410,6 +411,10 @@
}
}
function handleGoBack() {
router.go(-1);
}
/** 版本管理*/
function handleVersion() {
openVersionModal(true, {
......
<template>
<PageWrapper title="模型关系" contentBackground headerSticky>
<PageWrapper title="模型关系" contentBackground headerSticky @back="handleGoBack">
<template #extra>
<a-button type="primary">刷新</a-button>
<a-button type="primary">全屏</a-button>
......@@ -57,6 +57,7 @@
import CrossModel from '@/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/crossModel.vue';
import { useModal } from '@/components/Modal';
import { ref } from 'vue';
import { useRouter } from 'vue-router';
// 模态框
const [crossModal, { openModal }] = useModal();
......@@ -72,6 +73,11 @@
function handleAdd() {
openModal(true);
}
const router = useRouter();
function handleGoBack() {
router.go(-1);
}
// const options = [
// {
// label: '全部实体',
......
<template>
<PageWrapper title="版本对比" contentBackground headerSticky>
<PageWrapper title="版本对比" contentBackground headerSticky @back="handleGoBack">
<template #extra>
<a-button type="primary">导出对比结果</a-button>
<a-button type="primary" @click="handleCancel">取消对比</a-button>
......@@ -33,6 +33,7 @@
import Detail from '@/views/dataWarehousePlanning/physicalModel/upload/detail.vue';
import { useRouter } from 'vue-router';
const router = useRouter();
defineOptions({ name: 'AccountManagement' });
const { push } = useRouter();
const basicVersion = ref('V1.0 2023-06-15 15:34:40');
......@@ -53,6 +54,9 @@
path: '/dataWarehousePlanning/physicalModel/detail',
});
}
function handleGoBack() {
router.go(-1);
}
</script>
<style scoped></style>
<template>
<PageWrapper title="申请发布" contentBackground headerSticky>
<PageWrapper title="申请发布" contentBackground headerSticky @back="handleGoBack">
<template #extra>
<a-button type="primary" @click="handleCancel">取消</a-button>
<a-button type="primary" @click="handleSubmit">提交申请</a-button>
</template>
<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">
<template #person="{ model, field }">
{{ model[field] }}
......@@ -17,7 +19,9 @@
{{ model[field] }}
</template>
</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">
<BasicTable class="w-1/5" @register="registerTable" :searchInfo="searchInfo" />
<div class="w-4/5">
......@@ -79,6 +83,9 @@
value: 'V1.0 2023-06-15 15:34:40',
},
]);
function handleGoBack() {
router.go(-1);
}
function handleCancel() {
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