From 9bb5e08da0200a1c3b9ec95b671563c6a94bb5ee Mon Sep 17 00:00:00 2001 From: jiangyy Date: Thu, 19 Nov 2020 12:37:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E5=BB=BA=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/customer/feedback/DetailForm.vue | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue b/epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue index 4742340..c381b00 100644 --- a/epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue +++ b/epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue @@ -90,7 +90,7 @@ style="width:100%;margin-top:10px">回复详情
+ v-if="showConfirm"> 选择图片 @@ -214,8 +215,9 @@ export default { govImgList: [],//政府回复取证 }, showConfirm: true, + replayImgList: [], - uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/function/upload', + uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/uploadimg', // upload_url: '', // 上传URL upload_name: '', // 图片或视频名称 @@ -261,7 +263,9 @@ export default { // this.endLoading() if (data) { this.adviceData = data - if (this.adviceData.replyContent !== '') { + if (this.adviceData.replyContent === '' || this.adviceData.replyContent === null) { + this.showConfirm = true + } else { this.showConfirm = false } } @@ -272,8 +276,9 @@ export default { }, removePic (file, fileList) { - - this.adviceData.govImgList.splice(this.adviceData.govImgList.findIndex(item => item.uid === file.uid), 1) + debugger + this.adviceData.govImgList.splice(this.adviceData.govImgList.findIndex(item => item === file.url), 1) + this.replayImgList.splice(this.replayImgList.findIndex(item => item.uid === file.uid), 1) }, @@ -282,7 +287,9 @@ export default { }, handleSuccess (response, file, fileList) { - this.adviceData.govImgList.push(file.url) + debugger + this.replayImgList.push(file) + this.adviceData.govImgList.push(response.data.url) }, @@ -295,8 +302,8 @@ export default { // } this.startLoading() - let url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/epmetuser/useradvice/advicedetail' - // let url = '/epmetuser/useradvice/advicedetail' + // let url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/epmetuser/useradvice/replyadvice' + let url = '/epmetuser/useradvice/replyadvice' // 表单对象 let _data = { @@ -323,6 +330,7 @@ export default { }) }, diaCancel () { + this.replayImgList = [] this.diaVisible = false }, // 开启加载动画