mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-24 18:22:53 +08:00
Compare commits
10 Commits
master-202
...
20251104-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
782bcc31e5 | ||
|
|
1a95852912 | ||
|
|
f5d865ccc3 | ||
|
|
65673561d8 | ||
|
|
2cbb379fa6 | ||
|
|
6d4af3aa2d | ||
|
|
5ebee96ce4 | ||
| 408d6a1612 | |||
| b1508ad226 | |||
| a9764bf2f8 |
@@ -22,7 +22,7 @@ const pageList = function(data) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 选择课件的查询,这里也是分页查询,只是返回的内容,字段会很少,用于课件制作那选择已有课件内容。
|
* 选择课件的查询,这里也是分页查询,只是返回的内容,字段会很少,用于课件制作那选择已有课件内容。
|
||||||
*
|
*
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
* 查询参数如上面pageList方法
|
* 查询参数如上面pageList方法
|
||||||
*/
|
*/
|
||||||
@@ -47,7 +47,9 @@ const findList = function(data) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
const saveUpload = function(data) {
|
const saveUpload = function(data) {
|
||||||
return ajax.post('/xboe/m/course/file/upload/save', data);
|
return ajax.post('/xboe/m/course/file/upload/save', data, {
|
||||||
|
timeout: 60000
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -88,4 +90,4 @@ export default {
|
|||||||
batchUpdate,
|
batchUpdate,
|
||||||
detail,
|
detail,
|
||||||
delFile
|
delFile
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 46 KiB |
@@ -50,7 +50,7 @@
|
|||||||
<el-input-number v-model="duration" size="mini" :min="1" :max="100"></el-input-number>
|
<el-input-number v-model="duration" size="mini" :min="1" :max="100"></el-input-number>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<el-upload class="upload-demo" :headers="headers" :data="data" drag :action="uploadFileUrl" :on-success="handleUploadSuccess" :before-upload="handleBeforeUpload">
|
<el-upload ref="uploadRef" class="upload-demo" :headers="headers" :data="data" drag :action="uploadFileUrl" :on-success="handleUploadSuccess" :before-upload="handleBeforeUpload">
|
||||||
<i class="el-icon-upload"></i>
|
<i class="el-icon-upload"></i>
|
||||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
||||||
<div class="el-upload__tip" slot="tip">文件大小限制:{{curComType.maxSizeName}},支持的文件类型:{{curComType.fileTypes.join(',')}}</div>
|
<div class="el-upload__tip" slot="tip">文件大小限制:{{curComType.maxSizeName}},支持的文件类型:{{curComType.fileTypes.join(',')}}</div>
|
||||||
@@ -195,6 +195,7 @@
|
|||||||
// this.cware.content.content=result.filePath;
|
// this.cware.content.content=result.filePath;
|
||||||
}else{
|
}else{
|
||||||
this.$message.error(rs.message);
|
this.$message.error(rs.message);
|
||||||
|
this.$refs.uploadRef.clearFiles();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -483,8 +483,11 @@ export default {
|
|||||||
} else if (this.form.device2 === true) {
|
} else if (this.form.device2 === true) {
|
||||||
this.form.device = 2;
|
this.form.device = 2;
|
||||||
}
|
}
|
||||||
//时长,秒与分钟的转化
|
// 时长,秒与分钟的转化
|
||||||
//if(this.form.)
|
if (this.form.minute) {
|
||||||
|
this.form.duration = this.form.minute * 60;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { status,message} = await coueseFile.batchUpdate([this.form]);
|
const { status,message} = await coueseFile.batchUpdate([this.form]);
|
||||||
if (status === 200) {
|
if (status === 200) {
|
||||||
|
|||||||
@@ -123,16 +123,6 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="创建人" prop="sysCreateBy"></el-table-column>
|
<el-table-column label="创建人" prop="sysCreateBy"></el-table-column>
|
||||||
<el-table-column label="创建时间" prop="sysCreateTime" width="230px" show-overflow-tooltip></el-table-column>
|
<el-table-column label="创建时间" prop="sysCreateTime" width="230px" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="审核人" prop="auditUser" width="130px" show-overflow-tooltip>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.auditUser || '-' }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="审核时间" prop="auditTime" width="230px" show-overflow-tooltip>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.auditTime || '-' }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="是否停用" width="130px">
|
<el-table-column label="是否停用" width="130px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.enabled == true ? '启用' : '停用' }}
|
{{ scope.row.enabled == true ? '启用' : '停用' }}
|
||||||
|
|||||||
@@ -480,6 +480,7 @@
|
|||||||
defaultMaxTime:1800, //非音频默认最大时间
|
defaultMaxTime:1800, //非音频默认最大时间
|
||||||
warn:"测试内容",
|
warn:"测试内容",
|
||||||
warnTitle:"测试标题",
|
warnTitle:"测试标题",
|
||||||
|
isFinishingStudyItem: false, // 防止重复调用完成状态更新接口
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -1684,12 +1685,17 @@
|
|||||||
//这种可能没有,不过这里也是为了万中那个1
|
//这种可能没有,不过这里也是为了万中那个1
|
||||||
!this.tentative && this.saveStudyInfo();
|
!this.tentative && this.saveStudyInfo();
|
||||||
} else {
|
} else {
|
||||||
|
// 如果正在处理完成请求,则直接返回,避免重复调用
|
||||||
|
if (this.isFinishingStudyItem) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let params = {
|
let params = {
|
||||||
itemId: this.contentData.studyItemId,
|
itemId: this.contentData.studyItemId,
|
||||||
studyId: this.studyId,
|
studyId: this.studyId,
|
||||||
courseId: this.courseId,
|
courseId: this.courseId,
|
||||||
cnum: this.totalContent
|
cnum: this.totalContent
|
||||||
}
|
}
|
||||||
|
this.isFinishingStudyItem = true; // 设置标志位
|
||||||
apiVideoStudy.finishStudyItem(params).then(res => {
|
apiVideoStudy.finishStudyItem(params).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.contentData.status = 9;
|
this.contentData.status = 9;
|
||||||
@@ -1697,6 +1703,10 @@
|
|||||||
} else {
|
} else {
|
||||||
console.log("记录完成学习失败:" + res.message + "," + res.error);
|
console.log("记录完成学习失败:" + res.message + "," + res.error);
|
||||||
}
|
}
|
||||||
|
this.isFinishingStudyItem = false; // 重置标志位
|
||||||
|
}).catch(error => {
|
||||||
|
console.error("记录完成学习出错:", error);
|
||||||
|
this.isFinishingStudyItem = false; // 出错时也重置标志位
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1960,16 +1970,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.player-box {
|
.player-box {
|
||||||
position: relative;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
margin: 20px auto;
|
margin: 20px auto;
|
||||||
height: 187px;
|
height: 187px;
|
||||||
background: rgba(74, 74, 74, .5);
|
background: rgba(74, 74, 74, .8);
|
||||||
border-radius: 33px;
|
border-radius: 33px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
top: 50%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
|
||||||
.player-praise {
|
.player-praise {
|
||||||
margin-top: 25px;
|
margin-top: 25px;
|
||||||
|
|||||||
Reference in New Issue
Block a user