feat:员工申请调岗
This commit is contained in:
1 parent
11ac46d9e8
commit
d063d6578b
3 files changed
+63
-53
No files matched your search
@@ -10,6 +10,7 @@
|
||||
:remote-method="remoteSearch"
|
||||
:loading="state.loading"
|
||||
@visible-change="(e: boolean) => e && getOptions()"
|
||||
@change="change"
|
||||
>
|
||||
<el-option v-for="v in state.options" :key="v.userId" :label="`${v.name}-${v.phone}`" :value="v.userId">
|
||||
<div class="flex items-center">
|
||||
@@ -23,6 +24,7 @@
|
||||
<script setup lang="ts" name="select-user">
|
||||
import { reactive } from "vue"
|
||||
import * as userApi from "/@/api/admin/user"
|
||||
const emit = defineEmits(["change"])
|
||||
|
||||
const selectId = defineModel()
|
||||
|
||||
@@ -80,4 +82,9 @@ function clear() {
|
||||
state.selectId = null
|
||||
getOptions()
|
||||
}
|
||||
|
||||
function change(v: any) {
|
||||
const targetUser = state.options.find((i: any) => i.userId == v)
|
||||
emit("change", targetUser)
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user