清理$calcAge
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
:maxLength="15"
|
:maxLength="15"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
v-model="form.name"
|
v-model="form.name"
|
||||||
|
|
||||||
>
|
>
|
||||||
<template slot="append" v-if="!isEdit">
|
<template slot="append" v-if="!isEdit">
|
||||||
<ai-person-select
|
<ai-person-select
|
||||||
@@ -765,16 +765,17 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Add",
|
name: "Add",
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
dict: Object,
|
dict: Object,
|
||||||
selected: Object
|
selected: Object
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["user"]),
|
...mapState(["user"]),
|
||||||
isEdit() {
|
isEdit() {
|
||||||
return !!this.$route.query.id;
|
return !!this.$route.query.id;
|
||||||
},
|
},
|
||||||
@@ -938,10 +939,10 @@ export default {
|
|||||||
this.isShowDisciplinaryForm = true;
|
this.isShowDisciplinaryForm = true;
|
||||||
},
|
},
|
||||||
idChange(val) {
|
idChange(val) {
|
||||||
let info = this.idCardNoUtil.getIdCardInfo(val)
|
let info = new ID(val)
|
||||||
this.form.sex = info.sex || "";
|
this.form.sex = info.sex || "";
|
||||||
this.form.birthday = info.birthday || "";
|
this.form.birthday = info.birthday || "";
|
||||||
this.form.age = this.$calcAge(val) || "";
|
this.form.age = info.age
|
||||||
},
|
},
|
||||||
checkName(val) {
|
checkName(val) {
|
||||||
for (let i in this.form) {
|
for (let i in this.form) {
|
||||||
|
|||||||
@@ -434,6 +434,7 @@ import {mapState} from "vuex";
|
|||||||
import AiEditCard from "./components/AiEditCard";
|
import AiEditCard from "./components/AiEditCard";
|
||||||
import PersonalAssets from "./components/personalAssets";
|
import PersonalAssets from "./components/personalAssets";
|
||||||
import TagsManage from "./components/tagsManage";
|
import TagsManage from "./components/tagsManage";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "residentDetail",
|
name: "residentDetail",
|
||||||
@@ -685,10 +686,10 @@ export default {
|
|||||||
},
|
},
|
||||||
IdCard(UUserCard) {
|
IdCard(UUserCard) {
|
||||||
if (UUserCard) {
|
if (UUserCard) {
|
||||||
this.baseInfo.age = this.$calcAge(UUserCard)
|
const idCard = new ID(UUserCard)
|
||||||
let {birthday, sex} = this.idCardNoUtil.getIdCardInfo(UUserCard)
|
this.baseInfo.age = idCard.age
|
||||||
this.baseInfo.sex = sex
|
this.baseInfo.sex = idCard.sex
|
||||||
this.baseInfo.birthday = birthday
|
this.baseInfo.birthday = idCard.birthday
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -328,6 +328,7 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "hrAdd",
|
name: "hrAdd",
|
||||||
@@ -453,12 +454,12 @@ export default {
|
|||||||
if (v.length == 20) {
|
if (v.length == 20) {
|
||||||
idNumber = v.substring(0, 18)
|
idNumber = v.substring(0, 18)
|
||||||
}
|
}
|
||||||
let {birthday: birthDate, sex} = this.idCardNoUtil.getIdCardInfo(idNumber)
|
let {birthday: birthDate, sex, age} = new ID(idNumber)
|
||||||
this.form = {...this.form, birthDate, sex, age: this.$calcAge(idNumber)}
|
this.form = {...this.form, birthDate, sex, age}
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
if(this.form.houseType == 1) {
|
if (this.form.houseType == 1) {
|
||||||
if(!this.form.objectType) {
|
if (!this.form.objectType) {
|
||||||
return this.$message.error('请选择监测对象类型')
|
return this.$message.error('请选择监测对象类型')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<el-form-item label="证件号">{{ detail.idNumber }}</el-form-item>
|
<el-form-item label="证件号">{{ detail.idNumber }}</el-form-item>
|
||||||
<el-form-item label="性别" prop="sex">{{ dict.getLabel("sex", detail.sex) }}</el-form-item>
|
<el-form-item label="性别" prop="sex">{{ dict.getLabel("sex", detail.sex) }}</el-form-item>
|
||||||
<el-form-item label="出生日期">{{ detail.birthDate }}</el-form-item>
|
<el-form-item label="出生日期">{{ detail.birthDate }}</el-form-item>
|
||||||
<el-form-item label="家庭人口数">{{ detail.familyCount}}</el-form-item>
|
<el-form-item label="家庭人口数">{{ detail.familyCount }}</el-form-item>
|
||||||
<!-- <el-form-item label="年龄" prop="age">{{ detail.age}}</el-form-item> -->
|
<!-- <el-form-item label="年龄" prop="age">{{ detail.age}}</el-form-item> -->
|
||||||
<el-form-item label="民族">{{ dict.getLabel("fpNation", detail.nation) }}</el-form-item>
|
<el-form-item label="民族">{{ dict.getLabel("fpNation", detail.nation) }}</el-form-item>
|
||||||
<el-form-item label="文化程度">{{ dict.getLabel("fpEducation", detail.education) }}</el-form-item>
|
<el-form-item label="文化程度">{{ dict.getLabel("fpEducation", detail.education) }}</el-form-item>
|
||||||
@@ -497,6 +497,7 @@
|
|||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
import HrMeasure from "./detail/hrMeasure";
|
import HrMeasure from "./detail/hrMeasure";
|
||||||
import HrLog from "./detail/hrLog";
|
import HrLog from "./detail/hrLog";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "hrDetail",
|
name: "hrDetail",
|
||||||
@@ -677,8 +678,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleIdNumberAutocomplete(v) {
|
handleIdNumberAutocomplete(v) {
|
||||||
let {birthday: birthDate, sex} = this.idCardNoUtil.getIdCardInfo(v);
|
let {birthday: birthDate, sex, age} = new ID(v);
|
||||||
this.form = {...this.form, birthDate, sex, age: this.$calcAge(v)};
|
this.form = {...this.form, birthDate, sex, age};
|
||||||
},
|
},
|
||||||
onConfirm() {
|
onConfirm() {
|
||||||
this.$refs.ruleForm.validate((v) => {
|
this.$refs.ruleForm.validate((v) => {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
:maxLength="15"
|
:maxLength="15"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
v-model="form.name"
|
v-model="form.name"
|
||||||
|
|
||||||
>
|
>
|
||||||
<template slot="append" v-if="!isEdit">
|
<template slot="append" v-if="!isEdit">
|
||||||
<ai-person-select
|
<ai-person-select
|
||||||
@@ -224,9 +224,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="文化程度">
|
<el-form-item label="文化程度">
|
||||||
<ai-select
|
<ai-select
|
||||||
v-model="form.partyStatus"
|
v-model="form.partyStatus"
|
||||||
placeholder="请选择文化程度"
|
placeholder="请选择文化程度"
|
||||||
:selectList="dict.getDict('partyStatus')"
|
:selectList="dict.getDict('partyStatus')"
|
||||||
></ai-select>
|
></ai-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="学位职称">
|
<el-form-item label="学位职称">
|
||||||
@@ -238,15 +238,15 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="奖励情况" style="width: 100%;">
|
<el-form-item label="奖励情况" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入奖励情况"/>
|
rows="2" placeholder="请输入奖励情况"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="处分情况" style="width: 100%;">
|
<el-form-item label="处分情况" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入处分情况"/>
|
rows="2" placeholder="请输入处分情况"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="简历" style="width: 100%;">
|
<el-form-item label="简历" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入简历"/>
|
rows="2" placeholder="请输入简历"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="附件" style="width: 100%;">
|
<el-form-item label="附件" style="width: 100%;">
|
||||||
<ai-uploader
|
<ai-uploader
|
||||||
@@ -294,7 +294,7 @@
|
|||||||
|
|
||||||
<ai-card title="入学积极分子的确定和教育培养">
|
<ai-card title="入学积极分子的确定和教育培养">
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-form-item label="确定为入学积极分子时间" prop="phone" required >
|
<el-form-item label="确定为入学积极分子时间" prop="phone" required>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
size="small"
|
size="small"
|
||||||
v-model="form.joinPartyTime"
|
v-model="form.joinPartyTime"
|
||||||
@@ -308,11 +308,11 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="确定为积极分子的根据和意见" style="width: 100%;">
|
<el-form-item label="确定为积极分子的根据和意见" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入确定为积极分子的根据和意见"/>
|
rows="2" placeholder="请输入确定为积极分子的根据和意见"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="培养教育情况及鉴定意见" style="width: 100%;">
|
<el-form-item label="培养教育情况及鉴定意见" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入培养教育情况及鉴定意见"/>
|
rows="2" placeholder="请输入培养教育情况及鉴定意见"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@@ -323,12 +323,12 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<ai-table
|
<ai-table
|
||||||
:border="true"
|
:border="true"
|
||||||
:tableData="form.starList"
|
:tableData="form.starList"
|
||||||
:isShowPagination="false"
|
:isShowPagination="false"
|
||||||
:col-configs="colConfigs1"
|
:col-configs="colConfigs1"
|
||||||
:stripe="false"
|
:stripe="false"
|
||||||
@getList="() => {}"
|
@getList="() => {}"
|
||||||
>
|
>
|
||||||
<el-table-column label="职位" slot="level" align="center">
|
<el-table-column label="职位" slot="level" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
@@ -365,7 +365,7 @@
|
|||||||
</ai-card>
|
</ai-card>
|
||||||
<ai-card title="发展对象的确定和考察">
|
<ai-card title="发展对象的确定和考察">
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-form-item label="确定为发展对象时间" prop="phone" required >
|
<el-form-item label="确定为发展对象时间" prop="phone" required>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
size="small"
|
size="small"
|
||||||
v-model="form.joinPartyTime"
|
v-model="form.joinPartyTime"
|
||||||
@@ -379,41 +379,41 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="政治历史的考察及结论" style="width: 100%;">
|
<el-form-item label="政治历史的考察及结论" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="社会关系考察及结论" style="width: 100%;">
|
<el-form-item label="社会关系考察及结论" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="现实考察及结论" style="width: 100%;">
|
<el-form-item label="现实考察及结论" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="学的基本知识考核及考试成绩" style="width: 100%;">
|
<el-form-item label="学的基本知识考核及考试成绩" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="综合考察结论意见" style="width: 100%;">
|
<el-form-item label="综合考察结论意见" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="学内讨论是否确定为发展对象的意见" style="width: 100%;">
|
<el-form-item label="学内讨论是否确定为发展对象的意见" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="确定为发展对象后的谈话记录" style="width: 100%;">
|
<el-form-item label="确定为发展对象后的谈话记录" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="支委会研究意见" style="width: 100%;">
|
<el-form-item label="支委会研究意见" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
<ai-card title="预备学员的接收">
|
<ai-card title="预备学员的接收">
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-form-item label="吸收入学时间" prop="phone" required >
|
<el-form-item label="吸收入学时间" prop="phone" required>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
size="small"
|
size="small"
|
||||||
v-model="form.joinPartyTime"
|
v-model="form.joinPartyTime"
|
||||||
@@ -436,29 +436,29 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="吸收入学时支部大会上学员提的意见和要求及个人的态度" style="width: 100%;">
|
<el-form-item label="吸收入学时支部大会上学员提的意见和要求及个人的态度" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="预备期间的教育情况" style="width: 100%;">
|
<el-form-item label="预备期间的教育情况" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="学小组对其转正的讨论意见" style="width: 100%;">
|
<el-form-item label="学小组对其转正的讨论意见" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="预备期间的考察情况" style="width: 100%;">
|
<el-form-item label="预备期间的考察情况" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="学支部对其转正的意见" style="width: 100%;">
|
<el-form-item label="学支部对其转正的意见" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
<ai-card title="预备学员的教育考察和转正">
|
<ai-card title="预备学员的教育考察和转正">
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-form-item label="转正时间" prop="phone" required >
|
<el-form-item label="转正时间" prop="phone" required>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
size="small"
|
size="small"
|
||||||
v-model="form.joinPartyTime"
|
v-model="form.joinPartyTime"
|
||||||
@@ -472,19 +472,19 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="预备期间的教育情况" style="width: 100%;">
|
<el-form-item label="预备期间的教育情况" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="预备期间的考察情况" style="width: 100%;">
|
<el-form-item label="预备期间的考察情况" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="学小组对其转正的讨论意见" style="width: 100%;">
|
<el-form-item label="学小组对其转正的讨论意见" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="学支部对其转正的意见" style="width: 100%;">
|
<el-form-item label="学支部对其转正的意见" style="width: 100%;">
|
||||||
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
<el-input type="textarea" v-model="form.personalProfile" clearable maxlength="500" show-word-limit
|
||||||
rows="2" placeholder="请输入..."/>
|
rows="2" placeholder="请输入..."/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
@@ -667,6 +667,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Add",
|
name: "Add",
|
||||||
|
|
||||||
@@ -676,7 +678,7 @@ export default {
|
|||||||
selected: Object
|
selected: Object
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["user"]),
|
...mapState(["user"]),
|
||||||
isEdit() {
|
isEdit() {
|
||||||
return !!this.$route.query.id;
|
return !!this.$route.query.id;
|
||||||
},
|
},
|
||||||
@@ -845,10 +847,10 @@ export default {
|
|||||||
this.isShowDisciplinaryForm = true;
|
this.isShowDisciplinaryForm = true;
|
||||||
},
|
},
|
||||||
idChange(val) {
|
idChange(val) {
|
||||||
let info = this.idCardNoUtil.getIdCardInfo(val)
|
let info = new ID(val)
|
||||||
this.form.sex = info.sex || "";
|
this.form.sex = info.sex || "";
|
||||||
this.form.birthday = info.birthday || "";
|
this.form.birthday = info.birthday || "";
|
||||||
this.form.age = this.$calcAge(val) || "";
|
this.form.age = info.age || "";
|
||||||
},
|
},
|
||||||
checkName(val) {
|
checkName(val) {
|
||||||
for (let i in this.form) {
|
for (let i in this.form) {
|
||||||
@@ -997,12 +999,14 @@ export default {
|
|||||||
.audit-1 {
|
.audit-1 {
|
||||||
color: #2ea222 !important;
|
color: #2ea222 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .ai-form .el-form-item .el-form-item__content {
|
::v-deep .ai-form .el-form-item .el-form-item__content {
|
||||||
margin-left: 174px!important;
|
margin-left: 174px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .ai-form .el-form-item,
|
::v-deep .ai-form .el-form-item,
|
||||||
::v-deep .el-form-item {
|
::v-deep .el-form-item {
|
||||||
margin-bottom: 8px!important;
|
margin-bottom: 8px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -10,25 +10,25 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="search.name"
|
v-model="search.name"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
clearable
|
clearable
|
||||||
v-throttle="() => {search.current = 1, getList()}"
|
v-throttle="() => {search.current = 1, getList()}"
|
||||||
@clear="search.current = 1, search.name = '', getList()"
|
@clear="search.current = 1, search.name = '', getList()"
|
||||||
suffix-icon="iconfont iconSearch">
|
suffix-icon="iconfont iconSearch">
|
||||||
</el-input>
|
</el-input>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table
|
<ai-table
|
||||||
:tableData="tableData"
|
:tableData="tableData"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
:total="total"
|
:total="total"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
style="margin-top: 16px;"
|
style="margin-top: 16px;"
|
||||||
:current.sync="search.current"
|
:current.sync="search.current"
|
||||||
:size.sync="search.size"
|
:size.sync="search.size"
|
||||||
@getList="getList">
|
@getList="getList">
|
||||||
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
@@ -45,113 +45,108 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
export default {
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
name: 'List',
|
|
||||||
|
|
||||||
props: {
|
export default {
|
||||||
instance: Function,
|
name: 'List',
|
||||||
dict: Object
|
|
||||||
},
|
|
||||||
|
|
||||||
data () {
|
props: {
|
||||||
return {
|
instance: Function,
|
||||||
search: {
|
dict: Object
|
||||||
current: 1,
|
},
|
||||||
size: 10,
|
|
||||||
name: ''
|
|
||||||
},
|
|
||||||
colConfigs: [
|
|
||||||
{ prop: 'name', label: '姓名' },
|
|
||||||
{ prop: 'idNumber', align: 'center', label: '身份证号' },
|
|
||||||
{ prop: 'gender', align: 'center', label: '性别' },
|
|
||||||
{ prop: 'birthday', align: 'center', label: '出生日期' },
|
|
||||||
{ prop: 'age', align: 'center', label: '年龄', },
|
|
||||||
{ prop: 'phone', align: 'center', label: '联系方式' }
|
|
||||||
],
|
|
||||||
tableData: [],
|
|
||||||
total: 0,
|
|
||||||
loading: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
data() {
|
||||||
...mapState(['user']),
|
return {
|
||||||
|
search: {
|
||||||
|
current: 1,
|
||||||
|
size: 10,
|
||||||
|
name: ''
|
||||||
|
},
|
||||||
|
colConfigs: [
|
||||||
|
{prop: 'name', label: '姓名'},
|
||||||
|
{prop: 'idNumber', align: 'center', label: '身份证号'},
|
||||||
|
{prop: 'gender', align: 'center', label: '性别'},
|
||||||
|
{prop: 'birthday', align: 'center', label: '出生日期'},
|
||||||
|
{prop: 'age', align: 'center', label: '年龄',},
|
||||||
|
{prop: 'phone', align: 'center', label: '联系方式'}
|
||||||
|
],
|
||||||
|
tableData: [],
|
||||||
|
total: 0,
|
||||||
|
loading: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
param () {
|
computed: {
|
||||||
return {
|
...mapState(['user']),
|
||||||
|
},
|
||||||
|
|
||||||
|
created() {
|
||||||
|
this.dict.load('sex').then(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
this.instance.post(`/app/appspecialadjustment/list`, null, {
|
||||||
|
params: {
|
||||||
|
...this.search
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.tableData = res.data.records.map(v => {
|
||||||
|
let info = new ID(v.idNumber)
|
||||||
|
v.birthday = info.birthday
|
||||||
|
v.age = info.age
|
||||||
|
v.gender = info.gender
|
||||||
|
return v
|
||||||
|
})
|
||||||
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
created () {
|
|
||||||
this.dict.load('sex').then(() => {
|
|
||||||
this.getList()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
toEdit(e) {
|
||||||
getList () {
|
this.$emit('change', {
|
||||||
this.instance.post(`/app/appspecialadjustment/list`, null, {
|
type: 'Add',
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
type: 'Add',
|
||||||
}
|
id: e
|
||||||
}).then(res => {
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
toAdd() {
|
||||||
|
this.$emit('change', {
|
||||||
|
type: 'Add',
|
||||||
|
params: {
|
||||||
|
type: 'Add',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
remove(id) {
|
||||||
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
|
this.instance.post(`/app/appspecialadjustment/delete?ids=${id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.tableData = res.data.records.map(v => {
|
this.$message.success('删除成功!')
|
||||||
let info = this.idCardNoUtil.getIdCardInfo(v.idNumber)
|
this.getList()
|
||||||
v.birthday = info.birthday
|
|
||||||
v.age = this.$calcAge(v.idNumber)
|
|
||||||
v.gender = info.gender
|
|
||||||
|
|
||||||
return v
|
|
||||||
})
|
|
||||||
this.total = res.data.total
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
})
|
||||||
|
},
|
||||||
|
|
||||||
toEdit (e) {
|
toDetail(id) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'Add',
|
type: 'Detail',
|
||||||
params: {
|
params: {
|
||||||
type: 'Add',
|
id: id || ''
|
||||||
id: e
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toAdd() {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Add',
|
|
||||||
params: {
|
|
||||||
type: 'Add',
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
remove(id) {
|
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
|
||||||
this.instance.post(`/app/appspecialadjustment/delete?ids=${id}`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.$message.success('删除成功!')
|
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toDetail (id) {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Detail',
|
|
||||||
params: {
|
|
||||||
id: id || ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
@@ -10,25 +10,25 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="search.name"
|
v-model="search.name"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
clearable
|
clearable
|
||||||
v-throttle="() => {search.current = 1, getList()}"
|
v-throttle="() => {search.current = 1, getList()}"
|
||||||
@clear="search.current = 1, search.name = '', getList()"
|
@clear="search.current = 1, search.name = '', getList()"
|
||||||
suffix-icon="iconfont iconSearch">
|
suffix-icon="iconfont iconSearch">
|
||||||
</el-input>
|
</el-input>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table
|
<ai-table
|
||||||
:tableData="tableData"
|
:tableData="tableData"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
:total="total"
|
:total="total"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
style="margin-top: 16px;"
|
style="margin-top: 16px;"
|
||||||
:current.sync="search.current"
|
:current.sync="search.current"
|
||||||
:size.sync="search.size"
|
:size.sync="search.size"
|
||||||
@getList="getList">
|
@getList="getList">
|
||||||
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
@@ -45,113 +45,109 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
export default {
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
name: 'List',
|
|
||||||
|
|
||||||
props: {
|
export default {
|
||||||
instance: Function,
|
name: 'List',
|
||||||
dict: Object
|
|
||||||
},
|
|
||||||
|
|
||||||
data () {
|
props: {
|
||||||
return {
|
instance: Function,
|
||||||
search: {
|
dict: Object
|
||||||
current: 1,
|
},
|
||||||
size: 10,
|
|
||||||
name: ''
|
|
||||||
},
|
|
||||||
colConfigs: [
|
|
||||||
{ prop: 'name', label: '姓名' },
|
|
||||||
{ prop: 'idNumber', align: 'center', label: '身份证号' },
|
|
||||||
{ prop: 'gender', align: 'center', label: '性别' },
|
|
||||||
{ prop: 'birthday', align: 'center', label: '出生日期' },
|
|
||||||
{ prop: 'age', align: 'center', label: '年龄', },
|
|
||||||
{ prop: 'phone', align: 'center', label: '联系方式' }
|
|
||||||
],
|
|
||||||
tableData: [],
|
|
||||||
total: 0,
|
|
||||||
loading: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
data() {
|
||||||
...mapState(['user']),
|
return {
|
||||||
|
search: {
|
||||||
|
current: 1,
|
||||||
|
size: 10,
|
||||||
|
name: ''
|
||||||
|
},
|
||||||
|
colConfigs: [
|
||||||
|
{prop: 'name', label: '姓名'},
|
||||||
|
{prop: 'idNumber', align: 'center', label: '身份证号'},
|
||||||
|
{prop: 'gender', align: 'center', label: '性别'},
|
||||||
|
{prop: 'birthday', align: 'center', label: '出生日期'},
|
||||||
|
{prop: 'age', align: 'center', label: '年龄',},
|
||||||
|
{prop: 'phone', align: 'center', label: '联系方式'}
|
||||||
|
],
|
||||||
|
tableData: [],
|
||||||
|
total: 0,
|
||||||
|
loading: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
param () {
|
computed: {
|
||||||
return {
|
...mapState(['user']),
|
||||||
|
},
|
||||||
|
|
||||||
|
created() {
|
||||||
|
this.dict.load('sex').then(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
this.instance.post(`/app/appspecialdisabled/list`, null, {
|
||||||
|
params: {
|
||||||
|
...this.search
|
||||||
}
|
}
|
||||||
}
|
}).then(res => {
|
||||||
},
|
if (res.code == 0) {
|
||||||
|
this.tableData = res.data.records.map(v => {
|
||||||
|
let info = new ID(v.idNumber)
|
||||||
|
v.birthday = info.birthday
|
||||||
|
v.age = info.age
|
||||||
|
v.gender = info.gender
|
||||||
|
|
||||||
created () {
|
return v
|
||||||
this.dict.load('sex').then(() => {
|
})
|
||||||
this.getList()
|
this.total = res.data.total
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
toEdit(e) {
|
||||||
getList () {
|
this.$emit('change', {
|
||||||
this.instance.post(`/app/appspecialdisabled/list`, null, {
|
type: 'Add',
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
type: 'Add',
|
||||||
}
|
id: e
|
||||||
}).then(res => {
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
toAdd() {
|
||||||
|
this.$emit('change', {
|
||||||
|
type: 'Add',
|
||||||
|
params: {
|
||||||
|
type: 'Add',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
remove(id) {
|
||||||
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
|
this.instance.post(`/app/appspecialadjustment/delete?ids=${id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.tableData = res.data.records.map(v => {
|
this.$message.success('删除成功!')
|
||||||
let info = this.idCardNoUtil.getIdCardInfo(v.idNumber)
|
this.getList()
|
||||||
v.birthday = info.birthday
|
|
||||||
v.age = this.$calcAge(v.idNumber)
|
|
||||||
v.gender = info.gender
|
|
||||||
|
|
||||||
return v
|
|
||||||
})
|
|
||||||
this.total = res.data.total
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
})
|
||||||
|
},
|
||||||
|
|
||||||
toEdit (e) {
|
toDetail(id) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'Add',
|
type: 'Detail',
|
||||||
params: {
|
params: {
|
||||||
type: 'Add',
|
id: id || ''
|
||||||
id: e
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toAdd() {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Add',
|
|
||||||
params: {
|
|
||||||
type: 'Add',
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
remove(id) {
|
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
|
||||||
this.instance.post(`/app/appspecialadjustment/delete?ids=${id}`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.$message.success('删除成功!')
|
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toDetail (id) {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Detail',
|
|
||||||
params: {
|
|
||||||
id: id || ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
@@ -10,25 +10,25 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="search.name"
|
v-model="search.name"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
clearable
|
clearable
|
||||||
v-throttle="() => {search.current = 1, getList()}"
|
v-throttle="() => {search.current = 1, getList()}"
|
||||||
@clear="search.current = 1, search.name = '', getList()"
|
@clear="search.current = 1, search.name = '', getList()"
|
||||||
suffix-icon="iconfont iconSearch">
|
suffix-icon="iconfont iconSearch">
|
||||||
</el-input>
|
</el-input>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table
|
<ai-table
|
||||||
:tableData="tableData"
|
:tableData="tableData"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
:total="total"
|
:total="total"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
style="margin-top: 16px;"
|
style="margin-top: 16px;"
|
||||||
:current.sync="search.current"
|
:current.sync="search.current"
|
||||||
:size.sync="search.size"
|
:size.sync="search.size"
|
||||||
@getList="getList">
|
@getList="getList">
|
||||||
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
@@ -45,113 +45,108 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
export default {
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
name: 'List',
|
|
||||||
|
|
||||||
props: {
|
export default {
|
||||||
instance: Function,
|
name: 'List',
|
||||||
dict: Object
|
|
||||||
},
|
|
||||||
|
|
||||||
data () {
|
props: {
|
||||||
return {
|
instance: Function,
|
||||||
search: {
|
dict: Object
|
||||||
current: 1,
|
},
|
||||||
size: 10,
|
|
||||||
name: ''
|
|
||||||
},
|
|
||||||
colConfigs: [
|
|
||||||
{ prop: 'name', label: '姓名' },
|
|
||||||
{ prop: 'idNumber', align: 'center', label: '身份证号' },
|
|
||||||
{ prop: 'gender', align: 'center', label: '性别' },
|
|
||||||
{ prop: 'birthday', align: 'center', label: '出生日期' },
|
|
||||||
{ prop: 'age', align: 'center', label: '年龄', },
|
|
||||||
{ prop: 'phone', align: 'center', label: '联系方式' }
|
|
||||||
],
|
|
||||||
tableData: [],
|
|
||||||
total: 0,
|
|
||||||
loading: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
data() {
|
||||||
...mapState(['user']),
|
return {
|
||||||
|
search: {
|
||||||
|
current: 1,
|
||||||
|
size: 10,
|
||||||
|
name: ''
|
||||||
|
},
|
||||||
|
colConfigs: [
|
||||||
|
{prop: 'name', label: '姓名'},
|
||||||
|
{prop: 'idNumber', align: 'center', label: '身份证号'},
|
||||||
|
{prop: 'gender', align: 'center', label: '性别'},
|
||||||
|
{prop: 'birthday', align: 'center', label: '出生日期'},
|
||||||
|
{prop: 'age', align: 'center', label: '年龄',},
|
||||||
|
{prop: 'phone', align: 'center', label: '联系方式'}
|
||||||
|
],
|
||||||
|
tableData: [],
|
||||||
|
total: 0,
|
||||||
|
loading: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
param () {
|
computed: {
|
||||||
return {
|
...mapState(['user']),
|
||||||
|
},
|
||||||
|
|
||||||
|
created() {
|
||||||
|
this.dict.load('sex').then(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
this.instance.post(`/app/appspecialdrug/list`, null, {
|
||||||
|
params: {
|
||||||
|
...this.search
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.tableData = res.data.records.map(v => {
|
||||||
|
let info = new ID(v.idNumber)
|
||||||
|
v.birthday = info.birthday
|
||||||
|
v.age = info.age
|
||||||
|
v.gender = info.gender
|
||||||
|
return v
|
||||||
|
})
|
||||||
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
created () {
|
|
||||||
this.dict.load('sex').then(() => {
|
|
||||||
this.getList()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
toEdit(e) {
|
||||||
getList () {
|
this.$emit('change', {
|
||||||
this.instance.post(`/app/appspecialdrug/list`, null, {
|
type: 'Add',
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
type: 'Add',
|
||||||
}
|
id: e
|
||||||
}).then(res => {
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
toAdd() {
|
||||||
|
this.$emit('change', {
|
||||||
|
type: 'Add',
|
||||||
|
params: {
|
||||||
|
type: 'Add',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
remove(id) {
|
||||||
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
|
this.instance.post(`/app/appspecialprison/delete?ids=${id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.tableData = res.data.records.map(v => {
|
this.$message.success('删除成功!')
|
||||||
let info = this.idCardNoUtil.getIdCardInfo(v.idNumber)
|
this.getList()
|
||||||
v.birthday = info.birthday
|
|
||||||
v.age = this.$calcAge(v.idNumber)
|
|
||||||
v.gender = info.gender
|
|
||||||
|
|
||||||
return v
|
|
||||||
})
|
|
||||||
this.total = res.data.total
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
})
|
||||||
|
},
|
||||||
|
|
||||||
toEdit (e) {
|
toDetail(id) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'Add',
|
type: 'Detail',
|
||||||
params: {
|
params: {
|
||||||
type: 'Add',
|
id: id || ''
|
||||||
id: e
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toAdd() {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Add',
|
|
||||||
params: {
|
|
||||||
type: 'Add',
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
remove(id) {
|
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
|
||||||
this.instance.post(`/app/appspecialprison/delete?ids=${id}`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.$message.success('删除成功!')
|
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toDetail (id) {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Detail',
|
|
||||||
params: {
|
|
||||||
id: id || ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
@@ -10,25 +10,25 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="search.name"
|
v-model="search.name"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
clearable
|
clearable
|
||||||
v-throttle="() => {search.current = 1, getList()}"
|
v-throttle="() => {search.current = 1, getList()}"
|
||||||
@clear="search.current = 1, search.name = '', getList()"
|
@clear="search.current = 1, search.name = '', getList()"
|
||||||
suffix-icon="iconfont iconSearch">
|
suffix-icon="iconfont iconSearch">
|
||||||
</el-input>
|
</el-input>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table
|
<ai-table
|
||||||
:tableData="tableData"
|
:tableData="tableData"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
:total="total"
|
:total="total"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
style="margin-top: 16px;"
|
style="margin-top: 16px;"
|
||||||
:current.sync="search.current"
|
:current.sync="search.current"
|
||||||
:size.sync="search.size"
|
:size.sync="search.size"
|
||||||
@getList="getList">
|
@getList="getList">
|
||||||
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
@@ -45,113 +45,108 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
export default {
|
import {ID} from "dvcp-ui/lib/js/utils"
|
||||||
name: 'List',
|
|
||||||
|
|
||||||
props: {
|
export default {
|
||||||
instance: Function,
|
name: 'List',
|
||||||
dict: Object
|
|
||||||
},
|
|
||||||
|
|
||||||
data () {
|
props: {
|
||||||
return {
|
instance: Function,
|
||||||
search: {
|
dict: Object
|
||||||
current: 1,
|
},
|
||||||
size: 10,
|
|
||||||
name: ''
|
|
||||||
},
|
|
||||||
colConfigs: [
|
|
||||||
{ prop: 'name', label: '姓名' },
|
|
||||||
{ prop: 'idNumber', align: 'center', label: '身份证号' },
|
|
||||||
{ prop: 'gender', align: 'center', label: '性别' },
|
|
||||||
{ prop: 'birthday', align: 'center', label: '出生日期' },
|
|
||||||
{ prop: 'age', align: 'center', label: '年龄', },
|
|
||||||
{ prop: 'phone', align: 'center', label: '联系方式' }
|
|
||||||
],
|
|
||||||
tableData: [],
|
|
||||||
total: 0,
|
|
||||||
loading: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
data() {
|
||||||
...mapState(['user']),
|
return {
|
||||||
|
search: {
|
||||||
|
current: 1,
|
||||||
|
size: 10,
|
||||||
|
name: ''
|
||||||
|
},
|
||||||
|
colConfigs: [
|
||||||
|
{prop: 'name', label: '姓名'},
|
||||||
|
{prop: 'idNumber', align: 'center', label: '身份证号'},
|
||||||
|
{prop: 'gender', align: 'center', label: '性别'},
|
||||||
|
{prop: 'birthday', align: 'center', label: '出生日期'},
|
||||||
|
{prop: 'age', align: 'center', label: '年龄',},
|
||||||
|
{prop: 'phone', align: 'center', label: '联系方式'}
|
||||||
|
],
|
||||||
|
tableData: [],
|
||||||
|
total: 0,
|
||||||
|
loading: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
param () {
|
computed: {
|
||||||
return {
|
...mapState(['user']),
|
||||||
|
},
|
||||||
|
|
||||||
|
created() {
|
||||||
|
this.dict.load('sex').then(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
this.instance.post(`/app/appspecialmental/list`, null, {
|
||||||
|
params: {
|
||||||
|
...this.search
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.tableData = res.data.records.map(v => {
|
||||||
|
let info = new ID(v.idNumber)
|
||||||
|
v.birthday = info.birthday
|
||||||
|
v.age = info.age
|
||||||
|
v.gender = info.gender
|
||||||
|
return v
|
||||||
|
})
|
||||||
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
created () {
|
|
||||||
this.dict.load('sex').then(() => {
|
|
||||||
this.getList()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
toEdit(e) {
|
||||||
getList () {
|
this.$emit('change', {
|
||||||
this.instance.post(`/app/appspecialmental/list`, null, {
|
type: 'Add',
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
type: 'Add',
|
||||||
}
|
id: e
|
||||||
}).then(res => {
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
toAdd() {
|
||||||
|
this.$emit('change', {
|
||||||
|
type: 'Add',
|
||||||
|
params: {
|
||||||
|
type: 'Add',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
remove(id) {
|
||||||
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
|
this.instance.post(`/app/appspecialmental/delete?ids=${id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.tableData = res.data.records.map(v => {
|
this.$message.success('删除成功!')
|
||||||
let info = this.idCardNoUtil.getIdCardInfo(v.idNumber)
|
this.getList()
|
||||||
v.birthday = info.birthday
|
|
||||||
v.age = this.$calcAge(v.idNumber)
|
|
||||||
v.gender = info.gender
|
|
||||||
|
|
||||||
return v
|
|
||||||
})
|
|
||||||
this.total = res.data.total
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
})
|
||||||
|
},
|
||||||
|
|
||||||
toEdit (e) {
|
toDetail(id) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'Add',
|
type: 'Detail',
|
||||||
params: {
|
params: {
|
||||||
type: 'Add',
|
id: id || ''
|
||||||
id: e
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toAdd() {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Add',
|
|
||||||
params: {
|
|
||||||
type: 'Add',
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
remove(id) {
|
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
|
||||||
this.instance.post(`/app/appspecialmental/delete?ids=${id}`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.$message.success('删除成功!')
|
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toDetail (id) {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Detail',
|
|
||||||
params: {
|
|
||||||
id: id || ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
@@ -10,25 +10,25 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="search.name"
|
v-model="search.name"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
clearable
|
clearable
|
||||||
v-throttle="() => {search.current = 1, getList()}"
|
v-throttle="() => {search.current = 1, getList()}"
|
||||||
@clear="search.current = 1, search.name = '', getList()"
|
@clear="search.current = 1, search.name = '', getList()"
|
||||||
suffix-icon="iconfont iconSearch">
|
suffix-icon="iconfont iconSearch">
|
||||||
</el-input>
|
</el-input>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table
|
<ai-table
|
||||||
:tableData="tableData"
|
:tableData="tableData"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
:total="total"
|
:total="total"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
style="margin-top: 16px;"
|
style="margin-top: 16px;"
|
||||||
:current.sync="search.current"
|
:current.sync="search.current"
|
||||||
:size.sync="search.size"
|
:size.sync="search.size"
|
||||||
@getList="getList">
|
@getList="getList">
|
||||||
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
@@ -45,113 +45,106 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
export default {
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
name: 'List',
|
|
||||||
|
|
||||||
props: {
|
export default {
|
||||||
instance: Function,
|
name: 'List',
|
||||||
dict: Object
|
|
||||||
},
|
|
||||||
|
|
||||||
data () {
|
props: {
|
||||||
return {
|
instance: Function,
|
||||||
search: {
|
dict: Object
|
||||||
current: 1,
|
},
|
||||||
size: 10,
|
|
||||||
name: ''
|
|
||||||
},
|
|
||||||
colConfigs: [
|
|
||||||
{ prop: 'name', label: '姓名' },
|
|
||||||
{ prop: 'idNumber', align: 'center', label: '身份证号' },
|
|
||||||
{ prop: 'gender', align: 'center', label: '性别' },
|
|
||||||
{ prop: 'birthday', align: 'center', label: '出生日期' },
|
|
||||||
{ prop: 'age', align: 'center', label: '年龄', },
|
|
||||||
{ prop: 'phone', align: 'center', label: '联系方式' }
|
|
||||||
],
|
|
||||||
tableData: [],
|
|
||||||
total: 0,
|
|
||||||
loading: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
data() {
|
||||||
...mapState(['user']),
|
return {
|
||||||
|
search: {
|
||||||
param () {
|
current: 1,
|
||||||
return {
|
size: 10,
|
||||||
|
name: ''
|
||||||
|
},
|
||||||
|
colConfigs: [
|
||||||
|
{prop: 'name', label: '姓名'},
|
||||||
|
{prop: 'idNumber', align: 'center', label: '身份证号'},
|
||||||
|
{prop: 'gender', align: 'center', label: '性别'},
|
||||||
|
{prop: 'birthday', align: 'center', label: '出生日期'},
|
||||||
|
{prop: 'age', align: 'center', label: '年龄',},
|
||||||
|
{prop: 'phone', align: 'center', label: '联系方式'}
|
||||||
|
],
|
||||||
|
tableData: [],
|
||||||
|
total: 0,
|
||||||
|
loading: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.dict.load('sex').then(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
this.instance.post(`/app/appspecialprison/list`, null, {
|
||||||
|
params: {
|
||||||
|
...this.search
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.tableData = res.data.records.map(v => {
|
||||||
|
let info = new ID(v.idNumber)
|
||||||
|
v.birthday = info.birthday
|
||||||
|
v.age = info.age
|
||||||
|
v.gender = info.gender
|
||||||
|
return v
|
||||||
|
})
|
||||||
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
created () {
|
|
||||||
this.dict.load('sex').then(() => {
|
|
||||||
this.getList()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
toEdit(e) {
|
||||||
getList () {
|
this.$emit('change', {
|
||||||
this.instance.post(`/app/appspecialprison/list`, null, {
|
type: 'Add',
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
type: 'Add',
|
||||||
}
|
id: e
|
||||||
}).then(res => {
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
toAdd() {
|
||||||
|
this.$emit('change', {
|
||||||
|
type: 'Add',
|
||||||
|
params: {
|
||||||
|
type: 'Add',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
remove(id) {
|
||||||
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
|
this.instance.post(`/app/appspecialprison/delete?ids=${id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.tableData = res.data.records.map(v => {
|
this.$message.success('删除成功!')
|
||||||
let info = this.idCardNoUtil.getIdCardInfo(v.idNumber)
|
this.getList()
|
||||||
v.birthday = info.birthday
|
|
||||||
v.age = this.$calcAge(v.idNumber)
|
|
||||||
v.gender = info.gender
|
|
||||||
|
|
||||||
return v
|
|
||||||
})
|
|
||||||
this.total = res.data.total
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
})
|
||||||
|
},
|
||||||
|
|
||||||
toEdit (e) {
|
toDetail(id) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'Add',
|
type: 'Detail',
|
||||||
params: {
|
params: {
|
||||||
type: 'Add',
|
id: id || ''
|
||||||
id: e
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toAdd() {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Add',
|
|
||||||
params: {
|
|
||||||
type: 'Add',
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
remove(id) {
|
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
|
||||||
this.instance.post(`/app/appspecialprison/delete?ids=${id}`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.$message.success('删除成功!')
|
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toDetail (id) {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Detail',
|
|
||||||
params: {
|
|
||||||
id: id || ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user