招标解析

This commit is contained in:
cwchen 2025-11-24 14:19:24 +08:00
parent 60e91cb3c3
commit 7b20aec4fd
1 changed files with 52 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<template>
<!-- 小型弹窗用于完成删除保存等操作 -->
<el-dialog class="l-dialog" :class="lDialog" :title="title" :visible.sync="dialogVisible" :showClose="true"
<el-dialog class="l-dialog" :class="[lDialog, { 'no-pointer-events': showUploadAnimation }]" :title="title" :visible.sync="dialogVisible" :showClose="true"
:closeOnClickModal="false" @close="handleClose" :append-to-body="true">
<div>
<!-- 全局上传动画 -->
@ -16,7 +16,7 @@
<el-form-item v-for="(item, index) in uploadType" :key="index" :label="item"
:prop="`fileList${index + 1}`">
<UploadMoreFile :fileList="form[`fileList${index + 1}`]" @file-change="handleFileChange"
<UploadFile :fileList="form[`fileList${index + 1}`]" @file-change="handleFileChange"
@del-file="handleDelFile" :type="`fileList${index + 1}`" :uploadType="defaultParams.uploadType"
:maxFileTips="defaultParams.maxFileTips" :fileUploadRule="defaultParams.fileUploadRule"
:limitUploadNum="defaultParams.limitUploadNum" />
@ -31,7 +31,7 @@
</template>
<script>
import _ from 'lodash'
import UploadMoreFile from '@/views/common/UploadMoreFile.vue'
import UploadFile from '@/views/common/UploadFile.vue'
import GlobalUploadAnimation from '@/views/common/GlobalUploadAnimation.vue'
import { getAnalysisTemplateSelectApi } from '@/api/common/select'
import { addDataAPI } from '@/api/analysis/analysis'
@ -50,7 +50,7 @@ const defaultParams = {
export default {
name: 'AnalysisForm',
components: {
UploadMoreFile,
UploadFile,
GlobalUploadAnimation
},
props: ['width', 'rowData', 'title'],
@ -61,6 +61,9 @@ export default {
defaultParams,
uploadType: [],
modelList: [],
showUploadAnimation: false,
animationText: '识别中',
uploadQueue: 0, //
form: {
templateId: null,
delFileList: [],
@ -249,6 +252,40 @@ export default {
}
})
},
//
handleStartUpload(data) {
this.animationText = data
this.uploadQueue++
this.showUploadAnimation = true
},
//
handleEndUpload(data) {
if (this.uploadQueue > 0) {
this.uploadQueue--
}
//
if (this.uploadQueue === 0) {
this.showUploadAnimation = false
}
},
},
mounted() {
//
this.$bus.$on('startUpload', this.handleStartUpload)
//
this.$bus.$on('endUpload', this.handleEndUpload)
},
beforeDestroy() {
//
this.$bus.$off('startUpload', this.handleStartUpload)
this.$bus.$off('endUpload', this.handleEndUpload)
//
this.showUploadAnimation = false
this.uploadQueue = 0
this.animationText = '识别中'
},
}
</script>
@ -313,6 +350,17 @@ export default {
text-align: center;
}
//
.w500 ::v-deep .el-dialog.no-pointer-events,
.w700 ::v-deep .el-dialog.no-pointer-events {
pointer-events: none;
//
* {
pointer-events: none;
}
}
.yxq .el-range-separator {
margin-right: 7px !important;
}