fix : 文件权限处理

This commit is contained in:
2024-06-02 22:23:19 +08:00
parent 456f2284e9
commit e0b5487951
2 changed files with 23 additions and 13 deletions

View File

@@ -9,13 +9,13 @@
:loading="loading" :loading="loading"
/> />
<summary-detail v-show="showActive == '10'" :formData="commonForm.formData" :data="commonForm" <summary-detail v-show="showActive == '10'" :formData="commonForm.formData" :data="commonForm"
:processViewer="commonProvessViewer" :loading="loading"/> :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
<ApprovalDetail type="approval" v-show="showActive == '20'" :formData="commonForm.formData" :data="commonForm" <ApprovalDetail type="approval" v-show="showActive == '20'" :formData="commonForm.formData" :data="commonForm"
:processViewer="commonProvessViewer" :loading="loading"></ApprovalDetail> :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
<ApprovalDetail type="execute" v-show="showActive == '40'" :formData="commonForm.formData" :data="commonForm" <ApprovalDetail type="execute" v-show="showActive == '40'" :formData="commonForm.formData" :data="commonForm"
:processViewer="commonProvessViewer" :loading="loading"></ApprovalDetail> :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
<ApprovalDetail type="archivist" v-show="showActive == '50'" :formData="commonForm.formData" :data="commonForm" <ApprovalDetail type="archivist" v-show="showActive == '50'" :formData="commonForm.formData" :data="commonForm"
:processViewer="commonProvessViewer" :loading="loading"></ApprovalDetail> :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
</template> </template>
</steps> </steps>
<opinion v-if="commonForm.taskId" :formData="commonForm.formData" :taskId="commonForm.taskId"/> <opinion v-if="commonForm.taskId" :formData="commonForm.formData" :taskId="commonForm.taskId"/>
@@ -36,6 +36,7 @@ const loading = ref(false)
const processStore = useProcessStore() const processStore = useProcessStore()
const activeName = ref('first') const activeName = ref('first')
const commonForm = ref({}) const commonForm = ref({})
const fileListShow = ref('READ')
const commonProvessViewer = ref(true) const commonProvessViewer = ref(true)
const getAllInfo = async (state) => { const getAllInfo = async (state) => {
@@ -43,17 +44,17 @@ const getAllInfo = async (state) => {
try { try {
commonProvessViewer.value = false commonProvessViewer.value = false
loading.value = true loading.value = true
const {data, code,msg} = await getMapProjectStateInfo(route.query.projectId, state) const {data, code, msg} = await getMapProjectStateInfo(route.query.projectId, state)
if(code===1000){ if (code === 1000) {
loading.value = false loading.value = false
}else { } else {
ElNotification({ ElNotification({
title: '提示', title: '提示',
message: msg, message: msg,
type: 'error' type: 'error'
}) })
} }
if(data===undefined)return; if (data === undefined) return;
commonForm.value = data commonForm.value = data
processStore.setDesign(data) processStore.setDesign(data)
processStore.runningList.value = data.runningList; processStore.runningList.value = data.runningList;
@@ -63,6 +64,9 @@ const getAllInfo = async (state) => {
processStore.passList.value = data.passList; processStore.passList.value = data.passList;
nextTick(() => { nextTick(() => {
commonProvessViewer.value = true commonProvessViewer.value = true
if (data.formPermMap["fileList"]) {
fileListShow.value = data.formPermMap["fileList"].perm
}
}) })
loading.close() loading.close()
} catch { } catch {

View File

@@ -8,12 +8,14 @@
v-show="showActive == '00'" v-show="showActive == '00'"
:loading="loading" :loading="loading"
/> />
<summary-detail v-show="showActive == '10'" :formData="commonForm.formData" :data="commonForm" :processViewer="commonProvessViewer" :loading="loading"/> <summary-detail v-show="showActive == '10'" :formData="commonForm.formData" :data="commonForm"
<ApprovalDetail v-show="showActive == '20'" :formData="commonForm.formData" :data="commonForm" :processViewer="commonProvessViewer" :loading="loading"></ApprovalDetail> :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
<ApprovalDetail v-show="showActive == '20'" :formData="commonForm.formData" :data="commonForm"
:processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
<ApprovalDetail type="execute" v-show="showActive == '40'" :formData="commonForm.formData" :data="commonForm" <ApprovalDetail type="execute" v-show="showActive == '40'" :formData="commonForm.formData" :data="commonForm"
:processViewer="commonProvessViewer" :loading="loading"></ApprovalDetail> :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
<ApprovalDetail type="archivist" v-show="showActive == '50'" :formData="commonForm.formData" :data="commonForm" <ApprovalDetail type="archivist" v-show="showActive == '50'" :formData="commonForm.formData" :data="commonForm"
:processViewer="commonProvessViewer" :loading="loading"></ApprovalDetail> :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"/>
</template> </template>
</steps> </steps>
@@ -31,6 +33,7 @@ import Opinion from "@/components/DetailComponent/Opinion.vue";
const route = useRoute() const route = useRoute()
const activeName = ref('first') const activeName = ref('first')
const fileListShow = ref('READ')
const loading = ref(false) const loading = ref(false)
const active = ref(route.query.state) const active = ref(route.query.state)
const processStore = useProcessStore() const processStore = useProcessStore()
@@ -63,6 +66,9 @@ const getAllInfo = async (state) => {
processStore.passList.value = data.passList; processStore.passList.value = data.passList;
nextTick(() => { nextTick(() => {
commonProvessViewer.value = true commonProvessViewer.value = true
if (data.formPermMap["fileList"]) {
fileListShow.value = data.formPermMap["fileList"].perm
}
}) })
loading.close() loading.close()
} catch { } catch {