This commit is contained in:
1 parent
d12cb873e1
commit
d3dcd58274
3 files changed
+51
-7
No files matched your search
@@ -102,6 +102,7 @@ import {
|
||||
type WecomCheckinPageData,
|
||||
} from '@/api/training'
|
||||
import { fmtBeijingTime } from '@/utils/datetime'
|
||||
import { apiErrorMessage } from '@/utils/request'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
@@ -285,7 +286,7 @@ const exchangeSession = async (code: string, stateToken: string) => {
|
||||
window.history.replaceState(null, '', window.location.pathname)
|
||||
} catch (e: any) {
|
||||
state.value = 'blocked'
|
||||
errorMsg.value = e?.response?.data?.message || '免登失败,请重新扫码'
|
||||
errorMsg.value = apiErrorMessage(e, '免登失败,请重新扫码')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,7 +310,7 @@ const loadAnonPage = async (presetErr?: any) => {
|
||||
applyPage(data)
|
||||
} catch (e: any) {
|
||||
state.value = 'blocked'
|
||||
errorMsg.value = e?.response?.data?.message || presetErr?.response?.data?.message || '签到码无效或已过期,请重新扫码'
|
||||
errorMsg.value = apiErrorMessage(e, '') || apiErrorMessage(presetErr, '签到码无效或已过期,请重新扫码')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -392,7 +393,9 @@ const sign = async () => {
|
||||
}
|
||||
} catch (e: any) {
|
||||
state.value = 'error'
|
||||
errorMsg.value = e?.response?.data?.message || '签到失败,请重试'
|
||||
// 000165 复测:透出后端具体原因(不在参加人员名单/工号无档案/当天性/防重放等),
|
||||
// 不再落到通用「签到失败,请重试」(后端错误信封为 {error:{message}},手写取值取不到)
|
||||
errorMsg.value = apiErrorMessage(e, '签到失败,请重试')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1235,17 +1235,19 @@ watch(
|
||||
|
||||
const courseColumns = [
|
||||
// 左侧列不固定(000154):计划编号/课程名称随横向滚动,状态/操作仍固定右侧
|
||||
// 000165 复测列序:授课时间/计划培训时间前移至课程名称之后,讲师/地点次之,
|
||||
// 形式/类型/学时/上报部门后移(关注信息优先)
|
||||
{ colKey: 'plan_code', title: '计划编号', width: 125 },
|
||||
{ colKey: 'name', title: '课程名称', width: 170 },
|
||||
{ colKey: 'mode', title: '形式', width: 70 },
|
||||
{ colKey: 'type', title: '类型', width: 70 },
|
||||
{ colKey: 'hours', title: '学时', width: 60 },
|
||||
{ colKey: 'reporter', title: '上报部门', width: 110 },
|
||||
{ colKey: 'teachTime', title: '授课时间', width: 130 },
|
||||
{ colKey: 'plannedTime', title: '计划培训时间', width: 150 },
|
||||
{ colKey: 'lecturer', title: '讲师', width: 100 },
|
||||
{ colKey: 'location', title: '地点', width: 110 },
|
||||
{ colKey: 'expected', title: '实/应人数', width: 90 },
|
||||
{ colKey: 'mode', title: '形式', width: 70 },
|
||||
{ colKey: 'type', title: '类型', width: 70 },
|
||||
{ colKey: 'hours', title: '学时', width: 60 },
|
||||
{ colKey: 'reporter', title: '上报部门', width: 110 },
|
||||
{ colKey: 'learnStatus', title: '学习状态', width: 90 },
|
||||
{ colKey: 'examStatus', title: '考试状态', width: 90 },
|
||||
{ colKey: 'status', title: '状态', width: 80, fixed: 'right' },
|
||||
|
||||
Reference in new issue
Block a user