|
8 | 8 | <v-breadcrumbs-item :disabled="true">编辑文档</v-breadcrumbs-item> |
9 | 9 | </v-breadcrumbs> |
10 | 10 | <v-row ref="row1Space" class="ml-1 mr-1"> |
11 | | - <v-col> |
| 11 | + <v-col cols="12" md="6"> |
12 | 12 | <v-text-field v-model="newCourse.course_name" variant="outlined" hide-details label="课程名称" |
13 | 13 | density="compact" /> |
14 | 14 | </v-col> |
15 | | - <v-col> |
| 15 | + <v-col cols="12" md="6"> |
16 | 16 | <v-btn-toggle v-model="toggle" divided> |
17 | 17 | <v-btn value="unique"> |
18 | 18 | <span class="hidden-sm-and-down">独立页面</span> |
|
34 | 34 | </v-row> |
35 | 35 | <v-form v-model="infoValid"> |
36 | 36 | <v-row ref="row2Space" class="ml-1 mr-1 "> |
37 | | - <v-col> |
| 37 | + <v-col cols="6" md="3"> |
38 | 38 | <v-number-input v-model="newCourse.credit" :precision="1" :step="0.5" control-variant="split" |
39 | | - label="学分" :hide-input="false" :inset="false" variant="outlined" density="compact" /> |
| 39 | + label="学分" :hide-input="false" :inset="false" variant="outlined" density="compact" |
| 40 | + hide-details /> |
40 | 41 | </v-col> |
41 | 42 |
|
42 | | - <v-col> |
| 43 | + <v-col cols="6" md="3"> |
43 | 44 | <v-combobox v-model="newCourse.class" :items="classNames" variant="outlined" density="compact" |
44 | | - label="类型" /> |
| 45 | + label="类型" hide-details /> |
45 | 46 | </v-col> |
46 | 47 |
|
47 | | - <v-col> |
| 48 | + <v-col cols="6" md="3"> |
48 | 49 | <v-combobox v-model="grade" :items="gradeName" variant="outlined" density="compact" label="年级" |
49 | 50 | :rules="[checkGrade]" /> |
50 | 51 | </v-col> |
51 | 52 |
|
52 | | - <v-col> |
| 53 | + <v-col cols="6" md="3"> |
53 | 54 | <v-text-field v-model="newCourse.direction" variant="outlined" label="专业方向" hint="不区分方向则留空" |
54 | 55 | density="compact" /> |
55 | 56 | </v-col> |
|
102 | 103 | </v-row> |
103 | 104 | <v-row ref="row4Space" class="ml-4 mr-4" justify="end"> |
104 | 105 | <!-- <v-col> --> |
105 | | - <v-btn class="mt-2" :disabled="!infoValid || (toggle == 'other' && !linkValid)" color="primary" |
| 106 | + <v-btn class="mt-2 mb-4" :disabled="!infoValid || (toggle == 'other' && !linkValid)" color="primary" |
106 | 107 | variant="tonal" @click="submit">提交</v-btn> |
107 | 108 | <!-- </v-col> --> |
108 | 109 | </v-row> |
109 | | - <v-navigation-drawer location="right"> |
| 110 | + <v-navigation-drawer :location="$vuetify.display.mobile ? 'bottom' : 'end'" permanent> |
110 | 111 | <v-progress-linear v-show="uploadProgress != 0" v-model="uploadProgress" color="primary" /> |
111 | 112 |
|
112 | 113 | <v-file-input v-show="toggle == 'unique'" v-model="selectedFiles" label="上传附件" multiple show-size counter |
|
136 | 137 | </v-snackbar> |
137 | 138 | </div> |
138 | 139 | <div v-else> |
139 | | - <v-row justify="center" class="mt-8"> |
140 | | - <v-sheet class="pa-4 ma-4 text-center mx-auto" elevation="12" max-width="600" rounded="lg" width="100%"> |
| 140 | + <v-row justify="center" :class="!$vuetify.display.mobile ? 'mt-8' : 'ma-4'"> |
| 141 | + <v-sheet class="pa-4 ma-4 text-center mx-auto" max-width="600" rounded="lg" width="100%"> |
141 | 142 | <v-icon class="mb-5" color="success" icon="mdi-check-circle" size="112" /> |
142 | 143 |
|
143 | 144 | <h2 class="text-h5 mb-6">提交成功</h2> |
@@ -383,7 +384,7 @@ const uploadFiles = () => { |
383 | 384 | onUploadProgress: (progressEvent) => { |
384 | 385 | const percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total!); |
385 | 386 | uploadProgress.value = percentCompleted; |
386 | | - } |
| 387 | + }, |
387 | 388 | }).then((res: AxiosResponse<{ resList: AttachmentInfo[] }>) => { |
388 | 389 | newAttachments.value = newAttachments.value.concat(res.data.resList); |
389 | 390 | uploadProgress.value = 0; |
|
0 commit comments