Merge branch 'develop' into 'FOTON'

commit

See merge request LAWS/laws-system-front-FOTON!274
This commit is contained in:
王夏晖
2021-12-31 11:12:35 +08:00
2 changed files with 11 additions and 3 deletions
@@ -220,15 +220,16 @@
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件"> <el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
multiple
drag drag
:action="fileUrl" :action="fileUrl"
ref="importfile" ref="importfile"
:file-list="fileList"
name="file" name="file"
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx, .pdf, .PDF" accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx, .pdf, .PDF"
:before-upload="beginImportFile" :before-upload="beginImportFile"
:on-success="importFileSuccess" :on-success="importFileSuccess"
:show-file-list="false" :on-remove="importFileRemove"
:show-file-list="true"
> >
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
@@ -250,6 +251,7 @@
name: "bzdyStep3", name: "bzdyStep3",
data() { data() {
return { return {
fileList: [],
commentText3: '', commentText3: '',
newDocUser: '', newDocUser: '',
drawerModal: false, drawerModal: false,
@@ -352,6 +354,11 @@
let id = item.id let id = item.id
window.location.href = '/api/att/attFile/downloadFile?fileId=' + id window.location.href = '/api/att/attFile/downloadFile?fileId=' + id
}, },
importFileRemove (file, fileList) {
if(fileList){
this.fileList = fileList.slice(-1)
}
},
// 导入按钮 上传之前的钩子 // 导入按钮 上传之前的钩子
beginImportFile (file) { beginImportFile (file) {
var filename = file.name var filename = file.name
@@ -383,6 +390,7 @@
this.fileMadel = false this.fileMadel = false
this.form.fileId = response.data.id this.form.fileId = response.data.id
this.form.fileName = response.data.name this.form.fileName = response.data.name
this.fileList = response.data
this.$message({ this.$message({
showClose: true, showClose: true,
message: response.message, message: response.message,
@@ -682,7 +682,7 @@ export default {
}) })
} else if (row.taskInfo === '责任对接人审批') { } else if (row.taskInfo === '责任对接人审批') {
this.$router.push({ this.$router.push({
name: 'phoneBzdyStep4', name: 'bzdyStep4',
query: { query: {
taskIds: row.taskIds, taskIds: row.taskIds,
prcId: row.prcId, prcId: row.prcId,