From 9d2b47ae33396ae90fa1bcd33ff4a6715e3267c9 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Thu, 23 Jun 2022 09:45:49 +0800
Subject: [PATCH 1/6] =?UTF-8?q?=E6=94=B9=E6=94=B9=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/cpts/base/cpts/edit.vue | 12 +++++++++---
.../shequzhili/tuceng/anquan/xuncha/cpts/record.vue | 1 +
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/cpts/base/cpts/edit.vue b/src/views/modules/cpts/base/cpts/edit.vue
index 47bbf6b4f..0b81cbc1a 100644
--- a/src/views/modules/cpts/base/cpts/edit.vue
+++ b/src/views/modules/cpts/base/cpts/edit.vue
@@ -265,7 +265,11 @@
-
+
@@ -431,8 +435,10 @@ export default {
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
initMap(item) {
+ const { latitude = 39.79069, longitude = 116.506907 } =
+ this.$store.state.user;
// 定义地图中心点坐标
- 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, // 设置地图中心点坐标
@@ -545,7 +551,7 @@ export default {
console.log("------------------------------------info", this.fmData);
await nextTick(800);
- if (map) {
+ if (map && data.latitude) {
map.setCenter(new TMap.LatLng(data.latitude, data.longitude));
}
} else {
diff --git a/src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue b/src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue
index bd6c85557..7c3dcd32c 100644
--- a/src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue
+++ b/src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue
@@ -224,6 +224,7 @@
v-if="formType == 'edit'"
title="删除之后无法恢复,确认删除?"
@onConfirm="del(scope.row)"
+ @confirm="del(scope.row)"
>
Date: Thu, 23 Jun 2022 10:11:06 +0800
Subject: [PATCH 2/6] =?UTF-8?q?=E6=97=A0=E9=99=90=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/cpts/base/cpts/edit.vue | 7 +++++--
src/views/modules/cpts/base/index.vue | 3 ++-
.../modules/shequzhili/tuceng/anquan/weihua/index.vue | 1 +
.../modules/shequzhili/tuceng/anquan/xuncha/index.vue | 2 +-
.../modules/shequzhili/tuceng/yingji/ziyuan/index.vue | 1 +
5 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/views/modules/cpts/base/cpts/edit.vue b/src/views/modules/cpts/base/cpts/edit.vue
index 0b81cbc1a..34cb29a5a 100644
--- a/src/views/modules/cpts/base/cpts/edit.vue
+++ b/src/views/modules/cpts/base/cpts/edit.vue
@@ -435,8 +435,11 @@ export default {
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
initMap(item) {
- const { latitude = 39.79069, longitude = 116.506907 } =
- this.$store.state.user;
+ let { latitude, longitude } = this.$store.state.user;
+ if (!latitude || latitude == "" || latitude == "0") {
+ latitude = 39.9088810666821;
+ longitude = 116.39743841556731;
+ }
// 定义地图中心点坐标
var center = new window.TMap.LatLng(latitude, longitude);
// 定义map变量,调用 TMap.Map() 构造函数创建地图
diff --git a/src/views/modules/cpts/base/index.vue b/src/views/modules/cpts/base/index.vue
index 7c4d678cf..a4033ae9e 100644
--- a/src/views/modules/cpts/base/index.vue
+++ b/src/views/modules/cpts/base/index.vue
@@ -535,11 +535,12 @@ export default {
handleClose() {
this.formShow = false;
+ this.getTableData();
},
handleEditSuccess() {
this.handleClose();
- this.getTableData();
+ // this.getTableData();
},
async handleDelete(rowData, rowIndex) {
diff --git a/src/views/modules/shequzhili/tuceng/anquan/weihua/index.vue b/src/views/modules/shequzhili/tuceng/anquan/weihua/index.vue
index 91301a2e5..b70bd83d5 100644
--- a/src/views/modules/shequzhili/tuceng/anquan/weihua/index.vue
+++ b/src/views/modules/shequzhili/tuceng/anquan/weihua/index.vue
@@ -12,6 +12,7 @@
:importUrl="importUrl"
:mubanUrl="mubanUrl"
:editParams="editParams"
+ :editBtnName="(item) => (item.latitude == '' ? '待完善' : '修改')"
idName="icDangerousChemicalsId"
>
diff --git a/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue b/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
index d52526b09..c0f745893 100644
--- a/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
+++ b/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
@@ -93,7 +93,7 @@ export default {
{ field: "场所名称", keyName: "placeOrgName", type: "text" },
{ field: "场所地址", keyName: "address", type: "text" },
{ field: "场所类型", keyName: "placeTypeName", type: "text" },
- { field: "规模", keyName: "scale", type: "text" },
+ { field: "规模", keyName: "scaleName", type: "text" },
{ field: "负责人", keyName: "personInCharge", type: "text" },
{ field: "联系电话", keyName: "mobile", type: "text" },
{ field: "最新检查时间", keyName: "latestPatrolTime", type: "text" },
diff --git a/src/views/modules/shequzhili/tuceng/yingji/ziyuan/index.vue b/src/views/modules/shequzhili/tuceng/yingji/ziyuan/index.vue
index 61459b131..62ca95c9f 100644
--- a/src/views/modules/shequzhili/tuceng/yingji/ziyuan/index.vue
+++ b/src/views/modules/shequzhili/tuceng/yingji/ziyuan/index.vue
@@ -12,6 +12,7 @@
:importUrl="importUrl"
:mubanUrl="mubanUrl"
:editParams="editParams"
+ :editBtnName="(item) => (item.latitude == '' ? '待完善' : '修改')"
idName="icSuperiorResourceId"
>
From 9bb4543fe33f509e58582a652f43e79cb980ea13 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Thu, 23 Jun 2022 11:18:44 +0800
Subject: [PATCH 3/6] =?UTF-8?q?=E6=AC=A7=E6=8B=89=E6=8B=89=E6=94=B9?=
=?UTF-8?q?=E6=94=B9=E6=94=B9bg?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/cpts/base/cpts/edit.vue | 18 +++++++++++++++++-
src/views/modules/cpts/base/index.vue | 6 ++++++
.../shequzhili/tuceng/anquan/xuncha/index.vue | 8 +++++++-
3 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/src/views/modules/cpts/base/cpts/edit.vue b/src/views/modules/cpts/base/cpts/edit.vue
index 34cb29a5a..8955e14de 100644
--- a/src/views/modules/cpts/base/cpts/edit.vue
+++ b/src/views/modules/cpts/base/cpts/edit.vue
@@ -265,6 +265,18 @@
+
+ 取 消
+ 确 定
+
+
-
+
取 消
@@ -318,6 +319,11 @@ export default {
type: String,
default: "id",
},
+
+ formBtnFixed: {
+ type: Boolean,
+ default: true,
+ },
},
data() {
diff --git a/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue b/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
index c0f745893..c8a27662d 100644
--- a/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
+++ b/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
@@ -17,10 +17,16 @@
:editFixedParams="editFixedParams"
:editParamsDiv="5"
:editBtnName="(item) => (item.latitude == '' ? '待完善' : '修改')"
+ :formBtnFixed="false"
idName="enterpriseId"
>
-
+
From baacfe68da617279aa579de392d2e09d71b87ae5 Mon Sep 17 00:00:00 2001
From: jiangyy
Date: Thu, 23 Jun 2022 13:38:12 +0800
Subject: [PATCH 4/6] =?UTF-8?q?=E4=B9=9D=E5=B0=8F=E5=9C=BA=E6=89=80?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ninePlaces/places/places.vue | 20 ++++++++++---
.../ninePlaces/places/placesForm.vue | 28 ++++++++++++++++---
2 files changed, 40 insertions(+), 8 deletions(-)
diff --git a/src/views/modules/communityService/ninePlaces/places/places.vue b/src/views/modules/communityService/ninePlaces/places/places.vue
index 9c44dd6a6..820e98c5b 100644
--- a/src/views/modules/communityService/ninePlaces/places/places.vue
+++ b/src/views/modules/communityService/ninePlaces/places/places.vue
@@ -148,12 +148,16 @@
class="operate">
- 查看
+ 修改
- 删除
@@ -182,7 +186,7 @@
class="dialog-h"
@closed="diaClose">
{
+ this.$refs.ref_form.initForm('detail', row.placeOrgId)
+ })
+ },
addFormCancle () {
this.formShow = false
diff --git a/src/views/modules/communityService/ninePlaces/places/placesForm.vue b/src/views/modules/communityService/ninePlaces/places/placesForm.vue
index 29080f4a8..ae7bb8e0c 100644
--- a/src/views/modules/communityService/ninePlaces/places/placesForm.vue
+++ b/src/views/modules/communityService/ninePlaces/places/placesForm.vue
@@ -148,6 +148,7 @@ export default {
async initForm (type, placeOrgId) {
this.$refs.ref_form.resetFields();
+ this.loadGrid()
this.formType = type
if (placeOrgId) {
@@ -156,6 +157,25 @@ export default {
await this.loadFormData()
}
+ },
+
+ async loadGrid () {
+ const url = "/gov/org/customergrid/gridoption"
+
+ let params = {
+ agencyId: this.agencyId,
+ purpose:"addorupdate"
+ }
+
+ const { data, code, msg } = await requestPost(url, params)
+
+ if (code === 0) {
+ this.gridList = data
+
+ } else {
+ this.$message.error(msg)
+ }
+
},
//加载组织
@@ -301,10 +321,6 @@ export default {
},
props: {
- gridList: {
- type: Array,
- default: []
- },
scaleList: {
type: Array,
default: []
@@ -313,6 +329,10 @@ export default {
type: Array,
default: []
},
+ agencyId: {
+ type: String,
+ default: ""
+ },
}
}
From 66eb1df087d0e3e603a89d6509a37a206e2b06db Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Thu, 23 Jun 2022 13:52:38 +0800
Subject: [PATCH 5/6] =?UTF-8?q?=E8=BF=98=E6=98=AF=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/communityService/sqzzz/index.vue | 379 ++++++++++--------
.../tuceng/anquan/xuncha/cpts/record.vue | 2 +-
2 files changed, 207 insertions(+), 174 deletions(-)
diff --git a/src/views/modules/communityService/sqzzz/index.vue b/src/views/modules/communityService/sqzzz/index.vue
index 93edef7a7..e25b5326e 100644
--- a/src/views/modules/communityService/sqzzz/index.vue
+++ b/src/views/modules/communityService/sqzzz/index.vue
@@ -1,135 +1,145 @@
-
-
-
-
+
+
+
+
-
-
+
+
-
-
+
+
- 查询
- 重置
+ 查询
+ 重置
- 新增
- 下载模板
-
- {{ importBtnTitle }}
+ 新增
+ 下载模板
+
+ {{ importBtnTitle }}
- 导出
+ 导出
-
-
-
+
+
+
-
+
{{ scope.row.organizationName }}
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
- 积分记录
-
- 修改
-
-
- 删除
+ 积分记录
+
+ 修改
+
+
+ 删除
-
+
-
-
+
+
-
-
+
+
@@ -209,7 +242,7 @@ import scoreRecord from "../../../components/scoreRecord.vue";
export default {
components: { editForm, scoreRecord },
- data () {
+ data() {
return {
openSearch: false,
@@ -239,7 +272,7 @@ export default {
};
},
computed: {
- maxTableHeight () {
+ maxTableHeight() {
return this.$store.state.inIframe
? this.clientHeight - 360 + this.iframeHeigh
: this.clientHeight - 360;
@@ -257,11 +290,11 @@ export default {
}
},
},
- mounted () {
+ mounted() {
this.getTableData();
},
methods: {
- async handleExportModule () {
+ async handleExportModule() {
let url = "/heart/iccommunityselforganization/import-template-download";
let params = {};
@@ -298,18 +331,18 @@ export default {
});
},
// 上传大图标成功
- handleExcelSuccess (res, file) {
+ handleExcelSuccess(res, file) {
if (res.code === 0 && res.msg === "success") {
console.log("resss---ppp", res);
} else {
this.$message.error(res.msg);
}
},
- handleProgress (event, file, fileList) {
+ handleProgress(event, file, fileList) {
console.log("percentage", file.percentage);
},
- beforeExcelUpload (file) {
+ beforeExcelUpload(file) {
console.log("file", file);
const isType = file.type === "application/vnd.ms-excel";
const isTypeComputer =
@@ -326,7 +359,7 @@ export default {
}
return fileType && isLt1M;
},
- async uploadHttpRequest (file) {
+ async uploadHttpRequest(file) {
this.importLoading = true;
this.importBtnTitle = "正在上传中...";
this.$message({
@@ -381,38 +414,38 @@ export default {
this.$refs.upload.clearFiles();
},
- handleSizeChange (val) {
+ handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pageSize = val;
window.localStorage.setItem("pageSize", val);
this.getTableData();
},
- handleCurrentChange (val) {
+ handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pageNo = val;
this.getTableData();
},
- handleClose () {
+ handleClose() {
this.formShow = false;
},
- handleSearch (val) {
+ handleSearch(val) {
console.log(this.fmData);
this.pageNo = 1;
this.getTableData();
},
- resetForm (formName) {
+ resetForm(formName) {
this.$refs[formName].resetFields();
this.handleSearch();
},
- async handleAdd () {
+ async handleAdd() {
this.formShow = true;
await nextTick();
console.log(this.$refs);
this.$refs.eleEditForm.initForm("add");
},
- async handleChu () {
+ async handleChu() {
const url =
"/heart/iccommunityselforganization/exportcommunityselforganization";
const { pageSize, pageNo, fmData } = this;
@@ -448,23 +481,23 @@ export default {
});
},
- async handleWatch (rowIndex) {
+ async handleWatch(rowIndex) {
this.formShow = true;
await nextTick();
this.$refs.eleEditForm.initForm("detail", this.tableData[rowIndex]);
},
- async handleEdit (rowIndex) {
+ async handleEdit(rowIndex) {
this.formShow = true;
await nextTick();
this.$refs.eleEditForm.initForm("edit", this.tableData[rowIndex]);
},
- handleEditSuccess () {
+ handleEditSuccess() {
this.handleClose();
this.getTableData();
},
- async handleDel (rowData, rowIndex) {
+ async handleDel(rowData, rowIndex) {
console.log(rowData, rowIndex);
const url =
"/heart/iccommunityselforganization/delcommunityselforganization";
@@ -478,12 +511,12 @@ export default {
this.$message.success("删除成功!");
this.getTableData();
} else {
- this.$message.error(msg)
+ this.$message.error(msg);
// this.$message.success("操作失败!");
}
},
- async getTableData () {
+ async getTableData() {
const url =
"/heart/iccommunityselforganization/communityselforganizationlist";
const { pageSize, pageNo, fmData } = this;
@@ -497,23 +530,23 @@ export default {
this.total = data.total || 0;
this.tableData = data.list
? data.list.map((item) => {
- return item;
- })
+ return item;
+ })
: [];
} else {
- this.$message.error(msg)
+ this.$message.error(msg);
}
},
//积分记录
- handleScore (row) {
+ handleScore(row) {
this.scoreDiaShow = true;
this.$nextTick(() => {
this.$refs.ref_score.initForm(row.orgId);
});
},
- diaClose () {
+ diaClose() {
this.scoreDiaShow = false;
},
},
diff --git a/src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue b/src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue
index 7c3dcd32c..c1704afb6 100644
--- a/src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue
+++ b/src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue
@@ -192,7 +192,7 @@
-
+
Date: Thu, 23 Jun 2022 13:56:22 +0800
Subject: [PATCH 6/6] =?UTF-8?q?=E4=BA=94=E5=A4=A7=E5=9B=BE=E5=B1=82?=
=?UTF-8?q?=E5=8F=AF=E8=A7=86=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../visual/communityGovern/fivelayers/mapIndex.vue | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue b/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue
index a8cf0094d..0670470bc 100644
--- a/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue
+++ b/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue
@@ -391,7 +391,7 @@ import { Circle as CircleStyle, Icon, Fill, Stroke, Style, Text } from 'ol/style
import nextTick from 'dai-js/tools/nextTick'
import { mapGetters } from "vuex";
import { Loading } from 'element-ui'; //引入Loading服务
-import { requestPost } from "@/js/dai/request";
+import { requestPost, requestGet } from "@/js/dai/request";
import cptTb from "@/views/modules/visual/cpts/tb";
@@ -1030,6 +1030,7 @@ const vueGis = {
this.selInfo = JSON.parse(JSON.stringify(data))
this.handleShowPopup(coordinate)
+
} else {
this.$message.error(msg)
}
@@ -1125,12 +1126,17 @@ const vueGis = {
this.getMapTable();
},
handleSearch () {
-
+ this.demand.pageNo = 1
+ this.getTable();
+ this.getMapTable();
},
//
handleClickRow (index) {
let selData = this.tableList[index]
- mapView.setCenter([selData.longitude, selData.latitude]);
+ if (selData.longitude && selData.latitude) {
+ mapView.setCenter([selData.longitude, selData.latitude]);
+ }
+
this.clickMapVolunteer(selData)
// alert(index)