From 6a13b335efb39e4a736f9141843c3f74115797da Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Tue, 27 Sep 2022 10:24:37 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/index.js | 173 +++++++++++-------
.../main-navbar-update-password-work.vue | 149 +++++++++------
.../main-navbar-update-password-work.vue | 148 ---------------
src/views/main-shuju/main-navbar.vue | 2 +-
src/views/pages/login.vue | 14 +-
5 files changed, 201 insertions(+), 285 deletions(-)
delete mode 100644 src/views/main-shuju/main-navbar-update-password-work.vue
diff --git a/src/utils/index.js b/src/utils/index.js
index 8cd1c35cb..9567f50d6 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -1,17 +1,18 @@
-import store from '@/js/store'
+import store from "@/js/store";
+import JSEncrypt from "jsencrypt"; //引入加密
/**
* 获取字典数据列表
* @param dictType 字典类型
*/
export function getDictDataList(dictType) {
- const type = window.SITE_CONFIG['dictList'].find(
+ const type = window.SITE_CONFIG["dictList"].find(
(element) => element.dictType === dictType
- )
+ );
if (type) {
- return type.dataList
+ return type.dataList;
} else {
- return []
+ return [];
}
}
@@ -21,20 +22,20 @@ export function getDictDataList(dictType) {
* @param dictValue 字典值
*/
export function getDictLabel(dictType, dictValue) {
- const type = window.SITE_CONFIG['dictList'].find(
+ const type = window.SITE_CONFIG["dictList"].find(
(element) => element.dictType === dictType
- )
+ );
if (type) {
const val = type.dataList.find(
(element) => element.dictValue === dictValue.toString()
- )
+ );
if (val) {
- return val.dictLabel
+ return val.dictLabel;
} else {
- return dictValue
+ return dictValue;
}
} else {
- return dictValue
+ return dictValue;
}
}
@@ -42,29 +43,31 @@ export function getDictLabel(dictType, dictValue) {
* 清除登录信息
*/
export function clearLoginInfo() {
- store.commit('resetStore')
- localStorage.removeItem('token')
- window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false
+ store.commit("resetStore");
+ localStorage.removeItem("token");
+ window.SITE_CONFIG["dynamicMenuRoutesHasAdded"] = false;
}
/**
* 获取uuid
*/
export function getUUID() {
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
- return (c === 'x' ? (Math.random() * 16) | 0 : 'r&0x3' | '0x8').toString(16)
- })
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
+ return (c === "x" ? (Math.random() * 16) | 0 : "r&0x3" | "0x8").toString(
+ 16
+ );
+ });
}
/**
* 获取svg图标(id)列表
*/
export function getIconList() {
- var res = []
- document.querySelectorAll('svg symbol').forEach((item) => {
- res.push(item.id)
- })
- return res
+ var res = [];
+ document.querySelectorAll("svg symbol").forEach((item) => {
+ res.push(item.id);
+ });
+ return res;
}
/**
@@ -73,46 +76,49 @@ export function getIconList() {
* @param {*} id
* @param {*} pid
*/
-export function treeDataTranslate(data, id = 'id', pid = 'pid') {
- var res = []
- var temp = {}
+export function treeDataTranslate(data, id = "id", pid = "pid") {
+ var res = [];
+ var temp = {};
for (var i = 0; i < data.length; i++) {
- temp[data[i][id]] = data[i]
+ temp[data[i][id]] = data[i];
}
for (var k = 0; k < data.length; k++) {
if (!temp[data[k][pid]] || data[k][id] === data[k][pid]) {
- res.push(data[k])
- continue
+ res.push(data[k]);
+ continue;
}
- if (!temp[data[k][pid]]['children']) {
- temp[data[k][pid]]['children'] = []
+ if (!temp[data[k][pid]]["children"]) {
+ temp[data[k][pid]]["children"] = [];
}
- temp[data[k][pid]]['children'].push(data[k])
- data[k]['_level'] = (temp[data[k][pid]]._level || 0) + 1
+ temp[data[k][pid]]["children"].push(data[k]);
+ data[k]["_level"] = (temp[data[k][pid]]._level || 0) + 1;
}
- return res
+ return res;
}
// 时间格式化
export function dateFormats(fmt, date) {
- let ret
- const _date = new Date(date)
+ let ret;
+ const _date = new Date(date);
const opt = {
- 'Y+': _date.getFullYear().toString(), // 年
- 'm+': (_date.getMonth() + 1).toString(), // 月
- 'd+': _date.getDate().toString(), // 日
- 'H+': _date.getHours().toString(), // 时
- 'M+': _date.getMinutes().toString(), // 分
- 'S+': _date.getSeconds().toString() // 秒
+ "Y+": _date.getFullYear().toString(), // 年
+ "m+": (_date.getMonth() + 1).toString(), // 月
+ "d+": _date.getDate().toString(), // 日
+ "H+": _date.getHours().toString(), // 时
+ "M+": _date.getMinutes().toString(), // 分
+ "S+": _date.getSeconds().toString(), // 秒
// 有其他格式化字符需求可以继续添加,必须转化成字符串
- }
+ };
for (const k in opt) {
- ret = new RegExp('(' + k + ')').exec(fmt)
+ ret = new RegExp("(" + k + ")").exec(fmt);
if (ret) {
- fmt = fmt.replace(ret[1], (ret[1].length === 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, '0')))
+ fmt = fmt.replace(
+ ret[1],
+ ret[1].length === 1 ? opt[k] : opt[k].padStart(ret[1].length, "0")
+ );
}
}
- return fmt
+ return fmt;
}
// 根据身份证计算出生日期,性别,年龄
export function computedCard(idCard) {
@@ -123,49 +129,78 @@ export function computedCard(idCard) {
let day = myDate.getDate();
let age = 0;
- if(idCard.length===18){
+ if (idCard.length === 18) {
age = myDate.getFullYear() - idCard.substring(6, 10) - 1;
- sex = idCard.substring(16,17);
- birth = idCard.substring(6,10)+"-"+idCard.substring(10,12)+"-"+idCard.substring(12,14);
- if (idCard.substring(10, 12) < month || idCard.substring(10, 12) === month && idCard.substring(12, 14) <= day) age++;
-
+ sex = idCard.substring(16, 17);
+ birth =
+ idCard.substring(6, 10) +
+ "-" +
+ idCard.substring(10, 12) +
+ "-" +
+ idCard.substring(12, 14);
+ if (
+ idCard.substring(10, 12) < month ||
+ (idCard.substring(10, 12) === month && idCard.substring(12, 14) <= day)
+ )
+ age++;
}
- if(idCard.length===15){
+ if (idCard.length === 15) {
age = myDate.getFullYear() - idCard.substring(6, 8) - 1901;
- sex = idCard.substring(13,14);
- birth = "19"+idCard.substring(6,8)+"-"+idCard.substring(8,10)+"-"+idCard.substring(10,12);
- if (idCard.substring(8, 10) < month || idCard.substring(8, 10) === month && idCard.substring(10, 12) <= day) age++;
+ sex = idCard.substring(13, 14);
+ birth =
+ "19" +
+ idCard.substring(6, 8) +
+ "-" +
+ idCard.substring(8, 10) +
+ "-" +
+ idCard.substring(10, 12);
+ if (
+ idCard.substring(8, 10) < month ||
+ (idCard.substring(8, 10) === month && idCard.substring(10, 12) <= day)
+ )
+ age++;
}
- if(sex%2 === 0)
- sex = '0'; // 性别代码 1代表男,0代表女,暂时不涉及其他类型性别
- else
- sex = '1';
- return {age , sex, birth}
+ if (sex % 2 === 0)
+ sex = "0"; // 性别代码 1代表男,0代表女,暂时不涉及其他类型性别
+ else sex = "1";
+ return { age, sex, birth };
}
// 将数组分成小块数组的集合
export function spliceIntoChunks(arr, chunkSize) {
const res = [];
while (arr.length > 0) {
- const chunk = arr.splice(0, chunkSize);
- res.push(chunk);
+ const chunk = arr.splice(0, chunkSize);
+ res.push(chunk);
}
return res;
}
+
// 获取当前时间 如果有指定time则按指定的来
-export function getCurrentDate(hour,min,sec) {
- console.log(hour,min,sec)
+export function getCurrentDate(hour, min, sec) {
+ console.log(hour, min, sec);
let date = new Date();
- if (hour){
+ if (hour) {
date.setHours(hour);
- console.log(hour)
- }if (min!==undefined){
+ console.log(hour);
+ }
+ if (min !== undefined) {
date.setMinutes(min);
- console.log(min)
- }if (sec!==undefined){
+ console.log(min);
+ }
+ if (sec !== undefined) {
date.setSeconds(sec);
- console.log(sec)
+ console.log(sec);
}
return date;
}
+// 加密
+export function encryptedData(key, data) {
+ // 新建JSEncrypt对象
+ let encryptor = new JSEncrypt();
+ // 设置公钥
+ encryptor.setPublicKey(key);
+ // 加密数据
+ return encryptor.encrypt(data);
+}
diff --git a/src/views/main-navbar-update-password-work.vue b/src/views/main-navbar-update-password-work.vue
index c29715ba6..e90d92ab7 100644
--- a/src/views/main-navbar-update-password-work.vue
+++ b/src/views/main-navbar-update-password-work.vue
@@ -16,13 +16,13 @@
{{ $store.state.user.realName }}
-
+
- {{ $t('cancel') }}
+ {{ $t("cancel") }}
{{
- $t('confirm')
+ $t("confirm")
}}
diff --git a/src/views/main-shuju/main-navbar-update-password-work.vue b/src/views/main-shuju/main-navbar-update-password-work.vue
deleted file mode 100644
index c29715ba6..000000000
--- a/src/views/main-shuju/main-navbar-update-password-work.vue
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-
-
- {{ $store.state.user.realName }}
-
-
-
-
-
-
-
-
-
-
- {{ $t('cancel') }}
- {{
- $t('confirm')
- }}
-
-
-
-
-
diff --git a/src/views/main-shuju/main-navbar.vue b/src/views/main-shuju/main-navbar.vue
index e0715272f..2672b6952 100644
--- a/src/views/main-shuju/main-navbar.vue
+++ b/src/views/main-shuju/main-navbar.vue
@@ -139,7 +139,7 @@
import { messages } from "@/i18n";
import { mapGetters } from "vuex";
import screenfull from "screenfull";
-import UpdatePasswordWork from "./main-navbar-update-password-work";
+import UpdatePasswordWork from "@/views/main-navbar-update-password-work";
import { clearLoginInfo } from "@/utils";
export default {
inject: ["refresh"],
diff --git a/src/views/pages/login.vue b/src/views/pages/login.vue
index 10cf96a93..9a86fa5b5 100644
--- a/src/views/pages/login.vue
+++ b/src/views/pages/login.vue
@@ -95,9 +95,8 @@ import Cookies from "js-cookie";
import CDialog from "@c/CDialog";
import debounce from "lodash/debounce";
import { messages } from "@/i18n";
-import { getUUID } from "@/utils";
+import { getUUID, encryptedData } from "@/utils";
import { Loading } from "element-ui"; // 引入Loading服务
-import JSEncrypt from "jsencrypt"; //引入加密
let loading; // 加载动画
export default {
@@ -262,7 +261,7 @@ export default {
this.dataForm.customerId = row.customerId;
let param = {};
Object.assign(param, this.dataForm);
- param.password = this.encryptedData(this.pubKey, this.dataForm.password);
+ param.password = encryptedData(this.pubKey, this.dataForm.password);
this.$http
.post(url, param)
.then(({ data: res }) => {
@@ -301,15 +300,6 @@ export default {
loading.close();
}
},
- // 加密
- encryptedData(key, data) {
- // 新建JSEncrypt对象
- let encryptor = new JSEncrypt();
- // 设置公钥
- encryptor.setPublicKey(key);
- // 加密数据
- return encryptor.encrypt(data);
- },
},
};
From 762efafd8d7b93794f34e684c7381514b6dfbcb4 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Tue, 27 Sep 2022 14:46:16 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E9=AB=98=E5=8D=B1=E6=BC=8F=E6=B4=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/scss/pages/loginWork.scss | 1 +
src/views/pages/login.vue | 38 ++++++++--------------------
2 files changed, 11 insertions(+), 28 deletions(-)
diff --git a/src/assets/scss/pages/loginWork.scss b/src/assets/scss/pages/loginWork.scss
index 534cccba9..7f5689f2f 100644
--- a/src/assets/scss/pages/loginWork.scss
+++ b/src/assets/scss/pages/loginWork.scss
@@ -64,6 +64,7 @@
.input {
width: 85%;
+ margin-bottom: 0;
input {
display: block;
diff --git a/src/views/pages/login.vue b/src/views/pages/login.vue
index 9a86fa5b5..8e39a89e2 100644
--- a/src/views/pages/login.vue
+++ b/src/views/pages/login.vue
@@ -16,35 +16,35 @@
-
+
-
+
![]()
@@ -175,35 +175,16 @@ export default {
// 表单提交
dataFormSubmitHandle() {
this.$refs["dataForm"].validate((valid, messageObj) => {
+ console.log(valid, messageObj);
if (!valid) {
app.util.validateRule(messageObj);
+ return;
}
this.startLoading();
- // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/epmetuser/customerstaff/customerlist'
const url = "/epmetuser/customerstaff/customerlist";
const params = {
- phone: this.dataForm.phone,
+ phone: encryptedData(this.pubKey, this.dataForm.phone),
};
- // this.$http
- // .post(url, params).then(({ data })=> {
- // console.log('res--comll', data)
- // if (data.data.length === 0) {
- // //没有客户,提示无法登录
- // this.$message.error('账号不存在')
- // this.endLoading()
- // } else if (data.data.length === 1) {
- // this.selectCustomer(data.data[0])
- // } else {
- // this.endLoading()
- // this.diaVisible = true
- // this.$nextTick(() => {
- // this.tableData = data.data
- // })
- // }
- // }).catch((err) => {
- // this.endLoading()
- // this.$message.error(err)
- // })
window.app.ajax.post(
url,
params,
@@ -261,6 +242,7 @@ export default {
this.dataForm.customerId = row.customerId;
let param = {};
Object.assign(param, this.dataForm);
+ param.phone = encryptedData(this.pubKey, this.dataForm.phone);
param.password = encryptedData(this.pubKey, this.dataForm.password);
this.$http
.post(url, param)
From aa2a848df5b965228fdf2019cdb9e861d4b053b0 Mon Sep 17 00:00:00 2001
From: jiangyy
Date: Wed, 28 Sep 2022 10:39:21 +0800
Subject: [PATCH 3/4] 11
---
.../modules/plugins/point/icpointvaccinesinoculation.vue | 3 ++-
src/views/modules/sys/icvaccineprarmeter.vue | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
index 066bb6756..fd7901f0b 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
@@ -3,6 +3,7 @@
@@ -178,7 +179,7 @@
@closed="diaDetailClose"
custom-class="dialog-h">
+ @closeDialog="diaDetailClose">
+ label-width="80px">
+ label-width="80px">
From a0619b7c0ff67b7af85cfbc6774d8478056184c4 Mon Sep 17 00:00:00 2001
From: jiangyy
Date: Wed, 28 Sep 2022 15:39:03 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../scss/modules/management/detail-main.scss | 2 +-
.../modules/base/community/buildDetail.vue | 9 +
.../modules/base/community/buildTable.vue | 9 +-
.../base/community/communityDetail.vue | 9 +
.../modules/base/community/communityTable.vue | 12 +-
.../modules/base/community/roomDetail.vue | 8 +
.../modules/base/community/roomTable.vue | 6 +-
.../base/huji/chusheng/cpts/detail.vue | 8 +
.../modules/base/huji/chusheng/index.vue | 7 +-
.../modules/base/huji/immigration/detail.vue | 8 +
.../modules/base/huji/immigration/index.vue | 3 +-
.../modules/communityParty/elegant/detail.vue | 9 +
.../modules/communityParty/elegant/index.vue | 3 +-
.../communityParty/heart/heartDetail.vue | 8 +-
.../communityParty/heart/heartList.vue | 3 +-
.../communityParty/members/detailForm.vue | 167 ++++++++++--------
.../modules/communityParty/members/index.vue | 3 +-
.../activivityList/activivityList.vue | 3 +-
.../activivityList/detailActivity.vue | 10 +-
.../regionalParty/activitys.vue | 2 +-
.../regionalParty/activitysDetail.vue | 6 +-
.../modules/communityParty/stas/index.vue | 83 ++++-----
.../communityService/fuwujilu/detailForm.vue | 14 +-
.../communityService/fuwujilu/fuwuList.vue | 3 +-
.../fuwuxiangmu/cpts/detail.vue | 6 +-
.../communityService/fuwuxiangmu/index.vue | 3 +-
.../fuwuzuzhi/cpts/detail.vue | 31 ++--
.../communityService/fuwuzuzhi/index.vue | 3 +-
.../communityService/measure/detail.vue | 9 +
.../communityService/measure/index.vue | 5 +-
.../ninePlaces/inspect/inspect.vue | 2 +-
.../ninePlaces/inspect/inspectDetail.vue | 100 +++++------
.../ninePlaces/places/places.vue | 2 +-
.../ninePlaces/places/placesDetail.vue | 16 +-
.../communityService/ninePlaces/team/team.vue | 4 +-
.../ninePlaces/team/teamDetail.vue | 15 +-
.../communityService/worklog/workLog.vue | 2 +-
.../worklog/workLogDetail.vue | 6 +-
.../modules/shequzhili/csgltc/csglDetail.vue | 4 +-
.../modules/shequzhili/ggfwtc/ggfwDetail.vue | 6 +-
40 files changed, 350 insertions(+), 259 deletions(-)
diff --git a/src/assets/scss/modules/management/detail-main.scss b/src/assets/scss/modules/management/detail-main.scss
index e79c35498..31f16237f 100644
--- a/src/assets/scss/modules/management/detail-main.scss
+++ b/src/assets/scss/modules/management/detail-main.scss
@@ -17,7 +17,7 @@
}
.div-btn{
- margin-top:50px;
+ margin-top:30px;
// margin-bottom:20px;
display: flex;
justify-content: center;
diff --git a/src/views/modules/base/community/buildDetail.vue b/src/views/modules/base/community/buildDetail.vue
index 31039d156..270e0ae72 100644
--- a/src/views/modules/base/community/buildDetail.vue
+++ b/src/views/modules/base/community/buildDetail.vue
@@ -68,7 +68,11 @@
+
+ 关 闭
+
@@ -120,6 +124,11 @@ export default {
},
methods: {
+ handleCancle () {
+ this.diaDestroy()
+ this.$emit('diaDetailClose')
+
+ },
diaDestroy () {
if (map) {
map.destroy()
diff --git a/src/views/modules/base/community/buildTable.vue b/src/views/modules/base/community/buildTable.vue
index 97fd4eb2f..b8d5ecafc 100644
--- a/src/views/modules/base/community/buildTable.vue
+++ b/src/views/modules/base/community/buildTable.vue
@@ -14,7 +14,8 @@
size="small"
@click="handleExportModule('building')">下载楼栋模板
-
下载房屋模板
-
-
+
diff --git a/src/views/modules/base/community/communityDetail.vue b/src/views/modules/base/community/communityDetail.vue
index b04e4f30f..26367608e 100644
--- a/src/views/modules/base/community/communityDetail.vue
+++ b/src/views/modules/base/community/communityDetail.vue
@@ -61,7 +61,11 @@
+
+ 关 闭
+
@@ -106,6 +110,11 @@ export default {
},
methods: {
+ handleCancle () {
+ this.diaDestroy()
+ this.$emit('diaDetailClose')
+
+ },
diaDestroy () {
if (map) {
map.destroy()
diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue
index ede5b04ce..519ffa792 100644
--- a/src/views/modules/base/community/communityTable.vue
+++ b/src/views/modules/base/community/communityTable.vue
@@ -26,7 +26,8 @@
size="small"
@click="handleExportModule('community')">下载小区模板
- 下载楼栋模板
- 下载房屋模板
-
-
+
diff --git a/src/views/modules/base/community/roomDetail.vue b/src/views/modules/base/community/roomDetail.vue
index fe7d74547..45bc21fc3 100644
--- a/src/views/modules/base/community/roomDetail.vue
+++ b/src/views/modules/base/community/roomDetail.vue
@@ -66,7 +66,11 @@
+
+ 关 闭
+
@@ -117,7 +121,11 @@ export default {
},
methods: {
+ handleCancle () {
+ // this.diaDestroy()
+ this.$emit('diaDetailClose')
+ },
diaDestroy () {
if (map) {
map.destroy()
diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue
index a0b92e4ce..354b3684d 100644
--- a/src/views/modules/base/community/roomTable.vue
+++ b/src/views/modules/base/community/roomTable.vue
@@ -8,7 +8,8 @@
@click="handleAdd">新增房屋
- 下载房屋模板
@@ -196,7 +197,8 @@
top="5vh"
class="dialog-h"
@closed="detailFormCancle">
-
+
diff --git a/src/views/modules/base/huji/chusheng/cpts/detail.vue b/src/views/modules/base/huji/chusheng/cpts/detail.vue
index 95a0f4058..b68fae161 100644
--- a/src/views/modules/base/huji/chusheng/cpts/detail.vue
+++ b/src/views/modules/base/huji/chusheng/cpts/detail.vue
@@ -71,7 +71,11 @@
+
+ 关 闭
+
@@ -132,7 +136,11 @@ export default {
methods: {
+ handleCancle () {
+
+ this.$emit('diaDetailClose')
+ },
async initForm (row) {
await this.getInfo(row.id);
diff --git a/src/views/modules/base/huji/chusheng/index.vue b/src/views/modules/base/huji/chusheng/index.vue
index 659071823..a4112360a 100644
--- a/src/views/modules/base/huji/chusheng/index.vue
+++ b/src/views/modules/base/huji/chusheng/index.vue
@@ -168,7 +168,8 @@
class="diy-button--export"
size="small"
@click="handleExportModule('room')">下载模板
-
-
+
+
diff --git a/src/views/modules/base/huji/immigration/detail.vue b/src/views/modules/base/huji/immigration/detail.vue
index 84e595d76..fcdafa994 100644
--- a/src/views/modules/base/huji/immigration/detail.vue
+++ b/src/views/modules/base/huji/immigration/detail.vue
@@ -71,7 +71,11 @@
+
+ 关 闭
+
@@ -99,7 +103,11 @@ export default {
},
methods: {
+ handleCancle () {
+
+ this.$emit('diaDetailClose')
+ },
async initForm (id) {
await this.getDatail(id)
diff --git a/src/views/modules/base/huji/immigration/index.vue b/src/views/modules/base/huji/immigration/index.vue
index be5ccf66f..a15e65ba0 100644
--- a/src/views/modules/base/huji/immigration/index.vue
+++ b/src/views/modules/base/huji/immigration/index.vue
@@ -357,7 +357,8 @@
class="dialog-h"
@closed="detailFormCancle">
+ ref="ref_form_detail"
+ @diaDetailClose="detailFormCancle">
diff --git a/src/views/modules/communityParty/elegant/detail.vue b/src/views/modules/communityParty/elegant/detail.vue
index bcddf5b3d..9586d16c1 100644
--- a/src/views/modules/communityParty/elegant/detail.vue
+++ b/src/views/modules/communityParty/elegant/detail.vue
@@ -43,7 +43,11 @@
+
+ 关 闭
+
@@ -73,6 +77,11 @@ export default {
},
methods: {
+ handleCancle () {
+
+ this.$emit('diaDetailClose')
+
+ },
async initForm (row) {
diff --git a/src/views/modules/communityParty/elegant/index.vue b/src/views/modules/communityParty/elegant/index.vue
index 292ca37ac..0a26f120f 100644
--- a/src/views/modules/communityParty/elegant/index.vue
+++ b/src/views/modules/communityParty/elegant/index.vue
@@ -290,7 +290,8 @@
top="5vh"
class="dialog-h"
@closed="detailFormCancle">
-
+
diff --git a/src/views/modules/communityParty/heart/heartDetail.vue b/src/views/modules/communityParty/heart/heartDetail.vue
index 6832a618c..b9b2869bf 100644
--- a/src/views/modules/communityParty/heart/heartDetail.vue
+++ b/src/views/modules/communityParty/heart/heartDetail.vue
@@ -171,7 +171,11 @@
+
+ 关 闭
+
@@ -435,8 +439,8 @@ export default {
handleCancle () {
- this.resetData()
- this.$emit('dialogCancle')
+
+ this.$emit('diaDetailClose')
},
diff --git a/src/views/modules/communityParty/heart/heartList.vue b/src/views/modules/communityParty/heart/heartList.vue
index e1c0432d7..7b5dff515 100644
--- a/src/views/modules/communityParty/heart/heartList.vue
+++ b/src/views/modules/communityParty/heart/heartList.vue
@@ -243,7 +243,8 @@
top="5vh"
class="dialog-h"
@closed="detailFormCancle">
-
+
diff --git a/src/views/modules/communityParty/members/detailForm.vue b/src/views/modules/communityParty/members/detailForm.vue
index bcf6a3fc3..e0648dbb1 100644
--- a/src/views/modules/communityParty/members/detailForm.vue
+++ b/src/views/modules/communityParty/members/detailForm.vue
@@ -1,109 +1,116 @@
-
-
本模块主要为添加非本社区居住党员,本社区居住党员建议到居民信息页面添加
-
-
-
-
-
所属党组织:
-
{{ info.orgName }}
+
+
+
本模块主要为添加非本社区居住党员,本社区居住党员建议到居民信息页面添加
+
+
+
+
+ 所属党组织:
+ {{ info.orgName }}
+
+
+
+ 党员中心户:
+ {{ info.isDyzxh==='1'?'是':'否' }}
+
-
- 党员中心户:
- {{ info.isDyzxh==='1'?'是':'否' }}
-
-
-
-
+
-
- 姓名:
- {{ info.name}}
-
+
+ 姓名:
+ {{ info.name}}
+
-
-
免学习:
-
{{info.isMxx==='1'?'是':'否'}}
+
+ 免学习:
+ {{info.isMxx==='1'?'是':'否'}}
+
-
-
+
-
- 手机号:
- {{ info.mobile?info.mobile:'--'}}
-
-
-
职务:
-
{{info.partyZwShow?info.partyZwShow:'--' }}
+
+ 手机号:
+ {{ info.mobile?info.mobile:'--'}}
+
+
+ 职务:
+ {{info.partyZwShow?info.partyZwShow:'--' }}
+
-
-
+
-
- 身份证:
- {{ info.idCard?info.idCard:'--' }}
-
-
-
文化程度:
-
{{ info.cultureName?info.cultureName:'--' }}
+
+ 身份证:
+ {{ info.idCard?info.idCard:'--' }}
+
+
+ 文化程度:
+ {{ info.cultureName?info.cultureName:'--' }}
+
-
-
+
-
-
地址:
-
{{ info.address?info.address:'--' }}
+
+ 地址:
+ {{ info.address?info.address:'--' }}
+
+
+ 入党时间:
+ {{ info.rdsj?info.rdsj:'--' }}
+
-
- 入党时间:
- {{ info.rdsj?info.rdsj:'--' }}
-
-
-
+
-
- 流动党员:
- {{ info.isLd==='1'?'是':'否'}}
-
-
-
流动党员号:
-
{{ info.ldzh?info.ldzh:'--' }}
+
+ 流动党员:
+ {{ info.isLd==='1'?'是':'否'}}
+
+
+ 流动党员号:
+ {{ info.ldzh?info.ldzh:'--' }}
+
+
-
+
-
+
+ 备注:
+ {{ info.remark? info.remark:'--' }}
+
-
- 备注:
- {{ info.remark? info.remark:'--' }}
-
-
-
+
+ 关 闭
+
@@ -187,7 +194,11 @@ export default {
// this.$refs['ruleForm'].resetFields()
},
methods: {
+ handleCancle () {
+ this.$emit('diaDetailClose')
+
+ },
async saveRecord (form) {
const params = {
...form,
diff --git a/src/views/modules/communityParty/members/index.vue b/src/views/modules/communityParty/members/index.vue
index ea47281fc..f5a710ed3 100644
--- a/src/views/modules/communityParty/members/index.vue
+++ b/src/views/modules/communityParty/members/index.vue
@@ -335,7 +335,8 @@
+ :disabled="disabled"
+ @diaDetailClose="handlerCancle" />
diff --git a/src/views/modules/communityParty/orgActivity/activivityList/activivityList.vue b/src/views/modules/communityParty/orgActivity/activivityList/activivityList.vue
index fa88d16a6..fb2782f0b 100644
--- a/src/views/modules/communityParty/orgActivity/activivityList/activivityList.vue
+++ b/src/views/modules/communityParty/orgActivity/activivityList/activivityList.vue
@@ -265,7 +265,8 @@
@closed="detailShow = false">
+ :icPartyActId="icPartyActId"
+ @diaDetailClose="detailShow = false">
附件:
-
--
@@ -60,7 +60,11 @@
+
+ 关 闭
+
@@ -275,8 +279,8 @@ export default {
},
handleCancle () {
- this.resetData()
- this.$emit('handleClose')
+
+ this.$emit('diaDetailClose')
},
diff --git a/src/views/modules/communityParty/regionalParty/activitys.vue b/src/views/modules/communityParty/regionalParty/activitys.vue
index 9a12e535c..e9785bebb 100644
--- a/src/views/modules/communityParty/regionalParty/activitys.vue
+++ b/src/views/modules/communityParty/regionalParty/activitys.vue
@@ -245,7 +245,7 @@
+ @diaDetailClose="detailClosed">
diff --git a/src/views/modules/communityParty/regionalParty/activitysDetail.vue b/src/views/modules/communityParty/regionalParty/activitysDetail.vue
index af98c885f..744bb1be6 100644
--- a/src/views/modules/communityParty/regionalParty/activitysDetail.vue
+++ b/src/views/modules/communityParty/regionalParty/activitysDetail.vue
@@ -58,11 +58,11 @@
-
+
@@ -94,7 +94,7 @@ export default {
handleCancle () {
this.diaDestroy()
- this.$emit('diaClose')
+ this.$emit('diaDetailClose')
},
diff --git a/src/views/modules/communityParty/stas/index.vue b/src/views/modules/communityParty/stas/index.vue
index 04efa189a..afc0660cc 100644
--- a/src/views/modules/communityParty/stas/index.vue
+++ b/src/views/modules/communityParty/stas/index.vue
@@ -4,23 +4,24 @@
+ :label-width="'110px'">
-
-
+
+ @change="handleChangeOrg"
+ clearable />
@@ -47,10 +48,10 @@
- 导出
+ 导出
+ label="支部党员大会(次)">
+ show-overflow-tooltip>
+ label="党小组会(次)">
+ label="党课(次)">
+ label="主题党日(次)">
+ label="为民服务活动(次)">
@@ -168,25 +163,25 @@ export default {
this.form.joinOrgId = ''
}
},
- getOrgList() {
+ getOrgList () {
return this.$http
- .get('/resi/partymember/icPartyOrg/getSearchTreelist', {
- params: { agencyId: localStorage.getItem('agencyId') }
- })
- .then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- }else {
- this.orgList = this.deepArrTOnull(res.data)
- }
- }).catch(() => {return this.$message.error("网络错误");})
+ .get('/resi/partymember/icPartyOrg/getSearchTreelist', {
+ params: { agencyId: localStorage.getItem('agencyId') }
+ })
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ } else {
+ this.orgList = this.deepArrTOnull(res.data)
+ }
+ }).catch(() => { return this.$message.error("网络错误"); })
},
- deepArrTOnull(arr) {
+ deepArrTOnull (arr) {
let a = []
a = arr.map(item => {
return {
...item,
- children: (item.children.length > 0 && this.deepArrTOnull(item.children) )|| null
+ children: (item.children.length > 0 && this.deepArrTOnull(item.children)) || null
}
})
return a
@@ -196,17 +191,17 @@ export default {
if (Array.isArray(this.serviceTimeArea) && this.serviceTimeArea.length > 0) {
this.form.startTime = this.serviceTimeArea[0];
this.form.endTime = this.serviceTimeArea[1];
- }else {
+ } else {
this.form.startTime = '';
this.form.endTime = '';
}
- if (this.form.joinOrgId === '' || this.form.joinOrgId === null || this.form.joinOrgId === undefined){
+ if (this.form.joinOrgId === '' || this.form.joinOrgId === null || this.form.joinOrgId === undefined) {
let a = this.orgList[0]
this.form.joinOrgId = a.id;
this.joinOrgIds = this.form.joinOrgId
- }else {
- if (Array.isArray(this.joinOrgIds)){
+ } else {
+ if (Array.isArray(this.joinOrgIds)) {
this.form.joinOrgId = this.joinOrgIds[this.joinOrgIds.length - 1];
}
}
diff --git a/src/views/modules/communityService/fuwujilu/detailForm.vue b/src/views/modules/communityService/fuwujilu/detailForm.vue
index 40665e62b..be802b46c 100644
--- a/src/views/modules/communityService/fuwujilu/detailForm.vue
+++ b/src/views/modules/communityService/fuwujilu/detailForm.vue
@@ -100,15 +100,11 @@
-
+ @click="handleCancle">关 闭
+
+
+ :statusArray="statusArray"
+ @diaDetailClose="diaDetailClose">
+
+ 关 闭
+
@@ -145,7 +149,7 @@ export default {
handleCancle () {
- this.$emit("close");
+ this.$emit("diaDetailClose");
},
},
};
diff --git a/src/views/modules/communityService/fuwuxiangmu/index.vue b/src/views/modules/communityService/fuwuxiangmu/index.vue
index 2f5820a8f..a55231b0e 100644
--- a/src/views/modules/communityService/fuwuxiangmu/index.vue
+++ b/src/views/modules/communityService/fuwuxiangmu/index.vue
@@ -187,7 +187,8 @@
class="dialog-h"
@closed="handleClose">
+ :formId="formId"
+ @diaDetailClose="handleClose">
diff --git a/src/views/modules/communityService/fuwuzuzhi/cpts/detail.vue b/src/views/modules/communityService/fuwuzuzhi/cpts/detail.vue
index 8b00db98a..2b9322af5 100644
--- a/src/views/modules/communityService/fuwuzuzhi/cpts/detail.vue
+++ b/src/views/modules/communityService/fuwuzuzhi/cpts/detail.vue
@@ -53,17 +53,11 @@
-
+
+ 关 闭
+
+
@@ -112,6 +106,17 @@ export default {
},
methods: {
+ handleCancle () {
+ this.diaDestroy()
+ this.$emit('diaDetailClose')
+
+ },
+
+ diaDestroy () {
+ if (map) {
+ map.destroy()
+ }
+ },
async initForm () {
this.startLoading()
@@ -258,9 +263,7 @@ export default {
},
- handleCancle () {
- this.$emit("close");
- },
+
// 开启加载动画
startLoading () {
loading = Loading.service({
diff --git a/src/views/modules/communityService/fuwuzuzhi/index.vue b/src/views/modules/communityService/fuwuzuzhi/index.vue
index 6294dd3e4..93e340ddc 100644
--- a/src/views/modules/communityService/fuwuzuzhi/index.vue
+++ b/src/views/modules/communityService/fuwuzuzhi/index.vue
@@ -193,7 +193,8 @@
class="dialog-h"
@closed="diaDetailClose">
+ :formId="formId"
+ @diaDetailClose="diaDetailClose">
diff --git a/src/views/modules/communityService/measure/detail.vue b/src/views/modules/communityService/measure/detail.vue
index 62200acdc..cc51d946f 100644
--- a/src/views/modules/communityService/measure/detail.vue
+++ b/src/views/modules/communityService/measure/detail.vue
@@ -86,7 +86,11 @@
+
+ 关 闭
+
@@ -123,6 +127,11 @@ export default {
},
methods: {
+ handleCancle () {
+
+ this.$emit('diaDetailClose')
+
+ },
initForm (row) {
this.dataForm = JSON.parse(JSON.stringify(row))
console.log(' this.dataForm', this.dataForm)
diff --git a/src/views/modules/communityService/measure/index.vue b/src/views/modules/communityService/measure/index.vue
index 9487c8665..349dd7bf8 100644
--- a/src/views/modules/communityService/measure/index.vue
+++ b/src/views/modules/communityService/measure/index.vue
@@ -507,7 +507,8 @@
class="dialog-h"
:close-on-click-modal="false"
:before-close="detailFormCancle">
-
+
@@ -959,7 +960,7 @@ export default {
},
async handleLook (row, type) {
this.detailShow = true
- console.log('row',row)
+ console.log('row', row)
this.$nextTick(() => {
this.$refs.ref_form_detail.initForm(row)
})
diff --git a/src/views/modules/communityService/ninePlaces/inspect/inspect.vue b/src/views/modules/communityService/ninePlaces/inspect/inspect.vue
index 6b2d90f6d..936672819 100644
--- a/src/views/modules/communityService/ninePlaces/inspect/inspect.vue
+++ b/src/views/modules/communityService/ninePlaces/inspect/inspect.vue
@@ -253,7 +253,7 @@
:gridList="gridList"
:resultList="resultList"
:placeTypeList="placeTypeList"
- @dialogCancle="addFormCancle">
+ @diaDetailClose="diaDetailClose">
diff --git a/src/views/modules/communityService/ninePlaces/inspect/inspectDetail.vue b/src/views/modules/communityService/ninePlaces/inspect/inspectDetail.vue
index a6fa53fff..ff7e19445 100644
--- a/src/views/modules/communityService/ninePlaces/inspect/inspectDetail.vue
+++ b/src/views/modules/communityService/ninePlaces/inspect/inspectDetail.vue
@@ -1,61 +1,59 @@
+
+
+
+
+
+ 场所区域:
+ {{ formData.gridName||'--' }}
+
+
+
+ 场所类型:
+ {{ formData.placeOrgName||'--' }}
+
+
+
+ 场所名称:
+ {{ formData.ninePlaceName||'--'}}
+
+
+
+ 分队名称:
+ {{ formData.placePatrolTeamName||'--' }}
+
+
+ 检查人员:
+ {{ formData.inspectorsNames||'--' }}
+
+
+ 首次巡查时间:
+ {{ formData.firstTime||'--' }}
+
+
+ 隐患明细:
+ {{ formData.detailed||'--' }}
+
+
+ 首次检查结论:
+ {{ formData.firstResult==='0'?'合格':'不合格' }}
+
+
+ 拟复查时间:
+ {{ formData.reviewTime||'--' }}
+
-
-
-
-
- 场所区域:
- {{ formData.gridName||'--' }}
-
-
-
- 场所类型:
- {{ formData.placeOrgName||'--' }}
-
-
-
- 场所名称:
- {{ formData.ninePlaceName||'--'}}
-
-
-
- 分队名称:
- {{ formData.placePatrolTeamName||'--' }}
-
-
- 检查人员:
- {{ formData.inspectorsNames||'--' }}
-
-
- 首次巡查时间:
- {{ formData.firstTime||'--' }}
-
-
- 隐患明细:
- {{ formData.detailed||'--' }}
-
-
- 首次检查结论:
- {{ formData.firstResult==='0'?'合格':'不合格' }}
-
-
- 拟复查时间:
- {{ formData.reviewTime||'--' }}
-
+ @click="handleCancle">关 闭
+
+
@@ -138,7 +136,7 @@ export default {
handleCancle () {
this.resetData()
- this.$emit('dialogCancle')
+ this.$emit('diaDetailClose')
},
diff --git a/src/views/modules/communityService/ninePlaces/places/places.vue b/src/views/modules/communityService/ninePlaces/places/places.vue
index 36c6af69f..f97837131 100644
--- a/src/views/modules/communityService/ninePlaces/places/places.vue
+++ b/src/views/modules/communityService/ninePlaces/places/places.vue
@@ -208,7 +208,7 @@
:agencyId="agencyId"
:scaleList="scaleList"
:placeTypeList="placeTypeList"
- @dialogCancle="addFormCancle">
+ @diaDetailClose="diaDetailClose">
diff --git a/src/views/modules/communityService/ninePlaces/places/placesDetail.vue b/src/views/modules/communityService/ninePlaces/places/placesDetail.vue
index dbac5af92..2c0a3e1e8 100644
--- a/src/views/modules/communityService/ninePlaces/places/placesDetail.vue
+++ b/src/views/modules/communityService/ninePlaces/places/placesDetail.vue
@@ -40,15 +40,11 @@
-
+ @click="handleCancle">关 闭
+
+
@@ -142,8 +138,8 @@ export default {
handleCancle () {
- this.resetData()
- this.$emit('dialogCancle')
+
+ this.$emit('diaDetailClose')
},
diff --git a/src/views/modules/communityService/ninePlaces/team/team.vue b/src/views/modules/communityService/ninePlaces/team/team.vue
index 37791495d..ce4691412 100644
--- a/src/views/modules/communityService/ninePlaces/team/team.vue
+++ b/src/views/modules/communityService/ninePlaces/team/team.vue
@@ -196,7 +196,7 @@
+ @diaDetailClose="diaDetailClose">
@@ -344,7 +344,7 @@ export default {
// this.formTitle = '详情'
this.detailShow = true
this.$nextTick(() => {
- this.$refs.ref_detail.initForm( row.teamId, this.agencyId)
+ this.$refs.ref_detail.initForm(row.teamId, this.agencyId)
})
},
diff --git a/src/views/modules/communityService/ninePlaces/team/teamDetail.vue b/src/views/modules/communityService/ninePlaces/team/teamDetail.vue
index 3ddad9351..3082c700e 100644
--- a/src/views/modules/communityService/ninePlaces/team/teamDetail.vue
+++ b/src/views/modules/communityService/ninePlaces/team/teamDetail.vue
@@ -51,15 +51,11 @@
-
+ @click="handleCancle">关 闭
+
+
@@ -256,8 +252,7 @@ export default {
handleCancle () {
- this.resetData()
- this.$emit('dialogCancle')
+ this.$emit('diaDetailClose')
},
diff --git a/src/views/modules/communityService/worklog/workLog.vue b/src/views/modules/communityService/worklog/workLog.vue
index 51b59c910..9584d9954 100644
--- a/src/views/modules/communityService/worklog/workLog.vue
+++ b/src/views/modules/communityService/worklog/workLog.vue
@@ -258,7 +258,7 @@
class="dialog-h"
@closed="diaClose">
+ @diaDetailClose="diaClose">
diff --git a/src/views/modules/communityService/worklog/workLogDetail.vue b/src/views/modules/communityService/worklog/workLogDetail.vue
index 568510f7c..28e63cdc2 100644
--- a/src/views/modules/communityService/worklog/workLogDetail.vue
+++ b/src/views/modules/communityService/worklog/workLogDetail.vue
@@ -50,7 +50,11 @@
+
+ 关 闭
+
@@ -74,7 +78,7 @@ export default {
methods: {
handleCancle () {
- this.$emit('diaClose')
+ this.$emit('diaDetailClose')
},
diff --git a/src/views/modules/shequzhili/csgltc/csglDetail.vue b/src/views/modules/shequzhili/csgltc/csglDetail.vue
index 6220087e6..acc1443a2 100644
--- a/src/views/modules/shequzhili/csgltc/csglDetail.vue
+++ b/src/views/modules/shequzhili/csgltc/csglDetail.vue
@@ -48,11 +48,11 @@
-
+
diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue b/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue
index d486aa828..e1a66f803 100644
--- a/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue
+++ b/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue
@@ -51,11 +51,11 @@
-
+