|
@@ -1,10 +1,15 @@
|
|
|
+import ColUpload from '@/components/col-upload'
|
|
|
+import ColUploadVideo from '@/components/col-upload-video'
|
|
|
+import ColVideo from '@/components/col-video'
|
|
|
import {
|
|
|
ElButton,
|
|
|
+ ElCol,
|
|
|
ElForm,
|
|
|
ElFormItem,
|
|
|
ElInput,
|
|
|
ElOption,
|
|
|
ElOptionGroup,
|
|
|
+ ElRow,
|
|
|
ElSelect
|
|
|
} from 'element-plus'
|
|
|
import { defineComponent } from 'vue'
|
|
@@ -63,6 +68,28 @@ export default defineComponent({
|
|
|
rows={5}
|
|
|
/>
|
|
|
</ElFormItem>
|
|
|
+ {teacherState.teacherCert.styleVideo.map((item: any, index: number) => (
|
|
|
+ <ElRow>
|
|
|
+ <ElCol span={12}>
|
|
|
+ <ElFormItem
|
|
|
+ label="个人风采"
|
|
|
+ prop={`styleVideo.${index}.videoUrl`}
|
|
|
+ rules={[{ required: true, message: '请上传视频' }]}
|
|
|
+ >
|
|
|
+ <ColUploadVideo v-model:modelValue={item.videoUrl} />
|
|
|
+ </ElFormItem>
|
|
|
+ </ElCol>
|
|
|
+ <ElCol span={10}>
|
|
|
+ <ElFormItem
|
|
|
+ style={{ paddingTop: '32px' }}
|
|
|
+ prop={`styleVideo.${index}.cover`}
|
|
|
+ rules={[{ required: true, message: '请上传视频封面' }]}
|
|
|
+ >
|
|
|
+ <ColUpload v-model:modelValue={item.cover} />
|
|
|
+ </ElFormItem>
|
|
|
+ </ElCol>
|
|
|
+ </ElRow>
|
|
|
+ ))}
|
|
|
<ElFormItem>
|
|
|
<div class="text-center w-full pt-8">
|
|
|
<ElButton
|