mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
提交
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 16 KiB |
@@ -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>
|
||||
|
||||
@@ -337,7 +337,7 @@ export default {
|
||||
.xtop {
|
||||
height: 72px;
|
||||
line-height: 72px;
|
||||
background-color: #302F33;
|
||||
background-color: #0078FC;
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user