Commit 1a1b2811 authored by xinzhedeai's avatar xinzhedeai

岗位-用户类型

parent 38edb781
...@@ -372,6 +372,7 @@ export default { ...@@ -372,6 +372,7 @@ export default {
crudHome.edit(this.formInline).then((res) => { crudHome.edit(this.formInline).then((res) => {
if (res && res.code === 200) { if (res && res.code === 200) {
this.$message.success("保存成功"); // res.msg this.$message.success("保存成功"); // res.msg
this.getData()
} }
}); });
}, },
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </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-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-form-item label="用户名" prop="username">
<el-input v-model="form.username" /> <el-input v-model="form.username" />
</el-form-item> </el-form-item>
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
placeholder="选择部门" placeholder="选择部门"
/> />
</el-form-item> </el-form-item>
<el-form-item label="岗位" prop="jobs" class="is-required"> <el-form-item label="用户类型" prop="jobs" class="is-required">
<el-select <el-select
v-model="jobDatas" v-model="jobDatas"
style="width:178px" style="width:178px"
...@@ -336,7 +336,7 @@ export default { ...@@ -336,7 +336,7 @@ export default {
this.jobDatas = '' this.jobDatas = ''
this.roleDatas = [] this.roleDatas = []
}, },
// 初始化编辑时候的角色与岗位 // 初始化编辑时候的角色与用户类型
[CRUD.HOOK.beforeToEdit](crud, form) { [CRUD.HOOK.beforeToEdit](crud, form) {
this.getJobs(this.form.dept.id) this.getJobs(this.form.dept.id)
this.jobDatas = '' this.jobDatas = ''
...@@ -370,7 +370,7 @@ export default { ...@@ -370,7 +370,7 @@ export default {
return false return false
} else if (!this.jobDatas) { } else if (!this.jobDatas) {
this.$message({ this.$message({
message: '岗位不能为空', message: '用户类型不能为空',
type: 'warning' type: 'warning'
}) })
return false return false
...@@ -483,7 +483,7 @@ export default { ...@@ -483,7 +483,7 @@ export default {
this.roles = res this.roles = res
}).catch(() => { }) }).catch(() => { })
}, },
// 获取弹窗内岗位数据 // 获取弹窗内用户类型数据
getJobs() { getJobs() {
getAllJob().then(res => { getAllJob().then(res => {
this.jobs = res.content 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