This commit is contained in:
zhaofang
2022-09-25 14:04:42 +08:00
parent e15c24b6d1
commit fb32fdf509
7 changed files with 29 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -9,7 +9,7 @@
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
</span>
</p>
<h6 class="note-title-info follow-home-title">{{item.contentInfo}} <span style="color: #333333;font-weight: 400;font-size: 14px;margin-left: 20px;"></span> <span class="score-info" style="margin-left:22px">4.8</span>
<h6 class="note-title-info follow-home-title">{{item.contentInfo}} <span style="color: #333333;font-weight: 400;font-size: 14px;margin-left: 20px;"></span> <span class="score-info" style="margin-left:22px">{{item.score>0?item.score:0}}</span>
<span class="follow-hide" style="float:right" v-if="!isDynamic && personal && !item.hidden" @click="emitHide(item.id)">
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
</span>

View File

@@ -337,7 +337,7 @@ export default {
.xtop {
height: 72px;
line-height: 72px;
background-color: #302F33;
background-color: #0078FC;
position: fixed;
top: 0px;
left: 0px;

View File

@@ -298,7 +298,7 @@ export default {
name: 'manageCourse',
components: {courseForm, manager, auditCourse1, auditCourse2,adminPage},
computed: {
...mapGetters(['resOwnerMap','sysTypeMap']),
...mapGetters(['resOwnerMap','sysTypeMap','userInfo']),
},
data() {
return {
@@ -787,6 +787,20 @@ export default {
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.$store.dispatch("userTrigger", event);
this.searchData();
}
} catch (error) {

View File

@@ -88,6 +88,7 @@
import apiUser from "@/api/system/user.js";
import {cutFullName} from "@/utils/tools.js";
import apiDict from "@/api/modules/dict.js";
import ItemVue from '../../layout/components/Sidebar/Item.vue'
export default{
components:{top,UcHeader,CaseList,CourseList,NoteList,PutList,AnswerList,ArticleList,FollowList,BookList},
@@ -315,6 +316,13 @@
apiNote.ids(ids).then(res=>{
if(res.status == 200) {
list.forEach((item, index) => {
let score = item.contentInfo.substr(item.contentInfo.length -1,1);
console.log(Number(score),'Number(score)');
if(Number(score) > 0) {
item.score = score;
}
res.result.some(con => {
if (con.id == item.contentId) {
item.info = con;
@@ -323,6 +331,8 @@
return false;
}
});
item.contentInfo = item.contentInfo.slice(0,item.contentInfo.length -1);
});
}
})

View File

@@ -123,7 +123,7 @@
<div id="fixd-box">
<div v-if="identity == 2 || identity == 3 || identity == 5">
<!-- <el-button style="width: 100%;margin-bottom:15px;height: 37px;border-radius: 0;" type="primary" @click="toNeedCourse">做课程</el-button> -->
<div class="portal-model-btn" @click="toNeedCourse">
<div class="portal-model-btn pointer" @click="toNeedCourse">
<svg-icon style="margin-right: 10px;font-size: 24px;" icon-class="upCourse"></svg-icon>
上传课程
</div>

View File

@@ -76,7 +76,7 @@
<div style="width: 410px;">
<!-- <div> -->
<div style="padding:0" id="qa-fixd">
<div class="portal-model-btn" @click="$refs.addQuestion.askQuestionDialog = true">
<div class="portal-model-btn pointer" @click="$refs.addQuestion.askQuestionDialog = true">
<svg-icon style="margin-right: 0;font-size: 24px;" icon-class="question-mark"></svg-icon>
提问题
</div>