提交 f6639455 编写于 作者: guangjun.yang's avatar guangjun.yang

9、审核页面中,视频的审核按钮及样式等

上级 fb4da509
......@@ -12,7 +12,7 @@
>
<div slot="title" style="text-align: left;">
<span style="font-weight: 700;">上传课程</span>
<span style="font-size: 12px;color: #ED3131;margin-left: 4px;"> 请认真核对上传内容,一旦提交后将不能修改</span>
<span style="font-size: 12px;color: #ED3131;margin-left: 4px;">上传信息需要审核,请认真核对上传内容,一旦提交后将不能修改</span>
</div>
<div v-show="step == 1" class="course-content">
<el-form
......@@ -62,7 +62,7 @@
<div class="basic-item-icon">
<span class="require">*</span>
<el-form-item label="课程视频:" prop="range" >
<el-form-item label="课程视频:" prop="range" class="valid-msg">
<el-upload
class="upload-video"
action="#"
......@@ -70,6 +70,7 @@
:limit="3"
:on-exceed="handleExceed"
:show-file-list="false"
:disabled="needShowUploadProcess"
>
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">
......@@ -109,6 +110,7 @@
</li>
<span v-show="needShowUploadProcess" class="upload-process" :style="{'width': (uploadProgress/100 * 340) + 'px'}"></span>
</ul>
<div style="color:red;position:absolute;top:60px;" v-if="noLecture && !formData.courseCustomChapterModels[0].courseCustomLectureModelList.length">您还未上传视频</div>
<span v-if="!formData.courseCustomChapterModels[0].courseCustomLectureModelList.length" v-show="needShowUploadProcess" class="upload-process" :style="{'width': (uploadProgress/100 * 340) + 'px'}"></span>
</div>
</el-upload>
......@@ -262,7 +264,7 @@
<img class="success-img" src="../../../assets/image/phrase3/icon-audit-success.png" />
<span class="tips-1">您上传的课程已成功提交,预计在3-5个工作日内完成审核</span>
<span class="tips-2">审核通过后,您才可以选择课程完成项目配置。如有任何疑问可联系云鹊医400-920-8877</span>
<el-button type="primary" size="small" icon="el-icon-back" @click="backToOrgCourse">返回机构课程</el-button>
<el-button type="primary" icon="el-icon-back" @click="backToOrgCourse">返回机构课程</el-button>
</div>
<div v-show="step == 1" slot="footer" class="dialog-footer">
<el-button @click="dialogObj.visible=true">取 消</el-button>
......@@ -434,6 +436,7 @@ export default {
confirmMsg: "取 消",
hideMsg: "确 定"
},
noLecture: false,
};
},
props: {
......@@ -679,9 +682,15 @@ export default {
return this.$confirm(`确定移除 ${file.name}?`);
},
//表单校验
// 表单校验
// TODO
submitForm(formName) {
this.needShowAuditMsg = false;
let hasLecture = this.formData.courseCustomChapterModels[0].courseCustomLectureModelList.length > 0;
if(!hasLecture) {
this.noLecture = true;
return;
}
this.$refs[formName].validate(valid => {
if (valid) {
this.insertOrUpdate();
......
......@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
}
if( process.env.BUILD_ENV == "development" ){ // 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
config.headers['token'] = 'D800B8A02DC24E5492C9AFE3823859EA';
config.headers['token'] = '5BAD5922F4654FD598FF7EB336B12A48';
// config.headers['token'] = localStorage.getItem('storageToken')
}else{
config.headers['token'] = localStorage.getItem('storageToken')
......
......@@ -60,7 +60,14 @@
<span class="title">视频{{index + 1}}</span>
<img src="../../assets/image/phrase3/icon-pin.png" />
<span class="name" @click="previewVideoAction(lecture)">{{lecture.resourceModel && lecture.resourceModel.name}}</span>
<span v-show="formData.checkStatus == 0" class="edit-wrapper" style="margin-left: 100px;" @click="auditField(formData.courseCustomChapterModels[0].courseCustomLectureModelList[index], 'contentCheck')">
<img class="edit-img" src="../../assets/image/phrase3/icon-pz.png" />拒绝原因
</span>
</li>
<div style="top: 29px;" v-show="needShowAuditMsg && formData.courseCustomChapterModels[0].courseCustomLectureModelList[index].contentCheck && formData.checkStatus != 2" class="error-video">
<span>{{formData.courseCustomChapterModels[0].courseCustomLectureModelList[index].contentCheck}}</span>
<span v-show="formData.checkStatus == 0" class="cancle" @click="cancleAudit(formData.courseCustomChapterModels[0].courseCustomLectureModelList[index], 'contentCheck')">X</span>
</div>
</ul>
<div class="video-name">
<span class="title">
......@@ -81,7 +88,7 @@
<img class="edit-img" src="../../assets/image/phrase3/icon-pz.png" />拒绝原因
</span>
</span>
<div v-show="needShowAuditMsg && formData.courseCustomChapterModels[0].courseCustomLectureModelList[index].nameCheck && formData.checkStatus != 2" class="error-video">
<div style="top: 86px;" v-show="needShowAuditMsg && formData.courseCustomChapterModels[0].courseCustomLectureModelList[index].nameCheck && formData.checkStatus != 2" class="error-video">
<span>{{formData.courseCustomChapterModels[0].courseCustomLectureModelList[index].nameCheck}}</span>
<span v-show="formData.checkStatus == 0" class="cancle" @click="cancleAudit(formData.courseCustomChapterModels[0].courseCustomLectureModelList[index], 'nameCheck')">X</span>
</div>
......@@ -747,8 +754,9 @@ export default {
justify-content: space-between;
align-items: center;
.video-wapper {
height: 28px;
line-height: 28px;
height: 40px;
line-height: 40px;
margin-bottom: 10px;
.title {
display: inline-block;
width: 70px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册