|
|
|
@ -90,7 +90,7 @@ |
|
|
|
style="width:100%;margin-top:10px">回复详情</el-tag> |
|
|
|
|
|
|
|
<div class="div_form" |
|
|
|
v-if="adviceData.replyContent===''"> |
|
|
|
v-if="showConfirm"> |
|
|
|
<el-form-item prop="replyContent" |
|
|
|
label="回复内容" |
|
|
|
label-width="100px" |
|
|
|
@ -131,6 +131,7 @@ |
|
|
|
list-type="picture-card" |
|
|
|
:on-exceed="exceedPic" |
|
|
|
:on-remove="removePic" |
|
|
|
:file-list="replayImgList" |
|
|
|
:on-success="handleSuccess" |
|
|
|
:limit="3"> |
|
|
|
<span class="font-14">选择图片</span> |
|
|
|
@ -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 |
|
|
|
}, |
|
|
|
// 开启加载动画 |
|
|
|
|