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/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/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 }} - + 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 @@ - - - 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/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 @@ @@ -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 @@ @@ -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/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 @@ - + 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 @@ - + diff --git a/src/views/modules/sys/icvaccineprarmeter.vue b/src/views/modules/sys/icvaccineprarmeter.vue index acaea1f56..a64c8d934 100644 --- a/src/views/modules/sys/icvaccineprarmeter.vue +++ b/src/views/modules/sys/icvaccineprarmeter.vue @@ -8,7 +8,7 @@
+ label-width="80px">
+ label-width="80px"> diff --git a/src/views/pages/login.vue b/src/views/pages/login.vue index 10cf96a93..8e39a89e2 100644 --- a/src/views/pages/login.vue +++ b/src/views/pages/login.vue @@ -16,35 +16,35 @@
-
+ -
+
-
+ -
+
-
+ -
+
@@ -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 { @@ -176,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, @@ -262,7 +242,8 @@ export default { this.dataForm.customerId = row.customerId; let param = {}; Object.assign(param, this.dataForm); - param.password = this.encryptedData(this.pubKey, this.dataForm.password); + param.phone = encryptedData(this.pubKey, this.dataForm.phone); + param.password = encryptedData(this.pubKey, this.dataForm.password); this.$http .post(url, param) .then(({ data: res }) => { @@ -301,15 +282,6 @@ export default { loading.close(); } }, - // 加密 - encryptedData(key, data) { - // 新建JSEncrypt对象 - let encryptor = new JSEncrypt(); - // 设置公钥 - encryptor.setPublicKey(key); - // 加密数据 - return encryptor.encrypt(data); - }, }, };