From e0edaf2d2df05ca14f8f53788d26ac228440969e Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Thu, 9 Jun 2022 14:07:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=BE=E7=89=87=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/views/wjnft/brand/index.vue | 9 +++++- src/views/wjnft/company/index.vue | 18 +++++++---- src/views/wjnft/shop/index.vue | 2 +- src/views/wjnft/us/index.vue | 53 ++++++++++++++++++++++++------- 5 files changed, 63 insertions(+), 20 deletions(-) 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="标识"> -