课程移除课时字段、数量更为题目数量、多选题只限制ABC、资源库课件名称更为名称、课件学时字段移除、课件大小更为大小’
This commit is contained in:
parent
f5eff86650
commit
9dd675302c
|
@ -27,11 +27,11 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
<!-- 课时 -->
|
<!-- 课时 -->
|
||||||
<a-col :span="9">
|
<!-- <a-col :span="9">
|
||||||
<a-form-item label="课时" :label-col="{ span: 4 }" :wrapper-col="{ span: 10 }">
|
<a-form-item label="课时" :label-col="{ span: 4 }" :wrapper-col="{ span: 10 }">
|
||||||
<a-input-number id="hour" v-model="dataValue" :min="1" :max="1000" :style="{ display: 'ln', width: '100%' }" />
|
<a-input-number id="hour" v-model="dataValue" :min="1" :max="1000" :style="{ display: 'ln', width: '100%' }" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col> -->
|
||||||
|
|
||||||
<!-- 学习内容简介 -->
|
<!-- 学习内容简介 -->
|
||||||
<a-col :span="18" :offset="3">
|
<a-col :span="18" :offset="3">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
<a-descriptions-item label="课时">{{ detailData.hour }}</a-descriptions-item>
|
<a-descriptions-item label="课时">{{ detailData.hour }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="学习内容">{{ detailData.learningContent }}</a-descriptions-item>
|
<a-descriptions-item label="学习内容">{{ detailData.learningContent }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="试题数量">{{ detailData.questionCount }}</a-descriptions-item>
|
<a-descriptions-item label="题⽬数量">{{ detailData.questionCount }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="备注">{{ detailData.remark }}</a-descriptions-item>
|
<a-descriptions-item label="备注">{{ detailData.remark }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="课程封面图">
|
<a-descriptions-item label="课程封面图">
|
||||||
<div v-if="detailData.imagePath">
|
<div v-if="detailData.imagePath">
|
||||||
|
|
|
@ -59,7 +59,7 @@ export default {
|
||||||
{ title: '课程名称', width: 'auto', align: 'center', dataIndex: 'courseName', key: 'courseName' },
|
{ title: '课程名称', width: 'auto', align: 'center', dataIndex: 'courseName', key: 'courseName' },
|
||||||
{ title: '课程类别', width: 'auto', align: 'center', dataIndex: 'courseTypeName', key: 'courseTypeName' },
|
{ title: '课程类别', width: 'auto', align: 'center', dataIndex: 'courseTypeName', key: 'courseTypeName' },
|
||||||
{ title: '课时/分', width: '160px', align: 'center', dataIndex: 'hour', key: 'hour' },
|
{ title: '课时/分', width: '160px', align: 'center', dataIndex: 'hour', key: 'hour' },
|
||||||
{ title: '数量', width: '160px', align: 'center', dataIndex: 'questionCount', key: 'questionCount' },
|
{ title: '题⽬数量', width: '160px', align: 'center', dataIndex: 'questionCount', key: 'questionCount' },
|
||||||
{ title: '操作', key: 'operation', width: '300px', align: 'center', scopedSlots: { customRender: 'action' } },
|
{ title: '操作', key: 'operation', width: '300px', align: 'center', scopedSlots: { customRender: 'action' } },
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,23 +11,19 @@
|
||||||
<a-tab-pane key="1" tab="视频上传" :disabled="fileUpload.videoForm.disabled">
|
<a-tab-pane key="1" tab="视频上传" :disabled="fileUpload.videoForm.disabled">
|
||||||
<div v-if="fileUpload.tabkey == 1" style="background: #ececec; padding: 30px">
|
<div v-if="fileUpload.tabkey == 1" style="background: #ececec; padding: 30px">
|
||||||
<a-card title="视频上传" :bordered="false" style="width: 100%">
|
<a-card title="视频上传" :bordered="false" style="width: 100%">
|
||||||
<div style="margin-bottom: 30px">
|
<div style="margin-bottom: 20px">
|
||||||
课件名称:
|
{{coursewareName}}:
|
||||||
<a-input placeholder="课件名称" v-model="fileUpload.videoForm.name" style="width: 40%" />
|
<a-input placeholder="课件名称" v-model="fileUpload.videoForm.name" style="width: 40%" />
|
||||||
</div>
|
</div>
|
||||||
<!-- <div style="margin-bottom: 30px; margin-top: 20px">
|
<!-- <div style="margin-bottom: 30px; margin-top: 20px">
|
||||||
课件分类:
|
课件分类:
|
||||||
<a-tree-select v-model="fileUpload.videoForm.classify" style="width: 300px" :tree-data="coursewareClassfiy" placeholder="请选择课程分类"></a-tree-select>
|
<a-tree-select v-model="fileUpload.videoForm.classify" style="width: 300px" :tree-data="coursewareClassfiy" placeholder="请选择课程分类"></a-tree-select>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div>课件学时:
|
<div v-if="ifResources == 0">课件学时:
|
||||||
<a-input-number :min="0" :max="100" :step="1" v-model="fileUpload.videoForm.learnHours" style="width: 140px" />
|
<a-input-number :min="0" :max="100" :step="1" v-model="fileUpload.videoForm.learnHours" style="width: 140px" />
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<!-- <div>课件学分:
|
<div style="margin-bottom: 20px;">{{bigOrSmall}}:
|
||||||
<a-input-number :min="0" :max="100" :step="1" v-model="fileUpload.videoForm.learnScore" style="width: 140px" />
|
|
||||||
</div>
|
|
||||||
<br /> -->
|
|
||||||
<div>课件大小:
|
|
||||||
<a-input :disabled="true" :value="fileUpload.videoForm.sizeStr" style="width: 140px" /> MB
|
<a-input :disabled="true" :value="fileUpload.videoForm.sizeStr" style="width: 140px" /> MB
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
@ -48,15 +44,15 @@
|
||||||
<!-- <a-tab-pane key="2" tab="文本上传" :disabled="true"> -->
|
<!-- <a-tab-pane key="2" tab="文本上传" :disabled="true"> -->
|
||||||
<div v-if="fileUpload.tabkey == 2" style="background: #ececec; padding: 30px">
|
<div v-if="fileUpload.tabkey == 2" style="background: #ececec; padding: 30px">
|
||||||
<a-card title="文本上传" :bordered="false" style="width: 100%">
|
<a-card title="文本上传" :bordered="false" style="width: 100%">
|
||||||
<div style="margin-bottom: 30px">
|
<div style="margin-bottom: 20px">
|
||||||
课件名称:
|
{{coursewareName}}:
|
||||||
<a-input placeholder="课件名称" v-model="fileUpload.textForm.name" style="width: 40%" />
|
<a-input placeholder="课件名称" v-model="fileUpload.textForm.name" style="width: 40%" />
|
||||||
</div>
|
</div>
|
||||||
<!-- <div style="margin-bottom: 30px; margin-top: 20px">
|
<!-- <div style="margin-bottom: 30px; margin-top: 20px">
|
||||||
课件分类:
|
课件分类:
|
||||||
<a-tree-select v-model="fileUpload.textForm.classify" style="width: 300px" :tree-data="coursewareClassfiy" placeholder="请选择课程分类"></a-tree-select>
|
<a-tree-select v-model="fileUpload.textForm.classify" style="width: 300px" :tree-data="coursewareClassfiy" placeholder="请选择课程分类"></a-tree-select>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div>课件学时:
|
<div v-if="ifResources == 0">课件学时:
|
||||||
<a-input-number :min="0" :max="10" :step="0.1" v-model="fileUpload.textForm.learnHours" style="width: 140px" />
|
<a-input-number :min="0" :max="10" :step="0.1" v-model="fileUpload.textForm.learnHours" style="width: 140px" />
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
@ -64,7 +60,7 @@
|
||||||
<a-input-number :min="0" :max="10" :step="0.1" v-model="fileUpload.textForm.learnScore" style="width: 140px" />
|
<a-input-number :min="0" :max="10" :step="0.1" v-model="fileUpload.textForm.learnScore" style="width: 140px" />
|
||||||
</div>
|
</div>
|
||||||
<br /> -->
|
<br /> -->
|
||||||
<div>课件大小:
|
<div style="margin-bottom: 20px;">{{bigOrSmall}}:
|
||||||
<a-input-number :disabled="true" v-model="fileUpload.textForm.sizeStr" :min="0" style="width: 140px" /> MB
|
<a-input-number :disabled="true" v-model="fileUpload.textForm.sizeStr" :min="0" style="width: 140px" /> MB
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
@ -165,7 +161,8 @@ export default {
|
||||||
pageName: '',
|
pageName: '',
|
||||||
// treeData: [],
|
// treeData: [],
|
||||||
ifResources: this.$route.query.ifResources,
|
ifResources: this.$route.query.ifResources,
|
||||||
// coursewareClassfiy: [],
|
coursewareName: this.$route.query.ifResources == 1 ? '名称' : '课件名称',
|
||||||
|
bigOrSmall: this.$route.query.ifResources == 1 ? '大小' : '课件大小',
|
||||||
courseware: {}, //课件详情
|
courseware: {}, //课件详情
|
||||||
queryParam: { coursewareId: this.$route.query.coursewareId }, //编辑传参
|
queryParam: { coursewareId: this.$route.query.coursewareId }, //编辑传参
|
||||||
successOssFile: [],
|
successOssFile: [],
|
||||||
|
@ -209,6 +206,7 @@ export default {
|
||||||
//数据字典加载
|
//数据字典加载
|
||||||
// this.dictionaryDropDown();
|
// this.dictionaryDropDown();
|
||||||
//判断是否加载数据
|
//判断是否加载数据
|
||||||
|
console.log("11111",this.coursewareName);
|
||||||
if (this.queryParam.coursewareId) this.load();
|
if (this.queryParam.coursewareId) this.load();
|
||||||
|
|
||||||
// 是否资源库ifResources
|
// 是否资源库ifResources
|
||||||
|
|
|
@ -355,16 +355,7 @@ export default {
|
||||||
} else if (!this.multiselect.answerC || this.multiselect.answerC === '') {
|
} else if (!this.multiselect.answerC || this.multiselect.answerC === '') {
|
||||||
this.$message.error('答案C不能为空!')
|
this.$message.error('答案C不能为空!')
|
||||||
return false
|
return false
|
||||||
} else if (!this.multiselect.answerD || this.multiselect.answerD === '') {
|
}
|
||||||
this.$message.error('答案D不能为空!')
|
|
||||||
return false
|
|
||||||
} else if (!this.multiselect.answerE || this.multiselect.answerD === '') {
|
|
||||||
this.$message.error('答案E不能为空!')
|
|
||||||
return false
|
|
||||||
} else if (!this.multiselect.answerF || this.multiselect.answerD === '') {
|
|
||||||
this.$message.error('答案F不能为空!')
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
let from = {}
|
let from = {}
|
||||||
from = this.multiselect
|
from = this.multiselect
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<div class="answer">A. {{ questionDetail.answerA }}</div>
|
<div class="answer">A. {{ questionDetail.answerA }}</div>
|
||||||
<div class="answer">B. {{ questionDetail.answerB }}</div>
|
<div class="answer">B. {{ questionDetail.answerB }}</div>
|
||||||
<div class="answer">C. {{ questionDetail.answerC }}</div>
|
<div class="answer">C. {{ questionDetail.answerC }}</div>
|
||||||
<div class="answer">D. {{ questionDetail.answerD }}</div>
|
<div v-if="questionDetail.answerD" class="answer">D. {{ questionDetail.answerD }}</div>
|
||||||
<div v-if="questionDetail.answerE" class="answer">E. {{ questionDetail.answerE }}</div>
|
<div v-if="questionDetail.answerE" class="answer">E. {{ questionDetail.answerE }}</div>
|
||||||
<div v-if="questionDetail.answerF" class="answer">F. {{ questionDetail.answerF }}</div>
|
<div v-if="questionDetail.answerF" class="answer">F. {{ questionDetail.answerF }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -102,13 +102,13 @@ const vueConfig = {
|
||||||
// 如果需要开启代理,请移除mockjs /src/main.jsL11
|
// 如果需要开启代理,请移除mockjs /src/main.jsL11
|
||||||
proxy: {
|
proxy: {
|
||||||
'/dawa': { // 捕获API的标志,如果API中有这个字符串,那么就开始匹配代理
|
'/dawa': { // 捕获API的标志,如果API中有这个字符串,那么就开始匹配代理
|
||||||
target: 'http://a.3a6.cn/dawa', // 地址可以是域名,也可以是IP地址。比如API请求/api/getList, 会被代理到请求http://www.baidu.com/api/getList 。
|
// target: 'http://a.3a6.cn/dawa', // 地址可以是域名,也可以是IP地址。比如API请求/api/getList, 会被代理到请求http://www.baidu.com/api/getList 。
|
||||||
// target: 'http://192.168.2.140:8080', // 地址可以是域名,也可以是IP地址。比如API请求/api/getList, 会被代理到请求http://www.baidu.com/api/getList 。
|
target: 'http://127.0.0.1:8080', // 地址可以是域名,也可以是IP地址。比如API请求/api/getList, 会被代理到请求http://www.baidu.com/api/getList 。
|
||||||
ws: false,
|
ws: false,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
// pathRewrite: {
|
||||||
'^/dawa': '/'
|
// '^/dawa': '/'
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue