From e0b54879515a032a1e36c05b0e3fc7192b094b96 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Sun, 2 Jun 2024 22:23:19 +0800
Subject: [PATCH] =?UTF-8?q?fix=20:=20=E6=96=87=E4=BB=B6=E6=9D=83=E9=99=90?=
=?UTF-8?q?=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../project-management/filing/detail.vue | 22 +++++++++++--------
.../project-management/initiation/detail.vue | 14 ++++++++----
2 files changed, 23 insertions(+), 13 deletions(-)
diff --git a/src/views/project-management/filing/detail.vue b/src/views/project-management/filing/detail.vue
index b07c02d..f044112 100644
--- a/src/views/project-management/filing/detail.vue
+++ b/src/views/project-management/filing/detail.vue
@@ -9,13 +9,13 @@
:loading="loading"
/>
+ :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
+ :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
+ :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
+ :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
@@ -36,6 +36,7 @@ const loading = ref(false)
const processStore = useProcessStore()
const activeName = ref('first')
const commonForm = ref({})
+const fileListShow = ref('READ')
const commonProvessViewer = ref(true)
const getAllInfo = async (state) => {
@@ -43,17 +44,17 @@ const getAllInfo = async (state) => {
try {
commonProvessViewer.value = false
loading.value = true
- const {data, code,msg} = await getMapProjectStateInfo(route.query.projectId, state)
- if(code===1000){
+ const {data, code, msg} = await getMapProjectStateInfo(route.query.projectId, state)
+ if (code === 1000) {
loading.value = false
- }else {
+ } else {
ElNotification({
title: '提示',
message: msg,
- type: 'error'
+ type: 'error'
})
}
- if(data===undefined)return;
+ if (data === undefined) return;
commonForm.value = data
processStore.setDesign(data)
processStore.runningList.value = data.runningList;
@@ -63,6 +64,9 @@ const getAllInfo = async (state) => {
processStore.passList.value = data.passList;
nextTick(() => {
commonProvessViewer.value = true
+ if (data.formPermMap["fileList"]) {
+ fileListShow.value = data.formPermMap["fileList"].perm
+ }
})
loading.close()
} catch {
diff --git a/src/views/project-management/initiation/detail.vue b/src/views/project-management/initiation/detail.vue
index f077fa6..5e32348 100644
--- a/src/views/project-management/initiation/detail.vue
+++ b/src/views/project-management/initiation/detail.vue
@@ -8,12 +8,14 @@
v-show="showActive == '00'"
:loading="loading"
/>
-
-
+
+
+ :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
+ :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
@@ -31,6 +33,7 @@ import Opinion from "@/components/DetailComponent/Opinion.vue";
const route = useRoute()
const activeName = ref('first')
+const fileListShow = ref('READ')
const loading = ref(false)
const active = ref(route.query.state)
const processStore = useProcessStore()
@@ -63,6 +66,9 @@ const getAllInfo = async (state) => {
processStore.passList.value = data.passList;
nextTick(() => {
commonProvessViewer.value = true
+ if (data.formPermMap["fileList"]) {
+ fileListShow.value = data.formPermMap["fileList"].perm
+ }
})
loading.close()
} catch {