mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 13:56:43 +08:00
提交对U币处理的修改
This commit is contained in:
@@ -1,15 +1,5 @@
|
||||
<template>
|
||||
<div >
|
||||
<!-- <Remark>
|
||||
1.课程的管理,状态:未发布,待审核,已审核,审核不通过,已发布
|
||||
<br />
|
||||
2.关于动态配置列,先记录下来,后续再设置。
|
||||
<br />
|
||||
3.课程的创建,可不可以先创建课程基本信息,然后再填写目录课程等资源内容??
|
||||
<br />
|
||||
4."管理"的功能界面需要定一下,
|
||||
<br />
|
||||
</Remark> -->
|
||||
<div style="padding: 12px 12px 10px 22px;">
|
||||
<!-- <div style="display: flex;justify-content:flex-start;"> -->
|
||||
<!-- <el-row :gutter="5">
|
||||
@@ -667,9 +657,9 @@ export default {
|
||||
},
|
||||
showQrimage(row) {
|
||||
this.qrcodeShow = true;
|
||||
|
||||
|
||||
let urlPre=window.location.protocol+'//'+window.location.host;
|
||||
|
||||
|
||||
//动态的地址
|
||||
//urlPre=urlPre+'/m?returnUrl='+urlPre+'/mobile/pages/login/loading?returnUrl=';
|
||||
//固定的地址
|
||||
@@ -775,8 +765,7 @@ export default {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
})
|
||||
.then(async() => {
|
||||
}).then(async() => {
|
||||
let params = {
|
||||
id: row.id,
|
||||
title: row.name,
|
||||
@@ -786,21 +775,23 @@ export default {
|
||||
// {id:课程id,多个使用逗号分隔,Boolean erasable 是否物理删除,title:课程的名称, remark 备注}
|
||||
const {status} = await apiCourse.del(params);
|
||||
if(status === 200) {
|
||||
this.$message.success('操作成功!');
|
||||
|
||||
let event = {
|
||||
key: "DeleteCourse",//后台的事件key 发布文章且审核通过
|
||||
title: '删除课程',//事件的标题
|
||||
parameters:"",//用户自定义参数 name:value,name:value
|
||||
content: '删除课程',//事件的内容
|
||||
objId: row.id,//关联的id
|
||||
objType: "1",//关联的类型
|
||||
objInfo:row.name,
|
||||
aid: this.userInfo.aid, //当前登录人的id
|
||||
aname: this.userInfo.name,//当前人的姓名
|
||||
status: 1 //状态,直接写1
|
||||
this.$message.success('操作成功!'); //只是之前发布过的课程删除才可
|
||||
if(!row.erasable){
|
||||
let event = {
|
||||
key: "CourseDelete",//被管理员删除
|
||||
title: '被管理员删除课程',//事件的标题
|
||||
parameters:"author:"+row.sysCreateAid,//作者,一般这种情况不是管理员自己添加的
|
||||
content: '被管理员删除课程',//事件的内容
|
||||
objId: row.id,//关联的id
|
||||
objType: "1",//关联的类型
|
||||
objInfo:row.name,
|
||||
aid: this.userInfo.aid, //当前登录人的id
|
||||
aname: this.userInfo.name,//当前人的姓名
|
||||
status: 1 //状态,直接写1
|
||||
}
|
||||
this.$store.dispatch("userTrigger", event);
|
||||
}
|
||||
this.$store.dispatch("userTrigger", event);
|
||||
|
||||
this.searchData();
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user