updates
This commit is contained in:
parent
bb475734f6
commit
ca71de90f0
|
|
@ -18,6 +18,7 @@ interface VolunteerTab {
|
||||||
|
|
||||||
interface MajorDetail {
|
interface MajorDetail {
|
||||||
code: string
|
code: string
|
||||||
|
enrollmentCode: string
|
||||||
name: string
|
name: string
|
||||||
prob: number
|
prob: number
|
||||||
batch: string
|
batch: string
|
||||||
|
|
@ -268,7 +269,8 @@ async function openMajorModal(school: MajorItem) {
|
||||||
|
|
||||||
if (res && res.list && res.list.items) {
|
if (res && res.list && res.list.items) {
|
||||||
modalMajors.value = res.list.items.map(m => ({
|
modalMajors.value = res.list.items.map(m => ({
|
||||||
code: m.majorCode,
|
code: m.majorCode, //专业代码
|
||||||
|
enrollmentCode: m.enrollmentCode, // 招录代码
|
||||||
name: m.majorName,
|
name: m.majorName,
|
||||||
prob: m.enrollProbability,
|
prob: m.enrollProbability,
|
||||||
score: m.studentScore,
|
score: m.studentScore,
|
||||||
|
|
@ -278,7 +280,6 @@ async function openMajorModal(school: MajorItem) {
|
||||||
plan: m.planNum,
|
plan: m.planNum,
|
||||||
req: m.mainSubjects,
|
req: m.mainSubjects,
|
||||||
tuition: m.tuition,
|
tuition: m.tuition,
|
||||||
enrollmentCode: m.enrollmentCode // 保持后端原始字段以便拼接
|
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
@ -1198,7 +1199,7 @@ function deletePlan(planId: string) {
|
||||||
<span class="text-sm text-slate-500">院校代码: {{ currentSchool?.schoolCode }}</span>
|
<span class="text-sm text-slate-500">院校代码: {{ currentSchool?.schoolCode }}</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="mt-1 text-xs text-slate-500">
|
<p class="mt-1 text-xs text-slate-500">
|
||||||
该院校下符合您选科要求的其他专业列表
|
该院校下的其他专业列表
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<button class="rounded-full p-1 text-slate-400 hover:bg-slate-200 hover:text-slate-600" @click="closeModal">
|
<button class="rounded-full p-1 text-slate-400 hover:bg-slate-200 hover:text-slate-600" @click="closeModal">
|
||||||
|
|
@ -1234,7 +1235,7 @@ function deletePlan(planId: string) {
|
||||||
录取方式
|
录取方式
|
||||||
</th>
|
</th>
|
||||||
<th class="px-6 py-3 text-center">
|
<th class="px-6 py-3 text-center">
|
||||||
招生计划
|
省内招生人数
|
||||||
</th>
|
</th>
|
||||||
<th
|
<th
|
||||||
class="sticky right-0 bg-slate-100 px-6 py-3 text-center shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.1)]"
|
class="sticky right-0 bg-slate-100 px-6 py-3 text-center shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.1)]"
|
||||||
|
|
@ -1258,7 +1259,7 @@ function deletePlan(planId: string) {
|
||||||
class="group transition-colors hover:bg-blue-50/30"
|
class="group transition-colors hover:bg-blue-50/30"
|
||||||
>
|
>
|
||||||
<td class="px-6 py-4 text-xs text-slate-400 font-mono">
|
<td class="px-6 py-4 text-xs text-slate-400 font-mono">
|
||||||
{{ major.code }}
|
{{ major.enrollmentCode }}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4">
|
<td class="px-6 py-4">
|
||||||
<div class="text-base text-slate-800 font-bold">
|
<div class="text-base text-slate-800 font-bold">
|
||||||
|
|
@ -1275,8 +1276,7 @@ function deletePlan(planId: string) {
|
||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 text-center">
|
<td class="px-6 py-4 text-center">
|
||||||
<span
|
<span
|
||||||
class="font-bold" :class="major.prob >= 80 ? 'text-green-600' : 'text-orange-500'
|
class="font-bold" :class="getStatusColor(getProbabilityLabel(major.prob))"
|
||||||
"
|
|
||||||
>{{ major.prob }}%</span>
|
>{{ major.prob }}%</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 text-center font-medium">
|
<td class="px-6 py-4 text-center font-medium">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue