新增课程的ppt和教案属性
Showing
2 changed files
with
15 additions
and
7 deletions
| ... | @@ -94,6 +94,8 @@ export default { | ... | @@ -94,6 +94,8 @@ export default { |
| 94 | dialogTwoD: '2D', | 94 | dialogTwoD: '2D', |
| 95 | dialogThreeD: '3D', | 95 | dialogThreeD: '3D', |
| 96 | dialogCase: '案例', | 96 | dialogCase: '案例', |
| 97 | dialogTeaching: '教案', | ||
| 98 | dialogPpt: 'PPT', | ||
| 97 | dialogPhoto: '课程图片', | 99 | dialogPhoto: '课程图片', |
| 98 | dialogConfim: '确认', | 100 | dialogConfim: '确认', |
| 99 | dialogExit: '退出', | 101 | dialogExit: '退出', | ... | ... |
| ... | @@ -20,7 +20,7 @@ | ... | @@ -20,7 +20,7 @@ |
| 20 | </el-form> | 20 | </el-form> |
| 21 | <!-- 列表操作 --> | 21 | <!-- 列表操作 --> |
| 22 | <el-col :span="1.5"> | 22 | <el-col :span="1.5"> |
| 23 | <el-button | 23 | <el-button |
| 24 | type="primary" | 24 | type="primary" |
| 25 | plain | 25 | plain |
| 26 | icon="Plus" | 26 | icon="Plus" |
| ... | @@ -31,7 +31,7 @@ | ... | @@ -31,7 +31,7 @@ |
| 31 | </el-header> | 31 | </el-header> |
| 32 | <el-main id="max-height"> | 32 | <el-main id="max-height"> |
| 33 | <!-- 列表内容 --> | 33 | <!-- 列表内容 --> |
| 34 | <el-table | 34 | <el-table |
| 35 | v-loading="status.loading" | 35 | v-loading="status.loading" |
| 36 | :data="list" | 36 | :data="list" |
| 37 | :max-height="windowSize.height - 70" | 37 | :max-height="windowSize.height - 70" |
| ... | @@ -46,12 +46,12 @@ | ... | @@ -46,12 +46,12 @@ |
| 46 | <el-table-column :label="$t('course.caseName')" prop="caseName" /> | 46 | <el-table-column :label="$t('course.caseName')" prop="caseName" /> |
| 47 | <el-table-column :label="$t('course.tableControlsName')" class-name="small-padding fixed-width"> | 47 | <el-table-column :label="$t('course.tableControlsName')" class-name="small-padding fixed-width"> |
| 48 | <template #default="{ row }"> | 48 | <template #default="{ row }"> |
| 49 | <el-button | 49 | <el-button |
| 50 | link | 50 | link |
| 51 | type="text" | 51 | type="text" |
| 52 | @click="handleDel(row)" | 52 | @click="handleDel(row)" |
| 53 | >{{ $t('course.controlsDelName') }}</el-button> | 53 | >{{ $t('course.controlsDelName') }}</el-button> |
| 54 | <el-button | 54 | <el-button |
| 55 | link | 55 | link |
| 56 | type="text" | 56 | type="text" |
| 57 | @click="handleEdit(row)" | 57 | @click="handleEdit(row)" |
| ... | @@ -137,6 +137,12 @@ | ... | @@ -137,6 +137,12 @@ |
| 137 | <el-form-item :label="$t('course.dialogCase')" label-width="80"> | 137 | <el-form-item :label="$t('course.dialogCase')" label-width="80"> |
| 138 | <fileUpload v-model="showForm.form.caseOssId" :limit="1" :fileType='["mp4", "avi", "mov", "flv"]'/> | 138 | <fileUpload v-model="showForm.form.caseOssId" :limit="1" :fileType='["mp4", "avi", "mov", "flv"]'/> |
| 139 | </el-form-item> | 139 | </el-form-item> |
| 140 | <el-form-item :label="$t('course.dialogTeaching')" label-width="80"> | ||
| 141 | <fileUpload v-model="showForm.form.teachingOssId" :limit="1" :fileType='["pdf"]'/> | ||
| 142 | </el-form-item> | ||
| 143 | <el-form-item :label="$t('course.dialogPpt')" label-width="80"> | ||
| 144 | <fileUpload v-model="showForm.form.pptOssId" :limit="1" :fileType='["ppt", "pptx"]'/> | ||
| 145 | </el-form-item> | ||
| 140 | <el-form-item :label="$t('course.dialogPhoto')" label-width="80"> | 146 | <el-form-item :label="$t('course.dialogPhoto')" label-width="80"> |
| 141 | <imageUpload v-model="showForm.form.ossId" :limit='1' :fileType='["png", "jpg", "jpeg", "ico"]'/> | 147 | <imageUpload v-model="showForm.form.ossId" :limit='1' :fileType='["png", "jpg", "jpeg", "ico"]'/> |
| 142 | </el-form-item> | 148 | </el-form-item> |
| ... | @@ -203,7 +209,7 @@ btn_search() | ... | @@ -203,7 +209,7 @@ btn_search() |
| 203 | 209 | ||
| 204 | function determineStatus(val) { | 210 | function determineStatus(val) { |
| 205 | // console.log((showForm.value?.form?.type || []).findIndex(i => i == val)); | 211 | // console.log((showForm.value?.form?.type || []).findIndex(i => i == val)); |
| 206 | 212 | ||
| 207 | const findIndex = (showForm.value?.form?.type || []).findIndex(i => i == val) | 213 | const findIndex = (showForm.value?.form?.type || []).findIndex(i => i == val) |
| 208 | console.log(findIndex); | 214 | console.log(findIndex); |
| 209 | return findIndex > -1 | 215 | return findIndex > -1 |
| ... | @@ -267,7 +273,7 @@ function handleDel(row) { | ... | @@ -267,7 +273,7 @@ function handleDel(row) { |
| 267 | getList(); | 273 | getList(); |
| 268 | proxy.$modal.msgSuccess(res.msg); | 274 | proxy.$modal.msgSuccess(res.msg); |
| 269 | }).finally(() => { | 275 | }).finally(() => { |
| 270 | 276 | ||
| 271 | }); | 277 | }); |
| 272 | } | 278 | } |
| 273 | 279 | ||
| ... | @@ -291,4 +297,4 @@ function closeDialog() { | ... | @@ -291,4 +297,4 @@ function closeDialog() { |
| 291 | form: {} | 297 | form: {} |
| 292 | } | 298 | } |
| 293 | } | 299 | } |
| 294 | </script> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 300 | </script> | ... | ... |
-
Please register or sign in to post a comment