fix : 修复页面细节

This commit is contained in:
2024-05-30 22:51:06 +08:00
parent 92e935622a
commit 7791648837
6 changed files with 36 additions and 19 deletions

View File

@@ -58,6 +58,10 @@ import ProcessDesign from '@/views/workflow/process/ProcessDesign.vue'
import ProcessSetting from "./ProcessSetting.vue";
import Ellipsis from '@/views/workflow/process/common/Ellipsis.vue'
import {getCurrentInstance} from '@vue/runtime-core';
import {useTagsView} from '@/stores/tagsview.js'
import {ElMessageBox,ElNotification} from "element-plus";
const tagsViewStore = useTagsView()
let {proxy} = getCurrentInstance();
import {Loading, WarningFilled, CircleCheckFilled} from '@element-plus/icons-vue'
@@ -67,7 +71,6 @@ const params = reactive(router.currentRoute.value.params)
import {useProcessStore} from '@/stores/processStore.js'
const processStore = useProcessStore()
import {ElMessage, ElMessageBox} from "element-plus";
const processDesign = ref()
const visible = ref(false)
@@ -196,14 +199,17 @@ const getRandomId = () => {
const getProcessInfo = async () => {
getProcessDefinitionInfo(params.deploymentId).then(res => {
ElNotification({
title: '提示',
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
processStore.setDesign(res.data)
visible.value = true
nextTick(() => {
processDesign.value.initRender()
})
} else {
ElMessage.error(res.msg)
}
})
}
@@ -311,14 +317,21 @@ const doPublish = () => {
}
console.log(template)
addProcessDefinition(template).then(res => {
ElNotification({
title: '提示',
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
ElMessage.success(res.msg)
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
router.push("/workflow/process")
} else {
ElMessage.error(res.msg)
}
}).catch(err => {
ElMessage.error(err)
ElNotification({
title: '提示',
message: err,
type:'error'
})
})
})
}