- 学校:{{ exam.schoolName }}
- 年级:{{ exam.gradeLevel + exam.gradeYear }}
- 班级:{{ exam.className }}
- 考试名称:{{ exam.examName }}
+ 学校:{{ exam.schoolName }} 年级:{{ exam.gradeLevel + exam.gradeYear }} 班级:{{ exam.className }} 考试名称:{{ exam.examName }}
diff --git a/src/views/student/edit.vue b/src/views/student/edit.vue
index df4ebbb..4b98f7d 100644
--- a/src/views/student/edit.vue
+++ b/src/views/student/edit.vue
@@ -77,7 +77,7 @@
style="width: 180px"
>
@@ -161,8 +164,8 @@
-
- 分配职位
+
+ 选择就读班级
@@ -283,7 +286,7 @@ const formLabelWidth = "120px";
const size = "small";
const loading = ref(false);
-const reliefSubTimeEnum = ref();
+const reliefTypeEnum = ref();
const subject1 = ref([
{ value: 4, text: "物理" },
@@ -323,7 +326,7 @@ const defaultSubjectLevel = reactive({
const form = ref({
id: props.id,
account: "",
- userType: 2,
+ userType: 1,
level: 0,
passWord: "",
realName: "",
@@ -443,7 +446,22 @@ const handleResetForm = () => {
};
const fetchInitData = async () => {
- reliefSubTimeEnum.value = (await getenum("ReliefSubTimeEnum")).data;
+ reliefTypeEnum.value = `
+ 1.复读生
+ 2.艺术生
+ 3.春招生
+ 4.领导承诺批准全免
+ 5.资源班
+ 6.国际班
+ 7.合同制收费学校
+ 8.渠道商家属
+ 9.新开班但领导承诺第一学期不收费`
+ .split("\n")
+ .filter((s) => s.trim())
+ .map((s) => {
+ const [value, text] = s.trim().split(".");
+ return { value: text.trim(), text: text.trim() };
+ });
};
const fetchFormData = async () => {
@@ -494,7 +512,7 @@ const userTypeChange = () => {
};
const CheckPosition = () => {
- dialog.title = "选择职位";
+ dialog.title = "选择就读班级";
dialog.visible = true;
PositionFormIds.value = positionList.value
.filter((s) => s.enable !== false)
diff --git a/src/views/student/index.vue b/src/views/student/index.vue
index 0a31663..a6147fe 100644
--- a/src/views/student/index.vue
+++ b/src/views/student/index.vue
@@ -84,28 +84,11 @@
-
-
-
-
-
-
-
查询
-
- 选择用户
-
diff --git a/src/views/teacher/positionForm.vue b/src/views/teacher/positionForm.vue
index f429a59..98693d0 100644
--- a/src/views/teacher/positionForm.vue
+++ b/src/views/teacher/positionForm.vue
@@ -106,7 +106,9 @@
- 选择勾选职位
+ {{
+ userType == 1 ? "选择勾选班级" : "选择勾选职位"
+ }}
@@ -163,7 +165,9 @@
已选职位[{{ selectPositions.length }}]{{ userType == 1 ? "就读班级" : "已选职位" }}[{{
+ selectPositions.length
+ }}]
Date: Tue, 26 Aug 2025 10:21:25 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=8A=A8=E6=80=81?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/hTable/index.vue | 16 ++++++++--------
src/views/exam/examFun.ts | 6 +++---
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/components/hTable/index.vue b/src/components/hTable/index.vue
index 2c47c41..7e391ad 100644
--- a/src/components/hTable/index.vue
+++ b/src/components/hTable/index.vue
@@ -29,7 +29,7 @@ import { hTableAPI } from "@/api/hTable";
import { getenum } from "@/api/enum";
//按钮权限
import { hasPerms } from "@/utils/auth";
-
+const modules = import.meta.glob("/src/views/**/*.{vue,tsx}");
const props = defineProps({
//** 传入的表单数据 */
Row: {
@@ -200,13 +200,13 @@ async function handleCustom(obj, row, custom: ButtonCustomConfig) {
dialog.value.custom.data = row || [];
dialog.value.custom.custom = custom || [];
// 异步加载组件
- dialog.value.custom.component = defineAsyncComponent({
- loader: () => import(/* @vite-ignore */ `../../views/${custom.src}.vue`),
- });
- // let r = shallowRef(null);
- // const module = await import(custom.src);
- // r.value = module.default;
- // dialog.value.custom.component = r;
+ // dialog.value.custom.component = defineAsyncComponent({
+ // loader: () => import(/* @vite-ignore */ `../../views/${custom.src}.vue`),
+ // });
+ let r = shallowRef(null);
+ const module: any = await modules[`/src/views/${custom.src}.vue`](); //import(`@/views/${custom.src}.vue`);
+ r.value = module.default;
+ dialog.value.custom.component = r;
dialog.value.width = custom.width;
dialog.value.title = custom.title;
diff --git a/src/views/exam/examFun.ts b/src/views/exam/examFun.ts
index dbff05d..9c754a2 100644
--- a/src/views/exam/examFun.ts
+++ b/src/views/exam/examFun.ts
@@ -12,9 +12,9 @@ export function entryExamInfo(eid: number) {
if (res.code !== 200) return ElMessage.error(res.message);
else return ElMessage.success("所有数据录入成功");
} else if (res.type === "application/json") {
- let json = await res.text();
- if (json !== undefined && json.Code !== 200) {
- return ElMessage.error(json.Message);
+ let json = JSON.parse(await res.text());
+ if (json !== undefined && json.code !== 200) {
+ return ElMessage.error(json.message);
} else {
return ElMessage.success("操所有数据录入成功作成功");
}