|
@@ -73,7 +73,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="所属岗位:" prop="postId" :get-post-id="initPostData(formUserModel.deptId)">
|
|
|
+ <el-form-item label="所属岗位:" prop="postId" :get-post-id="initPostData(formUserModel.dept_id)">
|
|
|
<el-select
|
|
|
v-model="formUserModel.post_id" class=" block" placeholder=""
|
|
|
size="large" disabled
|
|
@@ -317,7 +317,7 @@ const saveUpdatePassword = async () => {
|
|
|
//部门下拉数据
|
|
|
const sectionData = ref([])
|
|
|
const getSectionData = async () => {
|
|
|
- const { error, code, data } = await organizationApi.getList({ deptType: 2 })
|
|
|
+ const { error, code, data } = await organizationApi.getlistAllByType({ deptType: 2 })
|
|
|
if (!error && code === 200) {
|
|
|
sectionData.value = getArrValue(data)
|
|
|
} else {
|
|
@@ -330,7 +330,7 @@ const postData = ref([])
|
|
|
const initPostData = async (id) => {
|
|
|
if (id) {
|
|
|
//获取岗位数据
|
|
|
- const { error, code, data } = await organizationApi.getList({ parentId: id })
|
|
|
+ const { error, code, data } = await organizationApi.getlistAllByType({ parentId: id })
|
|
|
if (!error && code === 200) {
|
|
|
postData.value = getArrValue(data)
|
|
|
} else {
|