Browse Source

Merge branch 'dev-detail-adjust0919' into dev-fangyi0926

dev-烟台0301
jiangyy 3 years ago
parent
commit
5effe3a088
  1. 2
      src/assets/scss/modules/management/detail-main.scss
  2. 1
      src/assets/scss/pages/loginWork.scss
  3. 173
      src/utils/index.js
  4. 149
      src/views/main-navbar-update-password-work.vue
  5. 148
      src/views/main-shuju/main-navbar-update-password-work.vue
  6. 2
      src/views/main-shuju/main-navbar.vue
  7. 9
      src/views/modules/base/community/buildDetail.vue
  8. 9
      src/views/modules/base/community/buildTable.vue
  9. 9
      src/views/modules/base/community/communityDetail.vue
  10. 12
      src/views/modules/base/community/communityTable.vue
  11. 8
      src/views/modules/base/community/roomDetail.vue
  12. 6
      src/views/modules/base/community/roomTable.vue
  13. 8
      src/views/modules/base/huji/chusheng/cpts/detail.vue
  14. 7
      src/views/modules/base/huji/chusheng/index.vue
  15. 8
      src/views/modules/base/huji/immigration/detail.vue
  16. 3
      src/views/modules/base/huji/immigration/index.vue
  17. 9
      src/views/modules/communityParty/elegant/detail.vue
  18. 3
      src/views/modules/communityParty/elegant/index.vue
  19. 8
      src/views/modules/communityParty/heart/heartDetail.vue
  20. 3
      src/views/modules/communityParty/heart/heartList.vue
  21. 167
      src/views/modules/communityParty/members/detailForm.vue
  22. 3
      src/views/modules/communityParty/members/index.vue
  23. 3
      src/views/modules/communityParty/orgActivity/activivityList/activivityList.vue
  24. 10
      src/views/modules/communityParty/orgActivity/activivityList/detailActivity.vue
  25. 2
      src/views/modules/communityParty/regionalParty/activitys.vue
  26. 6
      src/views/modules/communityParty/regionalParty/activitysDetail.vue
  27. 83
      src/views/modules/communityParty/stas/index.vue
  28. 14
      src/views/modules/communityService/fuwujilu/detailForm.vue
  29. 3
      src/views/modules/communityService/fuwujilu/fuwuList.vue
  30. 6
      src/views/modules/communityService/fuwuxiangmu/cpts/detail.vue
  31. 3
      src/views/modules/communityService/fuwuxiangmu/index.vue
  32. 31
      src/views/modules/communityService/fuwuzuzhi/cpts/detail.vue
  33. 3
      src/views/modules/communityService/fuwuzuzhi/index.vue
  34. 9
      src/views/modules/communityService/measure/detail.vue
  35. 5
      src/views/modules/communityService/measure/index.vue
  36. 2
      src/views/modules/communityService/ninePlaces/inspect/inspect.vue
  37. 100
      src/views/modules/communityService/ninePlaces/inspect/inspectDetail.vue
  38. 2
      src/views/modules/communityService/ninePlaces/places/places.vue
  39. 16
      src/views/modules/communityService/ninePlaces/places/placesDetail.vue
  40. 4
      src/views/modules/communityService/ninePlaces/team/team.vue
  41. 15
      src/views/modules/communityService/ninePlaces/team/teamDetail.vue
  42. 2
      src/views/modules/communityService/worklog/workLog.vue
  43. 6
      src/views/modules/communityService/worklog/workLogDetail.vue
  44. 3
      src/views/modules/plugins/point/icpointvaccinesinoculation.vue
  45. 4
      src/views/modules/shequzhili/csgltc/csglDetail.vue
  46. 6
      src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue
  47. 4
      src/views/modules/sys/icvaccineprarmeter.vue
  48. 52
      src/views/pages/login.vue

2
src/assets/scss/modules/management/detail-main.scss

