mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
提交对U币处理的修改
This commit is contained in:
@@ -347,21 +347,22 @@ export default {
|
|||||||
if(this.unicom) {
|
if(this.unicom) {
|
||||||
this.$store.dispatch("unicomPraises",false)
|
this.$store.dispatch("unicomPraises",false)
|
||||||
}
|
}
|
||||||
|
//自己给自己点赞不算
|
||||||
let event = {
|
if(this.userInfo.aid!=this.data.sysCreateAid){
|
||||||
key: "cancelPraise",//
|
let event = {
|
||||||
title: "取消点赞",//事件的标题
|
key: "CancelPraise",//
|
||||||
parameters:"author:"+this.data.sysCreateAid,//用户自定义参数 name:value,name:value
|
title: "取消点赞",//事件的标题
|
||||||
content: "取消点赞"+postData.title,//事件的内容
|
parameters:"author:"+this.data.sysCreateAid,//用户自定义参数 name:value,name:value
|
||||||
objId: this.data.id,//关联的id
|
content: "取消点赞"+postData.title,//事件的内容
|
||||||
objType: this.type,//关联的类型
|
objId: this.data.id,//关联的id
|
||||||
objInfo: this.data.title,
|
objType: this.type,//关联的类型
|
||||||
aid: this.userInfo.aid, //当前登录人的id
|
objInfo: this.data.title,
|
||||||
aname: this.userInfo.name,//当前人的姓名
|
aid: this.userInfo.aid, //当前登录人的id
|
||||||
status: 1 //状态,直接写1
|
aname: this.userInfo.name,//当前人的姓名
|
||||||
|
status: 1 //状态,直接写1
|
||||||
|
}
|
||||||
|
this.$store.dispatch("userTrigger", event);
|
||||||
}
|
}
|
||||||
this.$store.dispatch("userTrigger", event);
|
|
||||||
|
|
||||||
this.$message({message:'取消点赞',type:'success'})
|
this.$message({message:'取消点赞',type:'success'})
|
||||||
}else{
|
}else{
|
||||||
console.log('取消失败:'+res.message);
|
console.log('取消失败:'+res.message);
|
||||||
@@ -385,19 +386,21 @@ export default {
|
|||||||
// }
|
// }
|
||||||
this.isPraise=true;
|
this.isPraise=true;
|
||||||
this.$message({message:'点赞成功',type:'success'})
|
this.$message({message:'点赞成功',type:'success'})
|
||||||
let event = {
|
if(this.userInfo.aid!=this.data.sysCreateAid){
|
||||||
key: "Praise",//后台的事件key 发布文章且审核通过
|
let event = {
|
||||||
title: "点赞",//事件的标题
|
key: "Praise",//后台的事件key 发布文章且审核通过
|
||||||
parameters:"author:"+this.data.sysCreateAid,//用户自定义参数 name:value,name:value
|
title: "点赞",//事件的标题
|
||||||
content: "点赞"+postData.title,//事件的内容
|
parameters:"author:"+this.data.sysCreateAid,//用户自定义参数 name:value,name:value
|
||||||
objId: this.data.id,//关联的id
|
content: "点赞"+postData.title,//事件的内容
|
||||||
objType: this.type,//关联的类型
|
objId: this.data.id,//关联的id
|
||||||
objInfo: this.data.title,
|
objType: this.type,//关联的类型
|
||||||
aid: this.userInfo.aid, //当前登录人的id
|
objInfo: this.data.title,
|
||||||
aname: this.userInfo.name,//当前人的姓名
|
aid: this.userInfo.aid, //当前登录人的id
|
||||||
status: 1 //状态,直接写1
|
aname: this.userInfo.name,//当前人的姓名
|
||||||
|
status: 1 //状态,直接写1
|
||||||
|
}
|
||||||
|
this.$store.dispatch("userTrigger", event);
|
||||||
}
|
}
|
||||||
this.$store.dispatch("userTrigger", event);
|
|
||||||
}else{
|
}else{
|
||||||
console.log('点赞失败:'+res.message);
|
console.log('点赞失败:'+res.message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="u-page" style="padding-right:32px">
|
<div class="u-page" style="padding-right:32px">
|
||||||
<Remark>
|
|
||||||
<ul>
|
|
||||||
<li>正文内容需求上要求显示两行,建议不显示 上架和下架图标待定</li>
|
|
||||||
<li>
|
|
||||||
上架和审核没有对应接口,先写好了,到时候换个名就行,数据传参也可以改一下
|
|
||||||
</li>
|
|
||||||
<li>点击标题打开新页面并且传参不会</li>
|
|
||||||
</ul>
|
|
||||||
</Remark>
|
|
||||||
<div style="padding: 2px 0px 10px 8px;">
|
<div style="padding: 2px 0px 10px 8px;">
|
||||||
<div style="display: flex; justify-content: flex-start">
|
<div style="display: flex; justify-content: flex-start">
|
||||||
<div style="padding: 0px 5px">
|
<div style="padding: 0px 5px">
|
||||||
<el-select
|
<el-select v-model="pageData.status" style="width: 110px" clearable placeholder="审核状态" >
|
||||||
v-model="pageData.status"
|
|
||||||
style="width: 110px"
|
|
||||||
clearable
|
|
||||||
placeholder="审核状态"
|
|
||||||
>
|
|
||||||
<el-option label="全部" value=""></el-option>
|
<el-option label="全部" value=""></el-option>
|
||||||
<el-option label="草稿" :value="1"></el-option>
|
<el-option label="草稿" :value="1"></el-option>
|
||||||
<el-option label="待审核" :value="2"></el-option>
|
<el-option label="待审核" :value="2"></el-option>
|
||||||
@@ -27,19 +13,10 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0px 5px">
|
<div style="padding: 0px 5px">
|
||||||
<el-input
|
<el-input placeholder="关键词搜索" v-model="pageData.keyword" clearable ></el-input>
|
||||||
placeholder="关键词搜索"
|
|
||||||
v-model="pageData.keyword"
|
|
||||||
clearable
|
|
||||||
></el-input>
|
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0px 5px">
|
<div style="padding: 0px 5px">
|
||||||
<el-button
|
<el-button @click="getsearch" icon="el-icon-search" type="primary">搜索</el-button >
|
||||||
@click="getsearch"
|
|
||||||
icon="el-icon-search"
|
|
||||||
type="primary"
|
|
||||||
>搜索</el-button
|
|
||||||
>
|
|
||||||
<!-- <el-button type="primary" >批量设置推荐</el-button> -->
|
<!-- <el-button type="primary" >批量设置推荐</el-button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -223,19 +200,16 @@ export default {
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
})
|
}).then(() => {
|
||||||
.then(() => {
|
apiArticle.del(item.id).then((res) => {
|
||||||
apiArticle
|
|
||||||
.del(item.id)
|
|
||||||
.then((res) => {
|
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.$message.success('删除成功')
|
this.$message.success('删除成功')
|
||||||
this.getArticleList()
|
this.getArticleList()
|
||||||
let event = {
|
let event = {
|
||||||
key: "DeleteArticle",//后台的事件key 发布文章且审核通过
|
key: "ArticleDelete",//被管理员删除
|
||||||
title: '删除文章(被删除)',//事件的标题
|
title: '被管理员删除文章',//事件的标题
|
||||||
parameters:"",//用户自定义参数 name:value,name:value
|
parameters:"author:"+item.sysCreateAid,//用户自定义参数 name:value,name:value
|
||||||
content: '删除文章(被删除)',//事件的内容
|
content: '被管理员删除文章',//事件的内容
|
||||||
objId: item.id,//关联的id
|
objId: item.id,//关联的id
|
||||||
objType: "2",//关联的类型
|
objType: "2",//关联的类型
|
||||||
objInfo:item.title,
|
objInfo:item.title,
|
||||||
|
|||||||
@@ -1,15 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div >
|
<div >
|
||||||
<!-- <Remark>
|
|
||||||
1.课程的管理,状态:未发布,待审核,已审核,审核不通过,已发布
|
|
||||||
<br />
|
|
||||||
2.关于动态配置列,先记录下来,后续再设置。
|
|
||||||
<br />
|
|
||||||
3.课程的创建,可不可以先创建课程基本信息,然后再填写目录课程等资源内容??
|
|
||||||
<br />
|
|
||||||
4."管理"的功能界面需要定一下,
|
|
||||||
<br />
|
|
||||||
</Remark> -->
|
|
||||||
<div style="padding: 12px 12px 10px 22px;">
|
<div style="padding: 12px 12px 10px 22px;">
|
||||||
<!-- <div style="display: flex;justify-content:flex-start;"> -->
|
<!-- <div style="display: flex;justify-content:flex-start;"> -->
|
||||||
<!-- <el-row :gutter="5">
|
<!-- <el-row :gutter="5">
|
||||||
@@ -667,9 +657,9 @@ export default {
|
|||||||
},
|
},
|
||||||
showQrimage(row) {
|
showQrimage(row) {
|
||||||
this.qrcodeShow = true;
|
this.qrcodeShow = true;
|
||||||
|
|
||||||
let urlPre=window.location.protocol+'//'+window.location.host;
|
let urlPre=window.location.protocol+'//'+window.location.host;
|
||||||
|
|
||||||
//动态的地址
|
//动态的地址
|
||||||
//urlPre=urlPre+'/m?returnUrl='+urlPre+'/mobile/pages/login/loading?returnUrl=';
|
//urlPre=urlPre+'/m?returnUrl='+urlPre+'/mobile/pages/login/loading?returnUrl=';
|
||||||
//固定的地址
|
//固定的地址
|
||||||
@@ -775,8 +765,7 @@ export default {
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
}).then(async() => {
|
||||||
.then(async() => {
|
|
||||||
let params = {
|
let params = {
|
||||||
id: row.id,
|
id: row.id,
|
||||||
title: row.name,
|
title: row.name,
|
||||||
@@ -786,21 +775,23 @@ export default {
|
|||||||
// {id:课程id,多个使用逗号分隔,Boolean erasable 是否物理删除,title:课程的名称, remark 备注}
|
// {id:课程id,多个使用逗号分隔,Boolean erasable 是否物理删除,title:课程的名称, remark 备注}
|
||||||
const {status} = await apiCourse.del(params);
|
const {status} = await apiCourse.del(params);
|
||||||
if(status === 200) {
|
if(status === 200) {
|
||||||
this.$message.success('操作成功!');
|
this.$message.success('操作成功!'); //只是之前发布过的课程删除才可
|
||||||
|
if(!row.erasable){
|
||||||
let event = {
|
let event = {
|
||||||
key: "DeleteCourse",//后台的事件key 发布文章且审核通过
|
key: "CourseDelete",//被管理员删除
|
||||||
title: '删除课程',//事件的标题
|
title: '被管理员删除课程',//事件的标题
|
||||||
parameters:"",//用户自定义参数 name:value,name:value
|
parameters:"author:"+row.sysCreateAid,//作者,一般这种情况不是管理员自己添加的
|
||||||
content: '删除课程',//事件的内容
|
content: '被管理员删除课程',//事件的内容
|
||||||
objId: row.id,//关联的id
|
objId: row.id,//关联的id
|
||||||
objType: "1",//关联的类型
|
objType: "1",//关联的类型
|
||||||
objInfo:row.name,
|
objInfo:row.name,
|
||||||
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.$store.dispatch("userTrigger", event);
|
|
||||||
this.searchData();
|
this.searchData();
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<div v-if="noData">
|
<div v-if="noData">
|
||||||
<div class="qust-detail">
|
<div class="qust-detail">
|
||||||
<div class="xpage-detail-crumbs">
|
<div class="xpage-detail-crumbs">
|
||||||
<router-link to="/case"><span class="crumbs-first">问答列表</span></router-link>
|
<router-link to="/qa"><span class="crumbs-first">问答列表</span></router-link>
|
||||||
<span class="crumbs-line">/</span>
|
<span class="crumbs-line">/</span>
|
||||||
<span class="crumbs-last">问答详情</span>
|
<span class="crumbs-last">问答详情</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div style="background-color: #fff;">
|
<div style="background-color: #fff;">
|
||||||
<div class="wrt-answer" v-if="answerList.length > 0 || answerShow" style="margin-top: 30px;padding: 0px 40px;">
|
<div class="wrt-answer" v-if="answerList.length > 0 || answerShow" style="margin-top: 30px;padding: 50px 40px 20px 40px;">
|
||||||
<div class="answer-tit">
|
<div class="answer-tit">
|
||||||
写回答
|
写回答
|
||||||
</div>
|
</div>
|
||||||
@@ -534,7 +534,7 @@ export default {
|
|||||||
res.result.list.forEach(item => {
|
res.result.list.forEach(item => {
|
||||||
item.avatar = "";
|
item.avatar = "";
|
||||||
item.sex = null;
|
item.sex = null;
|
||||||
item.sign = " ";
|
item.sign = " ";
|
||||||
item.isAll = false;//字数过大时,显示隐藏控制
|
item.isAll = false;//字数过大时,显示隐藏控制
|
||||||
allList.push(item);
|
allList.push(item);
|
||||||
ids.push(item.sysCreateAid);
|
ids.push(item.sysCreateAid);
|
||||||
@@ -697,23 +697,29 @@ export default {
|
|||||||
const { id } = data;
|
const { id } = data;
|
||||||
apiQa.delAnswer(id).then(res => {
|
apiQa.delAnswer(id).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
|
this.$message({ message: "删除成功", type: "success" });
|
||||||
|
let event = {
|
||||||
|
key: "DeleteAnswer",//自己删除自己的回答
|
||||||
|
title: "删除自己的回答",//事件的标题
|
||||||
|
parameters:"",//用户自定义参数 name:value,name:value
|
||||||
|
content: '删除了自己问题',//事件的内容
|
||||||
|
objId: id,//关联的id
|
||||||
|
objType: "5",//关联的类型
|
||||||
|
objInfo: this.detailData.title,
|
||||||
|
aid: this.userInfo.aid, //当前登录人的id
|
||||||
|
aname: this.userInfo.name,//当前人的姓名
|
||||||
|
status: 1 //状态,直接写1
|
||||||
|
}
|
||||||
|
this.$store.dispatch("userTrigger", event);
|
||||||
|
|
||||||
this.loadAnswer();
|
this.loadAnswer();
|
||||||
this.getQuestionDetail();
|
this.getQuestionDetail();
|
||||||
this.$message({
|
|
||||||
message: "删除成功",
|
|
||||||
type: "success"
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({ message: res.message, type: "error" });
|
||||||
message: res.message,
|
|
||||||
type: "error"
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$message({
|
this.$message({ message: "删除失败", type: "error" });
|
||||||
message: "删除失败",
|
|
||||||
type: "error"
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
},
|
},
|
||||||
@@ -1008,7 +1014,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.answer-body {
|
.answer-body {
|
||||||
padding-left: 40px;
|
padding-left: 48px;
|
||||||
.answer-text {
|
.answer-text {
|
||||||
//margin: 6px 0 15px;
|
//margin: 6px 0 15px;
|
||||||
margin:6px 70px 15px 0px;//按ui图,让开右边区域位置
|
margin:6px 70px 15px 0px;//按ui图,让开右边区域位置
|
||||||
|
|||||||
Reference in New Issue
Block a user