fix : 修复页面bug
This commit is contained in:
@@ -288,11 +288,7 @@ const exportExcelHandler = () => {
|
||||
}
|
||||
exportExcel(data).then(res => {
|
||||
console.log(res)
|
||||
let reg = /filename=([^&]+)/;
|
||||
let contentDisposition = decodeURI(res.headers['content-disposition'])
|
||||
let result = reg.exec(contentDisposition)
|
||||
let fileName = result[1]
|
||||
fileName = fileName.replace(/\"/g, '')
|
||||
let fileName = `科技创新项目研发费用台账-${basicData.value.projectName}.xlsx`
|
||||
const blob = new Blob([res.data])
|
||||
let a = document.createElement('a')
|
||||
a.href = URL.createObjectURL(blob)
|
||||
|
||||
@@ -175,7 +175,8 @@ const handleUpload = () => {
|
||||
router.push({
|
||||
name: 'Implementation/upload',
|
||||
query: {
|
||||
projectId: route.query.id
|
||||
projectId: route.query.id,
|
||||
type:'list'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<steps :active="route.query.id==='-1'?currentStep-1:currentStep" @setDetail="setDetail" @stepChange="stepChange"
|
||||
:reportType="route.query.id==='-1'?'direct':''">
|
||||
<template #content>
|
||||
<template #content v-if="detailShow">
|
||||
<collection-detail :formData="detailData.formData"
|
||||
:data="detailData"
|
||||
:processViewer="commonProvessViewer"
|
||||
v-show="showActive == '00'"
|
||||
v-if="showActive == '00'"
|
||||
:fileListShow="fileListShow"
|
||||
v-model:value="auditOpinion"
|
||||
/>
|
||||
<summary-detail v-show="showActive == '10'"
|
||||
<summary-detail v-if="showActive == '10'"
|
||||
:formData="detailData.formData"
|
||||
:data="detailData"
|
||||
:processViewer="commonProvessViewer"
|
||||
@@ -30,7 +30,7 @@
|
||||
:fileListShow="fileListShow"
|
||||
v-model:value="auditOpinion"/>
|
||||
<ApprovalDetail type="archivist"
|
||||
v-show="showActive == '50'&&!editShow"
|
||||
v-if="showActive == '50'&&!editShow"
|
||||
:formData="detailData.formData"
|
||||
:data="detailData"
|
||||
:processViewer="commonProvessViewer"
|
||||
@@ -73,6 +73,7 @@ route.query.step == '20' && (currentStep.value = 2)
|
||||
route.query.step == '40' && (currentStep.value = 3)
|
||||
route.query.step == '50' && (currentStep.value = 4)
|
||||
const showActive = ref()
|
||||
const detailShow = ref(false)
|
||||
const detailData = ref({})
|
||||
const commonProvessViewer = ref(true)
|
||||
localStorage.removeItem('singleFile')
|
||||
@@ -83,6 +84,7 @@ localStorage.removeItem('projectPersonUserList')
|
||||
const getAllInfo = async (state) => {
|
||||
const loading = ElLoading.service({fullscreen: true})
|
||||
try {
|
||||
detailShow.value = false
|
||||
fileListShow.value = 'READ'
|
||||
commonProvessViewer.value = false
|
||||
const {data, code, msg} = await getMapProjectStateInfo(route.query.projectId, state)
|
||||
@@ -98,6 +100,8 @@ const getAllInfo = async (state) => {
|
||||
processStore.passList.value = data.passList;
|
||||
nextTick(() => {
|
||||
commonProvessViewer.value = true
|
||||
detailShow.value = true
|
||||
detailData.value = data
|
||||
if (data.formPermMap && data.formPermMap["fileList"]) {
|
||||
fileListShow.value = data.formPermMap["fileList"].perm
|
||||
}
|
||||
|
||||
@@ -352,7 +352,6 @@ const handleStandingBook = (row) => {
|
||||
})
|
||||
}
|
||||
const handleAttachment = (row) => {
|
||||
console.log('row',row)
|
||||
router.push({
|
||||
name: 'Implementation/attachment',
|
||||
query: {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<fvTable style="width: 100%;max-height: 300px;" v-if="showTable" height="300" :tableConfig="tableConfig"
|
||||
:data="fileList" :isSettingCol="false" :pagination="false">
|
||||
<template #empty>
|
||||
<el-empty :image-size="99" description="暂无数据" style="padding: 0"/>
|
||||
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
|
||||
</template>
|
||||
</fvTable>
|
||||
<div class="oper-page-btn">
|
||||
@@ -240,27 +240,29 @@ const handleSubmit = async (instance) => {
|
||||
if (res.code === 1000) {
|
||||
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
|
||||
if (route.query.type === '40') {
|
||||
console.log('归档实施')
|
||||
await router.push({
|
||||
name: 'Filing/attachment',
|
||||
query: {
|
||||
id: route.query.projectId
|
||||
id: route.query.projectId,
|
||||
requirementId: route.query.requirementId
|
||||
}
|
||||
})
|
||||
} else {
|
||||
if (router.query.type || router.query.type !== '40') {
|
||||
if (route.query.type === 'list') {
|
||||
router.push({
|
||||
name: 'Implementation/attachment',
|
||||
query: {
|
||||
projectId: route.query.projectId
|
||||
id: route.query.projectId
|
||||
}
|
||||
})
|
||||
} else {
|
||||
await router.push({
|
||||
name: 'Implementation/detail',
|
||||
query: {
|
||||
id: route.query.id,
|
||||
state: route.query.state,
|
||||
id: route.query.requirementId,
|
||||
projectId: route.query.projectId,
|
||||
state: route.query.state,
|
||||
step: '40'
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user