modified: src/views/quality/exception/exception.vue
| | |
| | | @refreshDataList="getData" |
| | | ></table-form> |
| | | </div> |
| | | <el-dialog title="图片预览" width="60%" :visible.sync="previewVisible" top="5vh"> |
| | | <img style="width:100%;height: 70vh" :src="dialogImageUrl" alt=""> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | <style lang="scss" scoped> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | previewVisible: false, |
| | | dialogImageUrl: null, |
| | | fileList: [], |
| | | headers: { |
| | | Authorization: 'Bearer ' + getStore({ name: 'access_token' }) |
| | |
| | | } |
| | | }, |
| | | handlePreview(file) { |
| | | window.open(file.url) |
| | | this.previewVisible = true |
| | | }, |
| | | uploadSuccess(response, file, fileList) { |
| | | this.getFileList() |
| | |
| | | fileEl = {} |
| | | fileEl.name = attachment.original |
| | | fileEl.url = attachment.url |
| | | this.dialogImageUrl = attachment.url |
| | | fileEl.id = attachment.id |
| | | fileEl.fileName = attachment.fileName |
| | | this.fileList.push(fileEl) |