| | |
| | | imageUrls = urls.join(",") |
| | | } |
| | | |
| | | let label = this.form.label |
| | | |
| | | if (this.form.smallLabel != '') { |
| | | label = label + ',' + this.form.smallLabel |
| | | } |
| | | |
| | | delete this.form.smallLabel |
| | | |
| | | this.$refs.baseForm.validate((valid, done, msg) => { |
| | | if (valid) { |
| | | that.$axios.all([ |
| | | update({ |
| | | // ...this.placeElement.curRow, |
| | | ...this.form, |
| | | imageUrls |
| | | imageUrls, |
| | | label |
| | | }), |
| | | updatePlaceExt(this.placeForm) |
| | | ]).then(that.$axios.spread(function () { |
| | |
| | | }) |
| | | row.imageUrls = urls.join(",") |
| | | } |
| | | update(row).then( |
| | | |
| | | let label = row.label |
| | | |
| | | if (row.smallLabel != '') { |
| | | label = label + ',' + row.smallLabel |
| | | } |
| | | |
| | | delete row.smallLabel |
| | | |
| | | update({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | |
| | | this.$refs.crud.toggleSelection() |
| | | }) |
| | | }, |
| | | |
| | | beforeOpen (done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getPlace(this.form.id).then((res) => { |