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[] = [
{ label: 'V3', value: '3' },
],
},
defaultValue: '1',
colProps: { lg: 6, md: 6 },
required: true,
},
......
......@@ -8,9 +8,11 @@
>
<div>
<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="handleNew">导出</a-button>
<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="handleImport">导出</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
>
......@@ -111,6 +113,7 @@
<quotationModal @register="registerQuotationModal" />
<physicsModal @register="registerPhysicsModal" />
<versionModal @register="registerVersionModal" />
<analysisModal @register="registerAnalysisModal" />
</template>
<script setup lang="ts">
import { BasicTable, TableAction, useTable } from '@/components/Table';
......@@ -153,6 +156,7 @@
import quotationModal from './quotationModal.vue';
import physicsModal from './physicsModal.vue';
import versionModal from './versionModal.vue';
import analysisModal from './analysisModal.vue';
const { createMessage } = useMessage();
const page = ref('1');
......@@ -163,6 +167,7 @@
const [registerQuotationModal, { openModal: openQuotationModal }] = useModal();
const [registerPhysicsModal, { openModal: openPhysicsModal }] = useModal();
const [registerVersionModal, { openModal: openVersionModal }] = useModal();
const [registerAnalysisModal, { openModal: openAnalysisModal }] = useModal();
const [registerTable, { reload, getForm }] = useTable({
api: async () => {
const response = {
......@@ -263,10 +268,12 @@
tableData.value = dbData;
await reload();
});
function handleNew() {
createMessage.warning('暂未完成,敬请期待');
function refresh() {
createMessage.success('刷新成功');
}
function handleImport() {
createMessage.success('导出完成');
}
function recommend() {
openRecommendModal(true, {
title: '智能推荐数据标准',
......@@ -292,6 +299,11 @@
title: '版本管理',
});
}
function handleAnalysis() {
openAnalysisModal(true, {
title: '血缘分析',
});
}
function handleEdit() {
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