diff --git a/package.json b/package.json index 855f1b2..9f0da49 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "jsencrypt": "3.2.1", "nprogress": "0.2.0", "quill": "1.3.7", + "save": "^2.5.0", "screenfull": "5.0.2", "sortablejs": "1.10.2", "vue": "2.6.12", diff --git a/src/views/wjnft/brand/index.vue b/src/views/wjnft/brand/index.vue index 83b4728..19a9e81 100644 --- a/src/views/wjnft/brand/index.vue +++ b/src/views/wjnft/brand/index.vue @@ -162,7 +162,7 @@ /> - + @@ -356,6 +356,10 @@ export default { this.getList(); }, methods: { + handleCanCle () { + this.cancel(); + }, + /** 查询入驻品牌列表 */ getList() { this.loading = true; @@ -426,6 +430,7 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.imgList = []; + console.log(this.imgList); this.reset(); const id = row.id || this.ids getBrand(id).then(response => { @@ -437,6 +442,7 @@ export default { let obj = {} obj.url = items this.imgList.push(obj) + console.log(this.imgList); }) }else{ let t = this.form.picture @@ -444,6 +450,7 @@ export default { obj.url = t this.imgList.push(obj) } + this.open = true; this.title = "修改入驻品牌"; }); diff --git a/src/views/wjnft/company/index.vue b/src/views/wjnft/company/index.vue index 6da610d..02e3afc 100644 --- a/src/views/wjnft/company/index.vue +++ b/src/views/wjnft/company/index.vue @@ -145,7 +145,7 @@ /> - + @@ -232,6 +232,10 @@ export default { this.getList(); }, methods: { + handleCanCle () { + this.cancel(); + }, + /** 查询公司列表 */ getList() { this.loading = true; @@ -308,16 +312,18 @@ export default { if (valid) { if (this.form.id != null) { console.log(this.form); - if(this.global.apiUrl === null){ - this.$message.warning("请上传图片") - }else { - - this.form.picture = this.global.apiUrl; + if(this.form.picture === null){ + this.$message.warning("请上传图片"); + } else { + if(this.global.apiUrl !== null){ + this.form.picture = this.global.apiUrl; + } updateCompany(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; this.echo = false; this.getList(); + this.global.apiUrl = null; }); } } else { diff --git a/src/views/wjnft/shop/index.vue b/src/views/wjnft/shop/index.vue index a59aa1b..75fba84 100644 --- a/src/views/wjnft/shop/index.vue +++ b/src/views/wjnft/shop/index.vue @@ -158,7 +158,7 @@ prop="identifier" align="center" label="标识"> -