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> </script>

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

@ -89,12 +89,12 @@
</el-pagination> </el-pagination>
</div> </div>
<el-dialog :visible.sync="add" :close-on-click-modal="false" :close-on-press-escape="false" title="新增" <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"> width="1000px" top="10vh" class="dialog-h" @closed="AddClose" v-if="add">
<add v-if="add" :list="fmData" @AddClose="AddClose" /> <add :list="fmData" @AddClose="AddClose" />
</el-dialog> </el-dialog>
<el-dialog :visible.sync="showselect" :close-on-click-modal="false" :close-on-press-escape="false" title="修改" <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"> width="1000px" top="10vh" class="dialog-h" @closed="updateClose" v-if="showselect" >
<selecthande v-if="showselect" :list="fmData" @updateClose="updateClose" /> <selecthande :list="fmData" @updateClose="updateClose" />
</el-dialog> </el-dialog>
<el-dialog :visible.sync="showdeltail" :close-on-click-modal="false" :close-on-press-escape="false" title="查看" <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"> 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" <el-upload :headers="$getElUploadHeaders()" class="avatar-uploader" :action="uploadUrl"
:show-file-list="true" :data="{ customerId: customerId }" :file-list="formData.activityImgs" :show-file-list="true" :data="{ customerId: customerId }" :file-list="formData.activityImgs"
:on-preview="handleImgPreview" :on-success="handleImgSuccess" :on-remove="handleImgRemove" :on-preview="handleImgPreview" :on-success="handleImgSuccess" :on-remove="handleImgRemove"
:on-exceed="handleImgExceed" :before-upload="beforeImgUpload" list-type="picture-card" :limit="1"> :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> <i class="el-icon-plus avatar-uploader-icon" style="width: 50px;height: 50px;" ></i> </el-upload>
</div> </div>
</el-form-item> </el-form-item>
@ -254,7 +254,6 @@ export default {
// this.startLoading() // this.startLoading()
// await this.loadInfo() // await this.loadInfo()
// this.endLoading() // this.endLoading()
console.log(this.list,"dsfslfjl");
this.getOrgTreeList() this.getOrgTreeList()
}, },
@ -271,15 +270,12 @@ export default {
async getTableData() { async getTableData() {
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/project/project-list"; // const url = "http://yapi.elinkservice.cn/mock/245/gov/project/project/project-list";
const url = `/voluntary/activityInfo/detail/${this.list.id}`; const url = `/voluntary/activityInfo/detail/${this.list.id}`;
let params = { requestGet(url).then((res) => {
}
requestGet(url, params).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.formData=res.data; this.formData=res.data;
this.formData.sponsors=res.data.sponsors, this.formData.sponsors=res.data.sponsors,
this.searchValue=res.data.address this.searchValue=res.data.address
this.formData.activityImgs=res.data.imgs this.formData.activityImgs=[{url:res.data.imgs}]
} else { } else {
this.$message.error(res.msg); this.$message.error(res.msg);
@ -523,9 +519,6 @@ export default {
this.activityImgs.push(res.data.url); this.activityImgs.push(res.data.url);
this.formData.imgs=this.activityImgs[0] this.formData.imgs=this.activityImgs[0]
console.log( this.formData.imgs," this.formData.imgs"); console.log( this.formData.imgs," this.formData.imgs");
} else { } else {
this.$message.error(res.msg); this.$message.error(res.msg);
} }
@ -640,6 +633,9 @@ export default {
} }
},
destroyed () {
map = null
} }
} }
</script> </script>

Loading…
Cancel
Save