From 6d9492e4b061f51e994488f8a0b7d7085484cd9b Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 11 Mar 2022 15:28:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/category/addCategory.vue | 5 +- .../communityService/dqfwzx/cpts/edit.vue | 403 +++++++----------- .../modules/communityService/dqfwzx/index.vue | 212 +++++---- .../ninePlaces/inspect/inspect.vue | 20 +- .../ninePlaces/places/places.vue | 12 +- .../communityService/ninePlaces/team/team.vue | 25 +- .../modules/workPc/guidance/guidanceList.vue | 144 ++++--- 7 files changed, 363 insertions(+), 458 deletions(-) diff --git a/src/views/modules/base/category/addCategory.vue b/src/views/modules/base/category/addCategory.vue index b1667e89..d83e5d3e 100644 --- a/src/views/modules/base/category/addCategory.vue +++ b/src/views/modules/base/category/addCategory.vue @@ -35,9 +35,10 @@
- 取消 - 确定
diff --git a/src/views/modules/communityService/dqfwzx/cpts/edit.vue b/src/views/modules/communityService/dqfwzx/cpts/edit.vue index 4aeab7ba..7f7a747c 100644 --- a/src/views/modules/communityService/dqfwzx/cpts/edit.vue +++ b/src/views/modules/communityService/dqfwzx/cpts/edit.vue @@ -1,281 +1,227 @@ @@ -292,7 +238,7 @@ var infoWindowList; let loading; // 加载动画 export default { - data() { + data () { return { uploadUlr: window.SITE_CONFIG["apiURL"] + "/oss/file/uploadqrcodeV2", customerId: "", @@ -336,7 +282,7 @@ export default { }, components: {}, computed: { - dataRule() { + dataRule () { return { centerName: [ { required: true, message: "中心名称 不能为空", trigger: "blur" }, @@ -372,13 +318,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; @@ -387,7 +333,7 @@ export default { } }, - beforeImgUpload(file) { + beforeImgUpload (file) { const isLt1M = file.size / 1024 / 1024 < 1; if (!isLt1M) { @@ -396,7 +342,7 @@ export default { return isLt1M; }, - handleAddStaff() { + handleAddStaff () { this.dataForm.matterList = [ ...this.dataForm.matterList, { @@ -408,7 +354,7 @@ export default { }, ]; }, - async handleDelStaff(index) { + async handleDelStaff (index) { const { matterList } = this.dataForm; let list = [...matterList]; let delItem = list.splice(index, 1); @@ -425,7 +371,7 @@ export default { this.dataForm.matterList = list; }, - async delStaff(matterId) { + async delStaff (matterId) { const { data, code, msg } = await requestPost( "/gov/org/icpartyservicecenter/delmatter", { @@ -435,7 +381,7 @@ export default { return code === 0; }, // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 - initMap() { + initMap () { // 定义地图中心点坐标 var center = new window.TMap.LatLng(36.0722275, 120.38945519); // 定义map变量,调用 TMap.Map() 构造函数创建地图 @@ -461,7 +407,7 @@ export default { this.handleMoveCenter(); }, - setMarker(lat, lng) { + setMarker (lat, lng) { markers.setGeometries([]); markers.add([ { @@ -475,7 +421,7 @@ export default { ]); }, - handleSearchMap() { + handleSearchMap () { infoWindowList.forEach((infoWindow) => { infoWindow.close(); }); @@ -503,7 +449,7 @@ export default { }); }, - handleMoveCenter() { + handleMoveCenter () { //修改地图中心点 const center = map.getCenter(); const lat = center.getLat(); @@ -513,7 +459,7 @@ export default { this.setMarker(lat, lng); }, - async initForm(type, row) { + async initForm (type, row) { this.$refs.ref_form.resetFields(); this.formType = type; @@ -525,7 +471,7 @@ export default { } }, - async handleComfirm() { + async handleComfirm () { this.btnDisable = true; setTimeout(() => { this.btnDisable = false; @@ -540,7 +486,7 @@ export default { }); }, - async submit() { + async submit () { let url = ""; if (this.formType === "add") { url = "/gov/org/icpartyservicecenter/addpartyservicecenter"; @@ -589,11 +535,11 @@ export default { } }, - handleCancle() { + handleCancle () { this.resetData(); this.$emit("dialogCancle"); }, - resetData() { + resetData () { this.partyServiceCenterId = ""; this.dataForm = { centerName: "", @@ -611,7 +557,7 @@ export default { }; }, // 开启加载动画 - startLoading() { + startLoading () { loading = Loading.service({ lock: true, // 是否锁定 text: "正在加载……", // 加载中需要显示的文字 @@ -619,7 +565,7 @@ export default { }); }, // 结束加载动画 - endLoading() { + endLoading () { // clearTimeout(timer); if (loading) { loading.close(); @@ -629,40 +575,11 @@ export default { }; - + - + diff --git a/src/views/modules/communityService/dqfwzx/index.vue b/src/views/modules/communityService/dqfwzx/index.vue index c081cfe6..6cdb5bf9 100644 --- a/src/views/modules/communityService/dqfwzx/index.vue +++ b/src/views/modules/communityService/dqfwzx/index.vue @@ -2,26 +2,23 @@
- 新增 + 新增
-
+
-
-
+
+
修改
{{ item.centerName }}
@@ -51,104 +48,85 @@ >
--> -
- - - - +
+ + + + - + - +
-
- +
+
- - + + - - + + - - + +
@@ -169,7 +147,7 @@ let loading; // 加载动画 export default { components: { editForm, orderForm, orderList }, - data() { + data () { return { openSearch: false, @@ -186,23 +164,23 @@ export default { }; }, computed: { - maxTableHeight() { + maxTableHeight () { return this.clientHeight - 410; }, ...mapGetters(["clientHeight"]), }, watch: { - currentIndex() { + currentIndex () { this.setMap(); }, }, - async mounted() { + async mounted () { await this.loadAgency(); await this.getTableData(); }, methods: { // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 - initMap() { + initMap () { // 定义地图中心点坐标 var center = new window.TMap.LatLng(36.0722275, 120.38945519); // 定义map变量,调用 TMap.Map() 构造函数创建地图 @@ -222,7 +200,7 @@ export default { infoWindowList = Array(10); }, - setMarker(lat, lng, centerName) { + setMarker (lat, lng, centerName) { markers.setGeometries([]); markers.add([ { @@ -236,11 +214,11 @@ export default { ]); }, - setCenter(lat, lng) { + setCenter (lat, lng) { map.setCenter(new window.TMap.LatLng(lat, lng)); }, - setMap() { + setMap () { const { tableData, currentIndex } = this; let item = tableData[currentIndex]; if (item) { @@ -249,24 +227,24 @@ export default { } }, - handleClose() { + handleClose () { this.formShow = false; }, - handleCloseForm2() { + handleCloseForm2 () { this.form2Show = false; }, - handleCloseOrderList() { + handleCloseOrderList () { this.orderListShow = false; }, - async handleAdd() { + async handleAdd () { this.formShow = true; await nextTick(); console.log(this.$refs); this.$refs.eleEditForm.initForm("add"); }, - async handleWatch() { + async handleWatch () { this.formShow = true; await nextTick(); this.$refs.eleEditForm.initForm( @@ -275,7 +253,7 @@ export default { ); }, - async handleEdit() { + async handleEdit () { this.formShow = true; await nextTick(); this.$refs.eleEditForm.initForm( @@ -284,12 +262,12 @@ export default { ); }, - handleEditSuccess() { + handleEditSuccess () { this.handleClose(); this.getTableData(); }, - async handleOrder(index) { + async handleOrder (index) { this.form2Show = true; await nextTick(); this.$refs.eleOrderForm.initForm( @@ -299,18 +277,18 @@ export default { ); }, - handleOrderSuccess() { + handleOrderSuccess () { this.handleCloseForm2(); }, - async handleOrderList(index) { + async handleOrderList (index) { this.orderListShow = true; await nextTick(0); console.log(this.$refs); this.$refs.eleOrderList.init(this.tableData[this.currentIndex], index); }, - async handleDel(rowData, rowIndex) { + async handleDel (rowData, rowIndex) { console.log(rowData, rowIndex); const url = "/heart/iccommunityselforganization/delcommunityselforganization"; @@ -328,7 +306,7 @@ export default { } }, - async getTableData() { + async getTableData () { const oldLen = this.tableData.length; const url = "/gov/org/icpartyservicecenter/partyservicecenterlist"; const { data, code, msg } = await requestPost(url, { @@ -349,7 +327,7 @@ export default { }, //加载组织 - async loadAgency() { + async loadAgency () { const url = "/epmetuser/customerstaff/staffbasicinfo"; let params = {}; diff --git a/src/views/modules/communityService/ninePlaces/inspect/inspect.vue b/src/views/modules/communityService/ninePlaces/inspect/inspect.vue index bbb6a152..0a75b184 100644 --- a/src/views/modules/communityService/ninePlaces/inspect/inspect.vue +++ b/src/views/modules/communityService/ninePlaces/inspect/inspect.vue @@ -84,17 +84,17 @@ 查询 重置
- 新增 @@ -180,18 +180,18 @@ class="operate"> @@ -546,8 +546,6 @@ export default { }