|
|
@ -50,7 +50,7 @@ |
|
|
|
<div><font color="gray">1~3张图</font></div> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form v-if="replyState" :model="dataForm" :rules="dataRule" ref="dataForm" :label-width="$i18n.locale === 'en-US' ? '120px' : '80px'" :disabled="pageDisabled"> |
|
|
|
<el-form v-if="replyState" :model="dataForm" :rules="dataRule" ref="dataForm" :label-width="$i18n.locale === 'en-US' ? '120px' : '80px'" :disabled="pageDisabled1"> |
|
|
|
<el-form-item label="回复内容" prop="replyContent" label-width="100px"> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
@ -65,7 +65,7 @@ |
|
|
|
<el-upload |
|
|
|
ref="upload" |
|
|
|
:action="uploadUrl" |
|
|
|
:class="{hide:hideUpload}" |
|
|
|
:class="{hide:hideUpload1}" |
|
|
|
list-type="picture-card" |
|
|
|
:file-list="dataForm.replyPicture" |
|
|
|
:limit=3 |
|
|
@ -93,7 +93,7 @@ |
|
|
|
<el-form> |
|
|
|
<el-form-item style="margin-left:35px;"> |
|
|
|
<el-button type="primary" @click="backToUserRelationList">{{"返回"}}</el-button> |
|
|
|
<el-button v-if="!pageDisabled" type="primary" :disabled="isAble" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button> |
|
|
|
<el-button v-if="!pageDisabled1" type="primary" :disabled="isAble" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-card> |
|
|
@ -130,6 +130,7 @@ export default { |
|
|
|
meetTypeArr: [], |
|
|
|
dailyTypeArr: [], |
|
|
|
hideUpload: false, |
|
|
|
hideUpload1:false, |
|
|
|
pageDisabled: false, |
|
|
|
// imgUrlArr: [], |
|
|
|
mapSelectVisible: false, |
|
|
@ -137,6 +138,7 @@ export default { |
|
|
|
loading: false, |
|
|
|
dialogImageUrl: '', |
|
|
|
dialogVisible: false, |
|
|
|
pageDisabled1:false, |
|
|
|
options: [] |
|
|
|
} |
|
|
|
}, |
|
|
@ -155,6 +157,7 @@ export default { |
|
|
|
mounted () { |
|
|
|
this.pageDisabled = this.$route.query.disabled |
|
|
|
this.hideUpload = this.$route.query.disabled |
|
|
|
this.hideUpload1 = this.$route.query.disabled |
|
|
|
if (this.$route.query.id !== '' && this.$route.query.id != null) { |
|
|
|
this.dataForm.id = this.$route.query.id |
|
|
|
this.getInfo() |
|
|
@ -182,15 +185,19 @@ export default { |
|
|
|
let infoObj = res.data.state ; |
|
|
|
if (infoObj == '0' && this.pageDisabled == true){ //表示是留言 查看详情状态 就显示留言内容 |
|
|
|
this.pove = true; |
|
|
|
this.replyState = false |
|
|
|
this.replyState = false; |
|
|
|
this.pageDisabled1 = true; |
|
|
|
}else if (infoObj == '0' && this.pageDisabled == false){ //表示是留言 回复状态 就显示回复框 |
|
|
|
this.pove = false; |
|
|
|
this.pageDisabled = true; |
|
|
|
this.pove = true; |
|
|
|
this.replyState = true; |
|
|
|
this.hideUpload = true; |
|
|
|
this.dataForm.boradId = this.$route.query.id; |
|
|
|
}else if (infoObj == '1' && this.pageDisabled == true){ //表示留言已经回复 的 查看详情状态 显示全部信息 |
|
|
|
this.pove = true; |
|
|
|
this.replyState = true; |
|
|
|
this.replyInfoState = true; |
|
|
|
this.pageDisabled1 = true; |
|
|
|
} |
|
|
|
this.dataForm = { |
|
|
|
...this.dataForm, |
|
|
@ -232,6 +239,7 @@ export default { |
|
|
|
} |
|
|
|
this.dataForm.replyPicture.push({ url: res.data.imgUrl, breviaryUrl: res.data.thumbnail, fileType: 1 }) |
|
|
|
this.hideUpload = this.dataForm.replyPicture.length >= 3 |
|
|
|
this.hideUpload1 = this.dataForm.replyPicture.length >= 3 |
|
|
|
}, |
|
|
|
handleErrorRemove (file) { |
|
|
|
// 实现缩略图模板时删除文件 |
|
|
@ -260,6 +268,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.hideUpload = this.dataForm.replyPicture.length >= 3 |
|
|
|
this.hideUpload1 = this.dataForm.replyPicture.length >= 3 |
|
|
|
}, |
|
|
|
beforeAvatarUpload (file) { |
|
|
|
if (this.dataForm.replyPicture.length === 3) { |
|
|
|