From 43565daed4ffb875a836b2804426daa99eccf7ca Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 10 Nov 2022 16:40:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E7=85=A7=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppMerchantList/AppMerchantList.vue | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/project/tianfuxing/AppMerchantList/AppMerchantList.vue b/project/tianfuxing/AppMerchantList/AppMerchantList.vue index 922f9915..944787b1 100644 --- a/project/tianfuxing/AppMerchantList/AppMerchantList.vue +++ b/project/tianfuxing/AppMerchantList/AppMerchantList.vue @@ -22,9 +22,9 @@ - + @@ -37,7 +37,6 @@ @@ -46,8 +45,8 @@ - - + + @@ -55,7 +54,6 @@ 地图标绘 - @@ -116,12 +114,12 @@ export default { }, searchPlace: '', formRules: { - photoList: [{required: true, message: '请上传商户图片', trigger: 'blur'}], + logoFiles: [{required: true, message: '请上传商户图片', trigger: 'blur'}], merchantName: [{required: true, message: '请输入商户名称', trigger: 'blur'}], address: [{required: true, message: '请输入选择地理位置', trigger: 'blur'}], }, colConfigs: [ - {slot: 'photoUrl'}, + {slot: 'logoFiles'}, {prop: 'merchantName', label: '商户名称', width: 120, align: 'center'}, {prop: 'address', label: '地理位置', align: 'center'}, {slot: 'userName'}, @@ -143,7 +141,7 @@ export default { methods: { add(row) { this.dialogInfo = {...row} - this.dialogInfo.photoList = [{url: row.photoUrl}] + // this.dialogInfo.photoList = [{url: row.photoUrl}] this.visible = true }, selectMap() { @@ -204,7 +202,7 @@ export default { addConfirm() { this.$refs.ruleForm.validate((valid) => { if (valid) { - this.dialogInfo.photoUrl = this.dialogInfo.photoList[0].url + // this.dialogInfo.photoUrl = this.dialogInfo.photoList[0].url this.instance.post(`api/appmerchantinfo/addOrUpdate`, {...this.dialogInfo}).then(res => { if (res?.code == 0) { this.$message.success('商户修改成功') @@ -217,7 +215,7 @@ export default { }, examine(row, pass, text) { this.$confirm(text).then(() => { - this.instance.post(`api//appmerchantinfo/examine?id=${row.id}&pass=${pass}`).then(res => { + this.instance.post(`api/appmerchantinfo/examine?id=${row.id}&pass=${pass}`).then(res => { if (res.code == 0) { this.$message.success('审核成功') this.getList() @@ -233,6 +231,14 @@ export default { }, }).then((res) => { if (res.code == 0) { + res.data.records.map((item) => { + item.logoFilesUrlList = [] + if(item.logoFiles) { + item.logoFiles.map((e) => { + item.logoFilesUrlList.push(e.accessUrl) + }) + } + }) this.tableData = res.data.records this.page.total = res.data.total }