| | |
| | | }, |
| | | mounted() { |
| | | this.seeImg(); |
| | | // console.log(this.row.licence); |
| | | }, |
| | | comments: { |
| | | srcList() { |
| | |
| | | this.form.imgUrl = this.row.licence; |
| | | } |
| | | }, |
| | | saveLock(name, val) { |
| | | window.localStorage.setItem(name, val); |
| | | }, |
| | | uploadDelete(column, file) { |
| | | this.row.licence = ""; |
| | | this.saveLock("danweidata", JSON.stringify(this.row)); |
| | | return update(this.row) |
| | | .then(() => { |
| | | this.$message({ |
| | |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | | this.row.licence = res.url; |
| | | this.saveLock("danweidata", JSON.stringify(this.row)); |
| | | update(this.row).then( |
| | | () => { |
| | | this.$message({ |