@ -17,7 +17,7 @@
} }
.div-btn{ .div-btn{
margin-top:50px; margin-top:30px;
// margin-bottom:20px; // margin-bottom:20px;
display: flex; display: flex;
justify-content: center; justify-content: center;

1
src/assets/scss/pages/loginWork.scss

@ -64,6 +64,7 @@
.input { .input {
width: 85%; width: 85%;
margin-bottom: 0;
input { input {
display: block; display: block;

173
src/utils/index.js

@ -1,17 +1,18 @@
import store from '@/js/store' import store from "@/js/store";
import JSEncrypt from "jsencrypt"; //引入加密
/** /**
* 获取字典数据列表 * 获取字典数据列表
* @param dictType 字典类型 * @param dictType 字典类型
*/ */
export function getDictDataList(dictType) { export function getDictDataList(dictType) {
const type = window.SITE_CONFIG['dictList'].find( const type = window.SITE_CONFIG["dictList"].find(
(element) => element.dictType === dictType (element) => element.dictType === dictType
) );
if (type) { if (type) {
return type.dataList return type.dataList;
} else { } else {
return [] return [];
} }
} }
@ -21,20 +22,20 @@ export function getDictDataList(dictType) {
* @param dictValue 字典值 * @param dictValue 字典值
*/ */
export function getDictLabel(dictType, dictValue) { export function getDictLabel(dictType, dictValue) {
const type = window.SITE_CONFIG['dictList'].find( const type = window.SITE_CONFIG["dictList"].find(
(element) => element.dictType === dictType (element) => element.dictType === dictType
) );
if (type) { if (type) {
const val = type.dataList.find( const val = type.dataList.find(
(element) => element.dictValue === dictValue.toString() (element) => element.dictValue === dictValue.toString()
) );
if (val) { if (val) {
return val.dictLabel return val.dictLabel;
} else { } else {
return dictValue return dictValue;
} }
} else { } else {
return dictValue return dictValue;
} }
} }
@ -42,29 +43,31 @@ export function getDictLabel(dictType, dictValue) {
* 清除登录信息 * 清除登录信息
*/ */
export function clearLoginInfo() { export function clearLoginInfo() {
store.commit('resetStore') store.commit("resetStore");
localStorage.removeItem('token') localStorage.removeItem("token");
window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false window.SITE_CONFIG["dynamicMenuRoutesHasAdded"] = false;
} }
/** /**
* 获取uuid * 获取uuid
*/ */
export function getUUID() { export function getUUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
return (c === 'x' ? (Math.random() * 16) | 0 : 'r&0x3' | '0x8').toString(16) return (c === "x" ? (Math.random() * 16) | 0 : "r&0x3" | "0x8").toString(
}) 16
);
});
} }
/** /**
* 获取svg图标(id)列表 * 获取svg图标(id)列表
*/ */
export function getIconList() { export function getIconList() {
var res = [] var res = [];
document.querySelectorAll('svg symbol').forEach((item) => { document.querySelectorAll("svg symbol").forEach((item) => {
res.push(item.id) res.push(item.id);
}) });
return res return res;
} }
/** /**
@ -73,46 +76,49 @@ export function getIconList() {
* @param {*} id * @param {*} id
* @param {*} pid * @param {*} pid
*/ */
export function treeDataTranslate(data, id = 'id', pid = 'pid') { export function treeDataTranslate(data, id = "id", pid = "pid") {
var res = [] var res = [];
var temp = {} var temp = {};
for (var i = 0; i < data.length; i++) { 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++) { for (var k = 0; k < data.length; k++) {
if (!temp[data[k][pid]] || data[k][id] === data[k][pid]) { if (!temp[data[k][pid]] || data[k][id] === data[k][pid]) {
res.push(data[k]) res.push(data[k]);
continue continue;
} }
if (!temp[data[k][pid]]['children']) { if (!temp[data[k][pid]]["children"]) {
temp[data[k][pid]]['children'] = [] temp[data[k][pid]]["children"] = [];
} }
temp[data[k][pid]]['children'].push(data[k]) temp[data[k][pid]]["children"].push(data[k]);
data[k]['_level'] = (temp[data[k][pid]]._level || 0) + 1 data[k]["_level"] = (temp[data[k][pid]]._level || 0) + 1;
} }
return res return res;
} }
// 时间格式化 // 时间格式化
export function dateFormats(fmt, date) { export function dateFormats(fmt, date) {
let ret let ret;
const _date = new Date(date) const _date = new Date(date);
const opt = { const opt = {
'Y+': _date.getFullYear().toString(), // 年 "Y+": _date.getFullYear().toString(), // 年
'm+': (_date.getMonth() + 1).toString(), // 月 "m+": (_date.getMonth() + 1).toString(), // 月
'd+': _date.getDate().toString(), // 日 "d+": _date.getDate().toString(), // 日
'H+': _date.getHours().toString(), // 时 "H+": _date.getHours().toString(), // 时
'M+': _date.getMinutes().toString(), // 分 "M+": _date.getMinutes().toString(), // 分
'S+': _date.getSeconds().toString() // 秒 "S+": _date.getSeconds().toString(), // 秒
// 有其他格式化字符需求可以继续添加,必须转化成字符串 // 有其他格式化字符需求可以继续添加,必须转化成字符串
} };
for (const k in opt) { for (const k in opt) {
ret = new RegExp('(' + k + ')').exec(fmt) ret = new RegExp("(" + k + ")").exec(fmt);
if (ret) { 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) { export function computedCard(idCard) {
@ -123,49 +129,78 @@ export function computedCard(idCard) {
let day = myDate.getDate(); let day = myDate.getDate();
let age = 0; let age = 0;
if(idCard.length===18){ if (idCard.length === 18) {
age = myDate.getFullYear() - idCard.substring(6, 10) - 1; age = myDate.getFullYear() - idCard.substring(6, 10) - 1;
sex = idCard.substring(16,17); sex = idCard.substring(16, 17);
birth = idCard.substring(6,10)+"-"+idCard.substring(10,12)+"-"+idCard.substring(12,14); birth =
if (idCard.substring(10, 12) < month || idCard.substring(10, 12) === month && idCard.substring(12, 14) <= day) age++; 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; age = myDate.getFullYear() - idCard.substring(6, 8) - 1901;
sex = idCard.substring(13,14); sex = idCard.substring(13, 14);
birth = "19"+idCard.substring(6,8)+"-"+idCard.substring(8,10)+"-"+idCard.substring(10,12); birth =
if (idCard.substring(8, 10) < month || idCard.substring(8, 10) === month && idCard.substring(10, 12) <= day) age++; "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) if (sex % 2 === 0)
sex = '0'; // 性别代码 1代表男,0代表女,暂时不涉及其他类型性别 sex = "0"; // 性别代码 1代表男,0代表女,暂时不涉及其他类型性别
else else sex = "1";
sex = '1'; return { age, sex, birth };
return {age , sex, birth}
} }
// 将数组分成小块数组的集合 // 将数组分成小块数组的集合
export function spliceIntoChunks(arr, chunkSize) { export function spliceIntoChunks(arr, chunkSize) {
const res = []; const res = [];
while (arr.length > 0) { while (arr.length > 0) {
const chunk = arr.splice(0, chunkSize); const chunk = arr.splice(0, chunkSize);
res.push(chunk); res.push(chunk);
} }
return res; return res;
} }
// 获取当前时间 如果有指定time则按指定的来 // 获取当前时间 如果有指定time则按指定的来
export function getCurrentDate(hour,min,sec) { export function getCurrentDate(hour, min, sec) {
console.log(hour,min,sec) console.log(hour, min, sec);
let date = new Date(); let date = new Date();
if (hour){ if (hour) {
date.setHours(hour); date.setHours(hour);
console.log(hour) console.log(hour);
}if (min!==undefined){ }
if (min !== undefined) {
date.setMinutes(min); date.setMinutes(min);
console.log(min) console.log(min);
}if (sec!==undefined){ }
if (sec !== undefined) {
date.setSeconds(sec); date.setSeconds(sec);
console.log(sec) console.log(sec);
} }
return date; return date;
} }
// 加密
export function encryptedData(key, data) {
// 新建JSEncrypt对象
let encryptor = new JSEncrypt();
// 设置公钥
encryptor.setPublicKey(key);
// 加密数据
return encryptor.encrypt(data);
}

149
src/views/main-navbar-update-password-work.vue

@ -16,13 +16,13 @@
<el-form-item :label="$t('updatePassword.username')"> <el-form-item :label="$t('updatePassword.username')">
<span>{{ $store.state.user.realName }}</span> <span>{{ $store.state.user.realName }}</span>
</el-form-item> </el-form-item>
<!-- <el-form-item prop="password" :label="$t('updatePassword.password')"> <el-form-item prop="password" :label="$t('updatePassword.password')">
<el-input <el-input
v-model="dataForm.password" v-model="dataForm.password"
type="password" type="password"
:placeholder="$t('updatePassword.password')" :placeholder="$t('updatePassword.password')"
></el-input> ></el-input>
</el-form-item> --> </el-form-item>
<el-form-item <el-form-item
prop="newPassword" prop="newPassword"
:label="$t('updatePassword.newPassword')" :label="$t('updatePassword.newPassword')"
@ -30,7 +30,7 @@
<el-input <el-input
v-model="dataForm.newPassword" v-model="dataForm.newPassword"
type="password" type="password"
:placeholder="$t('updatePassword.newPassword')" placeholder="密码必须8-20个字符,而且同时包含大小写字母和数字"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@ -45,104 +45,143 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<template slot="footer"> <template slot="footer">
<el-button @click="visible = false">{{ $t('cancel') }}</el-button> <el-button @click="visible = false">{{ $t("cancel") }}</el-button>
<el-button type="primary" @click="dataFormSubmitHandle()">{{ <el-button type="primary" @click="dataFormSubmitHandle()">{{
$t('confirm') $t("confirm")
}}</el-button> }}</el-button>
</template> </template>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import debounce from 'lodash/debounce' import debounce from "lodash/debounce";
import { clearLoginInfo } from '@/utils' import { clearLoginInfo, encryptedData } from "@/utils";
export default { export default {
data() { data() {
return { return {
visible: false, visible: false,
pubKey: "",
dataForm: { dataForm: {
password: '', password: "",
newPassword: '', newPassword: "",
confirmPassword: '' confirmPassword: "",
} },
} };
}, },
computed: { computed: {
dataRule() { dataRule() {
var validateConfirmPassword = (rule, value, callback) => { var validateConfirmPassword = (rule, value, callback) => {
if (this.dataForm.newPassword !== value) { if (this.dataForm.newPassword !== value) {
return callback( return callback(
new Error(this.$t('updatePassword.validate.confirmPassword')) new Error(this.$t("updatePassword.validate.confirmPassword"))
) );
} }
callback() callback();
} };
return { return {
// password: [ password: [
// { {
// required: true, required: true,
// message: this.$t('validate.required'), message: this.$t("validate.required"),
// trigger: 'blur' trigger: "blur",
// } },
// ], ],
newPassword: [ newPassword: [
{ {
required: true, required: true,
message: this.$t('validate.required'), message: this.$t("validate.required"),
trigger: 'blur' trigger: "blur",
} },
], ],
confirmPassword: [ confirmPassword: [
{ {
required: true, required: true,
message: this.$t('validate.required'), message: this.$t("validate.required"),
trigger: 'blur' trigger: "blur",
}, },
{ validator: validateConfirmPassword, trigger: 'blur' } { validator: validateConfirmPassword, trigger: "blur" },
] ],
} };
} },
}, },
methods: { methods: {
init() { init() {
this.visible = true this.visible = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs["dataForm"].resetFields();
}) });
//
this.getPubKey();
}, },
//
getPubKey() {
this.$http
.post("/auth/govweb/getKey")
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg);
}
this.pubKey = res.data; // ;
})
.catch(() => {});
},
validateComplexity(pwd) {
let regex = new RegExp("(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z]).{8,20}");
if (!regex.test(pwd)) {
this.$message({
message:
"密码必须8-20个字符,而且同时包含大小写字母和数字",
type: "error",
});
return false;
}
return true;
},
// //
dataFormSubmitHandle: debounce( dataFormSubmitHandle: debounce(
function () { function () {
this.$refs['dataForm'].validate((valid) => { this.$refs["dataForm"].validate((valid) => {
if (!valid) { if (!valid) return false;
return false
} if (!this.validateComplexity(this.dataForm.newPassword)) return false;
const { pubKey } = this;
this.$http this.$http
.post('/gov/mine/mine/resetpassword', { .post("/gov/mine/mine/resetpassword", {
newPassword: this.dataForm.newPassword, oldPassword: encryptedData(pubKey, this.dataForm.password),
confirmNewPassword: this.dataForm.confirmPassword newPassword: encryptedData(pubKey, this.dataForm.newPassword),
confirmNewPassword: encryptedData(
pubKey,
this.dataForm.confirmPassword
),
}) })
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg);
} }
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t("prompt.success"),
type: 'success', type: "success",
duration: 500, duration: 500,
onClose: () => { onClose: () => {
this.visible = false this.visible = false;
clearLoginInfo() clearLoginInfo();
this.$router.replace({ name: 'loginWork' }) this.$router.replace({ name: "login" });
} },
}) });
}) })
.catch(() => {}) .catch(() => {});
}) });
}, },
1000, 1000,
{ leading: true, trailing: false } { leading: true, trailing: false }
) ),
} },
} };
</script> </script>

