@@ -223,6 +223,13 @@
@getAttachment="getAttachment"
@getOtherFile="getOtherFile" :showFileList="true" :formData="formData" :preview="router.currentRoute.value.name === 'Summary/edit'"/>
+
存为草稿
发布
@@ -236,12 +243,16 @@ import {getDetail, getProcessInfo, requirementReported, resubmitReported} from "
import {ElMessage, ElNotification} from "element-plus";
import {useTagsView} from '@/stores/tagsview.js'
import {useCacheStore} from '@/stores/cache.js'
+import {useProcessStore} from '@/stores/processStore.js';
import {getSubCompOpt} from "@/api/user/user";
-
+import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
const cacheStore = useCacheStore()
+const processStore = useProcessStore()
const router = useRouter()
const route = useRoute()
const name=ref(router.currentRoute.value.name)
+const loading = ref(false)
+const processDiagramViewer = ref(false)
const tagsViewStore = useTagsView()
const companyOption = ref([])
const summaryForm = ref()
@@ -430,6 +441,7 @@ const getDetailInfo = async () => {
})
if (res.code === 1000) {
formData.value = res.data.formData
+ loading.value=false
}
})
}
@@ -445,20 +457,30 @@ const init = async () => {
if (res.code === 1000) {
let data = res.data
deploymentId.value = data.deploymentId
+ processStore.setDesign(data)
+ processStore.runningList.value = data.runningList;
+ processStore.endList.value = data.endList;
+ processStore.noTakeList.value = data.noTakeList;
+ processStore.refuseList.value = data.refuseList;
+ processStore.passList.value = data.passList;
+ nextTick(() => {
+ processDiagramViewer.value = true
+ })
}
})
}
onMounted(async () => {
+ loading.value=true
await init()
if (route.query.projectId) {
await getDetailInfo()
}
+
})
const staging = async () => {
}