人事优化

This commit is contained in:
zhoutianchi
2026-01-12 16:57:17 +08:00
parent 9fcbfb0fd7
commit 204c163cc1
3 changed files with 58 additions and 28 deletions

View File

@@ -61,12 +61,12 @@
/>
</el-form-item>
<el-form-item label="岗位别" prop="stationTypeId">
<el-form-item label="岗位别" prop="stationTypeId">
<el-select
v-model="search.stationTypeId"
filterable
clearable
placeholder="请选择岗位别"
placeholder="请选择岗位别"
style="width: 200px"
>
<el-option
@@ -264,7 +264,9 @@ const search = reactive({
idCard: '',
nf: '',
yf: '',
stationTypeId: ''
stationTypeId: '',
canSearch: 0,
selectList:[]
})
// 配置 useTable
@@ -379,19 +381,18 @@ const delbatch = () => {
// 设置可查询/不可查询
const canSearch = (val: number) => {
if (selectList.value.length === 0) {
message.warning("请至少选择一名人员")
return
}
const params = {
canSearch: val,
selectList: selectList.value
}
// if (selectList.value.length === 0) {
// message.warning("请至少选择一名人员")
// return
// }
search.canSearch=val
search.selectList=selectList.value
messageBox.confirm('确认设置?').then(async () => {
try {
await setCanSearch(params)
await setCanSearch(search)
message.success("设置成功")
getDataList(false) // 设置后保持当前页
} catch (error: any) {