148
src/views/main-shuju/main-navbar-update-password-work.vue

@ -1,148 +0,0 @@
<template>
<el-dialog
:visible.sync="visible"
:title="$t('updatePassword.title')"
:close-on-click-modal="false"
:close-on-press-escape="false"
:append-to-body="true"
>
<el-form
:model="dataForm"
:rules="dataRule"
ref="dataForm"
@keyup.enter.native="dataFormSubmitHandle()"
label-width="120px"
>
<el-form-item :label="$t('updatePassword.username')">
<span>{{ $store.state.user.realName }}</span>
</el-form-item>
<!-- <el-form-item prop="password" :label="$t('updatePassword.password')">
<el-input
v-model="dataForm.password"
type="password"
:placeholder="$t('updatePassword.password')"
></el-input>
</el-form-item> -->
<el-form-item
prop="newPassword"
:label="$t('updatePassword.newPassword')"
>
<el-input
v-model="dataForm.newPassword"
type="password"
:placeholder="$t('updatePassword.newPassword')"
></el-input>
</el-form-item>
<el-form-item
prop="confirmPassword"
:label="$t('updatePassword.confirmPassword')"
>
<el-input
v-model="dataForm.confirmPassword"
type="password"
:placeholder="$t('updatePassword.confirmPassword')"
></el-input>
</el-form-item>
</el-form>
<template slot="footer">
<el-button @click="visible = false">{{ $t('cancel') }}</el-button>
<el-button type="primary" @click="dataFormSubmitHandle()">{{
$t('confirm')
}}</el-button>
</template>
</el-dialog>
</template>
<script>
import debounce from 'lodash/debounce'
import { clearLoginInfo } from '@/utils'
export default {
data() {
return {
visible: false,
dataForm: {
password: '',
newPassword: '',
confirmPassword: ''
}
}
},
computed: {
dataRule() {
var validateConfirmPassword = (rule, value, callback) => {
if (this.dataForm.newPassword !== value) {
return callback(
new Error(this.$t('updatePassword.validate.confirmPassword'))
)
}
callback()
}
return {
// password: [
// {
// required: true,
// message: this.$t('validate.required'),
// trigger: 'blur'
// }
// ],
newPassword: [
{
required: true,
message: this.$t('validate.required'),
trigger: 'blur'
}
],
confirmPassword: [
{
required: true,
message: this.$t('validate.required'),
trigger: 'blur'
},
{ validator: validateConfirmPassword, trigger: 'blur' }
]
}
}
},
methods: {
init() {
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
})
},
//
dataFormSubmitHandle: debounce(
function () {
this.$refs['dataForm'].validate((valid) => {
if (!valid) {
return false
}
this.$http
.post('/gov/mine/mine/resetpassword', {
newPassword: this.dataForm.newPassword,
confirmNewPassword: this.dataForm.confirmPassword
})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.$message({
message: this.$t('prompt.success'),
type: 'success',
duration: 500,
onClose: () => {
this.visible = false
clearLoginInfo()
this.$router.replace({ name: 'loginWork' })
}
})
})
.catch(() => {})
})
},
1000,
{ leading: true, trailing: false }
)
}
}
</script>

2
src/views/main-shuju/main-navbar.vue

@ -139,7 +139,7 @@
import { messages } from "@/i18n"; import { messages } from "@/i18n";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import screenfull from "screenfull"; 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"; import { clearLoginInfo } from "@/utils";
export default { export default {
inject: ["refresh"], inject: ["refresh"],

9
src/views/modules/base/community/buildDetail.vue

@ -68,7 +68,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -120,6 +124,11 @@ export default {
}, },
methods: { methods: {
handleCancle () {
this.diaDestroy()
this.$emit('diaDetailClose')
},
diaDestroy () { diaDestroy () {
if (map) { if (map) {
map.destroy() map.destroy()

9
src/views/modules/base/community/buildTable.vue

@ -14,7 +14,8 @@
size="small" size="small"
@click="handleExportModule('building')">下载楼栋模板</el-button> @click="handleExportModule('building')">下载楼栋模板</el-button>
<el-upload :headers="$getElUploadHeaders()" style="" <el-upload :headers="$getElUploadHeaders()"
style=""
ref="upload_building" ref="upload_building"
:multiple='false' :multiple='false'
:show-file-list='false' :show-file-list='false'
@ -31,7 +32,8 @@
size="small" size="small"
@click="handleExportModule('room')">下载房屋模板</el-button> @click="handleExportModule('room')">下载房屋模板</el-button>
<el-upload :headers="$getElUploadHeaders()" style="" <el-upload :headers="$getElUploadHeaders()"
style=""
ref="upload_room" ref="upload_room"
:multiple='false' :multiple='false'
:show-file-list='false' :show-file-list='false'
@ -206,7 +208,8 @@
width="900px" width="900px"
class="dialog-h" class="dialog-h"
@closed="detailFormCancle"> @closed="detailFormCancle">
<build-detail ref="ref_form_detail"></build-detail> <build-detail ref="ref_form_detail"
@diaDetailClose="detailFormCancle"></build-detail>
</el-dialog> </el-dialog>
<baobiao ref="baobiao" /> <baobiao ref="baobiao" />

9
src/views/modules/base/community/communityDetail.vue

@ -61,7 +61,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -106,6 +110,11 @@ export default {
}, },
methods: { methods: {
handleCancle () {
this.diaDestroy()
this.$emit('diaDetailClose')
},
diaDestroy () { diaDestroy () {
if (map) { if (map) {
map.destroy() map.destroy()

12
src/views/modules/base/community/communityTable.vue

@ -26,7 +26,8 @@
size="small" size="small"
@click="handleExportModule('community')">下载小区模板</el-button> @click="handleExportModule('community')">下载小区模板</el-button>
<el-upload :headers="$getElUploadHeaders()" ref="upload_community" <el-upload :headers="$getElUploadHeaders()"
ref="upload_community"
style="" style=""
:multiple='false' :multiple='false'
:show-file-list='false' :show-file-list='false'
@ -44,7 +45,8 @@
size="small" size="small"
@click="handleExportModule('building')">下载楼栋模板</el-button> @click="handleExportModule('building')">下载楼栋模板</el-button>
<el-upload :headers="$getElUploadHeaders()" style="" <el-upload :headers="$getElUploadHeaders()"
style=""
ref="upload_building" ref="upload_building"
:multiple='false' :multiple='false'
:show-file-list='false' :show-file-list='false'
@ -61,7 +63,8 @@
size="small" size="small"
@click="handleExportModule('room')">下载房屋模板</el-button> @click="handleExportModule('room')">下载房屋模板</el-button>
<el-upload :headers="$getElUploadHeaders()" style="" <el-upload :headers="$getElUploadHeaders()"
style=""
ref="upload_room" ref="upload_room"
:multiple='false' :multiple='false'
:show-file-list='false' :show-file-list='false'
@ -193,7 +196,8 @@
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="detailFormCancle"> @closed="detailFormCancle">
<community-detail ref="ref_form_detail"></community-detail> <community-detail ref="ref_form_detail"
@diaDetailClose="detailFormCancle"></community-detail>
</el-dialog> </el-dialog>
<!-- 修改弹出框 --> <!-- 修改弹出框 -->

8
src/views/modules/base/community/roomDetail.vue

@ -66,7 +66,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -117,7 +121,11 @@ export default {
}, },
methods: { methods: {
handleCancle () {
// this.diaDestroy()
this.$emit('diaDetailClose')
},
diaDestroy () { diaDestroy () {
if (map) { if (map) {
map.destroy() map.destroy()

6
src/views/modules/base/community/roomTable.vue

@ -8,7 +8,8 @@
@click="handleAdd">新增房屋</el-button> @click="handleAdd">新增房屋</el-button>
<div class="btn_upload" <div class="btn_upload"
v-if="showImportBtn"> v-if="showImportBtn">
<el-button :headers="$getElUploadHeaders()" style="float: left" <el-button :headers="$getElUploadHeaders()"
style="float: left"
class="diy-button--export" class="diy-button--export"
size="small" size="small"
@click="handleExportModule">下载房屋模板</el-button> @click="handleExportModule">下载房屋模板</el-button>
@ -196,7 +197,8 @@
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="detailFormCancle"> @closed="detailFormCancle">
<room-detail ref="ref_form_detail"></room-detail> <room-detail ref="ref_form_detail"
@diaDetailClose="detailFormCancle"></room-detail>
</el-dialog> </el-dialog>
<baobiao ref="baobiao" /> <baobiao ref="baobiao" />

8
src/views/modules/base/huji/chusheng/cpts/detail.vue

@ -71,7 +71,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -132,7 +136,11 @@ export default {
methods: { methods: {
handleCancle () {
this.$emit('diaDetailClose')
},
async initForm (row) { async initForm (row) {
await this.getInfo(row.id); await this.getInfo(row.id);

7
src/views/modules/base/huji/chusheng/index.vue

@ -168,7 +168,8 @@
class="diy-button--export" class="diy-button--export"
size="small" size="small"
@click="handleExportModule('room')">下载模板</el-button> @click="handleExportModule('room')">下载模板</el-button>
<el-upload :headers="$getElUploadHeaders()" v-if="false" <el-upload :headers="$getElUploadHeaders()"
v-if="false"
ref="upload" ref="upload"
class="upload-btn" class="upload-btn"
action="uploadUlr" action="uploadUlr"
@ -350,7 +351,9 @@
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="detailFormCancle"> @closed="detailFormCancle">
<detail-form ref="ref_form_detail"></detail-form> <detail-form ref="ref_form_detail"
@diaDetailClose="detailFormCancle"></detail-form>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>

8
src/views/modules/base/huji/immigration/detail.vue

@ -71,7 +71,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -99,7 +103,11 @@ export default {
}, },
methods: { methods: {
handleCancle () {
this.$emit('diaDetailClose')
},
async initForm (id) { async initForm (id) {
await this.getDatail(id) await this.getDatail(id)

3
src/views/modules/base/huji/immigration/index.vue

@ -357,7 +357,8 @@
class="dialog-h" class="dialog-h"
@closed="detailFormCancle"> @closed="detailFormCancle">
<detail-form v-if="detailShow" <detail-form v-if="detailShow"
ref="ref_form_detail"></detail-form> ref="ref_form_detail"
@diaDetailClose="detailFormCancle"></detail-form>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>

9
src/views/modules/communityParty/elegant/detail.vue

@ -43,7 +43,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -73,6 +77,11 @@ export default {
}, },
methods: { methods: {
handleCancle () {
this.$emit('diaDetailClose')
},
async initForm (row) { async initForm (row) {

3
src/views/modules/communityParty/elegant/index.vue

@ -290,7 +290,8 @@
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="detailFormCancle"> @closed="detailFormCancle">
<detail-form ref="ref_form_detail"></detail-form> <detail-form ref="ref_form_detail"
@diaDetailClose="detailFormCancle"></detail-form>
</el-dialog> </el-dialog>
</div> </div>

8
src/views/modules/communityParty/heart/heartDetail.vue

@ -171,7 +171,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -435,8 +439,8 @@ export default {
handleCancle () { handleCancle () {
this.resetData()
this.$emit('dialogCancle') this.$emit('diaDetailClose')
}, },

3
src/views/modules/communityParty/heart/heartList.vue

@ -243,7 +243,8 @@
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="detailFormCancle"> @closed="detailFormCancle">
<heart-detail ref="ref_form_detail"></heart-detail> <heart-detail ref="ref_form_detail"
@diaDetailClose="detailFormCancle"></heart-detail>
</el-dialog> </el-dialog>
<!-- 活动取消原因 --> <!-- 活动取消原因 -->

167
src/views/modules/communityParty/members/detailForm.vue

@ -1,109 +1,116 @@
<template> <template>
<div class="dialog-h-content scroll-h pd0"> <div>
<div class="div-tip">本模块主要为添加非本社区居住党员本社区居住党员建议到居民信息页面添加</div> <div class="dialog-h-content scroll-h pd0">
<div class="div-tip">本模块主要为添加非本社区居住党员本社区居住党员建议到居民信息页面添加</div>
<div v-if="initLoading"
class="m-row"> <div v-if="initLoading"
<div class="m-row-2"> class="m-row">
<div class="info-prop"> <div class="m-row-2">
<span class="info-title-2">所属党组织</span> <div class="info-prop">
<span>{{ info.orgName }}</span> <span class="info-title-2">所属党组织</span>
<span>{{ info.orgName }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">党员中心户</span>
<span>{{ info.isDyzxh==='1'?'是':'否' }}</span>
</div>
</div> </div>
<div class="info-prop"> <div class="m-row-2">
<span class="info-title-2">党员中心户</span>
<span>{{ info.isDyzxh==='1'?'是':'否' }}</span>
</div>
</div>
<div class="m-row-2">
<div class="info-prop"> <div class="info-prop">
<span class="info-title-2">姓名</span> <span class="info-title-2">姓名</span>
<span>{{ info.name}}</span> <span>{{ info.name}}</span>
</div> </div>
<div class="info-prop"> <div class="info-prop">
<span class="info-title-2">免学习</span> <span class="info-title-2">免学习</span>
<span>{{info.isMxx==='1'?'是':'否'}}</span> <span>{{info.isMxx==='1'?'是':'否'}}</span>
</div>
</div> </div>
</div>
<div class="m-row-2"> <div class="m-row-2">
<div class="info-prop"> <div class="info-prop">
<span class="info-title-2">手机号</span> <span class="info-title-2">手机号</span>
<span>{{ info.mobile?info.mobile:'--'}}</span> <span>{{ info.mobile?info.mobile:'--'}}</span>
</div> </div>
<div class="info-prop"> <div class="info-prop">
<span class="info-title-2">职务</span> <span class="info-title-2">职务</span>
<span>{{info.partyZwShow?info.partyZwShow:'--' }}</span> <span>{{info.partyZwShow?info.partyZwShow:'--' }}</span>
</div>
</div> </div>
</div>
<div class="m-row-2"> <div class="m-row-2">
<div class="info-prop"> <div class="info-prop">
<span class="info-title-2">身份证</span> <span class="info-title-2">身份证</span>
<span>{{ info.idCard?info.idCard:'--' }}</span> <span>{{ info.idCard?info.idCard:'--' }}</span>
</div> </div>
<div class="info-prop"> <div class="info-prop">
<span class="info-title-2">文化程度</span> <span class="info-title-2">文化程度</span>
<span>{{ info.cultureName?info.cultureName:'--' }}</span> <span>{{ info.cultureName?info.cultureName:'--' }}</span>
</div>
</div> </div>
</div>
<div class="m-row-2"> <div class="m-row-2">
<div class="info-prop"> <div class="info-prop">
<span class="info-title-2">地址</span> <span class="info-title-2">地址</span>
<span>{{ info.address?info.address:'--' }}</span> <span>{{ info.address?info.address:'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">入党时间</span>
<span>{{ info.rdsj?info.rdsj:'--' }}</span>
</div>
</div> </div>
<div class="info-prop">
<span class="info-title-2">入党时间</span>
<span>{{ info.rdsj?info.rdsj:'--' }}</span>
</div>
</div>
<div class="m-row-2"> <div class="m-row-2">
<div class="info-prop"> <div class="info-prop">
<span class="info-title-2">流动党员</span> <span class="info-title-2">流动党员</span>
<span>{{ info.isLd==='1'?'是':'否'}}</span> <span>{{ info.isLd==='1'?'是':'否'}}</span>
</div> </div>
<div class="info-prop"> <div class="info-prop">
<span class="info-title-2">流动党员号</span> <span class="info-title-2">流动党员号</span>
<span>{{ info.ldzh?info.ldzh:'--' }}</span> <span>{{ info.ldzh?info.ldzh:'--' }}</span>
</div>
</div> </div>
</div> <div class="m-row-2">
<div class="m-row-2"> <div class="info-prop">
<span class="info-title-2">备注</span>
<span>{{ info.remark? info.remark:'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">备注</span>
<span>{{ info.remark? info.remark:'--' }}</span>
</div> </div>
</div> </div>
</div>
<div class="pdl40"> <div class="pdl40">
<el-tabs v-model="activesName"> <el-tabs v-model="activesName">
<el-tab-pane label="量化积分" <el-tab-pane label="量化积分"
name="first"> name="first">
<pointsDetail :partyId="partymenberid" /> <pointsDetail :partyId="partymenberid" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="缴费记录" <el-tab-pane label="缴费记录"
name="second"> name="second">
<record :partyId="partymenberid" <record :partyId="partymenberid"
:disabled="disabled" /> :disabled="disabled" />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -187,7 +194,11 @@ export default {
// this.$refs['ruleForm'].resetFields() // this.$refs['ruleForm'].resetFields()
}, },
methods: { methods: {
handleCancle () {
this.$emit('diaDetailClose')
},
async saveRecord (form) { async saveRecord (form) {
const params = { const params = {
...form, ...form,

3
src/views/modules/communityParty/members/index.vue

@ -335,7 +335,8 @@
<detail-form v-if="detailShow" <detail-form v-if="detailShow"
:info="detailInfo" :info="detailInfo"
:partyList="optionsG" :partyList="optionsG"
:disabled="disabled" /> :disabled="disabled"
@diaDetailClose="handlerCancle" />
</el-dialog> </el-dialog>
</div> </div>

3
src/views/modules/communityParty/orgActivity/activivityList/activivityList.vue

@ -265,7 +265,8 @@
@closed="detailShow = false"> @closed="detailShow = false">
<detail-activity ref="ref_add_form" <detail-activity ref="ref_add_form"
:formType="formType" :formType="formType"
:icPartyActId="icPartyActId"></detail-activity> :icPartyActId="icPartyActId"
@diaDetailClose="detailShow = false"></detail-activity>
</el-dialog> </el-dialog>
<el-dialog v-if="showSchedule" <el-dialog v-if="showSchedule"
:visible.sync="showSchedule" :visible.sync="showSchedule"

10
src/views/modules/communityParty/orgActivity/activivityList/detailActivity.vue

@ -50,7 +50,7 @@
</div> </div>
<div class="info-prop"> <div class="info-prop">
<span class="info-title-3">附件</span> <span class="info-title-3">附件</span>
<file-list v-if="formData.attachmentList.length>0" <file-list v-if="formData.attachmentList&&formData.attachmentList.length>0"
:fileList="formData.attachmentList"></file-list> :fileList="formData.attachmentList"></file-list>
<span v-else>--</span> <span v-else>--</span>
@ -60,7 +60,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -275,8 +279,8 @@ export default {
}, },
handleCancle () { handleCancle () {
this.resetData()
this.$emit('handleClose') this.$emit('diaDetailClose')
}, },

2
src/views/modules/communityParty/regionalParty/activitys.vue

@ -245,7 +245,7 @@
<activitys-detail ref="ref_detail" <activitys-detail ref="ref_detail"
:serviceList="serviceList" :serviceList="serviceList"
:gridList="gridList" :gridList="gridList"
@diaClose="diaClose"></activitys-detail> @diaDetailClose="detailClosed"></activitys-detail>
</el-dialog> </el-dialog>
</div> </div>

6
src/views/modules/communityParty/regionalParty/activitysDetail.vue

@ -58,11 +58,11 @@
</div> </div>
<!-- <div class="div-btn"> <div class="div-btn">
<el-button size="small" <el-button size="small"
@click="handleCancle"> </el-button> @click="handleCancle"> </el-button>
</div> --> </div>
</div> </div>
</template> </template>
@ -94,7 +94,7 @@ export default {
handleCancle () { handleCancle () {
this.diaDestroy() this.diaDestroy()
this.$emit('diaClose') this.$emit('diaDetailClose')
}, },

83
src/views/modules/communityParty/stas/index.vue

@ -4,23 +4,24 @@
<el-form :inline="true" <el-form :inline="true"
:model="form" :model="form"
ref="ref_searchform" ref="ref_searchform"
:label-width="'100px'"> :label-width="'110px'">
<div> <div>
<el-form-item prop="mySelectOrg" label-width="130px" label="参加活动党组织"> <el-form-item prop="mySelectOrg"
<el-cascader label-width="130px"
class="list_item_width_1" label="参加活动党组织">
v-model="joinOrgIds" <el-cascader class="list_item_width_1"
size="small" v-model="joinOrgIds"
:options="orgList" size="small"
placeholder="请选择党组织" :options="orgList"
:props="{ placeholder="请选择党组织"
:props="{
checkStrictly: true, checkStrictly: true,
label: 'partyOrgName', label: 'partyOrgName',
value: 'id', value: 'id',
children: 'children' children: 'children'
}" }"
@change="handleChangeOrg" @change="handleChangeOrg"
clearable/> clearable />
</el-form-item> </el-form-item>
<el-form-item label="活动开始时间" <el-form-item label="活动开始时间"
prop="serviceTimeArea"> prop="serviceTimeArea">
@ -47,10 +48,10 @@
</div> </div>
<div class="div_table"> <div class="div_table">
<div class="div_btn"> <div class="div_btn">
<el-button style="margin-left:10px" <el-button style="margin-left:10px"
class="diy-button--reset" class="diy-button--reset"
size="small" size="small"
@click="handleExport">导出</el-button> @click="handleExport">导出</el-button>
</div> </div>
<el-table class="table" <el-table class="table"
:data="tableData" :data="tableData"
@ -74,43 +75,37 @@
<el-table-column prop="dydhNum" <el-table-column prop="dydhNum"
header-align="center" header-align="center"
align="center" align="center"
label="支部党员大会(次)" label="支部党员大会(次)">
>
</el-table-column> </el-table-column>
<el-table-column prop="wyhNum" <el-table-column prop="wyhNum"
header-align="center" header-align="center"
align="center" align="center"
label="支部委员会(次)" label="支部委员会(次)"
show-overflow-tooltip show-overflow-tooltip>
>
</el-table-column> </el-table-column>
<el-table-column prop="dxzhNum" <el-table-column prop="dxzhNum"
header-align="center" header-align="center"
show-overflow-tooltip show-overflow-tooltip
align="center" align="center"
label="党小组会(次)" label="党小组会(次)">
>
</el-table-column> </el-table-column>
<el-table-column prop="dkNum" <el-table-column prop="dkNum"
header-align="center" header-align="center"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
label="党课(次)" label="党课(次)">
>
</el-table-column> </el-table-column>
<el-table-column prop="ztdrNum" <el-table-column prop="ztdrNum"
header-align="center" header-align="center"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
label="主题党日(次)" label="主题党日(次)">
>
</el-table-column> </el-table-column>
<el-table-column prop="wmfwNum" <el-table-column prop="wmfwNum"
header-align="center" header-align="center"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
label="为民服务活动(次)" label="为民服务活动(次)">
>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
@ -168,25 +163,25 @@ export default {
this.form.joinOrgId = '' this.form.joinOrgId = ''
} }
}, },
getOrgList() { getOrgList () {
return this.$http return this.$http
.get('/resi/partymember/icPartyOrg/getSearchTreelist', { .get('/resi/partymember/icPartyOrg/getSearchTreelist', {
params: { agencyId: localStorage.getItem('agencyId') } params: { agencyId: localStorage.getItem('agencyId') }
}) })
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
}else { } else {
this.orgList = this.deepArrTOnull(res.data) this.orgList = this.deepArrTOnull(res.data)
} }
}).catch(() => {return this.$message.error("网络错误");}) }).catch(() => { return this.$message.error("网络错误"); })
}, },
deepArrTOnull(arr) { deepArrTOnull (arr) {
let a = [] let a = []
a = arr.map(item => { a = arr.map(item => {
return { return {
...item, ...item,
children: (item.children.length > 0 && this.deepArrTOnull(item.children) )|| null children: (item.children.length > 0 && this.deepArrTOnull(item.children)) || null
} }
}) })
return a return a
@ -196,17 +191,17 @@ export default {
if (Array.isArray(this.serviceTimeArea) && this.serviceTimeArea.length > 0) { if (Array.isArray(this.serviceTimeArea) && this.serviceTimeArea.length > 0) {
this.form.startTime = this.serviceTimeArea[0]; this.form.startTime = this.serviceTimeArea[0];
this.form.endTime = this.serviceTimeArea[1]; this.form.endTime = this.serviceTimeArea[1];
}else { } else {
this.form.startTime = ''; this.form.startTime = '';
this.form.endTime = ''; 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] let a = this.orgList[0]
this.form.joinOrgId = a.id; this.form.joinOrgId = a.id;
this.joinOrgIds = this.form.joinOrgId this.joinOrgIds = this.form.joinOrgId
}else { } else {
if (Array.isArray(this.joinOrgIds)){ if (Array.isArray(this.joinOrgIds)) {
this.form.joinOrgId = this.joinOrgIds[this.joinOrgIds.length - 1]; this.form.joinOrgId = this.joinOrgIds[this.joinOrgIds.length - 1];
} }
} }

14
src/views/modules/communityService/fuwujilu/detailForm.vue

@ -100,15 +100,11 @@
</div> </div>
<!-- <div class="div_btn"> <div class="div-btn">
<el-button size="small" <el-button size="small"
@click="handleCancle"> </el-button> @click="handleCancle"> </el-button>
<el-button size="small"
v-if="formType != 'detail'" </div>
type="primary"
:disabled="btnDisable"
@click="handleComfirm"> </el-button>
</div> -->
<el-dialog v-if="showPersonList" <el-dialog v-if="showPersonList"
:visible.sync="showPersonList" :visible.sync="showPersonList"
@ -318,7 +314,7 @@ export default {
handleCancle () { handleCancle () {
this.resetData() this.resetData()
this.$emit('handleClose') this.$emit('diaDetailClose')
}, },

3
src/views/modules/communityService/fuwujilu/fuwuList.vue

@ -278,7 +278,8 @@
:serviceRecordId="serviceRecordId" :serviceRecordId="serviceRecordId"
:serviceOrgName="serviceOrgName" :serviceOrgName="serviceOrgName"
:satisfyArray="satisfyArray" :satisfyArray="satisfyArray"
:statusArray="statusArray"> :statusArray="statusArray"
@diaDetailClose="diaDetailClose">
</detail-form> </detail-form>
</el-dialog> </el-dialog>
<el-dialog v-if="showPersonList" <el-dialog v-if="showPersonList"

6
src/views/modules/communityService/fuwuxiangmu/cpts/detail.vue

@ -42,7 +42,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -145,7 +149,7 @@ export default {
handleCancle () { handleCancle () {
this.$emit("close"); this.$emit("diaDetailClose");
}, },
}, },
}; };

3
src/views/modules/communityService/fuwuxiangmu/index.vue

@ -187,7 +187,8 @@
class="dialog-h" class="dialog-h"
@closed="handleClose"> @closed="handleClose">
<detail-form ref="ref_form_detail" <detail-form ref="ref_form_detail"
:formId="formId"></detail-form> :formId="formId"
@diaDetailClose="handleClose"></detail-form>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>

31
src/views/modules/communityService/fuwuzuzhi/cpts/detail.vue

@ -53,17 +53,11 @@
</div> </div>
<!-- <div class="div_btn resi-btns"> <div class="div-btn">
<el-button size="small" @click="handleCancle"> </el-button> <el-button size="small"
<el-button @click="handleCancle"> </el-button>
v-if="formType != 'watch'"
type="primary" </div>
size="small"
:disabled="btnDisable"
@click="handleComfirm"
> </el-button
>
</div> -->
</div> </div>
</template> </template>
@ -112,6 +106,17 @@ export default {
}, },
methods: { methods: {
handleCancle () {
this.diaDestroy()
this.$emit('diaDetailClose')
},
diaDestroy () {
if (map) {
map.destroy()
}
},
async initForm () { async initForm () {
this.startLoading() this.startLoading()
@ -258,9 +263,7 @@ export default {
}, },
handleCancle () {
this.$emit("close");
},
// //
startLoading () { startLoading () {
loading = Loading.service({ loading = Loading.service({

3
src/views/modules/communityService/fuwuzuzhi/index.vue

@ -193,7 +193,8 @@
class="dialog-h" class="dialog-h"
@closed="diaDetailClose"> @closed="diaDetailClose">
<detail-form ref="ref_detail" <detail-form ref="ref_detail"
:formId="formId"></detail-form> :formId="formId"
@diaDetailClose="diaDetailClose"></detail-form>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>

9
src/views/modules/communityService/measure/detail.vue

@ -86,7 +86,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -123,6 +127,11 @@ export default {
}, },
methods: { methods: {
handleCancle () {
this.$emit('diaDetailClose')
},
initForm (row) { initForm (row) {
this.dataForm = JSON.parse(JSON.stringify(row)) this.dataForm = JSON.parse(JSON.stringify(row))
console.log(' this.dataForm', this.dataForm) console.log(' this.dataForm', this.dataForm)

5
src/views/modules/communityService/measure/index.vue

@ -507,7 +507,8 @@
class="dialog-h" class="dialog-h"
:close-on-click-modal="false" :close-on-click-modal="false"
:before-close="detailFormCancle"> :before-close="detailFormCancle">
<detail ref="ref_form_detail"></detail> <detail ref="ref_form_detail"
@diaDetailClose="detailFormCancle"></detail>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -959,7 +960,7 @@ export default {
}, },
async handleLook (row, type) { async handleLook (row, type) {
this.detailShow = true this.detailShow = true
console.log('row',row) console.log('row', row)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ref_form_detail.initForm(row) this.$refs.ref_form_detail.initForm(row)
}) })

2
src/views/modules/communityService/ninePlaces/inspect/inspect.vue

@ -253,7 +253,7 @@
:gridList="gridList" :gridList="gridList"
:resultList="resultList" :resultList="resultList"
:placeTypeList="placeTypeList" :placeTypeList="placeTypeList"
@dialogCancle="addFormCancle"></inspect-detail> @diaDetailClose="diaDetailClose"></inspect-detail>
</el-dialog> </el-dialog>
<!-- 复查记录弹出框 --> <!-- 复查记录弹出框 -->

100
src/views/modules/communityService/ninePlaces/inspect/inspectDetail.vue

@ -1,61 +1,59 @@
<template> <template>
<div>
<div class="dialog-h-content scroll-h">
<div v-if="initLoading"
class="m-row">
<div class="m-info">
<div class="info-prop">
<span class="info-title-4">场所区域</span>
<span>{{ formData.gridName||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">场所类型</span>
<span>{{ formData.placeOrgName||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">场所名称</span>
<span>{{ formData.ninePlaceName||'--'}}</span>
</div>
<div class="info-prop">
<span class="info-title-4">分队名称</span>
<span>{{ formData.placePatrolTeamName||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">检查人员</span>
<span>{{ formData.inspectorsNames||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">首次巡查时间</span>
<span>{{ formData.firstTime||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">隐患明细</span>
<span>{{ formData.detailed||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">首次检查结论</span>
<span>{{ formData.firstResult==='0'?'合格':'不合格' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">拟复查时间</span>
<span>{{ formData.reviewTime||'--' }}</span>
</div>
<div class="dialog-h-content scroll-h">
<div v-if="initLoading"
class="m-row">
<div class="m-info">
<div class="info-prop">
<span class="info-title-4">场所区域</span>
<span>{{ formData.gridName||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">场所类型</span>
<span>{{ formData.placeOrgName||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">场所名称</span>
<span>{{ formData.ninePlaceName||'--'}}</span>
</div>
<div class="info-prop">
<span class="info-title-4">分队名称</span>
<span>{{ formData.placePatrolTeamName||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">检查人员</span>
<span>{{ formData.inspectorsNames||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">首次巡查时间</span>
<span>{{ formData.firstTime||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">隐患明细</span>
<span>{{ formData.detailed||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">首次检查结论</span>
<span>{{ formData.firstResult==='0'?'合格':'不合格' }}</span>
</div>
<div class="info-prop">
<span class="info-title-4">拟复查时间</span>
<span>{{ formData.reviewTime||'--' }}</span>
</div> </div>
</div> </div>
</div> </div>
<!-- <div class="div_btn"> <div class="div-btn">
<el-button size="small" <el-button size="small"
@click="handleCancle"> </el-button> @click="handleCancle"> </el-button>
<el-button size="small"
v-if="formType != 'detail'" </div>
type="primary"
:disabled="btnDisable"
@click="handleComfirm"> </el-button>
</div> -->
</div> </div>
</template> </template>
@ -138,7 +136,7 @@ export default {
handleCancle () { handleCancle () {
this.resetData() this.resetData()
this.$emit('dialogCancle') this.$emit('diaDetailClose')
}, },

2
src/views/modules/communityService/ninePlaces/places/places.vue

@ -208,7 +208,7 @@
:agencyId="agencyId" :agencyId="agencyId"
:scaleList="scaleList" :scaleList="scaleList"
:placeTypeList="placeTypeList" :placeTypeList="placeTypeList"
@dialogCancle="addFormCancle"></places-detail> @diaDetailClose="diaDetailClose"></places-detail>
</el-dialog> </el-dialog>
</div> </div>

16
src/views/modules/communityService/ninePlaces/places/placesDetail.vue

@ -40,15 +40,11 @@
</div> </div>
</div> </div>
<!-- <div class="div_btn"> <div class="div-btn">
<el-button size="small" <el-button size="small"
@click="handleCancle"> </el-button> @click="handleCancle"> </el-button>
<el-button size="small"
v-if="formType != 'detail'" </div>
type="primary"
:disabled="btnDisable"
@click="handleComfirm"> </el-button>
</div> -->
</div> </div>
</template> </template>
@ -142,8 +138,8 @@ export default {
handleCancle () { handleCancle () {
this.resetData()
this.$emit('dialogCancle') this.$emit('diaDetailClose')
}, },

4
src/views/modules/communityService/ninePlaces/team/team.vue

@ -196,7 +196,7 @@
<team-detail ref="ref_detail" <team-detail ref="ref_detail"
:gridList="gridList" :gridList="gridList"
:placeTypeList="placeTypeList" :placeTypeList="placeTypeList"
@dialogCancle="addFormCancle"></team-detail> @diaDetailClose="diaDetailClose"></team-detail>
</el-dialog> </el-dialog>
</div> </div>
@ -344,7 +344,7 @@ export default {
// this.formTitle = '' // this.formTitle = ''
this.detailShow = true this.detailShow = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ref_detail.initForm( row.teamId, this.agencyId) this.$refs.ref_detail.initForm(row.teamId, this.agencyId)
}) })
}, },

15
src/views/modules/communityService/ninePlaces/team/teamDetail.vue

@ -51,15 +51,11 @@
</div> </div>
</div> </div>
<!-- <div class="div_btn"> <div class="div-btn">
<el-button size="small" <el-button size="small"
@click="handleCancle"> </el-button> @click="handleCancle"> </el-button>
<el-button size="small"
v-if="formType != 'detail'" </div>
type="primary"
:disabled="btnDisable"
@click="handleComfirm"> </el-button>
</div> -->
</div> </div>
</template> </template>
@ -256,8 +252,7 @@ export default {
handleCancle () { handleCancle () {
this.resetData() this.$emit('diaDetailClose')
this.$emit('dialogCancle')
}, },

2
src/views/modules/communityService/worklog/workLog.vue

@ -258,7 +258,7 @@
class="dialog-h" class="dialog-h"
@closed="diaClose"> @closed="diaClose">
<work-log-detail ref="ref_detail" <work-log-detail ref="ref_detail"
@diaClose="diaClose"></work-log-detail> @diaDetailClose="diaClose"></work-log-detail>
</el-dialog> </el-dialog>
</div> </div>

6
src/views/modules/communityService/worklog/workLogDetail.vue

@ -50,7 +50,11 @@
</div> </div>
</div> </div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div> </div>
</template> </template>
@ -74,7 +78,7 @@ export default {
methods: { methods: {
handleCancle () { handleCancle () {
this.$emit('diaClose') this.$emit('diaDetailClose')
}, },

3
src/views/modules/plugins/point/icpointvaccinesinoculation.vue

@ -3,6 +3,7 @@
<div class="div_search"> <div class="div_search">
<el-form :inline="true" <el-form :inline="true"
:model="dataForm" :model="dataForm"
label-width="110px"
@keyup.enter.native="loadTable()"> @keyup.enter.native="loadTable()">
<el-form-item label="疫苗接种点名称" <el-form-item label="疫苗接种点名称"
prop="name"> prop="name">
@ -178,7 +179,7 @@
@closed="diaDetailClose" @closed="diaDetailClose"
custom-class="dialog-h"> custom-class="dialog-h">
<detail ref="ref_detail" <detail ref="ref_detail"
@closeDialog="diaDetailClose"></detail> @closeDialog="diaDetailClose"></detail>
</el-dialog> </el-dialog>
<!-- 发送通知弹出框 --> <!-- 发送通知弹出框 -->
<el-dialog :visible.sync="sendNoticeFormShow" <el-dialog :visible.sync="sendNoticeFormShow"

4
src/views/modules/shequzhili/csgltc/csglDetail.vue

@ -48,11 +48,11 @@
</div> </div>
</div> </div>
<!-- <div class="div-btn"> <div class="div-btn">
<el-button size="small" <el-button size="small"
@click="handleCancle"> </el-button> @click="handleCancle"> </el-button>
</div> --> </div>
</div> </div>
</div> </div>

6
src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue

@ -51,11 +51,11 @@
</div> </div>
</div> </div>
<!-- <div class="div_btn"> <div class="div-btn">
<el-button size="small" <el-button size="small"
@click="handleCancle"> </el-button> @click="handleCancle"> </el-button>
</div> --> </div>
</div> </div>
</template> </template>

4
src/views/modules/sys/icvaccineprarmeter.vue

@ -8,7 +8,7 @@
<div> <div>
<el-form-item prop="gridId" <el-form-item prop="gridId"
label="所属网格" label="所属网格"
label-width="70px"> label-width="80px">
<div class="resi-cell-value"> <div class="resi-cell-value">
<el-select v-model.trim="dataForm.gridId" <el-select v-model.trim="dataForm.gridId"
placeholder="请选择网格" placeholder="请选择网格"
@ -92,7 +92,7 @@
<div> <div>
<el-form-item label="姓名" <el-form-item label="姓名"
prop="name" prop="name"
label-width="70px"> label-width="80px">
<el-input v-model="dataForm.name" <el-input v-model="dataForm.name"
placeholder="姓名" placeholder="姓名"
clearable></el-input> clearable></el-input>

52
src/views/pages/login.vue

@ -16,35 +16,35 @@
<div class="ico"> <div class="ico">
<img src="@/assets/img/login/zhanghao.png" alt="" /> <img src="@/assets/img/login/zhanghao.png" alt="" />
</div> </div>
<div class="input"> <el-form-item prop="phone" class="input">
<input <input
type="text" type="text"
v-model="dataForm.phone" v-model="dataForm.phone"
placeholder="账号" placeholder="账号"
/> />
</div> </el-form-item>
</div> </div>
<div class="fm-item"> <div class="fm-item">
<div class="ico"> <div class="ico">
<img src="@/assets/img/login/mima.png" alt="" /> <img src="@/assets/img/login/mima.png" alt="" />
</div> </div>
<div class="input"> <el-form-item prop="password" class="input">
<input <input
type="password" type="password"
v-model="dataForm.password" v-model="dataForm.password"
:placeholder="$t('login.password')" :placeholder="$t('login.password')"
/> />
</div> </el-form-item>
</div> </div>
<div class="fm-captcha"> <div class="fm-captcha">
<div class="fm-item"> <div class="fm-item">
<div class="input"> <el-form-item prop="captcha" class="input">
<input <input
type="text" type="text"
v-model="dataForm.captcha" v-model="dataForm.captcha"
placeholder="验证码" placeholder="验证码"
/> />
</div> </el-form-item>
</div> </div>
<div class="captcha"> <div class="captcha">
<img :src="captchaPath" @click="getCaptcha()" /> <img :src="captchaPath" @click="getCaptcha()" />
@ -95,9 +95,8 @@ import Cookies from "js-cookie";
import CDialog from "@c/CDialog"; import CDialog from "@c/CDialog";
import debounce from "lodash/debounce"; import debounce from "lodash/debounce";
import { messages } from "@/i18n"; import { messages } from "@/i18n";
import { getUUID } from "@/utils"; import { getUUID, encryptedData } from "@/utils";
import { Loading } from "element-ui"; // Loading import { Loading } from "element-ui"; // Loading
import JSEncrypt from "jsencrypt"; //
let loading; // let loading; //
export default { export default {
@ -176,35 +175,16 @@ export default {
// //
dataFormSubmitHandle() { dataFormSubmitHandle() {
this.$refs["dataForm"].validate((valid, messageObj) => { this.$refs["dataForm"].validate((valid, messageObj) => {
console.log(valid, messageObj);
if (!valid) { if (!valid) {
app.util.validateRule(messageObj); app.util.validateRule(messageObj);
return;
} }
this.startLoading(); this.startLoading();
// const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/epmetuser/customerstaff/customerlist'
const url = "/epmetuser/customerstaff/customerlist"; const url = "/epmetuser/customerstaff/customerlist";
const params = { 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( window.app.ajax.post(
url, url,
params, params,
@ -262,7 +242,8 @@ export default {
this.dataForm.customerId = row.customerId; this.dataForm.customerId = row.customerId;
let param = {}; let param = {};
Object.assign(param, this.dataForm); 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 this.$http
.post(url, param) .post(url, param)
.then(({ data: res }) => { .then(({ data: res }) => {
@ -301,15 +282,6 @@ export default {
loading.close(); loading.close();
} }
}, },
//
encryptedData(key, data) {
// JSEncrypt
let encryptor = new JSEncrypt();
//
encryptor.setPublicKey(key);
//
return encryptor.encrypt(data);
},
}, },
}; };
</script> </script>

Loading…
Cancel
Save