|
@@ -11,8 +11,7 @@
|
|
|
<el-form-item label="职位" prop="position">
|
|
<el-form-item label="职位" prop="position">
|
|
|
<el-select v-model="queryParams.position" placeholder="请选择"
|
|
<el-select v-model="queryParams.position" placeholder="请选择"
|
|
|
style="width: 250px">
|
|
style="width: 250px">
|
|
|
- <el-option v-for="item in posOptions" :key="item.value" :label="item.label" :value="item.value">
|
|
|
|
|
- </el-option>
|
|
|
|
|
|
|
+ <el-option v-for="item in postOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="手机号" prop="employeePhone">
|
|
<el-form-item label="手机号" prop="employeePhone">
|
|
@@ -77,6 +76,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import { listSimplePosts } from "@/api/system/post";
|
|
|
import { getListData,exportList } from "@/api/oa/universal"
|
|
import { getListData,exportList } from "@/api/oa/universal"
|
|
|
import detail from "./detail.vue";
|
|
import detail from "./detail.vue";
|
|
|
import edit from "./edit.vue";
|
|
import edit from "./edit.vue";
|
|
@@ -94,7 +94,7 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
detailLoading:false,
|
|
detailLoading:false,
|
|
|
- posOptions: [],
|
|
|
|
|
|
|
+ postOptions: [],
|
|
|
id:'',
|
|
id:'',
|
|
|
// 遮罩层
|
|
// 遮罩层
|
|
|
loading: true,
|
|
loading: true,
|
|
@@ -126,8 +126,16 @@ export default {
|
|
|
created() {
|
|
created() {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
this.getListDept();
|
|
this.getListDept();
|
|
|
|
|
+ this.getPostOptions();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getPostOptions(){
|
|
|
|
|
+ listSimplePosts().then(response => {
|
|
|
|
|
+ // 处理 postOptions 参数
|
|
|
|
|
+ this.postOptions = [];
|
|
|
|
|
+ this.postOptions.push(...response.data);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
/** 查询部门列表 */
|
|
/** 查询部门列表 */
|
|
|
getListDept() {
|
|
getListDept() {
|
|
|
listDept().then(response => {
|
|
listDept().then(response => {
|