| | |
| | | <el-upload ref='upload' |
| | | :action="fileAction" |
| | | :auto-upload="true" |
| | | :before-upload="fileBeforeUpload" :data="{detailsEvaluateId: info.detailsEvaluateId}" |
| | | :before-upload="fileBeforeUpload" :data="{qualityMonitorDetailsId: info.qualityMonitorDetailsId}" |
| | | :headers="uploadHeader" :on-error="onError" |
| | | :on-success="handleSuccessUp" |
| | | :show-file-list="false" |
| | |
| | | // 查询附件列表 |
| | | searchTableList () { |
| | | this.tableLoading = true |
| | | getEvaluateFileList({detailsEvaluateId:this.info.detailsEvaluateId}).then(res => { |
| | | getEvaluateFileList({qualityMonitorDetailsId:this.info.qualityMonitorDetailsId}).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 200){ |
| | | this.tableData = res.data |
| | |
| | | this.tableLoading = true |
| | | delVerifyEvaluateFileList({evaluateFileId : row.evaluateFileId}).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('删除成功') |
| | | this.searchTableList() |
| | | }).catch(err => { |
| | |
| | | if (response.code == 200) { |
| | | this.$message.success('上传成功'); |
| | | this.searchTableList() |
| | | } else { |
| | | this.$message.error(response.msg); |
| | | } |
| | | }, |
| | | // 查看文件 |