|
@@ -2,7 +2,7 @@
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
<div style="margin-bottom: 20px;">
|
|
<div style="margin-bottom: 20px;">
|
|
<p style="font-size: 16px;line-height: 24px; color: #333; font-weight: 700;">当前单位:<span style="font-weight: 400; color: #009fe8; margin-right: 15px; ">{{dneyhsd.dqdw == null? '暂无数据' : dneyhsd.dqdw}}</span>
|
|
<p style="font-size: 16px;line-height: 24px; color: #333; font-weight: 700;">当前单位:<span style="font-weight: 400; color: #009fe8; margin-right: 15px; ">{{dneyhsd.dqdw == null? '暂无数据' : dneyhsd.dqdw}}</span>
|
|
-镇:<span style="font-weight: 400; color: #009fe8; margin-right: 15px; ">{{dneyhsd.zhen == null? '暂无数据' : dneyhsd.zhen}}个</span> 村:<span style="font-weight: 400; color: #009fe8;margin-right: 15px;">{{dneyhsd.cun == null? '暂无数据' : dneyhsd.cun}}个</span> 组:<span style="font-weight: 400; color: #009fe8; margin-right: 15px;">{{dneyhsd.zu == null? '暂无数据' : dneyhsd.zu}}个</span> 常住人口:<span style="font-weight: 400; margin-right: 15px; color: #f66b0e;">{{dneyhsd.czrk == null? '暂无数据' : dneyhsd.czrk}}人</span> <span @click="chakei(0)">新增:<span style="font-weight: 400; margin-right: 15px; color: #00b034;" >{{dneyhsd.xz == null? '暂无数据' : dneyhsd.xz}}人</span></span> <span @click="chakei(1)">减少:<span style="font-weight: 400; margin-right: 15px; color: #fa2323;" >{{dneyhsd.js == null? '暂无数据' : dneyhsd.js}}人</span></span></p>
|
|
|
|
|
|
+镇:<span style="font-weight: 400; color: #009fe8; margin-right: 15px; ">{{dneyhsd.zhen == null? '暂无数据' : dneyhsd.zhen}}个</span> 村:<span style="font-weight: 400; color: #009fe8;margin-right: 15px;">{{dneyhsd.cun == null? '暂无数据' : dneyhsd.cun}}个</span> 组:<span style="font-weight: 400; color: #009fe8; margin-right: 15px;">{{dneyhsd.zu == null? '暂无数据' : dneyhsd.zu}}个</span> 常住人口:<span style="font-weight: 400; margin-right: 15px; color: #f66b0e;">{{dneyhsd.czzrs == null? '暂无数据' : dneyhsd.czzrs}}人</span> <span @click="chakei(0)">新增:<span style="font-weight: 400; margin-right: 15px; color: #00b034;" >{{dneyhsd.czxz == null? '暂无数据' : dneyhsd.czxz}}人</span></span> <span @click="chakei(1)">减少:<span style="font-weight: 400; margin-right: 15px; color: #fa2323;" >{{dneyhsd.czjs == null? '暂无数据' : dneyhsd.czjs}}人</span></span> 户籍人口:<span style="font-weight: 400; margin-right: 15px; color: #f66b0e;">{{dneyhsd.hjzrs == null? '暂无数据' : dneyhsd.hjzrs}}人</span> <span @click="chakei(0)">新增:<span style="font-weight: 400; margin-right: 15px; color: #00b034;" >{{dneyhsd.hjxz == null? '暂无数据' : dneyhsd.hjxz}}人</span></span> <span @click="chakei(1)">减少:<span style="font-weight: 400; margin-right: 15px; color: #fa2323;" >{{dneyhsd.hjjs == null? '暂无数据' : dneyhsd.hjjs}}人</span></span></p>
|
|
</div>
|
|
</div>
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="70px">
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="70px">
|
|
<el-row>
|
|
<el-row>
|
|
@@ -10,22 +10,22 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
<el-form-item label="身份证号" prop="idCard">
|
|
<el-form-item label="身份证号" prop="idCard">
|
|
- <el-input v-model="queryParams.idCard" placeholder="请输入身份证号码" style="width:200px;" clearable @keyup.enter.native="handleQuery" />
|
|
|
|
|
|
+ <el-input v-model="queryParams.idCard" placeholder="请输入身份证号码" style="width:190px;" clearable @keyup.enter.native="handleQuery" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
<el-form-item label="姓名" prop="userName">
|
|
<el-form-item label="姓名" prop="userName">
|
|
- <el-input v-model="queryParams.userName" placeholder="请输入姓名" style="width:200px;" clearable @keyup.enter.native="handleQuery" />
|
|
|
|
|
|
+ <el-input v-model="queryParams.userName" placeholder="请输入姓名" style="width:190px;" clearable @keyup.enter.native="handleQuery" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
<el-form-item label="联系号码" prop="phoneNum">
|
|
<el-form-item label="联系号码" prop="phoneNum">
|
|
- <el-input v-model="queryParams.phoneNum" placeholder="请输入联系号码" style= "width:190px;"clearable @keyup.enter.native="handleQuery" />
|
|
|
|
|
|
+ <el-input v-model="queryParams.phoneNum" placeholder="请输入联系号码" style= "width:180px;"clearable @keyup.enter.native="handleQuery" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
<el-form-item label="年龄阶段" >
|
|
<el-form-item label="年龄阶段" >
|
|
- <el-select v-model="queryParams.params.age" placeholder="年龄阶段" style="width:190px;" clearable>
|
|
|
|
|
|
+ <el-select v-model="queryParams.params.age" placeholder="年龄阶段" style="width:180px;" clearable>
|
|
<el-option v-for="dict in angesList" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
<el-option v-for="dict in angesList" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -42,7 +42,7 @@
|
|
filterable
|
|
filterable
|
|
@change="chahetwos"
|
|
@change="chahetwos"
|
|
:props="optionPropsssd"
|
|
:props="optionPropsssd"
|
|
- style="width: 140%;"
|
|
|
|
|
|
+ style="width: 135%;"
|
|
@keyup.enter.native="handleQuery"
|
|
@keyup.enter.native="handleQuery"
|
|
clearable
|
|
clearable
|
|
ref = "cdd"
|
|
ref = "cdd"
|
|
@@ -91,7 +91,7 @@
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" >修改</el-button>
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" >修改</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
- <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" >删除</el-button>
|
|
|
|
|
|
+ <el-button type="danger" plain icon="el-icon-edit" size="mini" :disabled="multiple" @click="handleDelete" >变更</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button type="primary" plain icon="el-icon-view" size="mini" @click="chajnd" >查看常住人口信息</el-button>
|
|
<el-button type="primary" plain icon="el-icon-view" size="mini" @click="chajnd" >查看常住人口信息</el-button>
|
|
@@ -103,20 +103,21 @@
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange" stripe style="width: 100%" :height="tableMaxHeight">
|
|
|
|
|
|
+ <el-table v-if="nbdgywkajs == true" v-loading="loading" :data="infoList" @selection-change="handleSelectionChange" stripe style="width: 100%" :height="tableMaxHeight">
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column label="姓名" align="center" prop="userName" width="110"/>
|
|
<el-table-column label="姓名" align="center" prop="userName" width="110"/>
|
|
<el-table-column label="联系方式" align="center" prop="phoneNum" width="110" />
|
|
<el-table-column label="联系方式" align="center" prop="phoneNum" width="110" />
|
|
<el-table-column label="身份证号码" align="center" prop="idCard" width="180" />
|
|
<el-table-column label="身份证号码" align="center" prop="idCard" width="180" />
|
|
- <el-table-column label="户籍地址" align="center" prop="domicileSelect" width="250" />
|
|
|
|
|
|
+ <el-table-column label="户籍地址" align="center" prop="domicileSelect" />
|
|
<!-- nowInSelect -->
|
|
<!-- nowInSelect -->
|
|
- <el-table-column label="居住地址" align="center" prop="nowInSelect" />
|
|
|
|
|
|
+ <!-- <el-table-column label="居住地址" align="center" prop="nowInSelect"/> -->
|
|
|
|
+
|
|
<el-table-column label="是否户主" align="center" prop="houseType" width="90" />
|
|
<el-table-column label="是否户主" align="center" prop="houseType" width="90" />
|
|
<el-table-column label="认领人" align="center" prop="rlr" width="90" />
|
|
<el-table-column label="认领人" align="center" prop="rlr" width="90" />
|
|
<el-table-column label="操作" align="left" class-name="small-padding fixed-width" fixed="right" width="120">
|
|
<el-table-column label="操作" align="left" class-name="small-padding fixed-width" fixed="right" width="120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" >查看修改</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" >查看修改</el-button>
|
|
- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" class="hueya" >删除</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="handleDelete(scope.row)" class="hueya" >变更</el-button>
|
|
<el-button v-if="scope.row.houseType == '是'" size="mini" type="text" icon="el-icon-edit" @click="handleDeletefamide(scope.row)" class="hueya" >查看家庭成员</el-button>
|
|
<el-button v-if="scope.row.houseType == '是'" size="mini" type="text" icon="el-icon-edit" @click="handleDeletefamide(scope.row)" class="hueya" >查看家庭成员</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -172,8 +173,8 @@
|
|
<el-cascader
|
|
<el-cascader
|
|
:placeholder="nhdyesfgh"
|
|
:placeholder="nhdyesfgh"
|
|
:options="optionsLists"
|
|
:options="optionsLists"
|
|
- :filterable="true"
|
|
|
|
separator="/"
|
|
separator="/"
|
|
|
|
+ v-model="nhyeswdga"
|
|
@change="chahe"
|
|
@change="chahe"
|
|
:props="optionPropsss"
|
|
:props="optionPropsss"
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
@@ -203,8 +204,9 @@
|
|
</el-row>
|
|
</el-row>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="24" v-for="(item, index) in form.czrkJzdzList" :key="index">
|
|
|
|
- <el-col :span="12">
|
|
|
|
|
|
+ <el-col :span="24" v-for="(item, index) in form.czrkJzdzList" :key="index" v-show="senlsduea == false || index !== 0" >
|
|
|
|
+ <!-- v-show="senlsduea == false || index !== 0" -->
|
|
|
|
+ <el-col :span="12" >
|
|
<el-form-item label="居住地址" prop="province">
|
|
<el-form-item label="居住地址" prop="province">
|
|
<el-cascader
|
|
<el-cascader
|
|
:placeholder="item.plaed"
|
|
:placeholder="item.plaed"
|
|
@@ -217,9 +219,15 @@
|
|
:ref="'myCascaderf' + '' + index"
|
|
:ref="'myCascaderf' + '' + index"
|
|
v-model="item.seleted"
|
|
v-model="item.seleted"
|
|
:key="cascaderKey"
|
|
:key="cascaderKey"
|
|
|
|
+ @expand-change="idjeus"
|
|
@active-item-change="handleItemChange"
|
|
@active-item-change="handleItemChange"
|
|
:class="[item.plaed == '请选择居住地址' ? '' : 'placf']"
|
|
:class="[item.plaed == '请选择居住地址' ? '' : 'placf']"
|
|
></el-cascader>
|
|
></el-cascader>
|
|
|
|
+
|
|
|
|
+ <!-- v-if="jdourdjoaj == false && index == 0" -->
|
|
|
|
+
|
|
|
|
+ <!-- <treeselect v-model="item.seleted" :options="item.optiodne" :show-count="true" placeholder="请选择归属部门" :load-options="loadOptions" :normalizer="normalizer" /> -->
|
|
|
|
+ </el-form-item>
|
|
<!-- @active-item-change="handleItemChange" -->
|
|
<!-- @active-item-change="handleItemChange" -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- :key="cascaderKey" seleted -->
|
|
<!-- :key="cascaderKey" seleted -->
|
|
@@ -264,19 +272,18 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="网格" prop="houseType">
|
|
|
|
|
|
+ <el-form-item label="网格" prop="houseTyper">
|
|
<el-cascader
|
|
<el-cascader
|
|
- placeholder="点击网格"
|
|
|
|
- :options="optionsList"
|
|
|
|
|
|
+ :placeholder="ndhesdweaf"
|
|
|
|
+ :options="optionsListwg"
|
|
filterable
|
|
filterable
|
|
- @change="chahetwos"
|
|
|
|
- :props="optionPropsssd"
|
|
|
|
- style="width: 140%;"
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
- clearable
|
|
|
|
- ref = "cdd"
|
|
|
|
- v-model="listd"
|
|
|
|
- @active-item-change="handleItemChangefr"
|
|
|
|
|
|
+ @change="chahetwoswge"
|
|
|
|
+ :props="optionPropsssdwg"
|
|
|
|
+ style="width: 100%;"
|
|
|
|
+ ref = "cddfr"
|
|
|
|
+ :key="nhduesw"
|
|
|
|
+ @active-item-change="handleItemChangefrwg"
|
|
|
|
+ :class="[ndhesdweaf == '点击选择网格' ? '' : 'placf']"
|
|
></el-cascader>
|
|
></el-cascader>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -295,10 +302,10 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 图片预览 -->
|
|
<!-- 图片预览 -->
|
|
- <el-dialog :close-on-click-modal="false" title="删除原因" :visible.sync="imashow" width="800px" append-to-body >
|
|
|
|
|
|
+ <el-dialog :close-on-click-modal="false" title="变更原因" :visible.sync="imashow" width="800px" append-to-body >
|
|
<el-form ref="formgt" :model="formgt" :rules="ruleshy" label-width="100px" style="padding-bottom: 30px;">
|
|
<el-form ref="formgt" :model="formgt" :rules="ruleshy" label-width="100px" style="padding-bottom: 30px;">
|
|
- <el-form-item label="删除原因:" prop="houseType">
|
|
|
|
- <el-select v-model="formgt.houseType" placeholder="请选择删除原因" clearable style="width: 100%;">
|
|
|
|
|
|
+ <el-form-item label="变更原因:" prop="houseType">
|
|
|
|
+ <el-select v-model="formgt.houseType" placeholder="请选择变更原因" clearable style="width: 100%;">
|
|
<el-option v-for="dict in typeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
<el-option v-for="dict in typeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -330,11 +337,12 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { listInfo, getInfo, delInfo, addInfo, updateInfo, exportInfo, listRoleer, idces, delInfort,yiaoe,exportConfig,exportConfigtyr,importLog,listInfotj,listRoleergth,listInfotjxz,listInfotjjs,listInfotjjsfaml } from '@/api/system/residentss';
|
|
|
|
|
|
+import { listInfo, getInfo, delInfo, addInfo, updateInfo, exportInfo, listRoleer, idces, delInfort,yiaoe,exportConfig,exportConfigtyr,importLog,listInfotj,listRoleergth,listInfotjxz,listInfotjjs,listInfotjjsfaml,listRoleergthwg } from '@/api/system/residentss';
|
|
import { treeselect } from '@/api/system/dept';
|
|
import { treeselect } from '@/api/system/dept';
|
|
import Treeselect from '@riophae/vue-treeselect';
|
|
import Treeselect from '@riophae/vue-treeselect';
|
|
import { getToken } from '@/utils/auth';
|
|
import { getToken } from '@/utils/auth';
|
|
-import '@riophae/vue-treeselect/dist/vue-treeselect.css';
|
|
|
|
|
|
+import '@riophae/vue-treeselect/dist/vue-treeselect.css';
|
|
|
|
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
export default {
|
|
export default {
|
|
name: 'Info',
|
|
name: 'Info',
|
|
components: { Treeselect },
|
|
components: { Treeselect },
|
|
@@ -387,10 +395,13 @@ export default {
|
|
age:''
|
|
age:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- config: [],
|
|
|
|
|
|
+ config: [],
|
|
|
|
+ nhyeswdga:[],
|
|
comfietg:[],
|
|
comfietg:[],
|
|
configther:[],
|
|
configther:[],
|
|
- configfor:[],
|
|
|
|
|
|
+ configfor:[],
|
|
|
|
+ optionsListwg:[],
|
|
|
|
+ nhduesw:0,
|
|
// 表单参数
|
|
// 表单参数
|
|
form: {
|
|
form: {
|
|
nowIn: '',
|
|
nowIn: '',
|
|
@@ -414,7 +425,25 @@ export default {
|
|
plaed:'请选择居住地址',
|
|
plaed:'请选择居住地址',
|
|
optiodne:[],
|
|
optiodne:[],
|
|
disableg:false
|
|
disableg:false
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ provinceId: '',
|
|
|
|
+ province: '',
|
|
|
|
+ deptId: '',
|
|
|
|
+ cityId: '',
|
|
|
|
+ city: '',
|
|
|
|
+ regionId:'',
|
|
|
|
+ region: '',
|
|
|
|
+ townId: '',
|
|
|
|
+ town: '',
|
|
|
|
+ villageId: '',
|
|
|
|
+ village: '',
|
|
|
|
+ nowIn:'',
|
|
|
|
+ seleted:[],
|
|
|
|
+ plaed:'请选择居住地址',
|
|
|
|
+ optiodne:[],
|
|
|
|
+ disableg:false
|
|
|
|
+ }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
// 用户导入参数
|
|
// 用户导入参数
|
|
@@ -495,6 +524,11 @@ export default {
|
|
value: 'areaId',
|
|
value: 'areaId',
|
|
label: 'name',
|
|
label: 'name',
|
|
checkStrictly: true,
|
|
checkStrictly: true,
|
|
|
|
+ },
|
|
|
|
+ optionPropsssdwg:{
|
|
|
|
+ value: 'id',
|
|
|
|
+ label: 'areaName',
|
|
|
|
+ checkStrictly: true,
|
|
},
|
|
},
|
|
optionPropstwo: {
|
|
optionPropstwo: {
|
|
value: 'id',
|
|
value: 'id',
|
|
@@ -550,7 +584,8 @@ export default {
|
|
villageTownshy: undefined,
|
|
villageTownshy: undefined,
|
|
naiseurya: '',
|
|
naiseurya: '',
|
|
hsuej: '',
|
|
hsuej: '',
|
|
- jdourdjoaj: false,
|
|
|
|
|
|
+ jdourdjoaj: false,
|
|
|
|
+ senlsduea:false,
|
|
jiezhong: false,
|
|
jiezhong: false,
|
|
jiezheList: [],
|
|
jiezheList: [],
|
|
fireLise:{config:[]},
|
|
fireLise:{config:[]},
|
|
@@ -565,6 +600,7 @@ export default {
|
|
list: [],
|
|
list: [],
|
|
listd:[],
|
|
listd:[],
|
|
lser:[],
|
|
lser:[],
|
|
|
|
+ ndhesdweaf :'点击选择网格',
|
|
dneyhsd:{},
|
|
dneyhsd:{},
|
|
nhdyesfgh:'点击选择户籍地址',
|
|
nhdyesfgh:'点击选择户籍地址',
|
|
nhe:false,
|
|
nhe:false,
|
|
@@ -578,7 +614,8 @@ export default {
|
|
optionsLists:[],
|
|
optionsLists:[],
|
|
nhyeojd:false,
|
|
nhyeojd:false,
|
|
ndhyuewkg:[],
|
|
ndhyuewkg:[],
|
|
- nhdyesku:false
|
|
|
|
|
|
+ nhdyesku:false,
|
|
|
|
+ nbdgywkajs:false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -587,6 +624,7 @@ export default {
|
|
this.mnyesfjer(0)
|
|
this.mnyesfjer(0)
|
|
this.mnyesfjers(0)
|
|
this.mnyesfjers(0)
|
|
this.mnyesfjerop(0)
|
|
this.mnyesfjerop(0)
|
|
|
|
+ this.mnyesfjeropwg(0)
|
|
this.getTreeselectjuetj()
|
|
this.getTreeselectjuetj()
|
|
// 重点行业
|
|
// 重点行业
|
|
this.getDicts('person_type').then(response => {
|
|
this.getDicts('person_type').then(response => {
|
|
@@ -629,9 +667,67 @@ export default {
|
|
this.changeTableMaxHeight()
|
|
this.changeTableMaxHeight()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+
|
|
|
|
+ // 筛选节点
|
|
|
|
+ filterNode(value, data) {
|
|
|
|
+ if (!value) return true;
|
|
|
|
+ return data.name.indexOf(value) !== -1;
|
|
|
|
+ },
|
|
nhyeosdsef(){
|
|
nhyeosdsef(){
|
|
console.log(234)
|
|
console.log(234)
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
+ /** 转换菜单数据结构 */
|
|
|
|
+ normalizer(node) {
|
|
|
|
+ if (node.children && !node.children.length) {
|
|
|
|
+ delete node.children;
|
|
|
|
+ }
|
|
|
|
+ return {
|
|
|
|
+ id: node.areaId,
|
|
|
|
+ label: node.name,
|
|
|
|
+ children: node.children
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ /** 初始化下拉框数据 **/
|
|
|
|
+ getRootModels() {
|
|
|
|
+ //初始化数据 只加载根节点
|
|
|
|
+ listRoleergth('0').then(response => {
|
|
|
|
+ // for(let index of response.data){
|
|
|
|
+ // let modeInfo = {} ;
|
|
|
|
+ // modeInfo.id = index.id
|
|
|
|
+ // modeInfo.label = index.name;
|
|
|
|
+ // modeInfo.children = null;
|
|
|
|
+ // this.rootOptions.push(modeInfo);
|
|
|
|
+ // }
|
|
|
|
+ for(var i = 0 ; i < this.form.czrkJzdzList.length ; i++){
|
|
|
|
+ // this.nameutaiL = i
|
|
|
|
+ // this.mnyesfjerty(0)
|
|
|
|
+ this.form.czrkJzdzList[i].optiodne.push(response.data)
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ /** 加载子节点数据 **/
|
|
|
|
+ loadOptions({ action, parentNode, callback }){
|
|
|
|
+ console.log(action,125)
|
|
|
|
+ if (action === "LOAD_CHILDREN_OPTIONS") {
|
|
|
|
+ //加载点击节点的 子节点
|
|
|
|
+ var ndhes = {}
|
|
|
|
+ ndhes.pid = parentNode.areaId
|
|
|
|
+ listRoleergth(ndhes).then(response => {
|
|
|
|
+ let arr = [];
|
|
|
|
+ arr = response.data
|
|
|
|
+ // for(let index of response.data){
|
|
|
|
+ // let chiledModeInfo = {} ;
|
|
|
|
+ // chiledModeInfo.id = index.id
|
|
|
|
+ // chiledModeInfo.label = index.name;
|
|
|
|
+ // chiledModeInfo.children = null;
|
|
|
|
+ // arr.push(chiledModeInfo);
|
|
|
|
+ // }
|
|
|
|
+ parentNode.children = arr;
|
|
|
|
+ });
|
|
|
|
+ callback();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
onSelected(data,val) {
|
|
onSelected(data,val) {
|
|
console.log(data, 125);
|
|
console.log(data, 125);
|
|
if(this.opens == false){
|
|
if(this.opens == false){
|
|
@@ -730,14 +826,12 @@ export default {
|
|
listRoleergth(pids).then(response => {
|
|
listRoleergth(pids).then(response => {
|
|
// this.cascaderKey = this.cascaderKey + 1
|
|
// this.cascaderKey = this.cascaderKey + 1
|
|
if(response.data.length == 0){
|
|
if(response.data.length == 0){
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(val !== undefined){
|
|
|
|
- this.nameutaiL = val
|
|
|
|
|
|
+ return false
|
|
}
|
|
}
|
|
for(var i = 0 ; i < this.form.czrkJzdzList.length ; i++){
|
|
for(var i = 0 ; i < this.form.czrkJzdzList.length ; i++){
|
|
// this.nameutaiL = i
|
|
// this.nameutaiL = i
|
|
// this.mnyesfjerty(0)
|
|
// this.mnyesfjerty(0)
|
|
|
|
+ console.log(i,7528)
|
|
this.form.czrkJzdzList[i].optiodne = this.handleData(response.data);
|
|
this.form.czrkJzdzList[i].optiodne = this.handleData(response.data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -746,6 +840,7 @@ export default {
|
|
console.log(this.cascaderKey,8765)
|
|
console.log(this.cascaderKey,8765)
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+
|
|
mnyesfjerop(index){
|
|
mnyesfjerop(index){
|
|
this.loading = true;
|
|
this.loading = true;
|
|
let pids = {}
|
|
let pids = {}
|
|
@@ -755,6 +850,16 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ mnyesfjeropwg(index){
|
|
|
|
+ this.loading = true;
|
|
|
|
+ let pids = {}
|
|
|
|
+ pids.pid= index
|
|
|
|
+ listRoleergthwg(pids).then(response => {
|
|
|
|
+ this.optionsListwg = this.handleDatawg(response.data);
|
|
|
|
+ this.loading = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
mnyesfjers(index){
|
|
mnyesfjers(index){
|
|
this.loading = true;
|
|
this.loading = true;
|
|
let pids = {}
|
|
let pids = {}
|
|
@@ -769,224 +874,10 @@ export default {
|
|
console.log(this.cascaderKey,8765)
|
|
console.log(this.cascaderKey,8765)
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- // // 模拟请求一级节点
|
|
|
|
- // getfristChild() {
|
|
|
|
- // return [
|
|
|
|
- // {
|
|
|
|
- // label: "第一个",
|
|
|
|
- // hasChdild: true,
|
|
|
|
- // leaf: false,
|
|
|
|
- // pid: null,
|
|
|
|
- // value: "1",
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // label: "第2个",
|
|
|
|
- // hasChdild: true,
|
|
|
|
- // leaf: false,
|
|
|
|
-
|
|
|
|
- // pid: null,
|
|
|
|
- // value: "2",
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // label: "第3个",
|
|
|
|
- // hasChdild: true,
|
|
|
|
- // leaf: true,
|
|
|
|
-
|
|
|
|
- // pid: null,
|
|
|
|
- // value: "3",
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
- // },
|
|
|
|
- // // 模拟请求子级节点
|
|
|
|
- // getOther(value) {
|
|
|
|
- // let res = [];
|
|
|
|
- // if (value == 1) {
|
|
|
|
- // res = [
|
|
|
|
- // {
|
|
|
|
- // label: "第一个1",
|
|
|
|
- // hasChdild: false,
|
|
|
|
- // pid: 1,
|
|
|
|
- // value: "11",
|
|
|
|
- // leaf: false, // 差别: 这里加了是否叶子节点属性,后面都加了
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // label: "第一个2",
|
|
|
|
- // hasChdild: false,
|
|
|
|
- // pid: 1,
|
|
|
|
- // value: "12",
|
|
|
|
- // leaf: false,
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
- // }
|
|
|
|
- // if (value == 2) {
|
|
|
|
- // res = [
|
|
|
|
- // {
|
|
|
|
- // label: "第2个1",
|
|
|
|
- // hasChdild: false,
|
|
|
|
- // pid: 2,
|
|
|
|
- // leaf: true,
|
|
|
|
- // value: "5",
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // label: "第2个2",
|
|
|
|
- // hasChdild: false,
|
|
|
|
- // leaf: true,
|
|
|
|
-
|
|
|
|
- // pid: 2,
|
|
|
|
- // value: "6",
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
- // }
|
|
|
|
- // if (value == 11) {
|
|
|
|
- // res = [
|
|
|
|
- // {
|
|
|
|
- // label: "第3个1",
|
|
|
|
- // hasChdild: false,
|
|
|
|
- // pid: 2,
|
|
|
|
- // leaf: true,
|
|
|
|
-
|
|
|
|
- // value: "111",
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // label: "第3个2",
|
|
|
|
- // hasChdild: false,
|
|
|
|
- // leaf: true,
|
|
|
|
-
|
|
|
|
- // pid: 2,
|
|
|
|
- // value: "112",
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
- // }
|
|
|
|
- // return res;
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- // // 模拟请求一级节点
|
|
|
|
- // getfristChild() {
|
|
|
|
- // return [
|
|
|
|
- // {
|
|
|
|
- // label: "第一个",
|
|
|
|
- // hasChdild: true,
|
|
|
|
- // pid: null,
|
|
|
|
- // value: "1",
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // label: "第2个",
|
|
|
|
- // hasChdild: true,
|
|
|
|
- // pid: null,
|
|
|
|
- // value: "2",
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // label: "第3个",
|
|
|
|
- // hasChdild: true,
|
|
|
|
- // pid: null,
|
|
|
|
- // value: "3",
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
- // },
|
|
|
|
- // // 模拟请求子级节点
|
|
|
|
- // getOther(value) {
|
|
|
|
- // let res = [];
|
|
|
|
- // if (value == 1) {
|
|
|
|
- // res = [
|
|
|
|
- // {
|
|
|
|
- // label: "第一个1",
|
|
|
|
- // hasChdild: false,
|
|
|
|
- // pid: 1,
|
|
|
|
- // value: "3",
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // label: "第一个2",
|
|
|
|
- // hasChdild: false,
|
|
|
|
- // pid: 1,
|
|
|
|
- // value: "4",
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
- // }
|
|
|
|
- // if (value == 2) {
|
|
|
|
- // res = [
|
|
|
|
- // {
|
|
|
|
- // label: "第2个1",
|
|
|
|
- // hasChdild: false,
|
|
|
|
- // pid: 2,
|
|
|
|
- // value: "5",
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // label: "第2个2",
|
|
|
|
- // hasChdild: false,
|
|
|
|
- // pid: 2,
|
|
|
|
- // value: "6",
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
- // }
|
|
|
|
- // return res;
|
|
|
|
- // },
|
|
|
|
- // lazyLoads(node, resolve){
|
|
|
|
- // if (node.level == 0) {
|
|
|
|
- // console.log(node,2547);
|
|
|
|
- // if (this.list.length > 0) {
|
|
|
|
- // // 存在回显的id我们才去设置回显
|
|
|
|
- // let res = this.format(); // 这里就是获取第一次要回显的内容了
|
|
|
|
- // console.log("00000", res);
|
|
|
|
- // this.optionsList = res; // 有回显第一次就直接给绑定的对象,不要resolve
|
|
|
|
- // } else {
|
|
|
|
-
|
|
|
|
- // let res = this.getfristChild(); // 不存在就默认加载第一集节点
|
|
|
|
- // console.log(res,67)
|
|
|
|
- // resolve(res);
|
|
|
|
- // }
|
|
|
|
- // } else {
|
|
|
|
- // // 记录选择的,不然会点击字节点加载时丢失数据
|
|
|
|
- // let list = this.list;
|
|
|
|
- // // 有children属性了就不要再请求了,不然字节点会重复
|
|
|
|
- // if (!node.data.children) {
|
|
|
|
- // // 获取子节点数据
|
|
|
|
- // let res = this.getOther(node.data.value);
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // // 模拟延时,实际不需要
|
|
|
|
- // resolve(res);
|
|
|
|
- // }, 100);
|
|
|
|
- // } else {
|
|
|
|
- // resolve([]);
|
|
|
|
- // }
|
|
|
|
- // // 重新把选择的id放回来-
|
|
|
|
- // // this.$nextTick(() => {
|
|
|
|
- // // this.list = [...new Set([...this.list, ...list])]; //差别: 合并并且去重
|
|
|
|
- // // });
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // this.list = [...new Set([...this.list, ...list])]; //差别: 合并并且去重
|
|
|
|
- // }, 250);
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- lazyLoads(node, resolve) {
|
|
|
|
- console.log(node,34545678)
|
|
|
|
- if (node.level == 0) {
|
|
|
|
- let res = this.mnyesfjer(0); // 不存在就默认加载第一集节点
|
|
|
|
- resolve(res);
|
|
|
|
- } else {
|
|
|
|
- // 有children属性了就不要再请求了,不然字节点会重复
|
|
|
|
- if (!node.data.children) {
|
|
|
|
- // 获取子节点数据
|
|
|
|
- let res = this.mnyesfjer(node.data.areaId);
|
|
|
|
- console.log(node.children)
|
|
|
|
- let nfhh = node.children.push(res)
|
|
|
|
- setTimeout(() => {
|
|
|
|
- resolve(res);
|
|
|
|
- }, 200);
|
|
|
|
- } else {
|
|
|
|
- resolve([]);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ idjeus(data){
|
|
|
|
+ console.log(data,2347)
|
|
|
|
+ // this.cascaderKey = this.cascaderKey + 1
|
|
|
|
+ },
|
|
format() {
|
|
format() {
|
|
let res = this.getfristChild(); // 拿一级数据
|
|
let res = this.getfristChild(); // 拿一级数据
|
|
this.list.forEach((item) => {
|
|
this.list.forEach((item) => {
|
|
@@ -1030,18 +921,6 @@ export default {
|
|
console.log(this.nameutaiL,2345)
|
|
console.log(this.nameutaiL,2345)
|
|
console.log(this.form.czrkJzdzList,12365)
|
|
console.log(this.form.czrkJzdzList,12365)
|
|
this.$set(this.form.czrkJzdzList[this.nameutaiL],'optiodne',this.handleData(this.form.czrkJzdzList[this.nameutaiL].optiodne, code, level))
|
|
this.$set(this.form.czrkJzdzList[this.nameutaiL],'optiodne',this.handleData(this.form.czrkJzdzList[this.nameutaiL].optiodne, code, level))
|
|
- // this.form.czrkJzdzList[this.nameutaiL].optiodne = this.handleData(this.form.czrkJzdzList[this.nameutaiL].optiodne, code, level);
|
|
|
|
- // console.log(this.optionsList,23456)
|
|
|
|
- // console.log(this.$refs.myCascaderf,2588)
|
|
|
|
- // console.log(this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes(),258)
|
|
|
|
- // if(data !== 0){
|
|
|
|
- // if(this.nhyeojd == true){
|
|
|
|
- // this.$refs['myCascaderf'][this.nameutaiL].$refs.panel.clearCheckedNodes()
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes()
|
|
|
|
- // console.log(this.$refs['myCascaderf'][this.nameutaiL].$refs.panel.checkedValue,345678)
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
@@ -1076,7 +955,7 @@ export default {
|
|
// data[i].children = res.data;
|
|
// data[i].children = res.data;
|
|
this.$set(data[i], 'children', res.data)
|
|
this.$set(data[i], 'children', res.data)
|
|
console.log(data[i].children,45678)
|
|
console.log(data[i].children,45678)
|
|
- this.nhdyesku = true
|
|
|
|
|
|
+ // this.nhdyesku = true
|
|
data[i].children.forEach(ele => {
|
|
data[i].children.forEach(ele => {
|
|
this.$set(ele, 'children', [])
|
|
this.$set(ele, 'children', [])
|
|
});
|
|
});
|
|
@@ -1095,6 +974,47 @@ export default {
|
|
return data;
|
|
return data;
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ handleItemChangefrwg(val) {
|
|
|
|
+ console.log(val,235)
|
|
|
|
+ let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
|
|
|
|
+ let level = val.length + 1; //需请求第几级地址
|
|
|
|
+ this.optionsListwg = this.handleDatawg(this.optionsListwg, code, level);
|
|
|
|
+ },
|
|
|
|
+ handleDatawg(data, val, level) {
|
|
|
|
+ console.log(data,val,level,7536)
|
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
|
+ if(!data[i].children) {
|
|
|
|
+ this.$set(data[i], 'children', []);
|
|
|
|
+ }
|
|
|
|
+ if(data[i].id === val){
|
|
|
|
+ let vfer = {}
|
|
|
|
+ vfer.pid = val
|
|
|
|
+ listRoleergthwg(vfer).then(res => {
|
|
|
|
+ // this.cascaderKey = this.cascaderKey + 1
|
|
|
|
+ if(res.data.length) {
|
|
|
|
+ console.log(data[i].children,4567)
|
|
|
|
+ // data[i].children = res.data;
|
|
|
|
+ this.$set(data[i], 'children', res.data)
|
|
|
|
+ console.log(data[i].children,45678)
|
|
|
|
+ this.nhdyesku = true
|
|
|
|
+ data[i].children.forEach(ele => {
|
|
|
|
+ this.$set(ele, 'children', [])
|
|
|
|
+ });
|
|
|
|
+ }else {
|
|
|
|
+ data[i].children = undefined;
|
|
|
|
+ }
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ });
|
|
|
|
+ }else {
|
|
|
|
+ if(data[i].children.length){
|
|
|
|
+ this.handleDatawg(data[i].children,val,level)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return data;
|
|
|
|
+ },
|
|
|
|
+
|
|
onSelectedtwo(data) {
|
|
onSelectedtwo(data) {
|
|
console.log(data);
|
|
console.log(data);
|
|
// province
|
|
// province
|
|
@@ -1107,7 +1027,8 @@ export default {
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
listInfo(this.queryParams).then(response => {
|
|
listInfo(this.queryParams).then(response => {
|
|
- this.infoList = response.rows;
|
|
|
|
|
|
+ this.infoList = response.rows;
|
|
|
|
+ this.nbdgywkajs = true
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
@@ -1133,16 +1054,6 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
|
|
- /** 转换角色数据结构 */
|
|
|
|
- normalizer(node) {
|
|
|
|
- // if (node.children && !node.children.length) {
|
|
|
|
- // delete node.children;
|
|
|
|
- // }
|
|
|
|
- return {
|
|
|
|
- id: node.id,
|
|
|
|
- label: node.roleName
|
|
|
|
- };
|
|
|
|
- },
|
|
|
|
// 点击组/角色
|
|
// 点击组/角色
|
|
djieskle(node, instanceId) {
|
|
djieskle(node, instanceId) {
|
|
// this.personnel(node.id);
|
|
// this.personnel(node.id);
|
|
@@ -1293,6 +1204,7 @@ export default {
|
|
this.mnyesfjerty(0)
|
|
this.mnyesfjerty(0)
|
|
// }
|
|
// }
|
|
response.data.czrkJzdzList.filter(route =>{
|
|
response.data.czrkJzdzList.filter(route =>{
|
|
|
|
+ route.seleted = []
|
|
if(route.province !== ""){
|
|
if(route.province !== ""){
|
|
route.plaed = route.province
|
|
route.plaed = route.province
|
|
if(route.city !== ""){
|
|
if(route.city !== ""){
|
|
@@ -1313,10 +1225,10 @@ export default {
|
|
}else{
|
|
}else{
|
|
route.plaed = '请选择居住地址'
|
|
route.plaed = '请选择居住地址'
|
|
}
|
|
}
|
|
-
|
|
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ this.form.czrkJzdzList = response.data.czrkJzdzList
|
|
}
|
|
}
|
|
- this.form.czrkJzdzList = response.data.czrkJzdzList
|
|
|
|
this.form.phoneNum = response.data.phoneNum
|
|
this.form.phoneNum = response.data.phoneNum
|
|
this.form.houseType = response.data.houseType
|
|
this.form.houseType = response.data.houseType
|
|
this.form.nowIn = response.data.nowIn
|
|
this.form.nowIn = response.data.nowIn
|
|
@@ -1331,7 +1243,7 @@ export default {
|
|
this.jiezhong = false;
|
|
this.jiezhong = false;
|
|
this.imashow = false;
|
|
this.imashow = false;
|
|
this.errorlog=false;
|
|
this.errorlog=false;
|
|
- this.$refs['myCascaderf' + '' + this.nameutaiL][0].$refs.panel.clearCheckedNodes()
|
|
|
|
|
|
+ this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
|
|
this.reset();
|
|
this.reset();
|
|
},
|
|
},
|
|
gywoa() {
|
|
gywoa() {
|
|
@@ -1398,7 +1310,8 @@ export default {
|
|
isVaccination: null,
|
|
isVaccination: null,
|
|
vaccinationPlace: null,
|
|
vaccinationPlace: null,
|
|
contraindication: null,
|
|
contraindication: null,
|
|
- nowIn: '',
|
|
|
|
|
|
+ nowIn: '',
|
|
|
|
+ gridId:null,
|
|
remark: null,
|
|
remark: null,
|
|
residenceTown:null,
|
|
residenceTown:null,
|
|
residenceVillage:null,
|
|
residenceVillage:null,
|
|
@@ -1421,6 +1334,7 @@ export default {
|
|
seleted:[],
|
|
seleted:[],
|
|
plaed:'请选择居住地址',
|
|
plaed:'请选择居住地址',
|
|
}
|
|
}
|
|
|
|
+
|
|
]
|
|
]
|
|
};
|
|
};
|
|
this.resetForm('form');
|
|
this.resetForm('form');
|
|
@@ -1474,9 +1388,14 @@ export default {
|
|
this.form.city = this.selected[1];
|
|
this.form.city = this.selected[1];
|
|
this.form.region = this.selected[2];
|
|
this.form.region = this.selected[2];
|
|
this.title = '添加信息';
|
|
this.title = '添加信息';
|
|
- this.jdourdjoaj = true;
|
|
|
|
|
|
+ this.jdourdjoaj = true;
|
|
|
|
+ this.senlsduea = false
|
|
this.jue = true
|
|
this.jue = true
|
|
this.nhdyesfgh = '点击选择户籍地址'
|
|
this.nhdyesfgh = '点击选择户籍地址'
|
|
|
|
+ this.ndhesdweaf = '点击选择网格'
|
|
|
|
+ this.nameutaiL = 0
|
|
|
|
+ this.nhduesw = this.nhduesw + 1
|
|
|
|
+ this.nhyeswdga = []
|
|
this.mnyesfjer(0)
|
|
this.mnyesfjer(0)
|
|
// this.form.province = '安徽省';
|
|
// this.form.province = '安徽省';
|
|
// this.form.city = '安庆市';
|
|
// this.form.city = '安庆市';
|
|
@@ -1493,7 +1412,8 @@ export default {
|
|
getInfo(id).then(response => {
|
|
getInfo(id).then(response => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
this.jue = false
|
|
this.jue = false
|
|
- this.nhdyesku = true
|
|
|
|
|
|
+ this.nhdyesku = true
|
|
|
|
+ this.nhyeswdga = []
|
|
if(response.data.province !== null && response.data.province !== ""){
|
|
if(response.data.province !== null && response.data.province !== ""){
|
|
this.nhdyesfgh = response.data.province;
|
|
this.nhdyesfgh = response.data.province;
|
|
if(response.data.city !== null && response.data.city !== ""){
|
|
if(response.data.city !== null && response.data.city !== ""){
|
|
@@ -1520,9 +1440,11 @@ export default {
|
|
// this.selected[0] = response.data.province;
|
|
// this.selected[0] = response.data.province;
|
|
// for(var i = 0 ; i < response.data.czrkJzdzList.length ; i++){
|
|
// for(var i = 0 ; i < response.data.czrkJzdzList.length ; i++){
|
|
// this.nameutaiL = i
|
|
// this.nameutaiL = i
|
|
|
|
+ response.data.czrkJzdzList.unshift(response.data.czrkJzdzList[0])
|
|
this.mnyesfjerty(0)
|
|
this.mnyesfjerty(0)
|
|
// }
|
|
// }
|
|
response.data.czrkJzdzList.filter(route =>{
|
|
response.data.czrkJzdzList.filter(route =>{
|
|
|
|
+ route.seleted = []
|
|
if(route.province !== ""){
|
|
if(route.province !== ""){
|
|
route.plaed = route.province
|
|
route.plaed = route.province
|
|
if(route.city !== ""){
|
|
if(route.city !== ""){
|
|
@@ -1547,6 +1469,13 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ if(response.data.gridName !==null){
|
|
|
|
+ this.ndhesdweaf = response.data.gridName
|
|
|
|
+ }else{
|
|
|
|
+ this.ndhesdweaf = '点击选择网格'
|
|
|
|
+ }
|
|
|
|
+
|
|
// this.onSelected(this.selected)
|
|
// this.onSelected(this.selected)
|
|
setTimeout( ()=>{
|
|
setTimeout( ()=>{
|
|
this.jue = true
|
|
this.jue = true
|
|
@@ -1603,7 +1532,8 @@ export default {
|
|
this.naiseurya = '';
|
|
this.naiseurya = '';
|
|
this.hsuej = '';
|
|
this.hsuej = '';
|
|
this.opens = true;
|
|
this.opens = true;
|
|
- this.jdourdjoaj = false;
|
|
|
|
|
|
+ this.jdourdjoaj = false;
|
|
|
|
+ this.senlsduea = true
|
|
this.title = '查看编辑人口信息';
|
|
this.title = '查看编辑人口信息';
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -1705,6 +1635,14 @@ export default {
|
|
this.queryParams.villageTownsIdXjd = undefined
|
|
this.queryParams.villageTownsIdXjd = undefined
|
|
this.queryParams.villageIdXjd = data[ data.length - 1];
|
|
this.queryParams.villageIdXjd = data[ data.length - 1];
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ chahetwoswge(data){
|
|
|
|
+ console.log(data)
|
|
|
|
+ if(this.opens == false){
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ this.form.gridId = data[data.length - 1]
|
|
|
|
+ console.log(this.form.gridId)
|
|
},
|
|
},
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
submitForm() {
|
|
submitForm() {
|
|
@@ -1713,7 +1651,10 @@ export default {
|
|
if (valid) {
|
|
if (valid) {
|
|
if (this.form.id != null) {
|
|
if (this.form.id != null) {
|
|
// this.form.nowIn = this.naiseurya + this.form.nowIn;
|
|
// this.form.nowIn = this.naiseurya + this.form.nowIn;
|
|
- // this.form.domicile = this.hsuej + this.form.domicile;
|
|
|
|
|
|
+ // this.form.domicile = this.hsuej + this.form.domicile;
|
|
|
|
+ this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
|
|
|
|
+ this.senlsduea = false
|
|
|
|
+ console.log(this.form.czrkJzdzList)
|
|
updateInfo(this.form).then(response => {
|
|
updateInfo(this.form).then(response => {
|
|
this.msgSuccess('修改成功');
|
|
this.msgSuccess('修改成功');
|
|
this.opens = false;
|
|
this.opens = false;
|
|
@@ -1746,7 +1687,7 @@ export default {
|
|
},
|
|
},
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
- const ids = row.id || this.ids;
|
|
|
|
|
|
+ const ids = row.id || this.ids[0];
|
|
this.idfer = ids
|
|
this.idfer = ids
|
|
this.imashow = true;
|
|
this.imashow = true;
|
|
// this.$confirm('是否确认删除疫苗信息编号为"' + ids + '"的数据项?', '警告', {
|
|
// this.$confirm('是否确认删除疫苗信息编号为"' + ids + '"的数据项?', '警告', {
|