Browse Source

更新图片上传地址

epdc-admin-dangqun
fengyu 3 years ago
parent
commit
1ffb8c359d
  1. 31
      src/views/modules/events/item-deal-detail-view.vue

31
src/views/modules/events/item-deal-detail-view.vue

@ -240,7 +240,7 @@
<span>您反映的诉求属于 {{postDataForm.handleAdvice}} 情形不属于平台受理范围感谢您对北尚诉办台的持 <span>您反映的诉求属于 {{postDataForm.handleAdvice}} 情形不属于平台受理范围感谢您对北尚诉办台的持
</span> </span>
</el-form-item> --> </el-form-item> -->
<el-form-item label="不予受理原因:" prop="handleAdviceRadios" v-if="isShowDeal"> <el-form-item label="不予受理原因:" prop="handleAdvice" v-if="isShowDeal">
<el-radio-group v-model="postDataForm.handleAdviceRadios" class="handleAdvice"> <el-radio-group v-model="postDataForm.handleAdviceRadios" class="handleAdvice">
<el-radio label="历史遗留暂不具备解决条件的事项">1. 历史遗留暂不具备解决条件的事项</el-radio> <el-radio label="历史遗留暂不具备解决条件的事项">1. 历史遗留暂不具备解决条件的事项</el-radio>
<el-radio label="依法应当通过诉讼、仲裁、行政复议解决的事项">2. 依法应当通过诉讼仲裁行政复议解决的事项</el-radio> <el-radio label="依法应当通过诉讼、仲裁、行政复议解决的事项">2. 依法应当通过诉讼仲裁行政复议解决的事项</el-radio>
@ -265,13 +265,14 @@
<el-input v-model="postDataForm.handlePeopleMobile"></el-input> <el-input v-model="postDataForm.handlePeopleMobile"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="处置照片:" v-loading="loadingIn" prop="handleImagesPC"> <el-form-item label="处置照片:" v-loading="loadingIn" prop="handleImagesPC" >
<el-upload <el-upload
:action="uploadUrl" :action="uploadUrl"
:disabled="isAble" :disabled="isAble"
:class="{hide:hideUploadIn}" :class="{hide:hideUploadIn}"
list-type="picture-card" list-type="picture-card"
:file-list="postDataForm.handleImagesPC" :file-list="postDataForm.handleImagesPC"
:limit=3 :limit=3
:on-preview="handlePictureCardPreviewIn" :on-preview="handlePictureCardPreviewIn"
:on-remove="handleRemoveIn" :on-remove="handleRemoveIn"
@ -283,6 +284,8 @@
</el-upload> </el-upload>
<div><font color="gray">1~3张图</font></div> <div><font color="gray">1~3张图</font></div>
</el-form-item> </el-form-item>
<el-form-item label="满意度评价:" <el-form-item label="满意度评价:"
prop="evaluateDeptDTOS" prop="evaluateDeptDTOS"
v-if="evaluateDeptDTOSVisible"> v-if="evaluateDeptDTOSVisible">
@ -418,7 +421,7 @@ export default {
handlerDeptIdRule: '', handlerDeptIdRule: '',
voice: '' voice: ''
}, },
isAble: false, isAble: true,
previewImgList: [], previewImgList: [],
deptResult: [], deptResult: [],
commentsDTOs: [], commentsDTOs: [],
@ -622,11 +625,29 @@ export default {
} }
}, },
watch: { watch: {
'typeKey':function(val){
this.isAble = true;
if(val == 'grid_party'){
this.isAble = false;
this.uploadUrl = `${
window.SITE_CONFIG['apiURL']
}/oss/file/upload/1?token=${Cookies.get('token')}`;
}else if(val == 'community_party'){
this.isAble = false;
this.uploadUrl = `${
window.SITE_CONFIG['apiURL']
}/oss/file/upload/2?token=${Cookies.get('token')}`
}
this.postDataForm.handleImagesPC = [];
},
'postDataForm.handleAdvice': function (val) { 'postDataForm.handleAdvice': function (val) {
this.dataForm.handleAdvice = val this.dataForm.handleAdvice = val
}, },
'postDataForm.handleAdviceRadios': function (val) { 'postDataForm.handleAdviceRadios': function (val) {
this.postDataForm.handleAdvice = val this.postDataForm.handleAdvice = val
this.dataForm.handleAdviceRadios = val;
}, },
'postDataForm.outHandleAdvice': function (val) { 'postDataForm.outHandleAdvice': function (val) {
@ -641,7 +662,6 @@ export default {
'postDataForm.handleCategoryShow': function (val) { 'postDataForm.handleCategoryShow': function (val) {
if (this.typeKey == 'community_party') { if (this.typeKey == 'community_party') {
if (val == 6) { if (val == 6) {
this.isShowDeal = true this.isShowDeal = true
this.showAdvice = false this.showAdvice = false
this.isWhistle = false this.isWhistle = false
@ -889,6 +909,7 @@ export default {
) { ) {
return this.$message.error('请先选择操作人部门!') return this.$message.error('请先选择操作人部门!')
} }
console.log(this.dataForm)
// //
// if (this.postDataForm.handleCategory === 11) { // if (this.postDataForm.handleCategory === 11) {
// this.hideResident = true; // this.hideResident = true;
@ -958,7 +979,7 @@ export default {
this.map.enableScrollWheelZoom(true) this.map.enableScrollWheelZoom(true)
}, },
init () { init () {
this.isAble = false this.isAble = true;
this.$nextTick(() => { this.$nextTick(() => {
if (this.dataForm.id) { if (this.dataForm.id) {
this.postDataForm.handleAdvice = '' this.postDataForm.handleAdvice = ''

Loading…
Cancel
Save