From 6a5daf8c6a050ba8ea3984cbd8b88c7002d13999 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Thu, 14 Apr 2022 09:47:24 +0800 Subject: [PATCH] fsfds2 --- .../communityService/dqfwzx/cpts/edit.vue | 370 ++++++++++-------- .../modules/communityService/dqfwzx/index.vue | 2 +- 2 files changed, 215 insertions(+), 157 deletions(-) diff --git a/src/views/modules/communityService/dqfwzx/cpts/edit.vue b/src/views/modules/communityService/dqfwzx/cpts/edit.vue index 0138d796..54551433 100644 --- a/src/views/modules/communityService/dqfwzx/cpts/edit.vue +++ b/src/views/modules/communityService/dqfwzx/cpts/edit.vue @@ -1,227 +1,282 @@ @@ -238,7 +293,7 @@ var infoWindowList; let loading; // 加载动画 export default { - data () { + data() { return { uploadUlr: window.SITE_CONFIG["apiURL"] + "/oss/file/uploadqrcodeV2", customerId: "", @@ -282,7 +337,7 @@ export default { }, components: {}, computed: { - dataRule () { + dataRule() { return { centerName: [ { required: true, message: "中心名称 不能为空", trigger: "blur" }, @@ -318,13 +373,13 @@ export default { props: {}, watch: {}, - async mounted () { + async mounted() { this.customerId = localStorage.getItem("customerId"); this.initMap(); }, methods: { - handleImgSuccess (index, res, file) { + handleImgSuccess(index, res, file) { if (res.code === 0 && res.msg === "success") { console.log("res.data.url", res.data.url); this.dataForm.matterList[index].matterImg = res.data.url; @@ -333,7 +388,7 @@ export default { } }, - beforeImgUpload (file) { + beforeImgUpload(file) { const isLt1M = file.size / 1024 / 1024 < 1; if (!isLt1M) { @@ -342,7 +397,7 @@ export default { return isLt1M; }, - handleAddStaff () { + handleAddStaff() { this.dataForm.matterList = [ ...this.dataForm.matterList, { @@ -354,7 +409,7 @@ export default { }, ]; }, - async handleDelStaff (index) { + async handleDelStaff(index) { const { matterList } = this.dataForm; let list = [...matterList]; let delItem = list.splice(index, 1); @@ -371,7 +426,7 @@ export default { this.dataForm.matterList = list; }, - async delStaff (matterId) { + async delStaff(matterId) { const { data, code, msg } = await requestPost( "/gov/org/icpartyservicecenter/delmatter", { @@ -381,7 +436,7 @@ export default { return code === 0; }, // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 - initMap () { + initMap() { // 定义地图中心点坐标 var center = new window.TMap.LatLng(36.0722275, 120.38945519); // 定义map变量,调用 TMap.Map() 构造函数创建地图 @@ -407,7 +462,7 @@ export default { this.handleMoveCenter(); }, - setMarker (lat, lng) { + setMarker(lat, lng) { markers.setGeometries([]); markers.add([ { @@ -421,7 +476,7 @@ export default { ]); }, - handleSearchMap () { + handleSearchMap() { infoWindowList.forEach((infoWindow) => { infoWindow.close(); }); @@ -449,7 +504,7 @@ export default { }); }, - handleMoveCenter () { + handleMoveCenter() { //修改地图中心点 const center = map.getCenter(); const lat = center.getLat(); @@ -459,7 +514,7 @@ export default { this.setMarker(lat, lng); }, - async initForm (type, row) { + async initForm(type, row) { this.$refs.ref_form.resetFields(); this.formType = type; @@ -471,7 +526,7 @@ export default { } }, - async handleComfirm () { + async handleComfirm() { this.btnDisable = true; setTimeout(() => { this.btnDisable = false; @@ -486,7 +541,7 @@ export default { }); }, - async submit () { + async submit() { let url = ""; if (this.formType === "add") { url = "/gov/org/icpartyservicecenter/addpartyservicecenter"; @@ -535,11 +590,11 @@ export default { } }, - handleCancle () { + handleCancle() { this.resetData(); this.$emit("dialogCancle"); }, - resetData () { + resetData() { this.partyServiceCenterId = ""; this.dataForm = { centerName: "", @@ -557,7 +612,7 @@ export default { }; }, // 开启加载动画 - startLoading () { + startLoading() { loading = Loading.service({ lock: true, // 是否锁定 text: "正在加载……", // 加载中需要显示的文字 @@ -565,7 +620,7 @@ export default { }); }, // 结束加载动画 - endLoading () { + endLoading() { // clearTimeout(timer); if (loading) { loading.close(); @@ -575,23 +630,28 @@ export default { }; - - - diff --git a/src/views/modules/communityService/dqfwzx/index.vue b/src/views/modules/communityService/dqfwzx/index.vue index 8173f652..d486b845 100644 --- a/src/views/modules/communityService/dqfwzx/index.vue +++ b/src/views/modules/communityService/dqfwzx/index.vue @@ -106,7 +106,7 @@ :close-on-click-modal="false" :close-on-press-escape="false" :title="formTitle" - width="850px" + width="1150px" top="5vh" class="dialog-h" @closed="handleClose"