Merge branch 'master-V32-XuHaoJie' into 'master'
杭州-乙方运维-用户添加政治面貌 See merge request !120
Showing
2 changed files
with
11 additions
and
2 deletions
@@ -107,6 +107,11 @@ | @@ -107,6 +107,11 @@ | ||
107 | 107 | ||
108 | <el-row :gutter="5"> | 108 | <el-row :gutter="5"> |
109 | <el-col :span="8"> | 109 | <el-col :span="8"> |
110 | + <el-form-item label="政治面貌" prop="politicsStatus" class="form-class"> | ||
111 | + <el-input v-model="ruleForm.politicsStatus"></el-input> | ||
112 | + </el-form-item> | ||
113 | + </el-col> | ||
114 | + <el-col :span="8"> | ||
110 | <el-form-item label="在职状态" prop="certificate" :readonly="isAdmin()" class="form-class"> | 115 | <el-form-item label="在职状态" prop="certificate" :readonly="isAdmin()" class="form-class"> |
111 | <el-radio-group v-model="ruleForm.state"> | 116 | <el-radio-group v-model="ruleForm.state"> |
112 | <el-radio :label="1">在职</el-radio> | 117 | <el-radio :label="1">在职</el-radio> |
@@ -235,7 +235,8 @@ export default { | @@ -235,7 +235,8 @@ export default { | ||
235 | quitTime: '', | 235 | quitTime: '', |
236 | state: '', | 236 | state: '', |
237 | tel: '', | 237 | tel: '', |
238 | - idcard:'' | 238 | + idcard:'', |
239 | + politicsStatus:'' | ||
239 | }) | 240 | }) |
240 | 241 | ||
241 | // 获取表格数据 | 242 | // 获取表格数据 |
@@ -259,7 +260,10 @@ export default { | @@ -259,7 +260,10 @@ export default { | ||
259 | 260 | ||
260 | // 保存用户信息 | 261 | // 保存用户信息 |
261 | let saveUser = () => { | 262 | let saveUser = () => { |
262 | - | 263 | + if(!ruleForm.value.politicsStatus){ |
264 | + proxy.$global.showMsg('政治面貌不能为空!',"warning"); | ||
265 | + return false; | ||
266 | + } | ||
263 | proxy.$http.post("/api-web/bOpsPerson/saveOrUpdate", ruleForm.value, function (res) { | 267 | proxy.$http.post("/api-web/bOpsPerson/saveOrUpdate", ruleForm.value, function (res) { |
264 | if (res && res.code == 0) { | 268 | if (res && res.code == 0) { |
265 | proxy.$global.showMsg('保存成功!'); | 269 | proxy.$global.showMsg('保存成功!'); |
-
Please register or login to post a comment