Commit 0f7b8b6d authored by 罗林杰's avatar 罗林杰

修改元数据

parent f022c8a4
<template>
<BasicModal
v-bind="$attrs"
width="80%"
@register="registerDbModal"
title="血缘分析"
:showOkBtn="false"
:minHeight="680"
>
<div style="display: flex; justify-content: flex-end; padding-bottom: 10px">
<a-button style="margin-right: 5px" type="primary" @click="refresh">刷新</a-button>
<a-button style="margin-right: 5px" type="primary" @click="handleImport">导出</a-button>
</div>
<img src="../../assets/images/analysis.png" style="width: 100%; height: 100%" alt="Logo" />
</BasicModal>
</template>
<script setup lang="ts">
import BasicModal from '@/components/Modal/src/BasicModal.vue';
import { ref } from 'vue';
import { useModalInner } from '@/components/Modal';
import { useMessage } from '@/hooks/web/useMessage';
const { createMessage } = useMessage();
const title = ref('');
const tableTitle = ref('');
const [registerDbModal, { closeModal }] = useModalInner(async (data) => {
title.value = data.workSpaceName;
tableTitle.value = data.name;
});
function refresh() {
createMessage.success('刷新成功');
}
function handleImport() {
createMessage.success('导出完成');
}
</script>
...@@ -838,6 +838,7 @@ export const versionNumSchema: FormSchema[] = [ ...@@ -838,6 +838,7 @@ export const versionNumSchema: FormSchema[] = [
{ label: 'V3', value: '3' }, { label: 'V3', value: '3' },
], ],
}, },
defaultValue: '1',
colProps: { lg: 6, md: 6 }, colProps: { lg: 6, md: 6 },
required: true, required: true,
}, },
......
...@@ -8,9 +8,11 @@ ...@@ -8,9 +8,11 @@
> >
<div> <div>
<div style="display: flex; justify-content: flex-end"> <div style="display: flex; justify-content: flex-end">
<a-button style="margin-right: 5px" type="primary" @click="handleNew">刷新</a-button> <a-button style="margin-right: 5px" type="primary" @click="refresh">刷新</a-button>
<a-button style="margin-right: 5px" type="primary" @click="handleNew">导出</a-button> <a-button style="margin-right: 5px" type="primary" @click="handleImport">导出</a-button>
<a-button style="margin-right: 5px" type="primary" @click="handleNew">血缘分析</a-button> <a-button style="margin-right: 5px" type="primary" @click="handleAnalysis"
>血缘分析</a-button
>
<a-button style="margin-right: 5px" type="primary" @click="handleVersion" <a-button style="margin-right: 5px" type="primary" @click="handleVersion"
>版本管理</a-button >版本管理</a-button
> >
...@@ -111,6 +113,7 @@ ...@@ -111,6 +113,7 @@
<quotationModal @register="registerQuotationModal" /> <quotationModal @register="registerQuotationModal" />
<physicsModal @register="registerPhysicsModal" /> <physicsModal @register="registerPhysicsModal" />
<versionModal @register="registerVersionModal" /> <versionModal @register="registerVersionModal" />
<analysisModal @register="registerAnalysisModal" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { BasicTable, TableAction, useTable } from '@/components/Table'; import { BasicTable, TableAction, useTable } from '@/components/Table';
...@@ -153,6 +156,7 @@ ...@@ -153,6 +156,7 @@
import quotationModal from './quotationModal.vue'; import quotationModal from './quotationModal.vue';
import physicsModal from './physicsModal.vue'; import physicsModal from './physicsModal.vue';
import versionModal from './versionModal.vue'; import versionModal from './versionModal.vue';
import analysisModal from './analysisModal.vue';
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const page = ref('1'); const page = ref('1');
...@@ -163,6 +167,7 @@ ...@@ -163,6 +167,7 @@
const [registerQuotationModal, { openModal: openQuotationModal }] = useModal(); const [registerQuotationModal, { openModal: openQuotationModal }] = useModal();
const [registerPhysicsModal, { openModal: openPhysicsModal }] = useModal(); const [registerPhysicsModal, { openModal: openPhysicsModal }] = useModal();
const [registerVersionModal, { openModal: openVersionModal }] = useModal(); const [registerVersionModal, { openModal: openVersionModal }] = useModal();
const [registerAnalysisModal, { openModal: openAnalysisModal }] = useModal();
const [registerTable, { reload, getForm }] = useTable({ const [registerTable, { reload, getForm }] = useTable({
api: async () => { api: async () => {
const response = { const response = {
...@@ -263,10 +268,12 @@ ...@@ -263,10 +268,12 @@
tableData.value = dbData; tableData.value = dbData;
await reload(); await reload();
}); });
function handleNew() { function refresh() {
createMessage.warning('暂未完成,敬请期待'); createMessage.success('刷新成功');
}
function handleImport() {
createMessage.success('导出完成');
} }
function recommend() { function recommend() {
openRecommendModal(true, { openRecommendModal(true, {
title: '智能推荐数据标准', title: '智能推荐数据标准',
...@@ -292,6 +299,11 @@ ...@@ -292,6 +299,11 @@
title: '版本管理', title: '版本管理',
}); });
} }
function handleAnalysis() {
openAnalysisModal(true, {
title: '血缘分析',
});
}
function handleEdit() { function handleEdit() {
createMessage.success('解绑成功'); createMessage.success('解绑成功');
} }
......
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