Browse Source

图片回填 地图重复打开没有加载

feature
mk 1 year ago
parent
commit
0c87c87dc8
  1. 3
      src/views/modules/volunteer/activityArchive/add.vue
  2. 8
      src/views/modules/volunteer/activityArchive/index.vue
  3. 18
      src/views/modules/volunteer/activityArchive/select.vue

3
src/views/modules/volunteer/activityArchive/add.vue

@ -600,6 +600,9 @@ export default {
},
},
destroyed () {
map = null
}
}
</script>

8
src/views/modules/volunteer/activityArchive/index.vue

@ -89,12 +89,12 @@
</el-pagination>
</div>
<el-dialog :visible.sync="add" :close-on-click-modal="false" :close-on-press-escape="false" title="新增"
width="1000px" top="10vh" class="dialog-h" @closed="AddClose">
<add v-if="add" :list="fmData" @AddClose="AddClose" />
width="1000px" top="10vh" class="dialog-h" @closed="AddClose" v-if="add">
<add :list="fmData" @AddClose="AddClose" />
</el-dialog>
<el-dialog :visible.sync="showselect" :close-on-click-modal="false" :close-on-press-escape="false" title="修改"
width="1000px" top="10vh" class="dialog-h" @closed="updateClose">
<selecthande v-if="showselect" :list="fmData" @updateClose="updateClose" />
width="1000px" top="10vh" class="dialog-h" @closed="updateClose" v-if="showselect" >
<selecthande :list="fmData" @updateClose="updateClose" />
</el-dialog>
<el-dialog :visible.sync="showdeltail" :close-on-click-modal="false" :close-on-press-escape="false" title="查看"
width="1000px" top="10vh" class="dialog-h" @closed="selectClose">

18
src/views/modules/volunteer/activityArchive/select.vue

@ -24,8 +24,8 @@
<el-upload :headers="$getElUploadHeaders()" class="avatar-uploader" :action="uploadUrl"
:show-file-list="true" :data="{ customerId: customerId }" :file-list="formData.activityImgs"
:on-preview="handleImgPreview" :on-success="handleImgSuccess" :on-remove="handleImgRemove"
:on-exceed="handleImgExceed" :before-upload="beforeImgUpload" list-type="picture-card" :limit="1">
<i class="el-icon-plus avatar-uploader-icon" style="width: 50px;height: 50px;"></i> </el-upload>
:on-exceed="handleImgExceed" :before-upload="beforeImgUpload" list-type="picture-card" >
<i class="el-icon-plus avatar-uploader-icon" style="width: 50px;height: 50px;" ></i> </el-upload>
</div>
</el-form-item>
@ -254,7 +254,6 @@ export default {
// this.startLoading()
// await this.loadInfo()
// this.endLoading()
console.log(this.list,"dsfslfjl");
this.getOrgTreeList()
},
@ -271,15 +270,12 @@ export default {
async getTableData() {
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/project/project-list";
const url = `/voluntary/activityInfo/detail/${this.list.id}`;
let params = {
}
requestGet(url, params).then((res) => {
requestGet(url).then((res) => {
if (res.code == 0) {
this.formData=res.data;
this.formData.sponsors=res.data.sponsors,
this.searchValue=res.data.address
this.formData.activityImgs=res.data.imgs
this.formData.activityImgs=[{url:res.data.imgs}]
} else {
this.$message.error(res.msg);
@ -523,9 +519,6 @@ export default {
this.activityImgs.push(res.data.url);
this.formData.imgs=this.activityImgs[0]
console.log( this.formData.imgs," this.formData.imgs");
} else {
this.$message.error(res.msg);
}
@ -640,6 +633,9 @@ export default {
}
},
destroyed () {
map = null
}
}
</script>

Loading…
Cancel
Save