|
|
@ -3,6 +3,7 @@ |
|
|
|
:title="!dataForm.id ? $t('add') : $t('update')" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false" |
|
|
|
width="700px" |
|
|
|
customClass="customWidth"> |
|
|
|
<el-form :model="dataForm" |
|
|
|
:rules="dataRule" |
|
|
@ -10,17 +11,17 @@ |
|
|
|
@keyup.enter.native="dataFormSubmitHandle()" |
|
|
|
:label-width="$i18n.locale === 'en-US' ? '120px' : '80px'"> |
|
|
|
<el-form-item label="姓名" |
|
|
|
prop="realName"> |
|
|
|
prop="realName" label-width="120px"> |
|
|
|
<el-input v-model="dataForm.realName" |
|
|
|
placeholder="姓名" style="width:90%;" maxlength="10"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="手机号" |
|
|
|
prop="mobile"> |
|
|
|
prop="mobile" label-width="120px"> |
|
|
|
<el-input v-model="dataForm.mobile" |
|
|
|
placeholder="手机号" style="width:90%;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="身份证号" |
|
|
|
prop="identityNo"> |
|
|
|
prop="identityNo" label-width="120px"> |
|
|
|
<el-input v-model="dataForm.identityNo" |
|
|
|
placeholder="身份证号" style="width:90%;"></el-input> |
|
|
|
</el-form-item> |
|
|
@ -37,7 +38,7 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="所属网格"> |
|
|
|
<el-form-item label="所属网格" label-width="120px"> |
|
|
|
<el-cascader v-model="dataForm.allDeptIds" |
|
|
|
:options="options" |
|
|
|
clearable></el-cascader> |
|
|
@ -65,7 +66,7 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="干部下沉"> |
|
|
|
<el-form-item label="干部下沉" label-width="120px"> |
|
|
|
<el-select v-model="dataForm.cadreFlag" |
|
|
|
placeholder="请选择"> |
|
|
|
<el-option v-for="item in cadreOptions" |
|
|
@ -82,6 +83,52 @@ |
|
|
|
:label="item.id">{{item.tagName}}</el-checkbox> |
|
|
|
</el-checkbox-group> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="入党时间" prop="joinDate" label-width="120px"> |
|
|
|
<el-date-picker |
|
|
|
v-model="dataForm.joinDate" |
|
|
|
type="date" |
|
|
|
placeholder="入党时间" |
|
|
|
label-width="150px" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
format="yyyy-MM-dd" |
|
|
|
style="width:200px"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="职务" prop="position" label-width="120px"> |
|
|
|
<el-select v-model="dataForm.position" clearable placeholder="职务"> |
|
|
|
<el-option v-for="item in positionList" :key="item.dictValue" :label="item.dictName" :value="item.dictValue"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="文化程度" prop="education" label-width="120px"> |
|
|
|
<el-select v-model="dataForm.education" clearable placeholder="文化程度"> |
|
|
|
<el-option v-for="item in educationList" @click.native="changeEducationList(item.dictName)" :key="item.dictValue" :label="item.dictName" :value="item.dictValue"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="是否流动党员" prop="isMobility" label-width="120px"> |
|
|
|
<el-select v-model="dataForm.isMobility" clearable placeholder="是否流动党员"> |
|
|
|
<el-option v-for="item in isMobilityList" :key="item.dictValue" :label="item.dictName" :value="item.dictValue"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="流动党员证号" |
|
|
|
prop="mobilityNum" label-width="120px"> |
|
|
|
<el-input v-model="dataForm.mobilityNum" |
|
|
|
placeholder="流动党员证号" style="width:90%;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="地址" |
|
|
|
prop="address" label-width="120px"> |
|
|
|
<el-input v-model="dataForm.address" |
|
|
|
placeholder="地址" style="width:90%;" maxlength="200" |
|
|
|
show-word-limit></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="备注" |
|
|
|
prop="note" label-width="120px"> |
|
|
|
<el-input v-model="dataForm.note" |
|
|
|
placeholder="备注" style="width:90%;" maxlength="200" |
|
|
|
show-word-limit></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<template slot="footer"> |
|
|
|
<el-button @click="visible = false">{{ $t('cancel') }}</el-button> |
|
|
@ -105,14 +152,28 @@ export default { |
|
|
|
cadreFlag: '', |
|
|
|
gridId: '', |
|
|
|
tagIds: [], |
|
|
|
allDeptIds: [] |
|
|
|
allDeptIds: [], |
|
|
|
joinDate:'', |
|
|
|
position:'', |
|
|
|
positionName:'', |
|
|
|
isMobility:'', |
|
|
|
mobilityNum:'', |
|
|
|
education:'', |
|
|
|
note:'', |
|
|
|
address:'' |
|
|
|
}, |
|
|
|
streetOptions: [], |
|
|
|
communityOptions: [], |
|
|
|
gridOptions: [], |
|
|
|
cadreOptions: [{ cadreFlag: '1', cadreTitle: '是' }, { cadreFlag: '0', cadreTitle: '否' }], |
|
|
|
tagOptions: [], |
|
|
|
options: [] |
|
|
|
options: [], |
|
|
|
positionList:[], |
|
|
|
educationList:[], |
|
|
|
isMobilityList:[ |
|
|
|
{dictValue: '0', dictName: '否'}, |
|
|
|
{dictValue: '1', dictName: '是'}, |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
@ -145,6 +206,8 @@ export default { |
|
|
|
// this.getStreetList() |
|
|
|
this.getTagOptions() |
|
|
|
this.getByLoginUser() |
|
|
|
this.getPositionListInfo() |
|
|
|
this.geEducationListInfo() |
|
|
|
this.visible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['dataForm'].resetFields() |
|
|
@ -157,6 +220,27 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
changeEducationList(val){ |
|
|
|
this.dataForm.positionName = val |
|
|
|
}, |
|
|
|
// 职务 |
|
|
|
getPositionListInfo () { |
|
|
|
this.$http.get(`/sys/dict/listSimple/party_member_position`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.positionList = res.data |
|
|
|
}).catch(() => {}) |
|
|
|
}, |
|
|
|
// 文化程度 |
|
|
|
geEducationListInfo () { |
|
|
|
this.$http.get(`/sys/dict/listSimple/party_memeber_education`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.educationList = res.data |
|
|
|
}).catch(() => {}) |
|
|
|
}, |
|
|
|
getByLoginUser () { |
|
|
|
this.$http |
|
|
|
.get(`/sys/dept/party/getDeptTree`) |
|
|
|