a
This commit is contained in:
@@ -671,17 +671,16 @@ import {
|
||||
oneStuNo,
|
||||
tbStuWork,
|
||||
sendImg,
|
||||
pushCity as pushCityApi
|
||||
pushCity as pushCityApi,
|
||||
resetSign as resetSignApi
|
||||
} from '/@/api/recruit/recruitstudentsignup'
|
||||
import { getLabelValue, getLabelValueByProps, getMajorLabelWithYears } from '/@/utils/dictLabel'
|
||||
import { getDeptList } from "/@/api/basic/basicclass";
|
||||
import { listPlanByCondition as planMajor } from "/@/api/recruit/recruitstudentplan";
|
||||
import { getDictsByTypes } from "/@/api/admin/dict";
|
||||
import { getUserListByRole } from "/@/api/admin/user";
|
||||
import { queryTeacherBaseByNo } from "/@/api/professional/professionaluser/teacherbase";
|
||||
import { useDict } from '/@/hooks/dict'
|
||||
import {
|
||||
ROLE_CODE,
|
||||
PUSHED_STATUS_LIST,
|
||||
NOTICE_SEND_STATUS_LIST,
|
||||
RECRUIT_MATERIAL_STATUS_LIST,
|
||||
@@ -775,7 +774,6 @@ const { getDataList, currentChangeHandle, sizeChangeHandle, tableStyle } = useTa
|
||||
// 弹窗状态(已移除,组件内部通过 v-model="visible" 控制)
|
||||
|
||||
// 列表数据
|
||||
const auditorList = ref<any[]>([])
|
||||
const planList = ref<any[]>([])
|
||||
const eduList = ref<any[]>([])
|
||||
const planMajorList = ref<any[]>([])
|
||||
@@ -912,7 +910,7 @@ const baiduMap = (row: any) => {
|
||||
// 组件内部通过 v-model="visible" 控制显示
|
||||
nextTick(() => {
|
||||
baiduMapRef.value?.init(row)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// 设置宿舍
|
||||
@@ -920,7 +918,7 @@ const setDormFW = () => {
|
||||
// 组件内部通过 v-model="visible" 控制显示
|
||||
nextTick(() => {
|
||||
dormFWRef.value?.init()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// 一键判断是否超出住宿范围
|
||||
@@ -1049,17 +1047,17 @@ const handleUpdate = (id: string, groupId: string, feeAgency: string) => {
|
||||
}).then(() => {
|
||||
message.success('操作成功')
|
||||
getDataList()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
const deleteHandle = (id: string) => {
|
||||
messageBox.confirm('是否确认删除本条数据?请谨慎操作').then(() => {
|
||||
return delObj(id)
|
||||
// 复学
|
||||
const reEntry = (id: string) => {
|
||||
messageBox.confirm('是否确认复学操作?请谨慎操作').then(() => {
|
||||
return resetSignApi({ id })
|
||||
}).then(() => {
|
||||
message.success('删除成功')
|
||||
message.success('操作成功')
|
||||
getDataList()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// 重置表单
|
||||
@@ -1149,6 +1147,13 @@ const getActionMenuItems = (row: any) => {
|
||||
icon: Close,
|
||||
visible: () => auth('recruit_recruitstudentsignup_leaveSchool') && row.canQuit
|
||||
},
|
||||
// 复学
|
||||
{
|
||||
command: 'reEntry',
|
||||
label: '复学',
|
||||
icon: Check,
|
||||
visible: () => auth('recruit_resetsign') && row.canReset
|
||||
},
|
||||
{
|
||||
command: 'majorChange',
|
||||
label: '调整专业',
|
||||
@@ -1203,6 +1208,9 @@ const handleMoreCommand = (command: string, row: any) => {
|
||||
case 'leaveSchool':
|
||||
handleUpdate(row.id, row.groupId, row.feeAgency)
|
||||
break
|
||||
case 'reEntry':
|
||||
reEntry(row.id)
|
||||
break
|
||||
case 'majorChange':
|
||||
majorChange(row.id)
|
||||
break
|
||||
@@ -1251,19 +1259,7 @@ const init = async () => {
|
||||
cityExamTypeList.value = res.data.recruit_city_exam_type || []
|
||||
isOutList.value = res.data.recruit_data_source || []
|
||||
})
|
||||
|
||||
// 所有经办人
|
||||
getUserListByRole(ROLE_CODE.ROLE_RECRUIT_SECOND).then((res: any) => {
|
||||
auditorList.value = res.data || []
|
||||
getUserListByRole(ROLE_CODE.ROLE_RECRUIT).then((re: any) => {
|
||||
if (re.data) {
|
||||
re.data.forEach((r: any) => {
|
||||
auditorList.value.push(r)
|
||||
})
|
||||
}
|
||||
auditorList.value = unique(auditorList.value)
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
// 监听招生计划变化
|
||||
|
||||
Reference in New Issue
Block a user