Commit 2f4ed1b3 authored by 罗林杰's avatar 罗林杰

Merge remote-tracking branch 'origin/master'

parents 0f7b8b6d 6403f11d
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
<!--对比--> <!--对比-->
<VerticalAlignMiddleOutlined @click="handleComparison" rotate="90" class="my-icon" /> <VerticalAlignMiddleOutlined @click="handleComparison" rotate="90" class="my-icon" />
<!--回滚--> <!--回滚-->
<RollbackOutlined class="my-icon" /> <RollbackOutlined class="my-icon" @click="handleRollBack(item)" />
<!--删除--> <!--删除-->
<DeleteOutlined class="my-icon" style="color: red" /> <DeleteOutlined class="my-icon" @click="handleDelete(item)" style="color: red" />
</div> </div>
</div> </div>
<div> <div>
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, unref, defineEmits } from 'vue'; import { ref, unref, defineEmits } from 'vue';
import { Tabs, Descriptions, Alert, Modal, message } from 'ant-design-vue';
import { BasicModal, useModalInner } from '@/components/Modal'; import { BasicModal, useModalInner } from '@/components/Modal';
import { BasicTree } from '@/components/Tree'; import { BasicTree } from '@/components/Tree';
import { BasicForm, useForm } from '@/components/Form'; import { BasicForm, useForm } from '@/components/Form';
...@@ -50,6 +51,9 @@ ...@@ -50,6 +51,9 @@
DeleteOutlined, DeleteOutlined,
} from '@ant-design/icons-vue'; } from '@ant-design/icons-vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useMessage } from '@/hooks/web/useMessage';
const { createMessage } = useMessage();
const { push } = useRouter(); const { push } = useRouter();
...@@ -95,6 +99,24 @@ ...@@ -95,6 +99,24 @@
path: '/dataWarehousePlanning/logicalModel/version-comparison', path: '/dataWarehousePlanning/logicalModel/version-comparison',
}); });
} }
function handleRollBack(item) {
Modal.confirm({
title: '回滚版本',
content: '确定要滚动至' + item.version + '版本吗?',
onOk: () => {
createMessage.success('回滚成功!');
},
});
}
function handleDelete(item) {
Modal.confirm({
title: '删除版本',
content: '确定要删除' + item.version + '版本吗?',
onOk: () => {
createMessage.success('删除成功!');
},
});
}
// const getTitle = computed(() => (isUpdate.value ? '编辑实体' : '新建实体')); // const getTitle = computed(() => (isUpdate.value ? '编辑实体' : '新建实体'));
const getTitle = '转物理模型'; const getTitle = '转物理模型';
......
...@@ -169,7 +169,7 @@ export const physicalModelFormSchema: any[] = [ ...@@ -169,7 +169,7 @@ export const physicalModelFormSchema: any[] = [
required: true, required: true,
}, },
{ {
field: 'name', field: 'modelName',
label: '文件名称', label: '文件名称',
component: 'Input', component: 'Input',
colProps: { lg: 24, md: 24 }, colProps: { lg: 24, md: 24 },
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
]); ]);
}); });
const getTitle = computed(() => '新建文件'); const getTitle = computed(() => (isUpdate.value ? '编辑文件' : '新建文件'));
function handleTree(data, id, parentId, children, rootId) { function handleTree(data, id, parentId, children, rootId) {
id = id || 'id'; id = id || 'id';
......
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