This commit is contained in:
hongchao 2025-03-27 19:11:52 +08:00
commit 57505f9d03
1 changed files with 18 additions and 4 deletions

View File

@ -289,7 +289,7 @@
<span v-if="scope.row.status == '2'">驳回</span>
</template>
</el-table-column>
<el-table-column label="附件" align="center" prop="fileList">
<el-table-column label="附件" align="center" prop="fileList" width="180">
<template slot-scope="scope">
<el-upload
class="upload-demo"
@ -798,15 +798,28 @@ export default {
// this.loading = true;
getRepairAuditListApi(params)
.then((response) => {
console.log('🚀 ~ .then ~ response:', response)
if (response.code == 200) {
// this.loading = false;
this.open = true
this.dialogList = response.rows
this.dialogTotal = response.total
this.repairId = rows.repairId
// this.repairId = rows.repairId
if (this.dialogList) {
this.dialogList.forEach((item) => {
if (item.fileList) {
item.fileList.forEach((e) => {
this.$set(e, 'url', e.fileUrl)
this.$set(e, 'name', e.fileName)
})
}
})
}
}
})
.catch(() => {})
.catch((err) => {
console.log('🚀 ~ getdialogList ~ err:', err)
})
},
checkClick() {
this.title = '审批'
@ -1160,7 +1173,8 @@ export default {
return isLtMB
},
beforeRemove(file, fileList) {
if (this.type == 'update') return false
console.log('🚀 ~ beforeRemove ~ this.type:', this.type)
if (this.type == 'see') return false
return this.$confirm(`确定移除 ${file.name} `)
},