dev #12

Merged
hy merged 3 commits from dev into staging 2025-08-27 10:12:19 +08:00
4 changed files with 50 additions and 13 deletions
Showing only changes of commit 24e577147c - Show all commits

View File

@ -49,6 +49,27 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="学生类型" prop="studentType">
<el-select
v-model="form.studentType"
filterable
placeholder="学生类型"
style="width: 180px"
>
<el-option
v-for="(item, i) in studentTypeEnum"
:key="i"
autocomplete="off"
:label="item.text"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="申请减免" prop="amountRelief"> <el-form-item label="申请减免" prop="amountRelief">
<el-switch v-model="form.reliefApplication" /> <el-switch v-model="form.reliefApplication" />
</el-form-item> </el-form-item>
@ -95,7 +116,7 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<!-- 选修方向 -->
<el-row class="pb-4.5"> <el-row class="pb-4.5">
<el-col :span="24"> <el-col :span="24">
<div style="display: flex; gap: 10px"> <div style="display: flex; gap: 10px">
@ -260,6 +281,7 @@ interface FormData {
exitTime?: string; exitTime?: string;
joinTime?: string; joinTime?: string;
remark?: string; remark?: string;
studentType?: number;
status?: string; status?: string;
amountRelief?: number; amountRelief?: number;
reliefSubTime?: number; reliefSubTime?: number;
@ -287,6 +309,7 @@ const size = "small";
const loading = ref(false); const loading = ref(false);
const reliefTypeEnum = ref<ComboModel[]>(); const reliefTypeEnum = ref<ComboModel[]>();
const studentTypeEnum = ref<ComboModel[]>();
const subject1 = ref<ComboModel[]>([ const subject1 = ref<ComboModel[]>([
{ value: 4, text: "物理" }, { value: 4, text: "物理" },
@ -448,21 +471,35 @@ const handleResetForm = () => {
const fetchInitData = async () => { const fetchInitData = async () => {
reliefTypeEnum.value = ` reliefTypeEnum.value = `
1.复读生 1.建卡贫困户
2.艺术生 2.低保户
3.春招生 3.教师子女
4.领导承诺批准全免 4.孤儿
5.资源班 5.艺体生
6.国际班 6.残疾学生
7.合同制收费学校 7.领导特殊承诺减免`
8.渠道商家属
9.新开班但领导承诺第一学期不收费`
.split("\n") .split("\n")
.filter((s) => s.trim()) .filter((s) => s.trim())
.map((s) => { .map((s) => {
const [value, text] = s.trim().split("."); const [value, text] = s.trim().split(".");
return { value: text.trim(), text: text.trim() }; return { value: text.trim(), text: text.trim() };
}); });
studentTypeEnum.value = `
1.复读生
10.艺术生
20.春招生
30.领导承诺批准全免
40.资源班
50.国际班
60.合同制收费学校
70.渠道商家属
80.新开班但领导承诺第一学期不收费`
.split("\n")
.filter((s) => s.trim())
.map((s) => {
const [value, text] = s.trim().split(".");
return { value: parseInt(value.trim()), text: text.trim() };
});
}; };
const fetchFormData = async () => { const fetchFormData = async () => {

View File

@ -109,13 +109,13 @@
<div class="subjectTagEnableDiv"> <div class="subjectTagEnableDiv">
<el-tag v-if="position.enable === false" type="info">已禁用</el-tag> <el-tag v-if="position.enable === false" type="info">已禁用</el-tag>
<el-tag>{{ position.schoolName || "-" }}</el-tag> <el-tag>{{ position.schoolName || "-" }}</el-tag>
<el-tag type="warning">{{
position.graduationYear ? position.graduationYear + "届" : "-"
}}</el-tag>
<el-tag type="success">{{ position.grade || "-" }}</el-tag> <el-tag type="success">{{ position.grade || "-" }}</el-tag>
<el-tag type="primary" class="classTag">{{ <el-tag type="primary" class="classTag">{{
position.className || "-" position.className || "-"
}}</el-tag> }}</el-tag>
<el-tag v-if="scope.row.studentType" type="info">{{
scope.row.studentType
}}</el-tag>
</div> </div>
</div> </div>
</div> </div>