Merge branch 'main' of http://192.168.30.2:3000/bonus/nw-cqdevicemgt-ui
This commit is contained in:
commit
57505f9d03
|
|
@ -289,7 +289,7 @@
|
||||||
<span v-if="scope.row.status == '2'">驳回</span>
|
<span v-if="scope.row.status == '2'">驳回</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<template slot-scope="scope">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
|
|
@ -798,15 +798,28 @@ export default {
|
||||||
// this.loading = true;
|
// this.loading = true;
|
||||||
getRepairAuditListApi(params)
|
getRepairAuditListApi(params)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
console.log('🚀 ~ .then ~ response:', response)
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
// this.loading = false;
|
// this.loading = false;
|
||||||
this.open = true
|
this.open = true
|
||||||
this.dialogList = response.rows
|
this.dialogList = response.rows
|
||||||
this.dialogTotal = response.total
|
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() {
|
checkClick() {
|
||||||
this.title = '审批'
|
this.title = '审批'
|
||||||
|
|
@ -1160,7 +1173,8 @@ export default {
|
||||||
return isLtMB
|
return isLtMB
|
||||||
},
|
},
|
||||||
beforeRemove(file, fileList) {
|
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} ?`)
|
return this.$confirm(`确定移除 ${file.name} ?`)
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue