Commit 1a1b2811 authored by xinzhedeai's avatar xinzhedeai

岗位-用户类型

parent 38edb781
......@@ -372,6 +372,7 @@ export default {
crudHome.edit(this.formInline).then((res) => {
if (res && res.code === 200) {
this.$message.success("保存成功"); // res.msg
this.getData()
}
});
},
......
......@@ -61,7 +61,7 @@
</div>
<!--表单渲染-->
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="570px">
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="66px">
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="用户名" prop="username">
<el-input v-model="form.username" />
</el-form-item>
......@@ -83,7 +83,7 @@
placeholder="选择部门"
/>
</el-form-item>
<el-form-item label="岗位" prop="jobs" class="is-required">
<el-form-item label="用户类型" prop="jobs" class="is-required">
<el-select
v-model="jobDatas"
style="width:178px"
......@@ -336,7 +336,7 @@ export default {
this.jobDatas = ''
this.roleDatas = []
},
// 初始化编辑时候的角色与岗位
// 初始化编辑时候的角色与用户类型
[CRUD.HOOK.beforeToEdit](crud, form) {
this.getJobs(this.form.dept.id)
this.jobDatas = ''
......@@ -370,7 +370,7 @@ export default {
return false
} else if (!this.jobDatas) {
this.$message({
message: '岗位不能为空',
message: '用户类型不能为空',
type: 'warning'
})
return false
......@@ -483,7 +483,7 @@ export default {
this.roles = res
}).catch(() => { })
},
// 获取弹窗内岗位数据
// 获取弹窗内用户类型数据
getJobs() {
getAllJob().then(res => {
this.jobs = res.content
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment