diff --git a/.env.development b/.env.development index fa857bf2..fd937c0d 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,7 @@ NODE_ENV=development # VUE_APP_API_SERVER = http://epmet-dev.elinkservice.cn:41080/api VUE_APP_API_SERVER = http://192.168.1.140/api +# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api # VUE_APP_API_SERVER = https://epdc-shibei.elinkservice.cn/api diff --git a/src/views/modules/communityParty/regionalParty/activitys.vue b/src/views/modules/communityParty/regionalParty/activitys.vue index 7f14586d..75a4d178 100644 --- a/src/views/modules/communityParty/regionalParty/activitys.vue +++ b/src/views/modules/communityParty/regionalParty/activitys.vue @@ -223,7 +223,6 @@ :close-on-click-modal="false" :close-on-press-escape="false" :title="formTitle" - :destroy-on-close="true" width="950px" top="5vh" class="dialog-h" @@ -429,6 +428,7 @@ export default { diaClose () { + this.$refs.ref_form.resetData() this.formShow = false }, @@ -449,6 +449,7 @@ export default { handleAdd () { this.formTitle = '新增' + this.formShow = true this.$nextTick(() => { this.$refs.ref_form.initForm('add', null) diff --git a/src/views/modules/communityParty/regionalParty/activitysForm.vue b/src/views/modules/communityParty/regionalParty/activitysForm.vue index fdbeb30a..efd2c776 100644 --- a/src/views/modules/communityParty/regionalParty/activitysForm.vue +++ b/src/views/modules/communityParty/regionalParty/activitysForm.vue @@ -258,7 +258,7 @@ export default { latitude: 120.38945519 //纬度 }, serviceList: [], - gridList: [], + // gridList: [], agencyId: '' } diff --git a/src/views/modules/shequzhili/csgltc/csglDetail.vue b/src/views/modules/shequzhili/csgltc/csglDetail.vue index b568e532..af3dff97 100644 --- a/src/views/modules/shequzhili/csgltc/csglDetail.vue +++ b/src/views/modules/shequzhili/csgltc/csglDetail.vue @@ -11,7 +11,7 @@ prop="name" label-width="150px" style="display: block"> - {{formData.name}} + {{formData.name}} - {{formData.categoryName}} + {{formData.categoryName}} - {{formData.areaCovered}} + {{formData.areaCovered}} - {{formData.capacity}} + {{formData.capacity}} - {{formData.address}} - - -
-
-
- 经度 - - - 纬度 - - -
+
+ {{formData.address}} +
+
@@ -118,7 +99,14 @@ export default { // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 initMap () { // 定义地图中心点坐标 - var center = new window.TMap.LatLng(36.0722275, 120.38945519) + let { latitude, longitude } = this.$store.state.user; + console.log('lat'+latitude+',lon'+longitude) + if (!latitude || latitude == "" || latitude == "0") { + latitude = 39.9088810666821; + longitude = 116.39743841556731; + } + // 定义地图中心点坐标 + var center = new window.TMap.LatLng(latitude, longitude); // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById('app'), { center: center, // 设置地图中心点坐标 diff --git a/src/views/modules/shequzhili/csgltc/csglForm.vue b/src/views/modules/shequzhili/csgltc/csglForm.vue index 63ab806f..38a681d2 100644 --- a/src/views/modules/shequzhili/csgltc/csglForm.vue +++ b/src/views/modules/shequzhili/csgltc/csglForm.vue @@ -65,7 +65,7 @@ :precision="2" :step="0.01" :min="0" - :max="9999" + :max="9600000" label="占地面积">平方公里
- + - - - - -
- -
-
- -
-
- - - 查询 -
-
-
- 经度 - - - 纬度 - - -
+ + 查询 +
@@ -201,8 +168,8 @@ export default { this.formData.icCityManagementId = icCityManagementId await this.loadFormData() } else { - map.setCenter(new TMap.LatLng(36.0722275, 120.38945519)) - this.setMarker(36.0722275, 120.38945519) + // map.setCenter(new TMap.LatLng(36.0722275, 120.38945519)) + // this.setMarker(36.0722275, 120.38945519) } this.endLoading() @@ -242,8 +209,9 @@ export default { data : this.cityManagement } this.formData = { ...data } - const lat = this.formData.latitude === null || this.formData.latitude === '' ? '' : this.formData.latitude; - const lon = this.formData.longitude === null || this.formData.longitude === '' ? '' : this.formData.longitude; + let { latitude, longitude } = this.$store.state.user; + const lat = this.formData.latitude === null || this.formData.latitude === '' ? latitude : this.formData.latitude; + const lon = this.formData.longitude === null || this.formData.longitude === '' ? longitude : this.formData.longitude; map.setCenter(new TMap.LatLng(lat,lon)) this.setMarker(lat,lon) } else { @@ -302,7 +270,15 @@ export default { // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 initMap () { // 定义地图中心点坐标 - var center = new window.TMap.LatLng(36.52799, 120.7553) + let { latitude, longitude } = this.$store.state.user; + console.log('lat'+latitude+',lon'+longitude) + if (!latitude || latitude == "" || latitude == "0") { + latitude = 39.9088810666821; + longitude = 116.39743841556731; + } + // 定义地图中心点坐标 + var center = new window.TMap.LatLng(latitude, longitude); + // var center = new window.TMap.LatLng(36.52799, 120.7553) // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById('app'), { center: center, // 设置地图中心点坐标 @@ -352,7 +328,7 @@ export default { // 在地图显示范围内以给定的关键字搜索地点 search .searchRectangle({ - keyword: this.keyWords, + keyword: this.formData.address, bounds: map.getBounds() }) .then((result) => { diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue b/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue index 42d9d9a1..8a257829 100644 --- a/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue +++ b/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue @@ -11,7 +11,7 @@ prop="name" label-width="150px" style="display: block"> - {{formData.name}} + {{formData.name}} - {{formData.categoryName}} + {{formData.categoryName}} - {{formData.areaCovered}} + {{formData.areaCovered}} - {{formData.capacity}} + {{formData.capacity}} - {{formData.address}} - - -
-
-
- 经度 - - - 纬度 - - -
+
+ {{formData.address}} +
diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue index 963de114..d19b6d3b 100644 --- a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue +++ b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue @@ -47,7 +47,7 @@ :precision="2" :step="0.01" :min="0" - :max="9999" + :max="9600000" label="占地面积">平方公里 - + - - - - -
- -
-
- -
-
- - - 查询 -
-
-
- 经度 - - - 纬度 - - -
+ + 查询 +
@@ -179,8 +149,8 @@ this.formData.icPublicServiceId = icPublicServiceId await this.loadFormData() } else { - map.setCenter(new TMap.LatLng(36.0722275, 120.38945519)) - this.setMarker(36.0722275, 120.38945519) + // map.setCenter(new TMap.LatLng(36.0722275, 120.38945519)) + // this.setMarker(36.0722275, 120.38945519) } this.endLoading() @@ -220,8 +190,9 @@ } this.formData = { ...data } - const lat = this.formData.latitude === null || this.formData.latitude === '' ? '' : this.formData.latitude; - const lon = this.formData.longitude === null || this.formData.longitude === '' ? '' : this.formData.longitude; + let { latitude, longitude } = this.$store.state.user; + const lat = this.formData.latitude === null || this.formData.latitude === '' ? latitude : this.formData.latitude; + const lon = this.formData.longitude === null || this.formData.longitude === '' ? longitude : this.formData.longitude; map.setCenter(new TMap.LatLng(lat, lon)) this.setMarker(lat, lon) } else { @@ -280,8 +251,14 @@ // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 initMap () { + let { latitude, longitude } = this.$store.state.user; + console.log('lat'+latitude+',lon'+longitude) + if (!latitude || latitude == "" || latitude == "0") { + latitude = 39.9088810666821; + longitude = 116.39743841556731; + } // 定义地图中心点坐标 - var center = new window.TMap.LatLng(36.0722275, 120.38945519) + var center = new window.TMap.LatLng(latitude, longitude); // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById('app'), { center: center, // 设置地图中心点坐标 @@ -331,7 +308,7 @@ // 在地图显示范围内以给定的关键字搜索地点 search .searchRectangle({ - keyword: this.keyWords, + keyword: this.formData.address, bounds: map.getBounds() }) .then((result) => { @@ -432,12 +409,12 @@ address: [ { required: true, message: '地址不能为空', trigger: 'blur' } ], - longitude: [ + /*longitude: [ { required: true, message: '坐标不能为空', trigger: 'blur' } ], latitude: [ { required: true, message: '坐标不能为空', trigger: 'blur' } - ] + ]*/ } }, diff --git a/src/views/modules/shequzhili/tuceng/zhonghe/base.vue b/src/views/modules/shequzhili/tuceng/zhonghe/base.vue index 09c84f99..58767a37 100644 --- a/src/views/modules/shequzhili/tuceng/zhonghe/base.vue +++ b/src/views/modules/shequzhili/tuceng/zhonghe/base.vue @@ -9,7 +9,19 @@ class="demo-form-inline" >
- + +
+ +
+
+ +
@@ -331,6 +344,15 @@ export default { optionsH: [], optionsD: [], optionsG: [], + orgOptions: [], + orgOptionProps:{ + multiple: false, + value: 'agencyId', + label: 'agencyName', + children: 'subAgencyList', + checkStrictly: true + }, + agencyIdArray:[], optionsWelfare: [ { @@ -344,6 +366,7 @@ export default { ], fmData: { + agencyId:"", gridId: "", villageId: "", buildId: "", @@ -410,6 +433,7 @@ export default { }, }, mounted() { + this.getOrgTreeList(); this.getGridList(); this.getValiheList(); this.getTableData(); @@ -465,6 +489,24 @@ export default { this.getHouseList(); }, + getOrgTreeList() { + const { user } = this.$store.state + this.$http + .post('/gov/org/customeragency/agencygridtree', {}) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } else { + console.log('获取组织树成功', res.data) + this.orgOptions=[] + this.orgOptions .push( res.data) + } + }) + .catch(() => { + return this.$message.error('网络错误') + }) + }, + getGridList() { const { user } = this.$store.state; this.$http @@ -489,7 +531,7 @@ export default { this.$http .post("/gov/org/icneighborhood/neighborhoodoption", { gridId: this.fmData.gridId, - agencyId: "", + agencyId: this.fmData.agencyId, // agencyId: user.agencyId }) .then(({ data: res }) => { @@ -579,62 +621,125 @@ export default { this.handleSearch(); }, + handleChangeAgency(val) { + let obj = this.$refs["myCascader"].getCheckedNodes()[0].data + + if (obj) { + if(obj.level === 'grid'){ + this.fmData.gridId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : ''; + this.fmData.agencyId='' + }else{ + this.fmData.agencyId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : ''; + this.fmData.gridId = '' + } + + }else{ + this.fmData.agencyId='' + this.fmData.gridId = '' + } + + + this.fmData.villageId = '' + this.fmData.buildId = '' + this.fmData.unitId = '' + this.fmData.homeId = '' + this.getValiheList() + }, + computeQueryParams() { const { pageSize, pageNo, elseParams, fmData } = this; + let conditions=[] + if(fmData.agencyId){ + conditions.push({ + queryType: "like", + tableName: "ic_resi_user", + columnName: "AGENCY_ID", + columnValue: [fmData.agencyId], + },) + } - return { - formCode: "resi_base_info", - pageSize, - pageNo, - conditions: [ + if(fmData.gridId){ + conditions.push( { queryType: "equal", tableName: "ic_resi_user", columnName: "GRID_ID", columnValue: [fmData.gridId], - }, + } + ) + } + + if(fmData.villageId){ + conditions.push( { queryType: "equal", tableName: "ic_resi_user", columnName: "VILLAGE_ID", columnValue: [fmData.villageId], - }, - { + } + ) + } + + if(fmData.buildId){ + conditions.push({ queryType: "equal", tableName: "ic_resi_user", columnName: "BUILD_ID", columnValue: [fmData.buildId], - }, - { + }) + } + + if(fmData.unitId){ + conditions.push({ queryType: "equal", tableName: "ic_resi_user", columnName: "UNIT_ID", columnValue: [fmData.unitId], - }, - { + }) + } + + if(fmData.homeId){ + conditions.push({ queryType: "equal", tableName: "ic_resi_user", columnName: "HOME_ID", columnValue: [fmData.homeId], - }, - { + }) + } + + if(fmData.name){ + conditions.push({ queryType: "like", tableName: "ic_resi_user", columnName: "NAME", columnValue: [fmData.name], - }, - { + }) + } + if(fmData.mobile){ + conditions.push({ queryType: "like", tableName: "ic_resi_user", columnName: "MOBILE", columnValue: [fmData.mobile], - }, - { + }) + } + if(fmData.idCard){ + conditions.push({ queryType: "like", tableName: "ic_resi_user", columnName: "ID_CARD", columnValue: [fmData.idCard], - }, + }) + } + + return { + formCode: "resi_base_info", + pageSize, + pageNo, + conditions: [ + + ...conditions, + ...elseParams, ], }; diff --git a/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue b/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue index 6eaef99d..5535dc57 100644 --- a/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue +++ b/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue @@ -305,7 +305,7 @@
-
+
企事业信息
场所类型: {{ selInfo.placeTypeName }} @@ -782,10 +782,11 @@ const vueGis = { this.loadGroupRent(info) } + if (info.placeType === 'party_unit') {//来自联建单位的机关直属部门 this.loadPartyUnit(info) } - if (info.placeType === 'enterprise_partrol') {//来自企事业查询的 + if (info.placeType === 'enterprise_patrol') {//来自企事业查询的 this.loadEnterprisePartrol(info) } @@ -1009,10 +1010,10 @@ const vueGis = { }, async loadEnterprisePartrol (info) { - const url = "/gov/org/enterprise/detail" + const url = "/gov/org/enterprise/detail/" + info.id // const url = "http://yapi.elinkservice.cn/mock/245/gov/org/enterprise/detail" - const { data, code, msg } = await requestGet(url) + const { data, code, msg } = await requestPost(url) if (code === 0) { // debugger