mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
笔记刷新页面
This commit is contained in:
@@ -231,7 +231,6 @@ export default {
|
|||||||
}, 10000);
|
}, 10000);
|
||||||
},
|
},
|
||||||
noteEdit(note) {
|
noteEdit(note) {
|
||||||
console.log(note,'note');
|
|
||||||
this.isEdit = true;
|
this.isEdit = true;
|
||||||
this.mynoteData = note;
|
this.mynoteData = note;
|
||||||
this.editNodeOpenType = note.openType;
|
this.editNodeOpenType = note.openType;
|
||||||
@@ -361,6 +360,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
}, 2000)
|
}, 2000)
|
||||||
|
this.$bus.$emit('noteListRefresh',true)
|
||||||
// 是编辑新增
|
// 是编辑新增
|
||||||
let event = {
|
let event = {
|
||||||
key: "PublishNote",//后台的事件key
|
key: "PublishNote",//后台的事件key
|
||||||
|
|||||||
@@ -269,6 +269,9 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.author = this.authorId;
|
this.author = this.authorId;
|
||||||
this.loadData(false);
|
this.loadData(false);
|
||||||
|
this.$bus.$on('noteListRefresh',(val)=>{
|
||||||
|
this.loadData();
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadMore() {
|
loadMore() {
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ import VueAwesomeSwiper from 'vue-awesome-swiper';
|
|||||||
import 'swiper/dist/css/swiper.css';
|
import 'swiper/dist/css/swiper.css';
|
||||||
Vue.use(VueAwesomeSwiper)
|
Vue.use(VueAwesomeSwiper)
|
||||||
import watermark from './utils/warterMark.js'
|
import watermark from './utils/warterMark.js'
|
||||||
|
import Bus from './utils/bus.js'
|
||||||
|
Vue.prototype.$bus = Bus
|
||||||
|
|
||||||
Vue.prototype.$watermark = watermark
|
Vue.prototype.$watermark = watermark
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import apiStat from "@/api/phase2/stat.js";
|
|||||||
|
|
||||||
const user = {
|
const user = {
|
||||||
state: {
|
state: {
|
||||||
info: { aid: '', loginName: '', name: '', avatar: '', userNo: '', departId: '', departName: '', departFullName: '',studyTotal:0,studyTotalH:0},
|
info: { aid: '', loginName: '',sign:'', name: '', avatar: '', userNo: '', departId: '', departName: '', departFullName: '',studyTotal:0,studyTotalH:0},
|
||||||
identity: 2, // 1表学员,2表教师,3表管理员。目前只有3会被设置表示学员教师管理员身份都有
|
identity: 2, // 1表学员,2表教师,3表管理员。目前只有3会被设置表示学员教师管理员身份都有
|
||||||
msg:0,//未读消息数
|
msg:0,//未读消息数
|
||||||
messagesBeReviewed: 0,//待审核的消息
|
messagesBeReviewed: 0,//待审核的消息
|
||||||
@@ -166,7 +166,8 @@ const user = {
|
|||||||
departName: res.result.departName,
|
departName: res.result.departName,
|
||||||
departFullName: dfn,
|
departFullName: dfn,
|
||||||
studyTotal: res.result.studyTotal,
|
studyTotal: res.result.studyTotal,
|
||||||
studyTotalH:studyTotalH
|
studyTotalH:studyTotalH,
|
||||||
|
sign:res.result.sign,
|
||||||
};
|
};
|
||||||
// user.avatar = user.avatar == "" ? require("@/assets/images/user/default.png") : process.env.VUE_APP_FILE_BASE_URL + user.avatar;
|
// user.avatar = user.avatar == "" ? require("@/assets/images/user/default.png") : process.env.VUE_APP_FILE_BASE_URL + user.avatar;
|
||||||
user.avatar = user.avatar == "" ? "" : process.env.VUE_APP_FILE_BASE_URL + user.avatar;
|
user.avatar = user.avatar == "" ? "" : process.env.VUE_APP_FILE_BASE_URL + user.avatar;
|
||||||
|
|||||||
Reference in New Issue
Block a user