-
-
新增房屋
-
-
下载房屋模板
-
- 导入房屋数据
+ 新增房屋
+
+ 下载房屋模板
+
+ 导入房屋数据
- 导出
- 批量删除
- 导出一户一档
+ 导出
+ 批量删除
+ 导出一户一档
+ 智能填报
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
- {{scope.row.sort}}
-
+ {{ scope.row.sort }}
+
-
-
+
-
- 查看
- 修改
-
- 删除
+ 查看
+ 修改
+
+ 删除
-
+
-
-
-
+
+
+
-
From a567f592c050a7fa5704cc62a84e3f043bec0dc0 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Wed, 17 Aug 2022 17:18:26 +0800
Subject: [PATCH 10/69] =?UTF-8?q?=E5=8F=88=E6=94=B9=E4=BA=86=E5=AF=BC?=
=?UTF-8?q?=E5=87=BA=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/cpts/baobiao/index.vue | 44 ++++++++++++++++++++++--
1 file changed, 41 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/cpts/baobiao/index.vue b/src/views/modules/cpts/baobiao/index.vue
index f068168b1..d7adbdb5a 100644
--- a/src/views/modules/cpts/baobiao/index.vue
+++ b/src/views/modules/cpts/baobiao/index.vue
@@ -43,6 +43,7 @@
import { Loading } from "element-ui"; // 引入Loading服务
import { requestPost, requestGet } from "@/js/dai/request";
import { mapGetters } from "vuex";
+import axios from "axios";
export default {
data() {
@@ -130,9 +131,13 @@ export default {
if (code === 0) {
let token = localStorage.getItem("token");
let prefix = window.SITE_CONFIG["apiURL"].slice(0, -4);
- window.open(
- `${prefix}/jmreport/view/${reportId}?token=${token}¶mKey=${data.paramKey}`
- );
+ if (item.isList) {
+ this.exportAll(reportId, data.paramKey);
+ } else {
+ window.open(
+ `${prefix}/jmreport/view/${reportId}?token=${token}¶mKey=${data.paramKey}`
+ );
+ }
// this.visible = false;
this.$emit("afterFillIn");
@@ -140,6 +145,39 @@ export default {
this.$message.error(msg);
}
},
+
+ async exportAll(reportId, paramKey) {
+ const url = "/oper/customize/icCustomerReport/batch-export";
+ axios({
+ url: window.SITE_CONFIG["apiURL"] + url,
+ method: "post",
+ data: {
+ reportId,
+ paramKey,
+ },
+ responseType: "blob",
+ })
+ .then((res) => {
+ let fileName = window.decodeURI(
+ res.headers["content-disposition"].split(";")[1].split("=")[1]
+ );
+ console.log("filename", fileName);
+ let blob = new Blob([res.data], { type: "application/zip" });
+ var url = window.URL.createObjectURL(blob);
+ var aLink = document.createElement("a");
+ aLink.style.display = "none";
+ aLink.href = url;
+ aLink.setAttribute("download", fileName);
+ document.body.appendChild(aLink);
+ aLink.click();
+ document.body.removeChild(aLink); //下载完成移除元素
+ window.URL.revokeObjectURL(url); //释放掉blob对象
+ })
+ .catch((err) => {
+ console.log("批量导出失败", err);
+ return this.$message.error("网络错误");
+ });
+ },
},
};
From 91ac5a34253f083c03bf38d89b6cbe160b5dc154 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Wed, 17 Aug 2022 17:44:54 +0800
Subject: [PATCH 11/69] =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E5=8F=88=E8=AF=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/cpts/baobiao/index.vue | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/views/modules/cpts/baobiao/index.vue b/src/views/modules/cpts/baobiao/index.vue
index d7adbdb5a..95d3f21ac 100644
--- a/src/views/modules/cpts/baobiao/index.vue
+++ b/src/views/modules/cpts/baobiao/index.vue
@@ -119,7 +119,7 @@ export default {
},
async fillIn(item) {
- const { reportId } = item;
+ const { reportId, reportName } = item;
const url = "/oper/customize/icCustomerReport/preview";
const parmas = {
...this.elseParams,
@@ -132,7 +132,7 @@ export default {
let token = localStorage.getItem("token");
let prefix = window.SITE_CONFIG["apiURL"].slice(0, -4);
if (item.isList) {
- this.exportAll(reportId, data.paramKey);
+ this.exportAll(reportId, data.paramKey, reportName);
} else {
window.open(
`${prefix}/jmreport/view/${reportId}?token=${token}¶mKey=${data.paramKey}`
@@ -146,7 +146,7 @@ export default {
}
},
- async exportAll(reportId, paramKey) {
+ async exportAll(reportId, paramKey, reportName) {
const url = "/oper/customize/icCustomerReport/batch-export";
axios({
url: window.SITE_CONFIG["apiURL"] + url,
@@ -158,9 +158,11 @@ export default {
responseType: "blob",
})
.then((res) => {
- let fileName = window.decodeURI(
- res.headers["content-disposition"].split(";")[1].split("=")[1]
- );
+ console.log("批量导出接口返回", res);
+ // let fileName = window.decodeURI(
+ // res.headers["content-disposition"].split(";")[1].split("=")[1]
+ // );
+ let fileName = reportName;
console.log("filename", fileName);
let blob = new Blob([res.data], { type: "application/zip" });
var url = window.URL.createObjectURL(blob);
From c512063f119a2b7e7dabda8d2f90fe94fcdc83f2 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Thu, 18 Aug 2022 09:12:41 +0800
Subject: [PATCH 12/69] =?UTF-8?q?=E5=8F=8D=E4=BA=86=E5=8F=8D=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/cpts/baobiao/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/modules/cpts/baobiao/index.vue b/src/views/modules/cpts/baobiao/index.vue
index 95d3f21ac..169c801a5 100644
--- a/src/views/modules/cpts/baobiao/index.vue
+++ b/src/views/modules/cpts/baobiao/index.vue
@@ -131,7 +131,7 @@ export default {
if (code === 0) {
let token = localStorage.getItem("token");
let prefix = window.SITE_CONFIG["apiURL"].slice(0, -4);
- if (item.isList) {
+ if (!item.isList) {
this.exportAll(reportId, data.paramKey, reportName);
} else {
window.open(
From c96f313ccfc3eee0fd9c29287c7bd5efec918c48 Mon Sep 17 00:00:00 2001
From: jiangyy
Date: Thu, 18 Aug 2022 13:57:38 +0800
Subject: [PATCH 13/69] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=BB=8F=E7=BA=AC?=
=?UTF-8?q?=E5=BA=A6=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../regionalParty/activitysForm.vue | 26 ++++++++++++-------
.../regionalParty/unitsForm.vue | 26 ++++++++++++++-----
.../modules/shequzhili/event/cpts/add.vue | 14 ++++++++--
3 files changed, 48 insertions(+), 18 deletions(-)
diff --git a/src/views/modules/communityParty/regionalParty/activitysForm.vue b/src/views/modules/communityParty/regionalParty/activitysForm.vue
index efd2c776a..94ce4234b 100644
--- a/src/views/modules/communityParty/regionalParty/activitysForm.vue
+++ b/src/views/modules/communityParty/regionalParty/activitysForm.vue
@@ -254,8 +254,8 @@ export default {
peopleCount: 0,//服务人数
result: '', //活动结果
address: '', //详细地址
- longitude: 36.0722275, //经度
- latitude: 120.38945519 //纬度
+ longitude: 120.38945519, //经度
+ latitude: 36.0722275 //纬度
},
serviceList: [],
// gridList: [],
@@ -274,23 +274,31 @@ export default {
async initForm (type, activityId) {
this.startLoading()
this.$refs.ref_form.resetFields();
- // const { user } = this.$store.state
- // this.agencyId = user.agencyId
- // await this.loadGrid()
//获取服务事项
await this.loadService()
+ let { latitude, longitude } = this.$store.state.user;
+ if (!latitude || latitude == "" || latitude == "0") {
+ latitude = 39.9088810666821;
+ longitude = 116.39743841556731;
+ }
+
+ this.formData.latitude = latitude
+ this.formData.longitude = longitude
+
this.formType = type
if (activityId) {
this.activityId = activityId
this.formData.id = activityId
await this.loadFormData()
} else {
- map.setCenter(new TMap.LatLng(36.0722275, 120.38945519))
- this.setMarker(36.0722275, 120.38945519)
+
}
+
+ map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
+ this.setMarker(this.formData.latitude, this.formData.longitude)
this.endLoading()
},
@@ -353,8 +361,8 @@ export default {
}
console.log(this.formData.content)
- map.setCenter(new TMap.LatLng(parseFloat(this.formData.latitude), parseFloat(this.formData.longitude)))
- this.setMarker(this.formData.latitude, this.formData.longitude)
+ // map.setCenter(new TMap.LatLng(parseFloat(this.formData.latitude), parseFloat(this.formData.longitude)))
+ // this.setMarker(this.formData.latitude, this.formData.longitude)
} else {
this.$message.error(msg)
}
diff --git a/src/views/modules/communityParty/regionalParty/unitsForm.vue b/src/views/modules/communityParty/regionalParty/unitsForm.vue
index ac3965ea8..06b5eece2 100644
--- a/src/views/modules/communityParty/regionalParty/unitsForm.vue
+++ b/src/views/modules/communityParty/regionalParty/unitsForm.vue
@@ -189,8 +189,8 @@ export default {
memberCount: 0,
remark: '', //备注【最大500字】
address: '', //详细地址
- longitude: 36.0722275, //经度
- latitude: 120.38945519 //纬度
+ longitude: 120.38945519, //经度
+ latitude: 36.0722275//纬度
},
serviceList: [],//服务list
@@ -198,6 +198,7 @@ export default {
},
components: {},
mounted () {
+
this.initMap()
},
@@ -210,16 +211,27 @@ export default {
//获取服务事项
await this.loadService()
+ let { latitude, longitude } = this.$store.state.user;
+ if (!latitude || latitude == "" || latitude == "0") {
+ latitude = 39.9088810666821;
+ longitude = 116.39743841556731;
+ }
+
+ this.formData.latitude = latitude
+ this.formData.longitude = longitude
+
this.formType = type
if (unitId) {
this.unitId = unitId
this.formData.id = unitId
await this.loadFormData()
} else {
- map.setCenter(new TMap.LatLng(36.0722275, 120.38945519))
- this.setMarker(36.0722275, 120.38945519)
+
}
+ map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
+ this.setMarker(this.formData.latitude, this.formData.longitude)
+
this.endLoading()
},
@@ -259,8 +271,8 @@ export default {
}
this.formData = { ...data }
- map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
- this.setMarker(this.formData.latitude, this.formData.longitude)
+ // map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
+ // this.setMarker(this.formData.latitude, this.formData.longitude)
} else {
this.$message.error(msg)
}
@@ -329,7 +341,7 @@ export default {
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
initMap () {
// 定义地图中心点坐标
- var center = new window.TMap.LatLng(36.0722275, 120.38945519)
+ var center = new window.TMap.LatLng(this.formData.latitude, this.formData.longitude)
// 定义map变量,调用 TMap.Map() 构造函数创建地图
map = new window.TMap.Map(document.getElementById('app'), {
center: center, // 设置地图中心点坐标
diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue
index b53caf480..d3581582a 100644
--- a/src/views/modules/shequzhili/event/cpts/add.vue
+++ b/src/views/modules/shequzhili/event/cpts/add.vue
@@ -402,10 +402,20 @@ export default {
async mounted () {
const { user } = this.$store.state
this.agencyId = user.agencyId
+ let { latitude, longitude } = this.$store.state.user;
+ if (!latitude || latitude == "" || latitude == "0") {
+ latitude = 39.9088810666821;
+ longitude = 116.39743841556731;
+ }
+
+ this.formData.latitude = latitude
+ this.formData.longitude = longitude
+
+ this.initMap()
this.loadGrid();
this.getCategoryList()
- this.initMap()
+
},
@@ -597,7 +607,7 @@ export default {
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
initMap () {
// 定义地图中心点坐标
- var center = new window.TMap.LatLng(36.0722275, 120.38945519)
+ var center = new window.TMap.LatLng(this.formData.latitude, this.formData.longitude)
// 定义map变量,调用 TMap.Map() 构造函数创建地图
map = new window.TMap.Map(document.getElementById('app'), {
center: center, // 设置地图中心点坐标
From ab4ad940a5e0477c5419d1a63b9e8af9c44e3cf6 Mon Sep 17 00:00:00 2001
From: jiangyy
Date: Thu, 18 Aug 2022 16:36:16 +0800
Subject: [PATCH 14/69] =?UTF-8?q?=E7=BB=8F=E7=BA=AC=E5=BA=A6=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../regionalParty/activitysForm.vue | 53 +++++++++----------
.../communityParty/regionalParty/units.vue | 19 +++----
.../regionalParty/unitsDetail.vue | 3 +-
.../regionalParty/unitsForm.vue | 31 ++++++-----
4 files changed, 55 insertions(+), 51 deletions(-)
diff --git a/src/views/modules/communityParty/regionalParty/activitysForm.vue b/src/views/modules/communityParty/regionalParty/activitysForm.vue
index 94ce4234b..a45a5b80b 100644
--- a/src/views/modules/communityParty/regionalParty/activitysForm.vue
+++ b/src/views/modules/communityParty/regionalParty/activitysForm.vue
@@ -234,6 +234,22 @@ var geocoder // 新建一个正逆地址解析类
let loading // 加载动画
export default {
data () {
+ let initFormData = () => {
+ let _form = {
+ unitName: '',
+ serviceMatterList: [],
+ type: '',
+ contact: '',
+ contactMobile: '',
+ memberCount: 0,
+ remark: '', //备注【最大500字】
+ address: '', //详细地址
+ longitude: this.$store.state.user.longitude, //经度
+ latitude: this.$store.state.user.latitude//纬度
+ }
+
+ return _form
+ }
return {
formType: 'add', //表单操作类型 add新增,edit编辑,detail详情
@@ -241,22 +257,7 @@ export default {
keyWords: '',
activityId: '',
- formData: {
- gridId: '',
- serviceMatter: '',//服务事项
- serviceMatterList: [],
- unitId: '',//单位ID
- unitIdList: [],
- title: '',//活动标题
- target: '',//活动目标
- content: '',//活动内容
- activityTime: '',//活动时间
- peopleCount: 0,//服务人数
- result: '', //活动结果
- address: '', //详细地址
- longitude: 120.38945519, //经度
- latitude: 36.0722275 //纬度
- },
+ formData: initFormData(),
serviceList: [],
// gridList: [],
agencyId: ''
@@ -527,20 +528,16 @@ export default {
this.activityId = ''
this.keyWords = ''
this.formData = {
- gridId: '',
- serviceMatter: '',//服务事项
+ unitName: '',
serviceMatterList: [],
- unitId: '',//单位ID
- unitIdList: [],
- title: '',//活动标题
- target: '',//活动目标
- content: '',//活动内容
- activityTime: '',//活动时间
- peopleCount: 0,//服务人数
- result: '', //活动结果
+ type: '',
+ contact: '',
+ contactMobile: '',
+ memberCount: 0,
+ remark: '', //备注【最大500字】
address: '', //详细地址
- longitude: 36.0722275, //经度
- latitude: 120.38945519 //纬度
+ longitude: this.$store.state.user.longitude, //经度
+ latitude: this.$store.state.user.latitude//纬度
}
},
// 开启加载动画
diff --git a/src/views/modules/communityParty/regionalParty/units.vue b/src/views/modules/communityParty/regionalParty/units.vue
index 0feb07c8b..23db7d00e 100644
--- a/src/views/modules/communityParty/regionalParty/units.vue
+++ b/src/views/modules/communityParty/regionalParty/units.vue
@@ -477,9 +477,10 @@ export default {
},
handleDetail (row) {
- this.detailShow = true
+ this.formTitle = '详情'
+ this.formShow = true
this.$nextTick(() => {
- this.$refs.ref_detail.initForm(row)
+ this.$refs.ref_form.initForm('detail', row.id)
})
},
@@ -501,7 +502,7 @@ export default {
handleAdd () {
this.formTitle = '新增'
- this.formShow = 'edit'
+ this.formShow = true
this.$nextTick(() => {
this.$refs.ref_form.initForm('add', null)
})
@@ -574,12 +575,12 @@ export default {
if (code === 0) {
if (data.type) {
- this.$message({
- type: "success",
- message: data.msg || "同步成功"
- });
-
- this.loadTable()
+ this.$message({
+ type: "success",
+ message: data.msg || "同步成功"
+ });
+
+ this.loadTable()
} else {
this.$message.error(data.msg)
}
diff --git a/src/views/modules/communityParty/regionalParty/unitsDetail.vue b/src/views/modules/communityParty/regionalParty/unitsDetail.vue
index 306fc3f83..b9f18486b 100644
--- a/src/views/modules/communityParty/regionalParty/unitsDetail.vue
+++ b/src/views/modules/communityParty/regionalParty/unitsDetail.vue
@@ -106,7 +106,7 @@ export default {
}
},
components: {},
- mounted () {
+ created () {
this.initMap()
},
@@ -118,6 +118,7 @@ export default {
},
async initForm (row) {
+
this.startLoading()
this.formData = { ...row }
map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
diff --git a/src/views/modules/communityParty/regionalParty/unitsForm.vue b/src/views/modules/communityParty/regionalParty/unitsForm.vue
index 06b5eece2..f6de440b1 100644
--- a/src/views/modules/communityParty/regionalParty/unitsForm.vue
+++ b/src/views/modules/communityParty/regionalParty/unitsForm.vue
@@ -173,14 +173,8 @@ var geocoder // 新建一个正逆地址解析类
let loading // 加载动画
export default {
data () {
- return {
- formType: 'add', //表单操作类型 add新增,edit编辑,detail详情
-
- btnDisable: false,
-
- unitId: '',
- keyWords: '',
- formData: {
+ let initFormData = () => {
+ let _form = {
unitName: '',
serviceMatterList: [],
type: '',
@@ -189,9 +183,20 @@ export default {
memberCount: 0,
remark: '', //备注【最大500字】
address: '', //详细地址
- longitude: 120.38945519, //经度
- latitude: 36.0722275//纬度
- },
+ longitude: this.$store.state.user.longitude, //经度
+ latitude: this.$store.state.user.latitude//纬度
+ }
+
+ return _form
+ }
+ return {
+ formType: 'add', //表单操作类型 add新增,edit编辑,detail详情
+
+ btnDisable: false,
+
+ unitId: '',
+ keyWords: '',
+ formData: initFormData(),
serviceList: [],//服务list
}
@@ -462,8 +467,8 @@ export default {
memberCount: 0,
remark: '', //备注【最大500字】
address: '', //详细地址
- longitude: '', //经度
- latitude: '' //纬度
+ longitude: this.$store.state.user.longitude, //经度
+ latitude: this.$store.state.user.latitude//纬度
}
},
// 开启加载动画
From cbf43b30ac1f8e051672d5cfc11b31886c60b7c9 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Thu, 18 Aug 2022 17:50:31 +0800
Subject: [PATCH 15/69] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=AF=BC=E5=87=BA?=
=?UTF-8?q?=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/cpts/baobiao/index.vue | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/views/modules/cpts/baobiao/index.vue b/src/views/modules/cpts/baobiao/index.vue
index 169c801a5..86cf18c39 100644
--- a/src/views/modules/cpts/baobiao/index.vue
+++ b/src/views/modules/cpts/baobiao/index.vue
@@ -148,6 +148,14 @@ export default {
async exportAll(reportId, paramKey, reportName) {
const url = "/oper/customize/icCustomerReport/batch-export";
+
+ const loading = this.$loading({
+ lock: true,
+ text: "批量导出中",
+ spinner: "el-icon-loading",
+ background: "rgba(0, 0, 0, 0.5)",
+ });
+
axios({
url: window.SITE_CONFIG["apiURL"] + url,
method: "post",
@@ -158,6 +166,7 @@ export default {
responseType: "blob",
})
.then((res) => {
+ loading.close();
console.log("批量导出接口返回", res);
// let fileName = window.decodeURI(
// res.headers["content-disposition"].split(";")[1].split("=")[1]
@@ -177,6 +186,8 @@ export default {
})
.catch((err) => {
console.log("批量导出失败", err);
+
+ loading.close();
return this.$message.error("网络错误");
});
},
From 14af9a12e2e73615ca85ff6885ba204438a3e2db Mon Sep 17 00:00:00 2001
From: jianjun
Date: Fri, 19 Aug 2022 13:18:12 +0800
Subject: [PATCH 16/69] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/shequzhili/event/eventList.vue | 37 ++++++++++++-------
1 file changed, 24 insertions(+), 13 deletions(-)
diff --git a/src/views/modules/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue
index 1632a2d5c..b4a8e2a08 100644
--- a/src/views/modules/shequzhili/event/eventList.vue
+++ b/src/views/modules/shequzhili/event/eventList.vue
@@ -49,9 +49,9 @@
@@ -317,6 +317,10 @@
@click="handleWatch(scope.row)"
type="text"
size="small">查看
+ 删除
@@ -400,7 +404,7 @@ export default {
}
return {
- pageType: "list", // 列表list 新增add 处理dispose 详情info
+ pageType: "list", // 列表list 新增add 处理dispose 详情info
user: {},
agencyId: '',
gridList: [],//所属网格list--场所区域
@@ -694,15 +698,22 @@ export default {
this.getTableData();
},
- async handleDel (rowData, rowIndex) {
- console.log(rowData, rowIndex);
- const url =
- "/heart/iccommunityselforganization/delcommunityselforganization";
- const { tableData } = this;
+ async handleDel (rowData) {
+ let message = "确认删除?";
- const { data, code, msg } = await requestPost(url, {
- orgId: tableData[rowIndex].orgId,
- });
+ this.$confirm(message, "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ }).then(() => {
+ this.delEvent(rowData.icEventId);
+ }).catch((err) => { });
+ },
+ async delEvent (eventId){
+ const url = "/gov/project/icEvent/delete";
+ let idsArr = [eventId];
+
+ const { data, code, msg } =await requestPost(url, idsArr);
if (code === 0) {
this.$message.success("删除成功!");
@@ -790,7 +801,7 @@ export default {
secondIdList: [],
}
this.eventTypeCheck = []
-
+
this.pageNo = 1
this.getTableData();
From 09e4578c8e1401f09cd16ee9dac3b1ee6f4310c8 Mon Sep 17 00:00:00 2001
From: jiangyy
Date: Fri, 19 Aug 2022 16:01:25 +0800
Subject: [PATCH 17/69] =?UTF-8?q?=E8=AF=81=E4=BB=B6=E5=8F=B7=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/validate.js | 10 +
src/views/components/resiForm.vue | 495 ++++++++++++++++--------------
2 files changed, 272 insertions(+), 233 deletions(-)
diff --git a/src/utils/validate.js b/src/utils/validate.js
index a130010f2..659eeb346 100644
--- a/src/utils/validate.js
+++ b/src/utils/validate.js
@@ -39,3 +39,13 @@ export function isURL(s) {
export function isCard(s) {
return /^(\d{15}$)|(^\d{17}([0-9]|X)$)/.test(s);
}
+/**
+ * 护照
+ * @param {*} s
+ */
+export function isPassport(s) {
+ let reg=/(^[EeKkGgDdSsPpHh]\d{8}$)|(^(([Ee][a-fA-F])|([DdSsPp][Ee])|([Kk][Jj])|([Mm][Aa])|(1[45]))\d{7}$)/; //护照(包括香港和澳门)
+
+
+ return reg.test(s);
+}
diff --git a/src/views/components/resiForm.vue b/src/views/components/resiForm.vue
index 505fe55c0..014216e24 100644
--- a/src/views/components/resiForm.vue
+++ b/src/views/components/resiForm.vue
@@ -1,91 +1,115 @@
-
-
+
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ ns.label }}
-
-
-
-
-
-
-
- {{ns.label}}
-
-
-
-
+
+
+
+
+ {{ ns.label }}
+
+
+
+
+
+
+
+ {{ns.label}}
+
-
-
-
-
+
+
+
+
+
+
+
@@ -231,7 +258,7 @@
-
diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue
index f8ce4fb51..8112c8c5f 100644
--- a/src/views/modules/communityService/shzz/index.vue
+++ b/src/views/modules/communityService/shzz/index.vue
@@ -139,10 +139,10 @@
查看
-
积分记录
+ @click="handleScore(scope.row)">积分记录-->
Date: Tue, 23 Aug 2022 10:45:17 +0800
Subject: [PATCH 26/69] =?UTF-8?q?=E5=8E=9F=E6=9D=A5=E7=9A=84=E7=A4=BE?=
=?UTF-8?q?=E4=BC=9A=E7=BB=84=E7=BB=87=E6=B7=BB=E5=8A=A0=20=E5=A4=B4?=
=?UTF-8?q?=E5=83=8F=E7=AD=89=E8=B0=83=E6=95=B4=20=E5=8E=BB=E6=8E=89?=
=?UTF-8?q?=E7=A7=AF=E5=88=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/communityService/shzz/index.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue
index 8112c8c5f..4c9cb6275 100644
--- a/src/views/modules/communityService/shzz/index.vue
+++ b/src/views/modules/communityService/shzz/index.vue
@@ -128,9 +128,9 @@
label="负责人电话">
-
+ label="积分"> -->
Date: Tue, 23 Aug 2022 14:37:18 +0800
Subject: [PATCH 27/69] =?UTF-8?q?=E8=AF=81=E4=BB=B6=E5=8F=B7bug=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/base/huji/chusheng/cpts/edit.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/modules/base/huji/chusheng/cpts/edit.vue b/src/views/modules/base/huji/chusheng/cpts/edit.vue
index b3e0db470..9edea79ba 100644
--- a/src/views/modules/base/huji/chusheng/cpts/edit.vue
+++ b/src/views/modules/base/huji/chusheng/cpts/edit.vue
@@ -444,10 +444,10 @@ export default {
dataRule() {
let checkIdCard = (rule, value, callback) => {
if (value === "") {
- callback(new Error("请输入身份证"));
+ callback(new Error("请输入证件号"));
} else {
if (!isCard(value)) {
- callback(new Error("身份证号格式不正确"));
+ callback(new Error("证件号格式不正确"));
}
callback();
}
From 8dedd73616954deab88a14330576c616e3011835 Mon Sep 17 00:00:00 2001
From: zhangyuan
Date: Tue, 23 Aug 2022 15:48:00 +0800
Subject: [PATCH 28/69] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=8F=B7?=
=?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=94=B9=E4=B8=BA=E8=AF=81=E4=BB=B6=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/base/collect.vue | 14 +--
src/views/modules/base/visitor.vue | 2 +-
.../change/changedeath-add-or-update.vue | 4 +-
.../modules/plugins/change/changedeath.vue | 6 +-
.../plugins/change/changerelocation.vue | 6 +-
.../change/changewelfare-add-or-update.vue | 4 +-
.../modules/plugins/change/changewelfare.vue | 6 +-
src/views/modules/plugins/change/verify.vue | 14 +--
.../modules/plugins/change/verifyForm.vue | 12 +-
.../rent/hikerrorinfo-add-or-update.vue | 4 +-
.../modules/plugins/rent/hikerrorinfo.vue | 2 +-
.../rent/rentblacklist-add-or-update.vue | 4 +-
.../modules/plugins/rent/rentblacklist.vue | 14 +--
.../rent/rentcontractinfo-add-or-update.vue | 16 +--
.../rent/rentcontractinfo-look-or-check.vue | 12 +-
.../modules/plugins/rent/rentcontractinfo.vue | 34 +++---
.../plugins/rent/rentcontractreview.vue | 30 +++--
.../plugins/rent/renthouse-add-or-update.vue | 4 +-
src/views/modules/plugins/rent/renthouse.vue | 105 ++++++++++++++----
.../modules/plugins/rent/renthouseForm.vue | 4 +-
.../rent/renttenantinfo-add-or-update.vue | 6 +-
.../modules/plugins/rent/renttenantinfo.vue | 12 +-
.../plugins/visit/visitor-add-or-update.vue | 4 +-
.../visit/visitvisitor-add-or-update.vue | 4 +-
.../modules/plugins/visit/visitvisitor.vue | 6 +-
25 files changed, 193 insertions(+), 136 deletions(-)
diff --git a/src/views/modules/base/collect.vue b/src/views/modules/base/collect.vue
index 0dabd1b4e..3baad809d 100644
--- a/src/views/modules/base/collect.vue
+++ b/src/views/modules/base/collect.vue
@@ -141,7 +141,7 @@
prop="memberIdNum"
width="180"
align="center"
- label="成员身份证"
+ label="成员证件号"
:show-overflow-tooltip="true"
/>
-
@@ -349,7 +349,7 @@
prop="memberIdNum"
width="180"
align="center"
- label="成员身份证"
+ label="成员证件号"
:show-overflow-tooltip="true"
/>
-
@@ -773,7 +773,7 @@ export default {
// this.fileJurisdiction(params)
}).catch(() => {})
}).catch(() => {
- // 取消输入原因
+ // 取消输入原因
})
} else {
this.$http.post('/epmetuser/icresicollect/collectCheck', params).then(({ data: res }) => {
diff --git a/src/views/modules/base/visitor.vue b/src/views/modules/base/visitor.vue
index 032ee4de0..669f812c0 100644
--- a/src/views/modules/base/visitor.vue
+++ b/src/views/modules/base/visitor.vue
@@ -67,7 +67,7 @@
diff --git a/src/views/modules/plugins/change/changedeath-add-or-update.vue b/src/views/modules/plugins/change/changedeath-add-or-update.vue
index 19cdb429d..cf2dba584 100644
--- a/src/views/modules/plugins/change/changedeath-add-or-update.vue
+++ b/src/views/modules/plugins/change/changedeath-add-or-update.vue
@@ -7,8 +7,8 @@
-
-
+
+
diff --git a/src/views/modules/plugins/change/changedeath.vue b/src/views/modules/plugins/change/changedeath.vue
index 725c58069..7b691ab07 100644
--- a/src/views/modules/plugins/change/changedeath.vue
+++ b/src/views/modules/plugins/change/changedeath.vue
@@ -12,13 +12,13 @@
placeholder="请输入姓名">
-
+ placeholder="请输入证件号">
{{scope.row.name}}
-
+
diff --git a/src/views/modules/plugins/change/changerelocation.vue b/src/views/modules/plugins/change/changerelocation.vue
index 57faca640..3a1343bb1 100644
--- a/src/views/modules/plugins/change/changerelocation.vue
+++ b/src/views/modules/plugins/change/changerelocation.vue
@@ -109,13 +109,13 @@
placeholder="请输入姓名">
-
+ placeholder="请输入证件号">
-
+
{{
diff --git a/src/views/modules/plugins/change/changewelfare-add-or-update.vue b/src/views/modules/plugins/change/changewelfare-add-or-update.vue
index 902508f5b..35c48ef2e 100644
--- a/src/views/modules/plugins/change/changewelfare-add-or-update.vue
+++ b/src/views/modules/plugins/change/changewelfare-add-or-update.vue
@@ -10,8 +10,8 @@
-
-
+
+
diff --git a/src/views/modules/plugins/change/changewelfare.vue b/src/views/modules/plugins/change/changewelfare.vue
index fe4ecbd6e..81374dfae 100644
--- a/src/views/modules/plugins/change/changewelfare.vue
+++ b/src/views/modules/plugins/change/changewelfare.vue
@@ -12,13 +12,13 @@
placeholder="请输入姓名">
-
+ placeholder="请输入证件号">
{{scope.row.name}}
-
+
diff --git a/src/views/modules/plugins/change/verify.vue b/src/views/modules/plugins/change/verify.vue
index 76385675f..23e4239f8 100644
--- a/src/views/modules/plugins/change/verify.vue
+++ b/src/views/modules/plugins/change/verify.vue
@@ -134,7 +134,7 @@
-
+
@@ -276,7 +276,7 @@
align="center"
width="100"
/>
-
+
@@ -298,7 +298,7 @@
>审核
-
+
@@ -408,9 +408,9 @@ export default {
const _h = this.clientHeight - this.searchH - 440
console.log('computed-searchH---_h', _h)
return this.$store.state.inIframe ? h : _h
-
+
},
-
+
changeVDisabled() {
return !this.fmData.villageId
},
@@ -436,7 +436,7 @@ export default {
const h = this.clientHeight - this.searchH + this.iframeHeight
const _h = this.clientHeight - this.searchH
console.log('computed-searchH---_h', _h)
-
+
this.$nextTick(() => {
this.tableHeight = this.$store.state.inIframe ? h : _h
})
diff --git a/src/views/modules/plugins/change/verifyForm.vue b/src/views/modules/plugins/change/verifyForm.vue
index 1efb046ac..125822d30 100644
--- a/src/views/modules/plugins/change/verifyForm.vue
+++ b/src/views/modules/plugins/change/verifyForm.vue
@@ -15,7 +15,7 @@
{{ detailInfo.mobile }}
{{ detailInfo.idCard }}
@@ -140,7 +140,7 @@
-->
-
+
{{ detailInfo.newHomeName }}
-
+
{{ detailInfo.moveOutDate }}
-
+
@@ -491,7 +491,7 @@ export default {
this.confirmResult = (row.confirmResult == '1' || row.confirmResult == '2') ? row.confirmResult : ''
} else this.confirmResult = '1'
if (row.newGridName) this.isMoveOut = 1
-
+
this.reason = row.reason
// await this.loadRootAgency()
@@ -751,7 +751,7 @@ export default {
moveOutDate: this.dataForm.outOfTime
}
}
-
+
const { data, code, msg } = await requestPost('/epmetuser/myHome/moveOutConfirm', params)
diff --git a/src/views/modules/plugins/rent/hikerrorinfo-add-or-update.vue b/src/views/modules/plugins/rent/hikerrorinfo-add-or-update.vue
index 5ecc620f3..752106aef 100644
--- a/src/views/modules/plugins/rent/hikerrorinfo-add-or-update.vue
+++ b/src/views/modules/plugins/rent/hikerrorinfo-add-or-update.vue
@@ -22,8 +22,8 @@
-
-
+
+
diff --git a/src/views/modules/plugins/rent/hikerrorinfo.vue b/src/views/modules/plugins/rent/hikerrorinfo.vue
index f6356981a..0ae95744d 100644
--- a/src/views/modules/plugins/rent/hikerrorinfo.vue
+++ b/src/views/modules/plugins/rent/hikerrorinfo.vue
@@ -11,7 +11,7 @@
-
+
diff --git a/src/views/modules/plugins/rent/rentblacklist-add-or-update.vue b/src/views/modules/plugins/rent/rentblacklist-add-or-update.vue
index cd2f51986..37deeb3fe 100644
--- a/src/views/modules/plugins/rent/rentblacklist-add-or-update.vue
+++ b/src/views/modules/plugins/rent/rentblacklist-add-or-update.vue
@@ -7,8 +7,8 @@
-
-
+
+
diff --git a/src/views/modules/plugins/rent/rentblacklist.vue b/src/views/modules/plugins/rent/rentblacklist.vue
index 6b8f9402a..fe9186836 100644
--- a/src/views/modules/plugins/rent/rentblacklist.vue
+++ b/src/views/modules/plugins/rent/rentblacklist.vue
@@ -1,9 +1,8 @@
-
-
-
+ placeholder="请输入证件号">
-
-
-
+
@@ -95,7 +94,6 @@
:gridName="lookInfo.gridName"
@close="handleCancleLook" />
-
+
+
diff --git a/src/views/modules/plugins/rent/renthouseForm.vue b/src/views/modules/plugins/rent/renthouseForm.vue
index 802960604..698eb824d 100644
--- a/src/views/modules/plugins/rent/renthouseForm.vue
+++ b/src/views/modules/plugins/rent/renthouseForm.vue
@@ -144,12 +144,12 @@
v-model="dataForm.ownerPhone">
-
diff --git a/src/views/modules/plugins/rent/renttenantinfo-add-or-update.vue b/src/views/modules/plugins/rent/renttenantinfo-add-or-update.vue
index f73040617..bfdb5a170 100644
--- a/src/views/modules/plugins/rent/renttenantinfo-add-or-update.vue
+++ b/src/views/modules/plugins/rent/renttenantinfo-add-or-update.vue
@@ -4,8 +4,8 @@
-
-
+
+
@@ -13,7 +13,7 @@
-
+
@@ -134,9 +78,6 @@
import { Loading } from 'element-ui' // 引入Loading服务
-var map
-var search
-var markers
var infoWindowList
var geocoder // 新建一个正逆地址解析类
@@ -144,12 +85,11 @@ let loading // 加载动画
export default {
data () {
return {
- workLogDetail: {},
+ formData: {},
}
},
components: {},
mounted () {
- this.initMap()
},
methods: {
diff --git a/src/views/modules/communityService/worklog/workLogForm.vue b/src/views/modules/communityService/worklog/workLogForm.vue
new file mode 100644
index 000000000..6765d69e9
--- /dev/null
+++ b/src/views/modules/communityService/worklog/workLogForm.vue
@@ -0,0 +1,467 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 平方公里
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
+
+
+
From f6a88767966d13be00a818b1c69cb8cf310cc9c9 Mon Sep 17 00:00:00 2001
From: jianjun
Date: Wed, 24 Aug 2022 15:07:50 +0800
Subject: [PATCH 36/69] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87?=
=?UTF-8?q?=E5=86=8D=E6=AC=A1=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../communityService/shzz/cpts/edit.vue | 10 ++--
.../modules/communityService/shzz/index.vue | 53 ++++++++++++++++---
2 files changed, 52 insertions(+), 11 deletions(-)
diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue
index bcd5c95be..8acdd3a6e 100644
--- a/src/views/modules/communityService/shzz/cpts/edit.vue
+++ b/src/views/modules/communityService/shzz/cpts/edit.vue
@@ -31,7 +31,7 @@
:on-progress="handleProgress"
:on-success="handleImgSuccess"
:before-upload="beforeImgUpload"
- accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP">
+ accept=".jpg,.jpeg,.png,.gif,.bmp,.JPG,.JPEG,.PBG,.GIF,.BMP">
@@ -71,7 +71,7 @@
>
-
-
+ -->
-
+
-
联系电话
+
服务电话
新增
+ 下载模板
-
-
+ -->
{
+ // this.download(res.data, title + '.xls')
+ if (res.headers["content-disposition"]) {
+ let fileName = window.decodeURI(
+ res.headers["content-disposition"].split(";")[1].split("=")[1]
+ );
+ console.log("filename", fileName);
+ let blob = new Blob([res.data], {
+ type: "application/vnd.ms-excel",
+ });
+ var url = window.URL.createObjectURL(blob);
+ var aLink = document.createElement("a");
+ aLink.style.display = "none";
+ aLink.href = url;
+ aLink.setAttribute("download", fileName);
+ document.body.appendChild(aLink);
+ aLink.click();
+ document.body.removeChild(aLink); //下载完成移除元素
+ window.URL.revokeObjectURL(url); //释放掉blob对象
+ } else this.$message.error("下载失败");
+ })
+ .catch((err) => {
+ console.log("err", err);
+ return this.$message.error("网络错误");
+ });
+ },
+
},
};
From 1dabe36d7b6439d99aa7f14e2be2bc234332ed7e Mon Sep 17 00:00:00 2001
From: jianjun
Date: Wed, 24 Aug 2022 15:28:44 +0800
Subject: [PATCH 37/69] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=97=A5=E5=BF=97?=
=?UTF-8?q?=E5=88=86=E7=B1=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/workSys/workLog/list.vue | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/views/modules/workSys/workLog/list.vue b/src/views/modules/workSys/workLog/list.vue
index 453a46bbb..f53cc086c 100644
--- a/src/views/modules/workSys/workLog/list.vue
+++ b/src/views/modules/workSys/workLog/list.vue
@@ -202,12 +202,7 @@ export default {
type: 'warning'
}).then(() => {
const url = '/heart/workdiaryService/serviceType/delete'
- // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/delcategory'
- const param = {
- customerId: this.customerId,
- ids: [row.id]
- }
- window.app.ajax.post(url, param,
+ window.app.ajax.post(url, [row.id],
(data, rspMsg) => {
this.$message.success('操作成功')
this.loadData()
From c7c12e834b75be3f5a90104206189b5b2a3ef93d Mon Sep 17 00:00:00 2001
From: zxc <1272811460@qq.com>
Date: Wed, 24 Aug 2022 15:35:05 +0800
Subject: [PATCH 38/69] =?UTF-8?q?=E6=9A=82=E6=8F=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../communityService/worklog/workLog.vue | 10 +-
.../worklog/workLogDetail.vue | 20 +-
.../communityService/worklog/workLogForm.vue | 387 ++++++------------
3 files changed, 152 insertions(+), 265 deletions(-)
diff --git a/src/views/modules/communityService/worklog/workLog.vue b/src/views/modules/communityService/worklog/workLog.vue
index 17f0079c2..b6d89577b 100644
--- a/src/views/modules/communityService/worklog/workLog.vue
+++ b/src/views/modules/communityService/worklog/workLog.vue
@@ -229,10 +229,10 @@
top="5vh"
class="dialog-h"
@closed="editDiaClose">
-
+ @dialogOk="addFormOk">
-
+
@@ -503,7 +503,7 @@ export default {
handleAdd () {
this.formTitle = '新增'
- this.formShow = 'edit'
+ this.formShow = 'add'
this.$nextTick(() => {
this.$refs.ref_form.initForm('add', null)
})
diff --git a/src/views/modules/communityService/worklog/workLogDetail.vue b/src/views/modules/communityService/worklog/workLogDetail.vue
index 917d571be..86c44280c 100644
--- a/src/views/modules/communityService/worklog/workLogDetail.vue
+++ b/src/views/modules/communityService/worklog/workLogDetail.vue
@@ -10,7 +10,8 @@
+ style="display: block"
+ class="input-width">
{{formData.serviceTypeName}}
@@ -24,8 +25,9 @@
- {{formData.areaCovered}}
+ {{formData.applicantName}}
{{formData.applicantAddress}}
-
- {{formData.applicantContent}}
+ {{formData.serviceContent}}
-
{{formData.applicantMobile}}
-
{{formData.principalName}}
-
{{formData.serviceTime}}
-
diff --git a/src/views/modules/communityService/worklog/workLogForm.vue b/src/views/modules/communityService/worklog/workLogForm.vue
index 6765d69e9..f61d35883 100644
--- a/src/views/modules/communityService/worklog/workLogForm.vue
+++ b/src/views/modules/communityService/worklog/workLogForm.vue
@@ -9,91 +9,105 @@
:disabled="formType === 'detail'"
class="form">
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
-
- 平方公里
+ label-width="150px"
+ prop="applicantAddress">
+
-
-
+ label-width="150px"
+ prop="serviceContent">
+
+
+
+
+
-
+
+ placeholder="请输入负责人">
-
-
+
+ placeholder="请输入服务时间">
-
-
+ prop="remark">
+
+
@@ -127,93 +141,83 @@ export default {
data () {
return {
formType: 'add', //表单操作类型 add新增,edit编辑,detail详情
-
+ agencyId: '',
btnDisable: false,
- icPublicServiceId: '',
+ applicantId: '',
keyWords: '',
formData: {
- name: '',//场所名称
- category: '',
- areaCovered: '',//占地面积
- capacity: '',//容纳人数
- address: '', //详细地址
- longitude: 36.0722275, //经度
- latitude: 120.38945519, //纬度
- principal: '',
- mobile: ''
+ serviceType: '',
+ gridId: '',
+ applicantAddress: '',
+ applicantName: '',
+ serviceContent: '',
+ applicantMobile: '',
+ principalName: '',
+ serviceTime: '',
+ remark: ''
},
- serviceList: [],//服务list
+ optionsG: [],
+ serviceTypeList: [],
publicServiceData: {},
}
},
components: {},
+ async created () {
+ this.getGridList('query')
+ this.getServiceTypeList()
+ },
mounted () {
},
methods: {
- async initForm (type, icPublicServiceId) {
+ async initForm (type, applicantId) {
this.startLoading()
this.$refs.ref_form.resetFields();
//获取服务事项
- await this.loadService()
+ await this.getServiceTypeList()
this.formType = type
- if (icPublicServiceId) {
- this.icPublicServiceId = icPublicServiceId
- this.formData.icPublicServiceId = icPublicServiceId
- await this.loadFormData()
+ if (applicantId) {
+ this.applicantId = applicantId
+ this.formData.applicantId = applicantId
+ // await this.loadFormData()
} else {
- // map.setCenter(new TMap.LatLng(36.0722275, 120.38945519))
- // this.setMarker(36.0722275, 120.38945519)
- }
+ }
this.endLoading()
-
},
//获取服务事项下拉框
- async loadService () {
- const url = "/gov/org/coverage/dict-select-list/public_service"
- // const url = "http://yapi.elinkservice.cn/mock/245/gov/org/coverage/dict-select-list/public_service"
+ async getServiceTypeList () {
+ // const url = "/heart/workdiaryService/serviceType/page"
+ let url = 'http://yapi.elinkservice.cn/mock/245/heart/workdiaryService/serviceType/page'
let params = {
+ pageNo: 1,
+ pageSize: 10000
}
-
const { data, code, msg } = await requestPost(url, params)
-
if (code === 0) {
- this.serviceList = data
-
+ this.serviceTypeList = data.list
} else {
this.$message.error(msg)
}
-
},
//加载组织
- async loadFormData () {
- const url = '/gov/org/icPublicService/detail'
+ async getGridList (type) {
+ const { user } = await this.$store.state;
+ const url = '/gov/org/customergrid/gridoption'
// const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/icPublicService/detail'
let params = {
- icPublicServiceId: this.icPublicServiceId
+ agencyId: user.agencyId,
+ purpose: type,
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
- console.log(data)
- if (null != data) {
- data: this.publicServiceData
- }
-
- this.formData = { ...data }
- // let { latitude, longitude } = this.$store.state.user;
- // const lat = this.formData.latitude === null || this.formData.latitude === '' ? '' : this.formData.latitude;
- // const lon = this.formData.longitude === null || this.formData.longitude === '' ? '' : this.formData.longitude;
- if (this.formData.latitude !== null && this.formData.latitude !== '' && this.formData.longitude !== null && this.formData.longitude !== '') {
- map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
- this.setMarker(this.formData.latitude, this.formData.longitude)
- }
+ this.optionsG = data;
} else {
this.$message.error(msg)
}
@@ -222,7 +226,6 @@ export default {
async handleComfirm () {
-
this.btnDisable = true
setTimeout(() => {
this.btnDisable = false
@@ -234,15 +237,13 @@ export default {
} else {
this.addUnit()
}
-
})
-
-
},
async addUnit () {
let url = ''
if (this.formType === 'add') {
- url = '/gov/org/icPublicService/add'
+ // url = '/heart/workdiaryService/record/save'
+ url = 'http://yapi.elinkservice.cn/mock/245/heart/workdiaryService/record/save'
} else {
url = '/gov/org/icPublicService/edit'
}
@@ -267,138 +268,17 @@ export default {
this.$emit('dialogCancle')
},
-
- // 地图初始化函数,本例取名为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(latitude, longitude);
- // 定义map变量,调用 TMap.Map() 构造函数创建地图
- map = new window.TMap.Map(document.getElementById('app'), {
- center: center, // 设置地图中心点坐标
- zoom: 17.2, // 设置地图缩放级别
- pitch: 43.5, // 设置俯仰角
- rotation: 45 // 设置地图旋转角度
- })
-
- search = new window.TMap.service.Search({ pageSize: 10 })
- // 新建一个地点搜索类
- markers = new TMap.MultiMarker({
- map: map,
- geometries: []
- })
- infoWindowList = Array(10)
-
- geocoder = new TMap.service.Geocoder(); // 新建一个正逆地址解析类
-
- // 监听地图平移结束
- map.on('panend', () => {
- this.handleMoveCenter()
- })
- // this.handleMoveCenter()
- this.convert()
- },
-
- setMarker (lat, lng) {
- markers.setGeometries([])
- markers.add([
- {
- id: '4',
- styleId: 'marker',
- position: new TMap.LatLng(lat, lng),
- properties: {
- title: 'marker4'
- }
- }
- ])
- },
-
- handleSearchMap () {
- infoWindowList.forEach((infoWindow) => {
- infoWindow.close()
- })
- infoWindowList.length = 0
- markers.setGeometries([])
- // 在地图显示范围内以给定的关键字搜索地点
- search
- .searchRectangle({
- keyword: this.formData.address,
- bounds: map.getBounds()
- })
- .then((result) => {
- let { data } = result
- if (Array.isArray(data) && data.length > 0) {
- const {
- location: { lat, lng }
- } = data[0]
-
-
- map.setCenter(new TMap.LatLng(lat, lng))
- this.setMarker(lat, lng)
- this.formData.latitude = lat
- this.formData.longitude = lng
- this.convert()
- } else {
- this.$message.error('未检索到相关位置坐标')
- }
- })
- },
-
- handleMoveCenter () {
- //修改地图中心点
- const center = map.getCenter()
- const lat = center.getLat()
- const lng = center.getLng()
- this.formData.latitude = lat
- this.formData.longitude = lng
- this.setMarker(lat, lng)
- this.convert(lat, lng)
- },
-
- convert (lat, lng) {
- markers.setGeometries([]);
- // var input = document.getElementById('location').value.split(',');
- let location
- if (lat && lng) {
- location = new TMap.LatLng(lat, lng);
- } else {
- location = new TMap.LatLng(this.formData.latitude, this.formData.longitude);
- }
-
- // map.setCenter(location);
- markers.updateGeometries([
- {
- id: 'main', // 点标注数据数组
- position: location,
- },
- ]);
- geocoder
- .getAddress({ location: location }) // 将给定的坐标位置转换为地址
- .then((result) => {
- console.log(this.formData)
- // this.formData.address = result.result.address === '' || result.result.address === null ? this.formData.address : result.result.address
- this.formData.address = this.formData.address !== '' && this.formData.address !== null && (this.formData.longitude === '' || this.formData.longitude === null) ? this.formData.address : result.result.address
- // 显示搜索到的地址
- });
- },
-
-
resetData () {
- this.icPublicServiceId = ''
- this.keyWords = ''
this.formData = {
- name: '',
- category: '',
- areaCovered: '',
- capacity: '',
- address: '', //详细地址
- longitude: '', //经度
- latitude: '' //纬度
+ serviceType: '',
+ gridId: '',
+ applicantAddress: '',
+ applicantName: '',
+ serviceContent: '',
+ applicantMobile: '',
+ principalName: '',
+ serviceTime: '',
+ remark: ''
}
},
// 开启加载动画
@@ -420,22 +300,27 @@ export default {
computed: {
dataRule () {
return {
-
- name: [
- { required: true, message: '场所名称不能为空', trigger: 'blur' },
+ gridId: [
+ { required: true, message: '所属网格不能为空', trigger: 'blur' },
+ ],
+ serviceType: [
+ { required: true, message: '服务类型不能为空', trigger: 'blur' }
+ ],
+ applicantAddress: [
+ { required: true, message: '住址不能为空', trigger: 'blur' }
],
- category: [
- { required: true, message: '场所类别不能为空', trigger: 'blur' }
+ applicantName: [
+ { required: true, message: '申请人不能为空', trigger: 'blur' }
],
- address: [
- { required: true, message: '地址不能为空', trigger: 'blur' }
+ serviceContent: [
+ { required: true, message: '服务内容不能为空', trigger: 'blur' }
],
- /*longitude: [
- { required: true, message: '坐标不能为空', trigger: 'blur' }
+ serviceTime: [
+ { required: true, message: '服务时间不能为空', trigger: 'blur' }
],
- latitude: [
- { required: true, message: '坐标不能为空', trigger: 'blur' }
- ]*/
+ applicantMobile: [
+ { required: true, message: '联系电话不能为空', trigger: 'blur' }
+ ]
}
},
From e2f43eabaac7728ff408e5451edc64ab49ce90fc Mon Sep 17 00:00:00 2001
From: jianjun
Date: Wed, 24 Aug 2022 16:03:56 +0800
Subject: [PATCH 39/69] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/communityService/shzz/cpts/edit.vue | 12 +++++++++---
src/views/modules/communityService/shzz/index.vue | 1 +
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue
index 8acdd3a6e..993ca6ab8 100644
--- a/src/views/modules/communityService/shzz/cpts/edit.vue
+++ b/src/views/modules/communityService/shzz/cpts/edit.vue
@@ -294,6 +294,7 @@ export default {
props: {},
watch: {
"dataForm.serviceTime": function (val) {
+ console.log("watch start"+val+'_'+Array.isArray(val))
if (Array.isArray(val) && val.length == 2) {
this.dataForm.serviceStartTime = val[0];
this.dataForm.serviceEndTime = val[1];
@@ -440,7 +441,7 @@ export default {
async loadAgency() {
const url = "/epmetuser/customerstaff/staffbasicinfo";
let params = {};
-
+ console.log("======loadAgency")
const {data, code, msg} = await requestPost(url, params);
if (code === 0) {
@@ -490,6 +491,7 @@ export default {
},
async submit() {
+
let url = "";
if (this.formType === "add") {
url = "/heart/societyorg/add";
@@ -522,6 +524,9 @@ export default {
},
resetData() {
this.societyId = ""; //小区ID
+ this.$refs.ref_form.resetFields();
+ this.propertyFormShow = false;
+ /*
this.dataForm = {
societyName: "",
serviceMatters: "",
@@ -534,8 +539,9 @@ export default {
address: "",
longitude: "",
latitude: "",
- };
- this.propertyFormShow = false;
+ imageList:[]
+ };*/
+
},
// 开启加载动画
startLoading() {
diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue
index a130cf446..333e082db 100644
--- a/src/views/modules/communityService/shzz/index.vue
+++ b/src/views/modules/communityService/shzz/index.vue
@@ -258,6 +258,7 @@ export default {
},
watch: {
"fmData.serviceTime": function (val) {
+ console.log("watch start"+val+'_'+Array.isArray(val))
if (Array.isArray(val) && val.length == 2) {
this.fmData.serviceStartTime = val[0];
this.fmData.serviceEndTime = val[1];
From 10c6828e70dd3e72ff9c8a581505dcf998c32008 Mon Sep 17 00:00:00 2001
From: jianjun
Date: Wed, 24 Aug 2022 16:10:56 +0800
Subject: [PATCH 40/69] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/communityService/shzz/index.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue
index 333e082db..e9a6c504d 100644
--- a/src/views/modules/communityService/shzz/index.vue
+++ b/src/views/modules/communityService/shzz/index.vue
@@ -114,7 +114,7 @@
excel导出
+ size="small">导出
Date: Wed, 24 Aug 2022 16:26:53 +0800
Subject: [PATCH 41/69] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87?=
=?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/communityService/shzz/index.vue | 281 ++++++++++--------
1 file changed, 162 insertions(+), 119 deletions(-)
diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue
index e9a6c504d..46c1405c9 100644
--- a/src/views/modules/communityService/shzz/index.vue
+++ b/src/views/modules/communityService/shzz/index.vue
@@ -21,20 +21,20 @@
-
+
@@ -50,9 +50,7 @@