|
@@ -490,10 +490,9 @@
|
|
|
size="mini"
|
|
|
@click="handleAdd"
|
|
|
v-hasPermi="['peopleManage:people:add']"
|
|
|
- >新增</el-button
|
|
|
- >
|
|
|
+ >新增</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="success"
|
|
|
plain
|
|
@@ -504,7 +503,7 @@
|
|
|
v-hasPermi="['peopleManage:people:edit']"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
- </el-col>
|
|
|
+ </el-col>-->
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="danger"
|
|
@@ -514,8 +513,7 @@
|
|
|
:disabled="multiple"
|
|
|
@click="handleDelete"
|
|
|
v-hasPermi="['peopleManage:people:remove']"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ >删除</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -552,96 +550,49 @@
|
|
|
<el-table-column label="姓名" align="center" prop="name" />
|
|
|
<el-table-column label="性别" align="center" prop="sex">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag
|
|
|
- :options="dict.type.sys_user_sex"
|
|
|
- :value="scope.row.sex"
|
|
|
- />
|
|
|
+ <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="年龄" align="center" prop="age" />
|
|
|
- <el-table-column
|
|
|
- label="身份证号"
|
|
|
- align="center"
|
|
|
- prop="idcard"
|
|
|
- width="170"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- label="部职别"
|
|
|
- align="center"
|
|
|
- width="300"
|
|
|
- prop="duty"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- label="职务"
|
|
|
- align="center"
|
|
|
- width="120"
|
|
|
- prop="postId"
|
|
|
- >
|
|
|
+ <el-table-column label="身份证号" align="center" prop="idcard" width="170" />
|
|
|
+ <el-table-column label="部职别" align="center" width="300" prop="duty" />
|
|
|
+ <el-table-column label="职务" align="center" width="120" prop="postId">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag
|
|
|
- :options="dict.type.post_Level"
|
|
|
- :value="scope.row.postId"
|
|
|
- />
|
|
|
+ <dict-tag :options="dict.type.post_Level" :value="scope.row.postId" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column label="等级" align="center" prop="gradeId" /> -->
|
|
|
- <el-table-column
|
|
|
- label="职务等级时间"
|
|
|
- align="center"
|
|
|
- prop="postDate"
|
|
|
- width="180"
|
|
|
- >
|
|
|
+ <el-table-column label="职务等级时间" align="center" prop="postDate" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.postDate, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="籍贯"
|
|
|
- align="center"
|
|
|
- prop="origin"
|
|
|
- width="150"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- label="在位情况"
|
|
|
- align="center"
|
|
|
- prop="reign"
|
|
|
- width="90"
|
|
|
- >
|
|
|
+ <el-table-column label="籍贯" align="center" prop="origin" width="150" />
|
|
|
+ <el-table-column label="在位情况" align="center" prop="reign" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag
|
|
|
- :options="dict.type.people_state"
|
|
|
- :value="scope.row.reign"
|
|
|
- />
|
|
|
+ <dict-tag :options="dict.type.people_state" :value="scope.row.reign" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- align="center"
|
|
|
- width="200"
|
|
|
- fixed="right"
|
|
|
- >
|
|
|
+ <el-table-column label="操作" align="center" width="200" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="btu"
|
|
|
type="text"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['peopleManage:people:edit']"
|
|
|
- >修改</el-button
|
|
|
- >
|
|
|
+ >修改</el-button>
|
|
|
<el-button
|
|
|
size="btk"
|
|
|
type="text"
|
|
|
@click="handlesee(scope.row)"
|
|
|
v-hasPermi="['peopleManage:people:query']"
|
|
|
- >查看</el-button
|
|
|
- >
|
|
|
+ >查看</el-button>
|
|
|
<el-button
|
|
|
size="btd"
|
|
|
type="text"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['peopleManage:people:remove']"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ >删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -665,13 +616,7 @@
|
|
|
:close-on-click-modal="false"
|
|
|
>
|
|
|
<div class="userAgree" style="overflow: -Scroll; overflow-x: hidden">
|
|
|
- <el-form
|
|
|
- ref="form"
|
|
|
- :model="form"
|
|
|
- :rules="rules"
|
|
|
- :inline="true"
|
|
|
- label-width="120px"
|
|
|
- >
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" :inline="true" label-width="120px">
|
|
|
<div class="jiben">基本信息</div>
|
|
|
<div class="div-box-title1">
|
|
|
<span>个人信息</span>
|
|
@@ -684,11 +629,7 @@
|
|
|
<el-input v-model="form.name" placeholder />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="身份证号" prop="idcard">
|
|
|
- <el-input
|
|
|
- v-model="form.idcard"
|
|
|
- placeholder
|
|
|
- @blur="idcardfun()"
|
|
|
- />
|
|
|
+ <el-input v-model="form.idcard" placeholder @blur="idcardfun()" />
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
@@ -745,11 +686,7 @@
|
|
|
<img src="@/assets/images/提示.png" alt />
|
|
|
</div>
|
|
|
<el-form-item prop="pictureUploading" class="personphoto">
|
|
|
- <imageUpload
|
|
|
- :limit="1"
|
|
|
- v-model="form.avatar"
|
|
|
- style="height: 200px"
|
|
|
- />
|
|
|
+ <imageUpload :limit="1" v-model="form.avatar" style="height: 200px" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1035,7 +972,7 @@
|
|
|
v-for="(item, index) in jtlist"
|
|
|
:key="index"
|
|
|
>
|
|
|
- <el-form-item label="姓名" prop="">
|
|
|
+ <el-form-item label="姓名" prop>
|
|
|
<el-input v-model="item.name" placeholder />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="与本人关系" prop="characterRelationship">
|
|
@@ -1083,12 +1020,7 @@
|
|
|
<el-input v-model="form.prize" type="textarea" placeholder />
|
|
|
</el-form-item>
|
|
|
<div class="jiben">简历</div>
|
|
|
- <el-form-item
|
|
|
- label
|
|
|
- label-width="0px"
|
|
|
- class="laborcontractuploading"
|
|
|
- prop="readmeFile"
|
|
|
- >
|
|
|
+ <el-form-item label label-width="0px" class="laborcontractuploading" prop="readmeFile">
|
|
|
<fileUpload v-model="form.readmeFile" class="m-l-20" />
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item label prop="readmeFile">
|
|
@@ -1097,9 +1029,7 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm" v-if="btnflg"
|
|
|
- >确 定</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" @click="submitForm" v-if="btnflg">确 定</el-button>
|
|
|
<el-button @click="cancel" size="btn">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -1116,7 +1046,7 @@ import {
|
|
|
exportPeople,
|
|
|
getDept,
|
|
|
listDept,
|
|
|
- treeselect,
|
|
|
+ treeselect
|
|
|
} from "@/api/peopleManage/people";
|
|
|
import Cookies from "js-cookie";
|
|
|
|
|
@@ -1136,7 +1066,7 @@ export default {
|
|
|
"bloodType",
|
|
|
"sys_yes_no",
|
|
|
"sys_yes_no",
|
|
|
- "people_state",
|
|
|
+ "people_state"
|
|
|
],
|
|
|
data() {
|
|
|
return {
|
|
@@ -1227,7 +1157,7 @@ export default {
|
|
|
userId: null,
|
|
|
nowMilitaryRank: null,
|
|
|
treatmentLevel: null,
|
|
|
- rankUpgradeTime: null,
|
|
|
+ rankUpgradeTime: null
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
@@ -1237,78 +1167,77 @@ export default {
|
|
|
idcard: [
|
|
|
{ required: true, message: "身份证号不能为空", trigger: "blur" },
|
|
|
{
|
|
|
- pattern:
|
|
|
- /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
|
|
|
+ pattern: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
|
|
|
message: "请输入正确的身份证号",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
nationId: [
|
|
|
- { required: true, message: "民族不能为空", trigger: "blur" },
|
|
|
+ { required: true, message: "民族不能为空", trigger: "blur" }
|
|
|
],
|
|
|
sex: [{ required: true, message: "性别不能为空", trigger: "blur" }],
|
|
|
age: [{ required: true, message: "年龄不能为空", trigger: "blur" }],
|
|
|
birthDate: [
|
|
|
- { required: true, message: "出生年月不能为空", trigger: "blur" },
|
|
|
+ { required: true, message: "出生年月不能为空", trigger: "blur" }
|
|
|
],
|
|
|
origin: [{ required: true, message: "籍贯不能为空", trigger: "blur" }],
|
|
|
live: [
|
|
|
- { required: true, message: "家庭住址不能为空", trigger: "blur" },
|
|
|
+ { required: true, message: "家庭住址不能为空", trigger: "blur" }
|
|
|
],
|
|
|
partyId: [
|
|
|
- { required: true, message: "政治面貌不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "政治面貌不能为空", trigger: "change" }
|
|
|
],
|
|
|
healthy: [
|
|
|
- { required: true, message: "健康情况不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "健康情况不能为空", trigger: "change" }
|
|
|
],
|
|
|
marryList: [
|
|
|
- { required: true, message: "婚姻情况不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "婚姻情况不能为空", trigger: "change" }
|
|
|
],
|
|
|
educationId: [
|
|
|
- { required: true, message: "学历不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "学历不能为空", trigger: "change" }
|
|
|
],
|
|
|
admissionTime: [
|
|
|
- { required: true, message: "入学时间不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "入学时间不能为空", trigger: "change" }
|
|
|
],
|
|
|
graduationDate: [
|
|
|
- { required: true, message: "毕业时间不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "毕业时间不能为空", trigger: "change" }
|
|
|
],
|
|
|
school: [
|
|
|
- { required: true, message: "毕业学校不能为空", trigger: "blur" },
|
|
|
+ { required: true, message: "毕业学校不能为空", trigger: "blur" }
|
|
|
],
|
|
|
phone: [
|
|
|
{ required: true, message: "手机号码不能为空", trigger: "blur" },
|
|
|
{
|
|
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
message: "请输入正确的手机号码",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
phoneStandby: [
|
|
|
{
|
|
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
message: "请输入正确的手机号码",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
enlistDate: [
|
|
|
- { required: true, message: "入伍时间不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "入伍时间不能为空", trigger: "change" }
|
|
|
],
|
|
|
authorizedStrength: [
|
|
|
- { required: true, message: "是否编制不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "是否编制不能为空", trigger: "change" }
|
|
|
],
|
|
|
deptId: [
|
|
|
- { required: true, message: "单位不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "单位不能为空", trigger: "change" }
|
|
|
],
|
|
|
- rankId:[
|
|
|
- { required: true, message: "军衔不能为空", trigger: "change" },
|
|
|
+ rankId: [
|
|
|
+ { required: true, message: "军衔不能为空", trigger: "change" }
|
|
|
],
|
|
|
- nowMilitaryRank:[
|
|
|
- { required: true, message: "现军衔不能为空", trigger: "change" },
|
|
|
- ],
|
|
|
- postId:[
|
|
|
- { required: true, message: "职务层级不能为空", trigger: "change" },
|
|
|
+ nowMilitaryRank: [
|
|
|
+ { required: true, message: "现军衔不能为空", trigger: "change" }
|
|
|
],
|
|
|
+ postId: [
|
|
|
+ { required: true, message: "职务层级不能为空", trigger: "change" }
|
|
|
+ ]
|
|
|
// name: [{ required: true, message: "亲属姓名不能为空", trigger: "blur" }]
|
|
|
// jtname:[{ validator: jtnameblur, trigger: "blur" }],
|
|
|
// characterRelationship: [
|
|
@@ -1323,7 +1252,6 @@ export default {
|
|
|
// }
|
|
|
// ],
|
|
|
// unitName: [{ required: true, message: "单位不能为空", trigger: "blur" }]
|
|
|
-
|
|
|
},
|
|
|
//性别数组
|
|
|
sexList: [],
|
|
@@ -1359,16 +1287,16 @@ export default {
|
|
|
name: null,
|
|
|
characterRelationship: null,
|
|
|
phoneNumber: null,
|
|
|
- unitName: null,
|
|
|
- },
|
|
|
+ unitName: null
|
|
|
+ }
|
|
|
],
|
|
|
defaultProps: {
|
|
|
children: "children",
|
|
|
- label: "label",
|
|
|
+ label: "label"
|
|
|
},
|
|
|
deptOptions: [],
|
|
|
value: null,
|
|
|
- btnflg: false,
|
|
|
+ btnflg: false
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -1378,64 +1306,64 @@ export default {
|
|
|
// Cookies.set("shuaxin", "true");
|
|
|
this.getList();
|
|
|
//性别
|
|
|
- this.getDicts("sys_user_sex").then((response) => {
|
|
|
+ this.getDicts("sys_user_sex").then(response => {
|
|
|
this.sexList = response.data;
|
|
|
});
|
|
|
//血型
|
|
|
- this.getDicts("bloodType").then((response) => {
|
|
|
+ this.getDicts("bloodType").then(response => {
|
|
|
this.bloodType = response.data;
|
|
|
});
|
|
|
//政治面貌
|
|
|
- this.getDicts("Caucus").then((response) => {
|
|
|
+ this.getDicts("Caucus").then(response => {
|
|
|
this.partyIds = response.data;
|
|
|
});
|
|
|
//健康情况
|
|
|
- this.getDicts("healthy").then((response) => {
|
|
|
+ this.getDicts("healthy").then(response => {
|
|
|
this.healthy = response.data;
|
|
|
});
|
|
|
//婚姻情况
|
|
|
- this.getDicts("marryList").then((response) => {
|
|
|
+ this.getDicts("marryList").then(response => {
|
|
|
this.marryList = response.data;
|
|
|
});
|
|
|
//学历
|
|
|
- this.getDicts("Degree_level").then((response) => {
|
|
|
+ this.getDicts("Degree_level").then(response => {
|
|
|
this.educationId = response.data;
|
|
|
});
|
|
|
//婚姻情况
|
|
|
- this.getDicts("degree").then((response) => {
|
|
|
+ this.getDicts("degree").then(response => {
|
|
|
this.degree = response.data;
|
|
|
});
|
|
|
//是否编制
|
|
|
- this.getDicts("sys_yes_no").then((response) => {
|
|
|
+ this.getDicts("sys_yes_no").then(response => {
|
|
|
this.authorizedStrength = response.data;
|
|
|
});
|
|
|
//子女情况
|
|
|
- this.getDicts("sys_yw").then((response) => {
|
|
|
+ this.getDicts("sys_yw").then(response => {
|
|
|
this.childrenList = response.data;
|
|
|
});
|
|
|
//人员类别
|
|
|
- this.getDicts("personnel_type").then((response) => {
|
|
|
+ this.getDicts("personnel_type").then(response => {
|
|
|
this.classId = response.data;
|
|
|
});
|
|
|
//职务层级
|
|
|
- this.getDicts("post_Level").then((response) => {
|
|
|
+ this.getDicts("post_Level").then(response => {
|
|
|
this.postIds = response.data;
|
|
|
});
|
|
|
//军衔
|
|
|
- this.getDicts("sys_user_rank").then((response) => {
|
|
|
+ this.getDicts("sys_user_rank").then(response => {
|
|
|
this.rankIds = response.data;
|
|
|
});
|
|
|
//民族
|
|
|
- this.getDicts("sys_familyName").then((response) => {
|
|
|
+ this.getDicts("sys_familyName").then(response => {
|
|
|
this.nationIds = response.data;
|
|
|
});
|
|
|
//部门数据
|
|
|
- getDept().then((res) => {
|
|
|
+ getDept().then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.unitId = res.data;
|
|
|
}
|
|
|
});
|
|
|
- treeselect().then((res) => {
|
|
|
+ treeselect().then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.deptOptions = res.data;
|
|
|
}
|
|
@@ -1445,7 +1373,7 @@ export default {
|
|
|
//单位翻译
|
|
|
deptIdformatter(row, column) {
|
|
|
var deptName = "";
|
|
|
- this.unitId.map((item) => {
|
|
|
+ this.unitId.map(item => {
|
|
|
if (item.deptId == row.deptId) {
|
|
|
deptName = item.deptName;
|
|
|
}
|
|
@@ -1455,7 +1383,7 @@ export default {
|
|
|
/** 查询人员管理列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listPeople(this.queryParams).then((response) => {
|
|
|
+ listPeople(this.queryParams).then(response => {
|
|
|
this.peopleList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
@@ -1533,7 +1461,7 @@ export default {
|
|
|
rankUpgradeTime: null,
|
|
|
phoneStandby: null,
|
|
|
deptName: null,
|
|
|
- isBianzhi: null,
|
|
|
+ isBianzhi: null
|
|
|
};
|
|
|
this.bdglPeopleList = [];
|
|
|
this.resetForm("form");
|
|
@@ -1550,7 +1478,7 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map((item) => item.id);
|
|
|
+ this.ids = selection.map(item => item.id);
|
|
|
this.single = selection.length !== 1;
|
|
|
this.multiple = !selection.length;
|
|
|
},
|
|
@@ -1565,15 +1493,15 @@ export default {
|
|
|
name: null,
|
|
|
characterRelationship: null,
|
|
|
phoneNumber: null,
|
|
|
- unitName: null,
|
|
|
- },
|
|
|
+ unitName: null
|
|
|
+ }
|
|
|
];
|
|
|
},
|
|
|
/** 查看按钮操作 */
|
|
|
handlesee(row) {
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids;
|
|
|
- getPeople(id).then((response) => {
|
|
|
+ getPeople(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.jtlist = response.data.familyInformation;
|
|
|
//家庭人员判空处理
|
|
@@ -1585,8 +1513,8 @@ export default {
|
|
|
name: null,
|
|
|
characterRelationship: null,
|
|
|
phoneNumber: null,
|
|
|
- unitName: null,
|
|
|
- },
|
|
|
+ unitName: null
|
|
|
+ }
|
|
|
];
|
|
|
}
|
|
|
this.bdglPeopleList = response.data.bdglPeopleList;
|
|
@@ -1599,7 +1527,7 @@ export default {
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids;
|
|
|
- getPeople(id).then((response) => {
|
|
|
+ getPeople(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
//家庭人员判空处理
|
|
|
if (this.form.familyInformation.length > 0) {
|
|
@@ -1610,8 +1538,8 @@ export default {
|
|
|
name: null,
|
|
|
characterRelationship: null,
|
|
|
phoneNumber: null,
|
|
|
- unitName: null,
|
|
|
- },
|
|
|
+ unitName: null
|
|
|
+ }
|
|
|
];
|
|
|
}
|
|
|
|
|
@@ -1623,7 +1551,7 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if (this.form.readmeFile) {
|
|
|
this.form.readmeFile = this.form.readmeFile[0].name;
|
|
@@ -1632,7 +1560,7 @@ export default {
|
|
|
this.form.bdglPeopleList = this.bdglPeopleList;
|
|
|
this.form.familyInformation = this.jtlist;
|
|
|
if (this.form.id != null) {
|
|
|
- updatePeople(this.form).then((response) => {
|
|
|
+ updatePeople(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
@@ -1640,7 +1568,7 @@ export default {
|
|
|
} else {
|
|
|
this.form.familyInformation = this.jtlist;
|
|
|
this.form.deptName = this.$refs["deptId"].selectedLabel;
|
|
|
- addPeople(this.form).then((response) => {
|
|
|
+ addPeople(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
@@ -1654,7 +1582,7 @@ export default {
|
|
|
const ids = row.id || this.ids;
|
|
|
this.$modal
|
|
|
.confirm("是否确认删除人员管理的数据项?")
|
|
|
- .then(function () {
|
|
|
+ .then(function() {
|
|
|
return delPeople(ids);
|
|
|
})
|
|
|
.then(() => {
|
|
@@ -1738,14 +1666,14 @@ export default {
|
|
|
} else {
|
|
|
const bdglPeopleList = this.bdglPeopleList;
|
|
|
const checkedBdglPeople = this.checkedBdglPeople;
|
|
|
- this.bdglPeopleList = bdglPeopleList.filter(function (item) {
|
|
|
+ this.bdglPeopleList = bdglPeopleList.filter(function(item) {
|
|
|
return checkedBdglPeople.indexOf(item.index) == -1;
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
/** 复选框选中数据 */
|
|
|
handleBdglPeopleSelectionChange(selection) {
|
|
|
- this.checkedBdglPeople = selection.map((item) => item.index);
|
|
|
+ this.checkedBdglPeople = selection.map(item => item.index);
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
@@ -1756,7 +1684,7 @@ export default {
|
|
|
this.exportLoading = true;
|
|
|
return exportPeople(queryParams);
|
|
|
})
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.$download.name(response.msg);
|
|
|
this.exportLoading = false;
|
|
|
})
|
|
@@ -1768,7 +1696,7 @@ export default {
|
|
|
name: null,
|
|
|
characterRelationship: null,
|
|
|
phoneNumber: null,
|
|
|
- unitName: null,
|
|
|
+ unitName: null
|
|
|
});
|
|
|
},
|
|
|
//删除家庭成员
|
|
@@ -1789,7 +1717,7 @@ export default {
|
|
|
this.form.idcard.substr(12, 2);
|
|
|
var myDate = new Date();
|
|
|
this.form.age = myDate.getFullYear() - this.form.idcard.substr(6, 4);
|
|
|
- listPeople({ idcard: this.form.idcard }).then((response) => {
|
|
|
+ listPeople({ idcard: this.form.idcard }).then(response => {
|
|
|
if (response.rows.length > 0) {
|
|
|
this.form.idcard = null;
|
|
|
this.form.age = null;
|
|
@@ -1808,8 +1736,8 @@ export default {
|
|
|
handleNodeClick(data) {
|
|
|
this.queryParams.deptId = data.id;
|
|
|
this.getList();
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped>
|