bug 修复
This commit is contained in:
parent
10791f31ba
commit
3ed8c2a6cb
|
|
@ -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} ?`)
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue