Browse Source

传参bug

dev
tianq 3 years ago
parent
commit
83e94cd3d6
  1. 132
      src/assets/scss/people-info2.scss
  2. 11
      src/views/modules/census/addFormHouse.vue
  3. 872
      src/views/modules/census/addFormResident.vue
  4. 2
      src/views/modules/census/census-houseList.vue
  5. 8
      src/views/modules/census/census-residentList.vue
  6. 577
      src/views/modules/census/people-more.vue

132
src/assets/scss/people-info2.scss

@ -0,0 +1,132 @@
@import "c/config";
@import "c/function";
.wrap2 {
box-sizing: border-box;
padding: 20px;
height: 90vh;
width: 1180px;
overflow-y: auto;
overflow-x: hidden;
position: relative;
}
.title {
padding: 10px;
font-size: 22px;
font-family: PingFang SC;
font-weight: 800;
color: #333;
display: flex;
align-items: center;
img {
display: block;
margin-right: 5px;
}
span {
display: block;
}
}
.div_tuomin{
position: absolute;
top:25px;
right:40px;
}
.btn-close {
position: absolute;
z-index: 2;
top: -30px;
right: -30px;
cursor: pointer;
}
.list {
display: flex;
flex-wrap: wrap;
padding: 10px 30px;
.item {
position: relative;
box-sizing: border-box;
padding: 0 15px;
width: 33%;
color: #fff;
font-size: 18px;
font-family: PingFang SC;
font-weight: 400;
color: #333;
line-height: 24px;
margin: 15px 0;
&.z-long {
width: 100%;
}
&::before {
position: absolute;
left: 0;
top: 9px;
content: "";
display: block;
width: 7px;
height: 7px;
background: #ddd;
border-radius: 3px;
}
}
}
.line {
margin: 20px auto;
width: 900px;
height: 1px;
border: 1px dashed #ddd;
}
.tabs {
margin-top: 30px;
display: flex;
align-items: center;
padding-left: 20px;
.tab-btn {
margin: 0 5px;
width: 30px;
text-align: center;
cursor: pointer;
padding: 10px 0;
border-radius: 3px;
background-color: rgba(#000, 0.3);
}
.tab {
@include toe;
margin: 0 5px;
min-width: 80px;
padding: 0 8px;
height: 36px;
background: #fff;
border: 1px solid #eee;
box-shadow: 0 0 10px 0 inset #ddd;
border-radius: 2px;
text-align: center;
font-size: 17px;
font-family: PingFang SC;
font-weight: 400;
color: #333;
line-height: 36px;
cursor: pointer;
transition: all ease 0.1s;
&.z-on {
background: linear-gradient(90deg, #1a5afd, #009cff);
box-shadow: none;
color: #ffffff;
border: 1px solid #1a5afd;
}
}
}

11
src/views/modules/census/addFormHouse.vue

@ -7,6 +7,9 @@
</span>
<div>
<div class="dialog-h-content scroll-h">
<div v-if="view_real_data" class="div_tuomin" style="margin-top: 20px;">
<el-button size="mini" class="diy-button--search" @click="handleTuomin">显示脱敏信息</el-button>
</div>
<el-form :inline="true" :model="formData" ref="form" :rules="dataRule" :label-width="'90px'" v-if="pageType != 'view'">
<el-row>
<el-col :span="6">
@ -89,6 +92,7 @@
</el-row>
<div id="app_event" class="div_map"></div>
</el-form>
<el-form :inline="false" :model="formData" ref="form" :label-width="'90px'" v-if="pageType == 'view'">
<el-row>
<el-col :span="12">
@ -213,7 +217,7 @@ export default {
};
return {
agencyObj: {},
view_real_data: false,
view_real_data: true,
btnDisable: false,
user: '',
agencyId: '',
@ -488,4 +492,9 @@ export default {
@import '@/assets/scss/modules/management/form-main.scss';
@import '@/assets/scss/modules/management/form.scss';
// @import '@/assets/scss/modules/visual/a_customize.scss';
.div_tuomin {
position: absolute;
top: 25px;
right: 40px;
}
</style>

872
src/views/modules/census/addFormResident.vue

@ -7,139 +7,132 @@
</span>
<div>
<div class="dialog-h-content scroll-h">
<el-form :inline="true" :model="formData" ref="form" :rules="dataRule" :label-width="'90px'" v-if="pageType != 'view'">
<el-row>
<el-col :span="6">
<el-form-item label="场所名称" prop="placeOrgName">
<el-input v-model="formData.placeOrgName" :disabled="disabled" class="u-item-width-normal" size="small" clearable placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="场所类型" prop="placeType">
<el-select class="u-item-width-normal" :disabled="disabled" v-model="formData.placeType" placeholder="全部" size="small" clearable>
<el-option v-for="item in placeTypeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="占地面积" prop="areaCovered">
<el-input v-model="formData.areaCovered" :disabled="disabled" class="u-item-width-normal" size="small" clearable placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="场所规模" prop="scaleTotal">
<el-input
type="number"
v-model="formData.scaleTotal"
:disabled="disabled"
class="u-item-width-normal"
size="small"
clearable
placeholder="请输入可容纳人数"
></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="所属组织" prop="gridId">
<el-select v-model="formData.gridId" class="u-item-width-normal" :disabled="disabled" placeholder="全部" size="small" clearable>
<el-option v-for="item in gridList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="场所类别" prop="placeCategory">
<el-select v-model="formData.placeCategory" :disabled="disabled" placeholder="请选择" size="small" clearable class="u-item-width-normal">
<el-option v-for="item in placeCategoryArray" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="负责人" prop="personInCharge">
<el-input v-model="formData.personInCharge" :disabled="disabled" class="u-item-width-normal" size="small" clearable placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="联系电话" prop="mobile">
<el-input v-model="formData.mobile" :disabled="disabled" class="u-item-width-normal" size="small" clearable placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="场所地址" prop="address" style="display: block">
<el-select
v-model="formData.address"
:disabled="disabled"
filterable
remote
:reserve-keyword="true"
placeholder="请输入关键词"
:remote-method="remoteMethod"
:loading="loading"
>
<el-option
v-for="(item, index) in searchOptions"
@click.native="handleClickKey(index)"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<div id="app_event" class="div_map"></div>
</el-form>
<div v-if="view_real_data" class="div_tuomin" style="margin-top: 20px;"><el-button size="mini" class="diy-button--search" @click="handleTuomin">显示脱敏信息</el-button></div>
<el-form :inline="false" :model="formData" ref="form" :label-width="'90px'" v-if="pageType == 'view'">
<el-row>
<el-col :span="12">
<el-form-item label="房屋名称" prop="fullName">{{ formData.fullName }}</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="" prop="placeCategory"></el-form-item>
<el-button size="mini" class="diy-button--search" @click="handleTuomin">显示脱敏信息</el-button>
</el-col> -->
<el-col :span="12">
<el-form-item label="单元号" prop="unitName">{{ formData.unitName ? formData.unitName : '--' }}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="门牌号" prop="doorName">{{ formData.doorName }}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="房屋编码" prop="coding">{{ formData.coding ? formData.coding : '--' }}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="房屋类型" prop="houseTypeName">{{ formData.houseTypeName ? formData.houseTypeName : '--' }}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="房屋用途" prop="purposeName">{{ formData.purposeName ? formData.purposeName : '--' }}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="房屋状态" prop="rentName">{{ formData.rentName ? formData.rentName : '--' }}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="房主姓名" prop="ownerName">{{ formData.ownerName ? formData.ownerName : '--' }}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系方式" prop="showOwnerPhone">{{ formData.showOwnerPhone ? formData.showOwnerPhone : '--' }}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="房主身份证" prop="showOwnerIdCard">{{ formData.showOwnerIdCard ? formData.showOwnerIdCard : '--' }}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注" prop="remark">{{ formData.remark ? formData.remark : '--' }}</el-form-item>
</el-col>
</el-row>
<!-- <div id="app_event" class="div_map"></div> -->
<template v-for="(fieldSubList, index) in fieldList">
<el-row>
<!-- :key="'fieldSubList' + index" -->
<el-col :span="6">
<div v-if="index == 0">
<el-form-item label="所属网格">{{ gridName }}</el-form-item>
</div>
</el-col>
<el-col :span="6">
<div v-if="index == 0">
<el-form-item label="所属小区">{{ xiaoquName }}</el-form-item>
</div>
</el-col>
<el-col :span="6">
<div v-if="index == 0">
<el-form-item label="所属楼栋">{{ louName }}-{{ danyuanName }}</el-form-item>
</div>
</el-col>
<el-col :span="6">
<div v-if="index == 0">
<el-form-item label="所属家庭">{{ homeName }}</el-form-item>
</div>
</el-col>
<template v-for="field in fieldSubList">
<el-col :span="6">
<el-form-item :label="field.label">
<span v-if="field.columnName === 'MOBILE' || field.columnName === 'ID_CARD'">{{ info[field.columnName] || '--' }}</span>
<span v-else-if="field.itemType == 'select' || field.itemType == 'radio' || field.itemType == 'checkbox' || field.itemType == 'cascader'">
{{ info[field.columnName] == null ? '--' : getOptionLabel(field.options, info[field.columnName], field.itemType) }}
</span>
<span v-else>{{ info[field.columnName] == null ? '--' : info[field.columnName] }}</span>
</el-form-item>
</el-col>
</template>
</el-row>
<div style="border-bottom:dashed 1px #ccc"></div>
</template>
</el-form>
<div class="tabs">
<div class="tab-btn" @click="subStartGroupIndex" v-if="groupList.length > 9"><img src="@/assets/img/shuju/people/arrow-double-left.png" /></div>
<div
v-show="index >= startGroupIndex && index < startGroupIndex + 9"
class="tab"
:class="groupIndex % groupList.length == index ? 'z-on' : ''"
:key="'tab' + index"
@click="groupIndex = index"
v-for="(item, index) in groupList"
>
{{ item.label }}
</div>
<div class="tab-btn" @click="addStartGroupIndex" v-if="groupList.length > 9"><img src="@/assets/img/shuju/people/arrow-double-right.png" /></div>
</div>
<div :key="'group' + index" v-show="groupIndex % groupList.length == index" v-for="(group, index) in groupList">
<div v-if="group.tableName == 'ic_resi_demand' && Array.isArray(allInfo.ic_resi_demand) && allInfo.ic_resi_demand.length > 0">
<div class="list" :key="'ic_resi_demand' + infoIndex" v-for="(infoItem, infoIndex) in allInfo.ic_resi_demand">
<div class="item" :key="field.itemId" v-for="field in group.itemList">
<span class="item-field">{{ field.label }}</span>
<span v-if="field.itemType == 'select' || field.itemType == 'radio' || field.itemType == 'checkbox' || field.itemType == 'cascader'">
{{ infoItem[field.columnName] == null ? '--' : getOptionLabel(field.options, infoItem[field.columnName], field.itemType) }}
</span>
<span v-else>{{ infoItem[field.columnName] == null ? '--' : infoItem[field.columnName] }}</span>
</div>
</div>
</div>
<div v-else-if="group.tableName == 'ic_hs'" style="margin-top: 10px; padding: 0 20px">
<el-table class="table" :data="natList" border height="400" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" style="width: 100%">
<el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column>
<el-table-column prop="testTime" header-align="center" align="center" label="检测时间" width="150"></el-table-column>
<el-table-column prop="address" header-align="center" align="center" label="检测机构" show-overflow-tooltip min-width="180"></el-table-column>
<el-table-column prop="result" header-align="center" align="center" label="检测结果" width="240"></el-table-column>
</el-table>
</div>
<div v-else-if="group.tableName == 'ic_xc'" style="margin-top: 10px; padding: 0 20px">
<el-table class="table" :data="tripList" border height="400" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" style="width: 100%">
<el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column>
<el-table-column prop="fromRegion" header-align="center" align="center" label="来自地区" show-overflow-tooltip min-width="100"></el-table-column>
<el-table-column prop="arrivalTime" header-align="center" align="center" label="来到本地时间" width="140"></el-table-column>
<el-table-column prop="leaveTime" header-align="center" align="center" label="离开本地时间" width="140"></el-table-column>
<el-table-column prop="noticeTime" header-align="center" align="center" label="最近一次通知时间" width="140"></el-table-column>
<el-table-column prop="remark" header-align="center" align="center" label="备注" show-overflow-tooltip width="120"></el-table-column>
</el-table>
</div>
<div v-else-if="group.tableName == 'ic_ym'" style="margin-top: 10px; padding: 0 20px">
<el-table
v-if="vaccineList"
class="table"
:data="vaccineList"
border
height="400"
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }"
style="width: 100%"
>
<el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column>
<el-table-column prop="vaccinateTime" header-align="center" align="center" label="接种时间" show-overflow-tooltip min-width="100"></el-table-column>
<el-table-column prop="address" header-align="center" align="center" label="接种地点"></el-table-column>
<el-table-column prop="manufactor" header-align="center" align="center" label="疫苗厂家"></el-table-column>
</el-table>
</div>
<div class="list" v-else>
<div class="item" :class="{ 'z-long': group.itemList.length == 1 }" :key="field.itemId" v-for="field in group.itemList">
<span class="item-field">{{ field.label }}</span>
<span v-if="field.itemType == 'select' || field.itemType == 'radio' || field.itemType == 'checkbox' || field.itemType == 'cascader'">
{{
!allInfo[group.tableName] || allInfo[group.tableName][0][field.columnName] == null
? '--'
: getOptionLabel(field.options, allInfo[group.tableName][0][field.columnName], field.itemType)
}}
</span>
<span v-else>
{{ !allInfo[group.tableName] || allInfo[group.tableName][0][field.columnName] == null ? '--' : allInfo[group.tableName][0][field.columnName] }}
</span>
</div>
</div>
</div>
</div>
<div class="div_btn" v-if="pageType != 'view'">
<el-button size="small" @click="handleCancle"> </el-button>
<!-- <el-button size="small" @click="resetData" v-if="pageType != 'view'">重置</el-button> -->
<el-button size="small" type="primary" :disabled="btnDisable" @click="handleComfirm"> </el-button>
</div>
<!-- <div class="recordBox"><record v-if="pageType != 'add' && detailId" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div> -->
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleCancle"> </el-button>
<!-- <el-button type="primary" @click="handleComfirm"> </el-button> -->
@ -148,128 +141,149 @@
</template>
<script>
import { isMobile } from '@/utils/validate';
import { mapGetters } from 'vuex';
import { Loading } from 'element-ui'; // Loading
import { requestPost, requestGet } from '@/js/dai/request';
import daiMap from '@/utils/dai-map';
import nextTick from 'dai-js/tools/nextTick';
import record from './record';
let loading; //
let map;
var search;
var markers;
var infoWindowList;
var geocoder; //
import cptCard from '@/views/modules/visual/cpts/card';
import { requestPost } from '@/js/dai/request';
export default {
name: 'peopleMore',
props: {
dialogVisible: {
type: Boolean,
default: ''
},
defaultData: {
type: Object,
default: null
},
pageType: {
type: String,
default: ''
},
detailId: {
userId: {
type: String,
default: ''
},
detailData: {
type: Object,
default: null
},
disabled: {
type: Boolean,
default: false
gridName: {
type: String,
default: ''
}
},
components: {
cptCard
},
data() {
let checkNum = (rule, value, callback) => {
if (!value) {
return callback(new Error('场所规模不能为空'));
return {
view_real_data: true,
formData: {},
customerId: '',
isXiaozhaizi: false,
fieldList: [],
groupList: [],
groupIndex: 0,
startGroupIndex: 0,
info: {},
allInfo: {},
xiaoquList: [],
louList: [],
danyuanList: [],
homeList: [],
natList: [], //
tripList: [], //
vaccineList: []
};
},
computed: {
isShundeju() {
return this.$store.state.user.customerId == '1550309684576591874';
},
xiaoquName() {
const {
xiaoquList,
info: { VILLAGE_ID }
} = this;
if (Array.isArray(xiaoquList) && xiaoquList.length > 0 && VILLAGE_ID) {
let item = xiaoquList.find(item => item.value == VILLAGE_ID);
if (item) {
return item.label;
}
}
setTimeout(() => {
if (!Number.isInteger(value)) {
callback(new Error('请输入数字值'));
return '';
},
louName() {
const {
louList,
info: { BUILD_ID }
} = this;
if (Array.isArray(louList) && louList.length > 0 && BUILD_ID) {
let item = louList.find(item => item.value == BUILD_ID);
if (item) {
return item.label;
}
}, 1000);
};
let checkMObile = (rule, value, callback) => {
if (value === '') {
callback(new Error('请输入联系电话'));
} else {
if (!isMobile(value)) {
callback(new Error('联系电话格式不正确'));
}
return '';
},
danyuanName() {
const {
danyuanList,
info: { UNIT_ID }
} = this;
if (Array.isArray(danyuanList) && danyuanList.length > 0 && UNIT_ID) {
let item = danyuanList.find(item => item.value == UNIT_ID);
if (item) {
return item.label;
}
callback();
}
};
return {
agencyObj: {},
view_real_data: false,
btnDisable: false,
user: '',
agencyId: '',
gridList: [], //list--
placeTypeList: [], //
resultArray: [{ value: '0', label: '合格' }, { value: '1', label: '不合格' }],
placeCategoryArray: [{ value: '0', label: '九小场所' }, { value: '1', label: '企事业单位' }],
list: {},
formData: {
placeOrgName: '',
scaleTotal: '',
gridId: '',
latestResult: '',
placeCategory: '',
placeType: '',
personInCharge: '',
address: '',
mobile: '',
// result: '',
remark: ''
},
dataRule: {
placeOrgName: [{ required: true, message: '场所名称不能为空', trigger: 'bulr' }],
placeCategory: [{ required: true, message: '场所类别不能为空', trigger: 'bulr' }],
placeType: [{ required: true, message: '场所类型不能为空', trigger: 'bulr' }],
result: [{ required: true, message: '巡查结果不能为空', trigger: 'bulr' }],
scaleTotal: [{ required: true, validator: checkNum, trigger: 'bulr' }],
gridId: [{ required: true, message: '所属组织不能为空', trigger: 'bulr' }],
personInCharge: [{ required: true, message: '负责人不能为空', trigger: 'bulr' }],
mobile: [{ required: true, validator: checkMObile, trigger: 'blur' }],
address: [{ required: true, message: '场所地址不能为空', trigger: 'blur' }]
// content: [{ required: true, message: '', trigger: 'bulr' }, { max: 1000, message: '1000', trigger: 'blur' }]
},
//
loading: false,
searchValue: '',
searchOptions: []
};
return '';
},
danyuanName() {
const {
danyuanList,
info: { UNIT_ID }
} = this;
if (Array.isArray(danyuanList) && danyuanList.length > 0 && UNIT_ID) {
let item = danyuanList.find(item => item.value == UNIT_ID);
if (item) {
return item.label;
}
}
return '';
},
homeName() {
const {
homeList,
info: { HOME_ID }
} = this;
if (Array.isArray(homeList) && homeList.length > 0 && HOME_ID) {
let item = homeList.find(item => item.value == HOME_ID);
if (item) {
return item.label;
}
}
return '';
}
},
watch: {},
components: { record },
created() {},
async mounted() {
this.user = this.$store.state.user;
this.agencyId = this.user.agencyId;
this.startLoading();
this.loadGrid();
this.loadplaceType();
if (this.pageType != 'add') {
this.getDetail();
} else {
// this.initMap();
watch: {
userId() {
this.getApiData();
}
await this.endLoading();
this.endLoading();
},
mounted() {
//1580460084738760705
//id: 1535072605621841922
//id: 1536638904600752130
this.customerId = localStorage.getItem('customerId');
this.isXiaozhaizi = false;
if (this.customerId === '1536638904600752130') {
this.isXiaozhaizi = true;
}
this.getApiData();
},
methods: {
@ -277,215 +291,289 @@ export default {
const url = '/data/aggregator/epmetuser/detailByType';
const { data, code, msg } = await requestPost(url, {
id: this.detailId,
type: 'checkHouse'
id: this.userId,
type: 'checkIcResiUser'
});
console.log(data);
if (code === 0) {
this.$set(this.formData, 'showOwnerPhone', data.mobile);
this.$set(this.formData, 'showOwnerIdCard', data.idCard);
this.$set(this.info, 'MOBILE', data.mobile);
this.$set(this.info, 'ID_CARD', data.idCard);
} else {
this.$message.error(msg);
}
},
async loadGrid() {
const url = '/gov/org/customergrid/gridoption';
let params = {
agencyId: this.agencyId,
purpose: 'query'
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.gridList = data;
addStartGroupIndex() {
const { startGroupIndex, groupList } = this;
if (startGroupIndex < groupList.length - 9) {
this.startGroupIndex = startGroupIndex + 1;
} else {
this.$message.error(msg);
this.startGroupIndex = groupList.length - 9;
}
},
subStartGroupIndex() {
const { startGroupIndex, groupList } = this;
if (startGroupIndex > 0) {
this.startGroupIndex = startGroupIndex - 1;
} else {
this.startGroupIndex = 0;
}
},
//
async loadplaceType() {
const url = '/sys/dict/data/dictlist';
handleCancle() {
// this.resetData();
this.$emit('handleClose');
},
async getApiData() {
await this.getField();
await this.getInfo();
this.getDetailList();
this.getXiaoquList();
this.getLouList();
this.getDanyuanList();
this.getHomeList();
},
getOptionLabel(options, value, type = '') {
if (Array.isArray(options)) {
let valueArr = value.split(',');
if (type == 'cascader') {
let finalValue = [];
this.getNodePath(options, value, finalValue);
return finalValue.join('-');
} else {
return valueArr
.map(val => {
let item = options.find(item => item.value == val);
if (item && item.label) {
return item.label;
}
return '--';
})
.join('、');
}
}
return '--';
},
getNodePath(node, val, path) {
// node:val:id, path:id
for (let i = 0; i < node.length; i++) {
const ele = node[i];
if (ele.value === val) {
path.push(ele.label);
return path;
} else if (ele.children && ele.children.length > 0) {
if (ele.children.some(row => row.value === val)) {
path.unshift(ele.label);
this.getNodePath(ele.children, val, path);
} else {
this.getNodePath(ele.children, val, path);
}
}
}
return path;
},
//
async getField() {
const url = '/oper/customize/icform/getcustomerform';
const { data, code, msg } = await requestPost(url, {
dynamic: true,
formCode: 'resi_base_info'
});
let params = {
dictType: 'ic_enterprise_place_type'
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.placeTypeList = data;
this.groupList = data.groupList;
this.fieldList = (function(arr) {
let col = [];
let ele = [];
for (let i = 0; i < arr.length; i++) {
let item = arr[i];
if (item.itemType == 'divider' || i == arr.length - 1) {
col.push([...ele]);
ele = [];
} else {
ele.push(item);
}
}
return col;
})(data.itemList);
this.fieldList.forEach((subList, index) => {
subList.forEach(async (item, subIndex) => {
if (item.optionSourceType == 'remote' && item.optionSourceValue) {
this.fieldList[index][subIndex].options = await this.getOptions(item.optionSourceValue);
}
});
});
} else {
this.$message.error(msg);
}
},
async getDetail() {
const url = `/gov/org/ichouse/${this.detailId}`;
const { data, code, msg } = await requestGet(url);
//
async getInfo() {
const url = '/epmetuser/icresiuser/detail';
const { data, code, msg } = await requestPost(url, {
icResiUserId: this.userId,
formCode: 'resi_base_info'
});
if (code === 0) {
this.formData = { ...data };
this.houseType = this.formData.houseType;
this.purpose = this.formData.purpose;
this.rentFlag = parseInt(this.formData.rentFlag);
this.info = data.ic_resi_user[0];
this.allInfo = data;
// this.initMap();
this.fieldList.forEach((subList, index) => {
subList.forEach((item, subIndex) => {
if (item.itemType == 'radio' && item.childGroup && this.allInfo[item.tableName] && this.allInfo[item.tableName][0][item.columnName] == '1') {
this.groupList = [...this.groupList, item.childGroup];
}
});
});
await Promise.all(
this.groupList.map((subList, index) => {
return Promise.all(
subList.itemList.map(async (item, subIndex) => {
if (item.optionSourceType == 'remote' && item.optionSourceValue) {
this.groupList[index].itemList[subIndex].options = await this.getOptions(item.optionSourceValue);
}
})
);
})
);
console.log('44444444', this.groupList);
let arr = [
{
groupId: 'hs123',
itemList: [],
label: '核酸检测信息',
sort: 998,
supportAdd: false,
tableName: 'ic_hs'
}
];
if (!this.isShundeju && !this.isXiaozhaizi) {
arr = [
...arr,
{
groupId: 'hs124',
itemList: [],
label: '行程信息',
sort: 999,
supportAdd: false,
tableName: 'ic_xc'
},
{
groupId: 'hs125',
itemList: [],
label: '疫苗信息',
sort: 999,
supportAdd: false,
tableName: 'ic_ym'
}
];
this.groupList = [...this.groupList, ...arr];
} else {
this.groupList = [...arr, ...this.groupList];
}
} else {
this.$message.error(msg);
}
},
handleComfirm() {
this.save();
},
async handleAdd() {
// this.btnDisable = true;
// setTimeout(() => {
// this.btnDisable = false;
// }, 10000);
// nextTick(1000);
// const form = new Promise((resolve, reject) => {
// this.$refs['form'].validate(valid => {
// if (valid) resolve();
// });
// });
// const form1 = new Promise((resolve, reject) => {
// this.$refs['form1'].validate(valid => {
// if (valid) resolve();
// });
// });
// Promise.all([form1, form])
// .then(() => {
// this.addFuwu();
// })
// .catch(() => {
// app.util.validateRule(messageObj);
// this.btnDisable = false;
// });
},
//
async getOptions(url) {
if (!url) return [];
const { data, code, msg } = await requestPost(url, {});
async save() {
this.formData.agencyId = this.agencyId;
var url = '';
var params = {};
url = '/gov/org/enterprise/addOrUpdate';
params = { ...this.formData };
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.$message.success('操作成功');
return data;
} else {
return [];
}
},
async getXiaoquList() {
const url = '/gov/org/icneighborhood/neighborhoodoption';
const { data, code, msg } = await requestPost(url, {
agencyId: this.info.AGENCY_ID,
gridId: this.info.GRID_ID
});
this.handleCancle();
// // this.resetData();
// this.$emit('handleComfirm');
} else if (code >= 8000) {
if (code === 0) {
this.xiaoquList = data;
} else {
this.$message.error(msg);
}
},
handleCancle() {
// this.resetData();
this.$emit('handleClose');
},
resetData() {
this.$refs.form.resetFields();
},
//
startLoading() {
loading = Loading.service({
lock: true, //
text: '正在加载……', //
background: 'rgba(0,0,0,.7)' //
async getLouList() {
const url = '/gov/org/icbuilding/buildingoption';
const { data, code, msg } = await requestPost(url, {
neighborHoodId: this.info.VILLAGE_ID
});
},
//
endLoading() {
// clearTimeout(timer);
if (loading) {
loading.close();
}
}, // init
initMap() {
let { latitude, longitude } = this.$store.state.user;
if (this.formData.latitude && this.formData.longitude) {
latitude = this.formData.latitude;
longitude = this.formData.longitude;
}
if (!latitude || latitude == '' || latitude == '0') {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
if (code === 0) {
this.louList = data;
} else {
this.$message.error(msg);
}
},
async getDanyuanList() {
const url = '/gov/org/icbuildingunit/unitoption';
this.$nextTick(() => {
map = new daiMap(
document.getElementById('app_event'),
{ latitude, longitude },
{
zoom: 16.2, //
pitch: 43.5, //
rotation: 45 //
}
);
//
map.on('dragend', e => {
this.handleMoveCenter(e);
});
map.setCenter(latitude, longitude);
if (this.formData.latitude) {
map.setMarker(latitude, longitude);
}
const { data, code, msg } = await requestPost(url, {
buildingId: this.info.BUILD_ID
});
},
async handleMoveCenter() {
//
const { lat, lng } = map.getCenter();
this.formData.latitude = lat;
this.formData.longitude = lng;
map.setMarker(lat, lng);
let { msg, data } = await map.getAddress(lat, lng);
if (msg == 'success') {
this.formData.address = data.address;
this.searchValue = data.address;
this.searchOptions = [];
if (code === 0) {
this.danyuanList = data;
} else {
this.$message.error(msg);
}
},
async remoteMethod(query) {
if (query !== '') {
this.loading = true;
const { msg, data } = await map.searchNearby(query);
this.loading = false;
this.resultList = [];
if (msg == 'success' && data.resultList && data.resultList.length > 0) {
if (data.resultList && data.resultList.length > 0) {
this.resultList = data.resultList;
this.searchOptions = this.resultList.map(item => {
return { value: `${item.id}`, label: `${item.address + item.name}` };
});
}
} else {
this.searchOptions = [
{
value: '0',
label: '未检索到结果'
}
];
}
async getHomeList() {
const url = '/gov/org/ichouse/houseoption';
const { data, code, msg } = await requestPost(url, {
unitId: this.info.UNIT_ID
});
if (code === 0) {
this.homeList = data;
} else {
this.searchOptions = [];
this.$message.error(msg);
}
},
handleClickKey(index) {
let selPosition = this.resultList[index];
let lonlat = selPosition.lonlat.split(' ');
map.setCenter(lonlat[1], lonlat[0]);
map.setMarker(lonlat[1], lonlat[0]);
this.formData.latitude = lonlat[1];
this.formData.longitude = lonlat[0];
this.formData.address = selPosition.address + selPosition.name;
async getDetailList() {
const url = '/epmetuser/epidemicPrevention/info';
let params = {
id: this.userId
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
const { vaccineList, natList, tripList } = data;
this.vaccineList = vaccineList;
this.natList = natList;
this.tripList = tripList;
} else {
this.$message.error(msg);
}
}
}
};
</script>
<style lang="scss" src="@/assets/scss/people-info2.scss" scoped></style>
<style lang="scss" scoped>
@import '@/assets/scss/modules/management/form-main.scss';
@import '@/assets/scss/modules/management/form.scss';
// @import '@/assets/scss/modules/visual/a_customize.scss';
</style>

2
src/views/modules/census/census-houseList.vue

@ -243,7 +243,7 @@ export default {
},
computed: {
maxTableHeight() {
this.TableHeight = this.$store.state.inIframe ? this.clientHeight - 675 + this.iframeHeigh : this.clientHeight - 675;
this.TableHeight = this.$store.state.inIframe ? this.clientHeight - 635 + this.iframeHeigh : this.clientHeight - 635;
return this.TableHeight;
},
...mapGetters(['clientHeight', 'iframeHeight'])

8
src/views/modules/census/census-residentList.vue

@ -137,7 +137,7 @@ import screenEchartsFrame2 from './chart';
import { requestPost } from '@/js/dai/request';
import nextTick from 'dai-js/tools/nextTick';
import { mapGetters } from 'vuex';
import addForm from './people-more.vue';
import addForm from './addFormResident.vue';
import axios from 'axios';
@ -215,7 +215,7 @@ export default {
},
computed: {
maxTableHeight() {
this.TableHeight = this.$store.state.inIframe ? this.clientHeight - 675 + this.iframeHeigh : this.clientHeight - 675;
this.TableHeight = this.$store.state.inIframe ? this.clientHeight - 635 + this.iframeHeigh : this.clientHeight - 635;
return this.TableHeight;
},
...mapGetters(['clientHeight', 'iframeHeight'])
@ -232,7 +232,7 @@ export default {
console.log(this.$store.state);
this.user = this.$store.state.user;
this.agencyId = this.user.agencyId;
this.orgId = this.agencyId;
// this.orgId = this.agencyId;
this.getOrgTreeList();
this.getTableData();
this.getsubData();
@ -243,7 +243,7 @@ export default {
this.dialogVisible = true;
this.pageType = 'view';
this.detailId = row.icResiUserId;
this.detailData = row.educationName;
this.detailData = row.gridName;
},
handleClose() {
this.dialogVisible = false;

577
src/views/modules/census/people-more.vue

@ -1,577 +0,0 @@
<template>
<el-dialog :visible.sync="dialogVisible" width="1370px" :before-close="handleCancle">
<span slot="title">
<span v-if="pageType == 'add'">新增</span>
<span v-if="pageType == 'edit'">修改</span>
<span v-if="pageType == 'view'">查看</span>
</span>
<div>
<div class="dialog-h-content scroll-h">
<div v-if="view_real_data" class="div_tuomin"><el-button size="mini" class="diy-button--search" @click="handleTuomin">显示脱敏信息</el-button></div>
<el-form :inline="false" :model="formData" ref="form" :label-width="'90px'" v-if="pageType == 'view'">
<el-row>
<template v-for="(fieldSubList, index) in fieldList">
<!-- :key="'fieldSubList' + index" -->
<el-col :span="12">
<div v-if="index == 0">
<el-form-item label="所属网格">{{ gridName }}</el-form-item>
</div>
</el-col>
<el-col :span="12">
<div v-if="index == 0">
<el-form-item label="所属小区">{{ xiaoquName }}</el-form-item>
</div>
</el-col>
<el-col :span="12">
<div v-if="index == 0">
<el-form-item label="所属楼栋">{{ louName }}-{{ danyuanName }}</el-form-item>
</div>
</el-col>
<el-col :span="12">
<div v-if="index == 0">
<el-form-item label="所属家庭">{{ homeName }}</el-form-item>
</div>
</el-col>
<el-col :span="12">
<div :key="field.itemId" v-for="field in fieldSubList">
<el-form-item :label="field.label">
<span v-if="field.columnName === 'MOBILE' || field.columnName === 'ID_CARD'">{{ info[field.columnName] || '--' }}</span>
<span v-else-if="field.itemType == 'select' || field.itemType == 'radio' || field.itemType == 'checkbox' || field.itemType == 'cascader'">
{{ info[field.columnName] == null ? '--' : getOptionLabel(field.options, info[field.columnName], field.itemType) }}
</span>
<span v-else>{{ info[field.columnName] == null ? '--' : info[field.columnName] }}</span>
</el-form-item>
</div>
</el-col>
</template>
</el-row>
</el-form>
<div class="tabs">
<div class="tab-btn" @click="subStartGroupIndex" v-if="groupList.length > 9"><img src="@/assets/img/shuju/people/arrow-double-left.png" /></div>
<div
v-show="index >= startGroupIndex && index < startGroupIndex + 9"
class="tab"
:class="groupIndex % groupList.length == index ? 'z-on' : ''"
:key="'tab' + index"
@click="groupIndex = index"
v-for="(item, index) in groupList"
>
{{ item.label }}
</div>
<div class="tab-btn" @click="addStartGroupIndex" v-if="groupList.length > 9"><img src="@/assets/img/shuju/people/arrow-double-right.png" /></div>
</div>
<div :key="'group' + index" v-show="groupIndex % groupList.length == index" v-for="(group, index) in groupList">
<div v-if="group.tableName == 'ic_resi_demand' && Array.isArray(allInfo.ic_resi_demand) && allInfo.ic_resi_demand.length > 0">
<div class="list" :key="'ic_resi_demand' + infoIndex" v-for="(infoItem, infoIndex) in allInfo.ic_resi_demand">
<div class="item" :key="field.itemId" v-for="field in group.itemList">
<span class="item-field">{{ field.label }}</span>
<span v-if="field.itemType == 'select' || field.itemType == 'radio' || field.itemType == 'checkbox' || field.itemType == 'cascader'">
{{ infoItem[field.columnName] == null ? '--' : getOptionLabel(field.options, infoItem[field.columnName], field.itemType) }}
</span>
<span v-else>{{ infoItem[field.columnName] == null ? '--' : infoItem[field.columnName] }}</span>
</div>
</div>
</div>
<div v-else-if="group.tableName == 'ic_hs'" style="margin-top: 10px; padding: 0 20px">
<el-table class="table" :data="natList" border height="400" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" style="width: 100%">
<el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column>
<el-table-column prop="testTime" header-align="center" align="center" label="检测时间" width="150"></el-table-column>
<el-table-column prop="address" header-align="center" align="center" label="检测机构" show-overflow-tooltip min-width="180"></el-table-column>
<el-table-column prop="result" header-align="center" align="center" label="检测结果" width="240"></el-table-column>
</el-table>
</div>
<div v-else-if="group.tableName == 'ic_xc'" style="margin-top: 10px; padding: 0 20px">
<el-table class="table" :data="tripList" border height="400" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" style="width: 100%">
<el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column>
<el-table-column prop="fromRegion" header-align="center" align="center" label="来自地区" show-overflow-tooltip min-width="100"></el-table-column>
<el-table-column prop="arrivalTime" header-align="center" align="center" label="来到本地时间" width="140"></el-table-column>
<el-table-column prop="leaveTime" header-align="center" align="center" label="离开本地时间" width="140"></el-table-column>
<el-table-column prop="noticeTime" header-align="center" align="center" label="最近一次通知时间" width="140"></el-table-column>
<el-table-column prop="remark" header-align="center" align="center" label="备注" show-overflow-tooltip width="120"></el-table-column>
</el-table>
</div>
<div v-else-if="group.tableName == 'ic_ym'" style="margin-top: 10px; padding: 0 20px">
<el-table
v-if="vaccineList"
class="table"
:data="vaccineList"
border
height="400"
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }"
style="width: 100%"
>
<el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column>
<el-table-column prop="vaccinateTime" header-align="center" align="center" label="接种时间" show-overflow-tooltip min-width="100"></el-table-column>
<el-table-column prop="address" header-align="center" align="center" label="接种地点"></el-table-column>
<el-table-column prop="manufactor" header-align="center" align="center" label="疫苗厂家"></el-table-column>
</el-table>
</div>
<div class="list" v-else>
<div class="item" :class="{ 'z-long': group.itemList.length == 1 }" :key="field.itemId" v-for="field in group.itemList">
<span class="item-field">{{ field.label }}</span>
<span v-if="field.itemType == 'select' || field.itemType == 'radio' || field.itemType == 'checkbox' || field.itemType == 'cascader'">
{{
!allInfo[group.tableName] || allInfo[group.tableName][0][field.columnName] == null
? '--'
: getOptionLabel(field.options, allInfo[group.tableName][0][field.columnName], field.itemType)
}}
</span>
<span v-else>
{{ !allInfo[group.tableName] || allInfo[group.tableName][0][field.columnName] == null ? '--' : allInfo[group.tableName][0][field.columnName] }}
</span>
</div>
</div>
</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleCancle"> </el-button>
<!-- <el-button type="primary" @click="handleComfirm"> </el-button> -->
</span>
</el-dialog>
</template>
<script>
import cptCard from '@/views/modules/visual/cpts/card';
import { requestPost } from '@/js/dai/request';
export default {
name: 'peopleMore',
props: {
dialogVisible: {
type: Boolean,
default: ''
},
pageType: {
type: String,
default: ''
},
userId: {
type: String,
default: ''
},
gridName: {
type: String,
default: ''
}
},
components: {
cptCard
},
data() {
return {
view_real_data: false,
formData: {},
customerId: '',
isXiaozhaizi: false,
fieldList: [],
groupList: [],
groupIndex: 0,
startGroupIndex: 0,
info: {},
allInfo: {},
xiaoquList: [],
louList: [],
danyuanList: [],
homeList: [],
natList: [], //
tripList: [], //
vaccineList: []
};
},
computed: {
isShundeju() {
return this.$store.state.user.customerId == '1550309684576591874';
},
xiaoquName() {
const {
xiaoquList,
info: { VILLAGE_ID }
} = this;
if (Array.isArray(xiaoquList) && xiaoquList.length > 0 && VILLAGE_ID) {
let item = xiaoquList.find(item => item.value == VILLAGE_ID);
if (item) {
return item.label;
}
}
return '';
},
louName() {
const {
louList,
info: { BUILD_ID }
} = this;
if (Array.isArray(louList) && louList.length > 0 && BUILD_ID) {
let item = louList.find(item => item.value == BUILD_ID);
if (item) {
return item.label;
}
}
return '';
},
danyuanName() {
const {
danyuanList,
info: { UNIT_ID }
} = this;
if (Array.isArray(danyuanList) && danyuanList.length > 0 && UNIT_ID) {
let item = danyuanList.find(item => item.value == UNIT_ID);
if (item) {
return item.label;
}
}
return '';
},
danyuanName() {
const {
danyuanList,
info: { UNIT_ID }
} = this;
if (Array.isArray(danyuanList) && danyuanList.length > 0 && UNIT_ID) {
let item = danyuanList.find(item => item.value == UNIT_ID);
if (item) {
return item.label;
}
}
return '';
},
homeName() {
const {
homeList,
info: { HOME_ID }
} = this;
if (Array.isArray(homeList) && homeList.length > 0 && HOME_ID) {
let item = homeList.find(item => item.value == HOME_ID);
if (item) {
return item.label;
}
}
return '';
}
},
watch: {
userId() {
this.getApiData();
}
},
mounted() {
//1580460084738760705
//id: 1535072605621841922
//id: 1536638904600752130
this.customerId = localStorage.getItem('customerId');
this.isXiaozhaizi = false;
if (this.customerId === '1536638904600752130') {
this.isXiaozhaizi = true;
}
this.getApiData();
},
methods: {
async handleTuomin() {
const url = '/data/aggregator/epmetuser/detailByType';
const { data, code, msg } = await requestPost(url, {
id: this.userId,
type: 'checkIcResiUser'
});
console.log(data)
if (code === 0) {
this.$set(this.info, 'MOBILE', data.mobile);
this.$set(this.info, 'ID_CARD', data.idCard);
} else {
this.$message.error(msg);
}
},
addStartGroupIndex() {
const { startGroupIndex, groupList } = this;
if (startGroupIndex < groupList.length - 9) {
this.startGroupIndex = startGroupIndex + 1;
} else {
this.startGroupIndex = groupList.length - 9;
}
},
subStartGroupIndex() {
const { startGroupIndex, groupList } = this;
if (startGroupIndex > 0) {
this.startGroupIndex = startGroupIndex - 1;
} else {
this.startGroupIndex = 0;
}
},
handleCancle() {
// this.resetData();
this.$emit('handleClose');
},
async getApiData() {
await this.getField();
await this.getInfo();
this.getDetailList();
this.getXiaoquList();
this.getLouList();
this.getDanyuanList();
this.getHomeList();
},
getOptionLabel(options, value, type = '') {
if (Array.isArray(options)) {
let valueArr = value.split(',');
if (type == 'cascader') {
let finalValue = [];
this.getNodePath(options, value, finalValue);
return finalValue.join('-');
} else {
return valueArr
.map(val => {
let item = options.find(item => item.value == val);
if (item && item.label) {
return item.label;
}
return '--';
})
.join('、');
}
}
return '--';
},
getNodePath(node, val, path) {
// node:val:id, path:id
for (let i = 0; i < node.length; i++) {
const ele = node[i];
if (ele.value === val) {
path.push(ele.label);
return path;
} else if (ele.children && ele.children.length > 0) {
if (ele.children.some(row => row.value === val)) {
path.unshift(ele.label);
this.getNodePath(ele.children, val, path);
} else {
this.getNodePath(ele.children, val, path);
}
}
}
return path;
},
//
async getField() {
const url = '/oper/customize/icform/getcustomerform';
const { data, code, msg } = await requestPost(url, {
dynamic: true,
formCode: 'resi_base_info'
});
if (code === 0) {
this.groupList = data.groupList;
this.fieldList = (function(arr) {
let col = [];
let ele = [];
for (let i = 0; i < arr.length; i++) {
let item = arr[i];
if (item.itemType == 'divider' || i == arr.length - 1) {
col.push([...ele]);
ele = [];
} else {
ele.push(item);
}
}
return col;
})(data.itemList);
this.fieldList.forEach((subList, index) => {
subList.forEach(async (item, subIndex) => {
if (item.optionSourceType == 'remote' && item.optionSourceValue) {
this.fieldList[index][subIndex].options = await this.getOptions(item.optionSourceValue);
}
});
});
} else {
this.$message.error(msg);
}
},
//
async getInfo() {
const url = '/epmetuser/icresiuser/detail';
const { data, code, msg } = await requestPost(url, {
icResiUserId: this.userId,
formCode: 'resi_base_info'
});
if (code === 0) {
this.info = data.ic_resi_user[0];
this.allInfo = data;
this.fieldList.forEach((subList, index) => {
subList.forEach((item, subIndex) => {
if (item.itemType == 'radio' && item.childGroup && this.allInfo[item.tableName] && this.allInfo[item.tableName][0][item.columnName] == '1') {
this.groupList = [...this.groupList, item.childGroup];
}
});
});
await Promise.all(
this.groupList.map((subList, index) => {
return Promise.all(
subList.itemList.map(async (item, subIndex) => {
if (item.optionSourceType == 'remote' && item.optionSourceValue) {
this.groupList[index].itemList[subIndex].options = await this.getOptions(item.optionSourceValue);
}
})
);
})
);
console.log('44444444', this.groupList);
let arr = [
{
groupId: 'hs123',
itemList: [],
label: '核酸检测信息',
sort: 998,
supportAdd: false,
tableName: 'ic_hs'
}
];
if (!this.isShundeju && !this.isXiaozhaizi) {
arr = [
...arr,
{
groupId: 'hs124',
itemList: [],
label: '行程信息',
sort: 999,
supportAdd: false,
tableName: 'ic_xc'
},
{
groupId: 'hs125',
itemList: [],
label: '疫苗信息',
sort: 999,
supportAdd: false,
tableName: 'ic_ym'
}
];
this.groupList = [...this.groupList, ...arr];
} else {
this.groupList = [...arr, ...this.groupList];
}
} else {
this.$message.error(msg);
}
},
//
async getOptions(url) {
if (!url) return [];
const { data, code, msg } = await requestPost(url, {});
if (code === 0) {
return data;
} else {
return [];
}
},
async getXiaoquList() {
const url = '/gov/org/icneighborhood/neighborhoodoption';
const { data, code, msg } = await requestPost(url, {
agencyId: this.info.AGENCY_ID,
gridId: this.info.GRID_ID
});
if (code === 0) {
this.xiaoquList = data;
} else {
this.$message.error(msg);
}
},
async getLouList() {
const url = '/gov/org/icbuilding/buildingoption';
const { data, code, msg } = await requestPost(url, {
neighborHoodId: this.info.VILLAGE_ID
});
if (code === 0) {
this.louList = data;
} else {
this.$message.error(msg);
}
},
async getDanyuanList() {
const url = '/gov/org/icbuildingunit/unitoption';
const { data, code, msg } = await requestPost(url, {
buildingId: this.info.BUILD_ID
});
if (code === 0) {
this.danyuanList = data;
} else {
this.$message.error(msg);
}
},
async getHomeList() {
const url = '/gov/org/ichouse/houseoption';
const { data, code, msg } = await requestPost(url, {
unitId: this.info.UNIT_ID
});
if (code === 0) {
this.homeList = data;
} else {
this.$message.error(msg);
}
},
async getDetailList() {
const url = '/epmetuser/epidemicPrevention/info';
let params = {
id: this.userId
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
const { vaccineList, natList, tripList } = data;
this.vaccineList = vaccineList;
this.natList = natList;
this.tripList = tripList;
} else {
this.$message.error(msg);
}
}
}
};
</script>
<style lang="scss" src="@/assets/scss/people-info.scss" scoped></style>
<style lang="scss" scoped>
@import '@/assets/scss/modules/management/form-main.scss';
@import '@/assets/scss/modules/management/form.scss';
// @import '@/assets/scss/modules/visual/a_customize.scss';
</style>
Loading…
Cancel
Save