-
-
+
+
-
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
@@ -211,12 +179,10 @@
取 消
- 确 定
+ 确 定
@@ -234,7 +200,7 @@ var infoWindowList;
let loading; // 加载动画
export default {
- data() {
+ data () {
return {
uploadUlr: window.SITE_CONFIG["apiURL"] + "/oss/file/uploadqrcodeV2",
btnLoading: false,
@@ -269,7 +235,7 @@ export default {
},
components: {},
computed: {
- dataRule() {
+ dataRule () {
return {
societyName: [
{ required: true, message: "组织名称 不能为空", trigger: "blur" },
@@ -314,7 +280,7 @@ export default {
},
},
- async mounted() {
+ async mounted () {
//this.initMap();
await this.loadAgency();
@@ -323,7 +289,7 @@ export default {
methods: {
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
- initMap() {
+ initMap () {
// 定义地图中心点坐标
var center = new window.TMap.LatLng(36.0722275, 120.38945519);
// 定义map变量,调用 TMap.Map() 构造函数创建地图
@@ -349,7 +315,7 @@ export default {
this.handleMoveCenter();
},
- setMarker(lat, lng) {
+ setMarker (lat, lng) {
markers.setGeometries([]);
markers.add([
{
@@ -363,7 +329,7 @@ export default {
]);
},
- handleSearchMap() {
+ handleSearchMap () {
infoWindowList.forEach((infoWindow) => {
infoWindow.close();
});
@@ -392,7 +358,7 @@ export default {
}
});
},
- beforeImgUpload(file) {
+ beforeImgUpload (file) {
const isPNG = file.type === "image/png" || file.type === "image/jpeg";
const isLt1M = file.size / 1024 / 1024 < 10;
@@ -404,11 +370,11 @@ export default {
}
return isPNG && isLt1M;
},
- handleProgress(event, file, fileList) {
+ handleProgress (event, file, fileList) {
this.uploading = true;
this.unloadPencent = Number(file.percentage.toFixed(0));
},
- handleImgSuccess(res, file) {
+ handleImgSuccess (res, file) {
if (res.code === 0 && res.msg === "success") {
this.uploading = false;
this.unloadPencent = 0;
@@ -417,10 +383,10 @@ export default {
this.$message.error(res.msg);
}
},
- handleDelimg(item, index) {
+ handleDelimg (item, index) {
this.dataForm.imageList.splice(index, 1);
},
- handleMoveCenter() {
+ handleMoveCenter () {
//修改地图中心点
const center = map.getCenter();
const lat = center.getLat();
@@ -430,7 +396,7 @@ export default {
this.setMarker(lat, lng);
},
- async initForm(type, row) {
+ async initForm (type, row) {
this.$refs.ref_form.resetFields();
this.formType = type;
@@ -448,7 +414,7 @@ export default {
},
//加载组织
- async loadAgency() {
+ async loadAgency () {
const url = "/epmetuser/customerstaff/staffbasicinfo";
let params = {};
const { data, code, msg } = await requestPost(url, params);
@@ -460,7 +426,7 @@ export default {
}
},
//加载网格
- async loadStaff() {
+ async loadStaff () {
const url = "/data/aggregator/org/currentOrgStafflist";
let params = {
@@ -484,7 +450,7 @@ export default {
}
},
- async handleComfirm() {
+ async handleComfirm () {
this.btnDisable = true;
setTimeout(() => {
this.btnDisable = false;
@@ -499,11 +465,11 @@ export default {
});
},
- async submit() {
+ async submit () {
let url = "";
if (this.formType === "add") {
url = "/heart/societyorg/add";
- // url = "http://yapi.elinkservice.cn/mock/245/gov/org/neighborhood/neighborhoodadd"
+
} else {
url = "/heart/societyorg/edit";
@@ -526,11 +492,11 @@ export default {
}
},
- handleCancle() {
+ handleCancle () {
this.resetData();
this.$emit("dialogCancle");
},
- resetData() {
+ resetData () {
this.societyId = ""; //小区ID
this.$refs.ref_form.resetFields();
this.propertyFormShow = false;
@@ -551,7 +517,7 @@ export default {
};*/
},
// 开启加载动画
- startLoading() {
+ startLoading () {
loading = Loading.service({
lock: true, // 是否锁定
text: "正在加载……", // 加载中需要显示的文字
@@ -559,7 +525,7 @@ export default {
});
},
// 结束加载动画
- endLoading() {
+ endLoading () {
// clearTimeout(timer);
if (loading) {
loading.close();
diff --git a/src/views/modules/communityService/sqzzz/cpts/edit.vue b/src/views/modules/communityService/sqzzz/cpts/edit.vue
index 9fdd02067..95b473a09 100644
--- a/src/views/modules/communityService/sqzzz/cpts/edit.vue
+++ b/src/views/modules/communityService/sqzzz/cpts/edit.vue
@@ -486,7 +486,7 @@ export default {
let url = "";
if (this.formType === "add") {
url = "/heart/iccommunityselforganization/addcommunityselforganization";
- // url = "http://yapi.elinkservice.cn/mock/245/gov/org/neighborhood/neighborhoodadd"
+
} else {
url =
"/heart/iccommunityselforganization/editcommunityselforganization";