mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
重写
This commit is contained in:
@@ -295,6 +295,7 @@ export default {
|
|||||||
this.getPopularity();
|
this.getPopularity();
|
||||||
this.getPositive();
|
this.getPositive();
|
||||||
this.couresreso();
|
this.couresreso();
|
||||||
|
this.retest();
|
||||||
window.addEventListener(
|
window.addEventListener(
|
||||||
"scroll",
|
"scroll",
|
||||||
this.handleScroll
|
this.handleScroll
|
||||||
@@ -332,19 +333,18 @@ export default {
|
|||||||
if (xmlhttp.status == 200) {
|
if (xmlhttp.status == 200) {
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
$this.Internet = 1;
|
$this.Internet = 1;
|
||||||
let event = {
|
$this.$store.dispatch("userTrigger", {
|
||||||
key: "ViewCase",//后台的事件key 发布文章且审核通过
|
key: "ViewCase",//后台的事件key 发布文章且审核通过
|
||||||
title: '查看案例',//事件的标题
|
title: '查看案例',//事件的标题
|
||||||
parameters: "",//用户自定义参数 name:value,name:value
|
parameters: "",//用户自定义参数 name:value,name:value
|
||||||
content: '查看了案例',//事件的内容
|
content: '查看了案例',//事件的内容
|
||||||
objId: this.resolveId,//关联的id
|
objId: this.resolveId,//关联的id
|
||||||
objType: "3",//关联的类型
|
objType: "3",//关联的类型
|
||||||
objInfo: this.caseDetail.title,
|
objInfo: this.caseDetail?.title,
|
||||||
aid: this.userInfo.aid, //当前登录人的id
|
aid: this.userInfo.aid, //当前登录人的id
|
||||||
aname: this.userInfo.name,//当前人的姓名
|
aname: this.userInfo.name,//当前人的姓名
|
||||||
status: 1 //状态,直接写1
|
status: 1 //状态,直接写1
|
||||||
}
|
});
|
||||||
$this.$store.dispatch("userTrigger", event);
|
|
||||||
$this.sendEventData();
|
$this.sendEventData();
|
||||||
} else {
|
} else {
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
@@ -576,7 +576,6 @@ export default {
|
|||||||
if (this.caseDetail.filePath) {
|
if (this.caseDetail.filePath) {
|
||||||
//this.pdfPath=this.basePath+this.caseDetail.filePath;
|
//this.pdfPath=this.basePath+this.caseDetail.filePath;
|
||||||
this.createPlayUrl(this.caseDetail.filePath);
|
this.createPlayUrl(this.caseDetail.filePath);
|
||||||
this.retest();
|
|
||||||
//this.sendEventData();//移到检查之后
|
//this.sendEventData();//移到检查之后
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('内容文件不存在或已被删除,请与管理员联系');
|
this.$message.error('内容文件不存在或已被删除,请与管理员联系');
|
||||||
|
|||||||
Reference in New Issue
Block a user