Skip to content

Commit c7b1b3d

Browse files
committed
fix: 学分两位小数; 年级数量; 纯文本代码块 margin
1 parent 16bbe28 commit c7b1b3d

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

pages/docs/[major].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const { data: listItems } = await useAsyncData(`major-${majorId}`, () =>
4949
major: majorId
5050
}
5151
}).then((res) => {
52-
const courses: Map<string, CourseInfo[]>[] = Array.from({ length: 9 }, () => new Map());
52+
const courses: Map<string, CourseInfo[]>[] = Array.from({ length: 11 }, () => new Map());
5353
res.forEach((course) => {
5454
if (!courses[course.grade].has(course.class))
5555
courses[course.grade].set(course.class, [course]);

pages/docs/[major]/[doc].vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ h6 {
259259
margin-top: 1em;
260260
}
261261
262+
.article .language-text {
263+
margin-top: 1em;
264+
}
265+
262266
.article li {
263267
line-height: 1.8;
264268
margin-left: 1em;

pages/edit/[major].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const { data: listItems } = await useAsyncData(`major-${majorId}-edit`, () =>
127127
major: majorId
128128
}
129129
}).then((res) => {
130-
const courses: Map<string, CourseInfo[]>[] = Array.from({ length: 9 }, () => new Map());
130+
const courses: Map<string, CourseInfo[]>[] = Array.from({ length: 11 }, () => new Map());
131131
res.forEach((course) => {
132132
courseNames.value.push(course.course_name);
133133
if (!courses[course.grade].has(course.class))

pages/edit/[major]/[doc].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<v-form v-model="infoValid">
3636
<v-row ref="row2Space" class="ml-1 mr-1 ">
3737
<v-col cols="6" md="3">
38-
<v-number-input v-model="newCourse.credit" :precision="1" :step="0.5" control-variant="split"
38+
<v-number-input v-model="newCourse.credit" :precision="2" :step="0.5" control-variant="split"
3939
label="学分" :hide-input="false" :inset="false" variant="outlined" density="compact"
4040
hide-details />
4141
</v-col>

pages/review/docs/[id].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<v-form v-if="proposalWithDoc" v-model="infoValid">
2727
<v-row ref="row2Space" class="ml-1 mr-1 ">
2828
<v-col cols="6" md="3">
29-
<v-number-input v-model="proposalWithDoc.proposal.credit" :precision="1" :step="0.5"
29+
<v-number-input v-model="proposalWithDoc.proposal.credit" :precision="2" :step="0.5"
3030
control-variant="split" label="学分" :hide-input="false" :inset="false" variant="outlined"
3131
density="compact" perisistent-hint :hint="String(proposalWithDoc.oriDoc.credit)"
3232
persistent-hint />

0 commit comments

Comments
 (0)