学时,学分计算更改
This commit is contained in:
parent
9d51a3a31e
commit
5597f5c8bf
|
@ -54,11 +54,11 @@
|
||||||
<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>课件学时:
|
||||||
<a-input-number :min="0" :max="10" :step="0.1" :defaultValue=0 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 />
|
||||||
<div>课件学分:
|
<div>课件学分:
|
||||||
<a-input-number :min="0" :max="10" :step="0.1" :defaultValue=0 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>课件大小:
|
||||||
|
@ -120,32 +120,6 @@
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<a-button type="primary" @click="showModal" style="margin-left: 20px"> 添加分类 </a-button>
|
<a-button type="primary" @click="showModal" style="margin-left: 20px"> 添加分类 </a-button>
|
||||||
|
|
||||||
<!-- 课件分类弹框 -->
|
|
||||||
<!-- <a-modal v-model="fileUpload.visible" title="模板下载" cancelText="关闭" :ok-button-props="{ style: { display: 'none' } }">
|
|
||||||
<s-table ref="table" :rowKey="(record) => record.id" :columns="fileUpload.columns" :alert="false" :data="loadData" :showPagination="false" :expandRowByClick="true">
|
|
||||||
<span slot="type" slot-scope="text, record">
|
|
||||||
<a-tag color="cyan" v-if="text === 0">
|
|
||||||
{{ record.type | typeFilter }}
|
|
||||||
</a-tag>
|
|
||||||
<a-tag color="blue" v-if="text === 1">
|
|
||||||
{{ record.type | typeFilter }}
|
|
||||||
</a-tag>
|
|
||||||
<a-tag color="purple" v-if="text === 2">
|
|
||||||
{{ record.type | typeFilter }}
|
|
||||||
</a-tag>
|
|
||||||
</span>
|
|
||||||
<span slot="action" slot-scope="text, record">
|
|
||||||
<template>
|
|
||||||
<a v-if="hasPerm('sys:menu:edit')" @click="$refs.menuForm.edit(record)">编辑</a>
|
|
||||||
<a-divider type="vertical" v-if="hasPerm('sys:menu:edit')" />
|
|
||||||
<a-popconfirm v-if="hasPerm('sys:menu:delete')" placement="topRight" title="删除本菜单与下级?" @confirm="() => handleDel(record)">
|
|
||||||
<a>删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</template>
|
|
||||||
</span>
|
|
||||||
</s-table>
|
|
||||||
</a-modal> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-bottom: 30px">课件大小:
|
<div style="margin-bottom: 30px">课件大小:
|
||||||
<a-time-picker placeholder="课件时长" :minute-step="1" :second-step="1" v-model="thirdAddress.sizeStr" />
|
<a-time-picker placeholder="课件时长" :minute-step="1" :second-step="1" v-model="thirdAddress.sizeStr" />
|
||||||
|
@ -199,15 +173,16 @@ export default {
|
||||||
sizeStr: '0', //视频大小
|
sizeStr: '0', //视频大小
|
||||||
type: '1',
|
type: '1',
|
||||||
videoPath: [],
|
videoPath: [],
|
||||||
learnHours:0,
|
// learnHours:0.0,
|
||||||
learnScore:0
|
// learnScore:0.0
|
||||||
},
|
},
|
||||||
textForm: {
|
textForm: {
|
||||||
//文本上传表单
|
//文本上传表单
|
||||||
|
sizeStr: '0',
|
||||||
type: '2', // 用于表示tabkey 1-视频上传 2-文本上传 3-视频服务连接 4-第三方连接
|
type: '2', // 用于表示tabkey 1-视频上传 2-文本上传 3-视频服务连接 4-第三方连接
|
||||||
videoPath: [],
|
videoPath: [],
|
||||||
learnHours:0,
|
// learnHours:0.0,
|
||||||
learnScore:0
|
// learnScore:0.0
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
videoServerLink: {
|
videoServerLink: {
|
||||||
|
@ -267,6 +242,8 @@ export default {
|
||||||
callback(key) {
|
callback(key) {
|
||||||
this.fileUpload.videoForm = {};
|
this.fileUpload.videoForm = {};
|
||||||
this.fileUpload.textForm = {};
|
this.fileUpload.textForm = {};
|
||||||
|
console.log("aaaaaaa ",this.fileUpload.videoForm);
|
||||||
|
console.log("aaaaaaa ",this.fileUpload.textForm);
|
||||||
this.videoPath = []; //置空文件
|
this.videoPath = []; //置空文件
|
||||||
|
|
||||||
this.successOssFile = this.successOssFile.splice(this.successOssFile.length, 0); //清空数组
|
this.successOssFile = this.successOssFile.splice(this.successOssFile.length, 0); //清空数组
|
||||||
|
@ -274,7 +251,7 @@ export default {
|
||||||
this.fileUpload.tabkey = key; //等于当前的Key
|
this.fileUpload.tabkey = key; //等于当前的Key
|
||||||
|
|
||||||
// 数据初始化
|
// 数据初始化
|
||||||
this.initialize(key)
|
// this.initialize(key)
|
||||||
},
|
},
|
||||||
|
|
||||||
//获取Tonken
|
//获取Tonken
|
||||||
|
@ -446,6 +423,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
//给课程ID
|
//给课程ID
|
||||||
|
this.fileUpload.videoForm.type = "1"
|
||||||
this.fileUpload.videoForm.courseId = this.$route.query.courseId;
|
this.fileUpload.videoForm.courseId = this.$route.query.courseId;
|
||||||
this.fileUpload.videoForm.videoPath = this.videoPath;
|
this.fileUpload.videoForm.videoPath = this.videoPath;
|
||||||
this.fileUpload.videoForm.ifResources = this.$route.query.ifResources || 0;
|
this.fileUpload.videoForm.ifResources = this.$route.query.ifResources || 0;
|
||||||
|
@ -463,6 +441,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
//给课程ID
|
//给课程ID
|
||||||
|
this.fileUpload.textForm.type = "2"
|
||||||
this.fileUpload.textForm.courseId = this.$route.query.courseId;
|
this.fileUpload.textForm.courseId = this.$route.query.courseId;
|
||||||
this.fileUpload.textForm.type = this.fileUpload.tabkey;
|
this.fileUpload.textForm.type = this.fileUpload.tabkey;
|
||||||
this.fileUpload.textForm.videoPath = this.videoPath;
|
this.fileUpload.textForm.videoPath = this.videoPath;
|
||||||
|
@ -571,18 +550,18 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
//视频上传和文本上传数据初始化
|
//视频上传和文本上传数据初始化
|
||||||
initialize(key){
|
// initialize(key){
|
||||||
if(key == 1) {
|
// if(key == 1) {
|
||||||
this.fileUpload.videoForm.sizeStr = 0.0
|
// this.fileUpload.videoForm.sizeStr = 0
|
||||||
this.fileUpload.videoForm.learnHours = 0.0
|
// this.fileUpload.videoForm.learnHours == 0
|
||||||
this.fileUpload.videoForm.learnScore= 0.0
|
// this.fileUpload.videoForm.learnScore= 0
|
||||||
}
|
// }
|
||||||
if(key == 2){
|
// if(key == 2){
|
||||||
this.fileUpload.textForm.sizeStr = 0.0
|
// this.fileUpload.textForm.sizeStr = 0
|
||||||
this.fileUpload.textForm.learnHours = 0.0
|
// this.fileUpload.textForm.learnHours = 0
|
||||||
this.fileUpload.textForm.learnScore= 0.0
|
// this.fileUpload.textForm.learnScore= 0.0
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue