|
@@ -1147,7 +1147,7 @@ export default {
|
|
|
components: { EditorBar, AnswerData, AnswerData2, pdf, ImgDraw, Time },
|
|
|
data() {
|
|
|
return {
|
|
|
- pdfUrl:"",
|
|
|
+ pdfUrl: "",
|
|
|
// "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E4%B8%8A%E8%AF%BE%E8%AF%BE%E4%BB%B6---%E4%BA%94%E4%B8%8Bintroduce%20a%20festival%20%28Final%20%29%281%291661829428281.pdf",
|
|
|
pptImgUrl: "",
|
|
|
isLoading: false,
|
|
@@ -1265,7 +1265,7 @@ export default {
|
|
|
// { tools: [29] },
|
|
|
// "",
|
|
|
// "",
|
|
|
-
|
|
|
+ handle: {page: 1, type: 0, userid: '', isPlay: 0},
|
|
|
//1、电子白板 2、便签 3、思维导图 4、问卷调查 5、量规评分 6、协同文档 7、思维网格 8、素材库 9、选择题 10、倒计时 11、问答题 12、选人回答 13、分小组 14、老师对提交作业进行评价 15、问答 16、作业提交 17、学习资料 18、训练平台 19、目标管理 20、课程设计 21、编程平台 22、AI体验 23、python 24、AI平台
|
|
|
howTools: 0,
|
|
|
worksDetail: [],
|
|
@@ -1554,17 +1554,27 @@ export default {
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
pick() {
|
|
|
+ this.handle.type = 2;
|
|
|
+ this.handle.userid = this.answerStudent.id;
|
|
|
let params = [
|
|
|
{
|
|
|
- h: JSON.stringify({ type: 2, userid: this.answerStudent.id }),
|
|
|
+ h: JSON.stringify(this.handle),
|
|
|
cid: this.cid,
|
|
|
},
|
|
|
];
|
|
|
this.ajax
|
|
|
- .post(this.$store.state.api + "updatePPTHandle", params)
|
|
|
+ .post(this.$store.state.api + "updatePptPage", params)
|
|
|
.then((res) => {
|
|
|
this.answerStudent = "";
|
|
|
this.dialogVisible = false;
|
|
|
+ let mindinfo = this.setInfo(
|
|
|
+ this.cid,
|
|
|
+ "us.mindNetwork",
|
|
|
+ this.handle,
|
|
|
+ "update",
|
|
|
+ this.userid
|
|
|
+ );
|
|
|
+ this.updateSocket(mindinfo)
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
@@ -1575,9 +1585,10 @@ export default {
|
|
|
},
|
|
|
getPage(page) {
|
|
|
console.log(page);
|
|
|
+ this.handle.page = page;
|
|
|
let params = [
|
|
|
{
|
|
|
- page: page,
|
|
|
+ page: JSON.stringify(this.handle),
|
|
|
id: this.cid,
|
|
|
},
|
|
|
];
|
|
@@ -1594,7 +1605,7 @@ export default {
|
|
|
} else {
|
|
|
this.videoBlock = 0;
|
|
|
}
|
|
|
- this.playerH("");
|
|
|
+ this.playerH({ type: 0, isPlay: 0, userid: "" });
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
@@ -1609,7 +1620,7 @@ export default {
|
|
|
.then((r) => {
|
|
|
let res = r.data[0][0];
|
|
|
this.pdfUrl = res.url;
|
|
|
- this.tools = JSON.parse(res.content)
|
|
|
+ this.tools = JSON.parse(res.content);
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
// this.$message.error("查询失败");
|
|
@@ -1811,15 +1822,26 @@ export default {
|
|
|
this.playerO = this.playerOptions;
|
|
|
},
|
|
|
playerH(handle) {
|
|
|
+ this.handle.type = handle.type;
|
|
|
+ this.handle.isPlay = handle.isPlay;
|
|
|
let params = [
|
|
|
{
|
|
|
- h: handle,
|
|
|
+ h: JSON.stringify(this.handle),
|
|
|
cid: this.cid,
|
|
|
},
|
|
|
];
|
|
|
this.ajax
|
|
|
- .post(this.$store.state.api + "updatePPTHandle", params)
|
|
|
- .then((res) => {})
|
|
|
+ .post(this.$store.state.api + "updatePptPage", params)
|
|
|
+ .then((res) => {
|
|
|
+ let mindinfo = this.setInfo(
|
|
|
+ this.cid,
|
|
|
+ "us.mindNetwork",
|
|
|
+ this.handle,
|
|
|
+ "update",
|
|
|
+ this.userid
|
|
|
+ );
|
|
|
+ this.updateSocket(mindinfo)
|
|
|
+ })
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
|
});
|
|
@@ -1827,11 +1849,11 @@ export default {
|
|
|
onPlayerPlay() {},
|
|
|
onPlayerPlayZ(player) {
|
|
|
console.log(player);
|
|
|
- this.playerH(JSON.stringify({ type: 1, isPlay: 1 }));
|
|
|
+ this.playerH({ type: 1, isPlay: 1 });
|
|
|
}, // 暂停回调
|
|
|
onPlayerPause(player) {
|
|
|
console.log(player);
|
|
|
- this.playerH(JSON.stringify({ type: 1, isPlay: 2 }));
|
|
|
+ this.playerH({ type: 1, isPlay: 2 });
|
|
|
},
|
|
|
// 视频播放结束回调
|
|
|
onPlayerEnded(player) {
|
|
@@ -1932,6 +1954,44 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ setInfo(id, navid, content, type, userid) {
|
|
|
+ var _data = {
|
|
|
+ "us.realTimeClass": [
|
|
|
+ {
|
|
|
+ sendId: userid, //发送人id
|
|
|
+ receiveId: id, //文件id
|
|
|
+ type: navid, //消息类型
|
|
|
+ messageInfo: {
|
|
|
+ id: id, //操作ID
|
|
|
+ type: type, //类型
|
|
|
+ content: content, //内容
|
|
|
+ docId: id, //文档id
|
|
|
+ pageId: top.US.pageId, //当前页面id
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ return _data;
|
|
|
+ },
|
|
|
+ updateSocket(mindinfo) {
|
|
|
+ let params = [
|
|
|
+ {
|
|
|
+ type: "send",
|
|
|
+ mindinfo: encodeURIComponent(
|
|
|
+ encodeURIComponent(JSON.stringify(mindinfo))
|
|
|
+ ),
|
|
|
+ post: 1,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.socket, params)
|
|
|
+ .then((res) => {
|
|
|
+ console.log(res);
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
this.getData();
|
|
@@ -1965,7 +2025,8 @@ export default {
|
|
|
|
|
|
.imgMiddle {
|
|
|
width: 100%;
|
|
|
- height: calc(100% - 45px);
|
|
|
+ /* height: calc(100% - 45px); */
|
|
|
+ height: calc(100%);
|
|
|
position: relative;
|
|
|
/* max-height: 920px; */
|
|
|
}
|
|
@@ -2020,14 +2081,15 @@ export default {
|
|
|
|
|
|
.isNoOther {
|
|
|
width: 100%;
|
|
|
- height: 100%;
|
|
|
- /* height: calc(100% - 45px); */
|
|
|
+ /* height: 100%; */
|
|
|
+ height: calc(100% - 45px);
|
|
|
display: flex;
|
|
|
}
|
|
|
|
|
|
.imghalf {
|
|
|
width: 60% !important;
|
|
|
- height: calc(100% - 45px);
|
|
|
+ /* height: calc(100% - 45px); */
|
|
|
+ height: calc(100%);
|
|
|
/* max-height: 920px; */
|
|
|
}
|
|
|
.answerBox {
|