@@ -65,7 +71,7 @@ export default {
}
},
mounted() {
- console.log(this.items)
+
},
methods: {
classFilter(status){
@@ -197,6 +203,11 @@ export default {
font-size: 14px;
}
}
+
+.btncolor{
+ color: #8590A6;
+ font-size: 14px;
+}
.one-line-ellipsis {
width: 100%;
text-overflow: ellipsis;
@@ -285,7 +296,7 @@ export default {
}
}
}
-
+
.article-info-tools {
height: 30px;
display: flex;
diff --git a/src/components/Course/auditCourse1.vue b/src/components/Course/auditCourse1.vue
index e9f62b81..a9cc71c9 100644
--- a/src/components/Course/auditCourse1.vue
+++ b/src/components/Course/auditCourse1.vue
@@ -305,7 +305,7 @@ export default {
homeworkInfo: {},
examInfo: {},
assessInfo: {},
- fileBaseUrl: this.$xpage.constants.fileBaseUrl,
+ fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
btnLoading: false,
curCFile:{},//课件内容
coursewareInfo: {
diff --git a/src/components/Course/catalogCourseware.vue b/src/components/Course/catalogCourseware.vue
index ac2e0cb6..620a127b 100644
--- a/src/components/Course/catalogCourseware.vue
+++ b/src/components/Course/catalogCourseware.vue
@@ -366,7 +366,7 @@
data(){
return {
converStatus:4,
- fileBaseUrl:this.$xpage.constants.fileBaseUrl,
+ fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
curPdfPath:'',
curCFile:{},//当前课件的内容
comTypes:[
diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue
index c1b630d5..0856ac13 100644
--- a/src/components/Course/courseForm.vue
+++ b/src/components/Course/courseForm.vue
@@ -149,7 +149,7 @@
show-word-limit
:rows="3"
v-model="courseInfo.summary"
- placeholder="请尽量填写课程简介(限255字以内),用于列表中显示,可以让用户更容易了解课程信息">
+ placeholder="请尽量填写课程简介,用于列表中显示,可以让用户更容易了解课程信息">
@@ -258,9 +258,9 @@
-
+
-
+
@@ -303,10 +303,10 @@
+ placeholder="请尽量填写课程简介,用于列表中显示,可以让用户更容易了解课程信息">
@@ -843,14 +843,25 @@ export default {
let crowdList=[];
if(result.crowds && result.crowds.length>0){
result.crowds.forEach(crowd=>{
- crowdList.push({
+ let newCrowd={
key:crowd.groupId,
value:crowd.groupName,
+ disabled:false,
text:''
- })
+ }
+ crowdList.push(newCrowd);
+ let hasUG=$this.userGroupList.some(ug=>{
+ return ug.key==crowd.groupId;
+ });
+ if(!hasUG){
+ newCrowd.disabled=true;
+ $this.userGroupList.push(newCrowd);
+ }
});
}
this.courseCrowds=crowdList;
+ //反向看userGroupList是否有
+
//课程图片
if (this.courseInfo.coverImg != '') {
this.courseCoverurl = this.fileUrl+this.courseInfo.coverImg;
@@ -1311,7 +1322,7 @@ export default {
if (this.sysTypeList.length > 2) {
this.courseInfo.sysType3 = this.sysTypeList[2]; //三级的id
}
-
+
//受众的处理
let crowds=[];
this.courseCrowds.forEach(item=>{
diff --git a/src/components/HomePage/answerList.vue b/src/components/HomePage/answerList.vue
index 86690fe1..227b5e7f 100644
--- a/src/components/HomePage/answerList.vue
+++ b/src/components/HomePage/answerList.vue
@@ -2,7 +2,7 @@
-
+
@@ -78,6 +78,10 @@
},
methods:{
jumpDetail(item){
+ if(item.deleted){
+ this.$message.warning("此内容已删除");
+ return;
+ }
this.$router.push('/qa/answer?id='+item.contentId)
},
emitHide(id) {
diff --git a/src/components/HomePage/articleList.vue b/src/components/HomePage/articleList.vue
index d0c24669..355ece57 100644
--- a/src/components/HomePage/articleList.vue
+++ b/src/components/HomePage/articleList.vue
@@ -2,7 +2,7 @@
-
+
@@ -78,6 +78,10 @@
},
methods:{
jumpDetail(item){
+ if(item.info.deleted){
+ this.$message.warning("此文章已删除");
+ return;
+ }
this.$router.push('/article/detail?id='+item.contentId)
},
emitHide(id) {
diff --git a/src/components/HomePage/caseList.vue b/src/components/HomePage/caseList.vue
index 80a98859..6179217c 100644
--- a/src/components/HomePage/caseList.vue
+++ b/src/components/HomePage/caseList.vue
@@ -3,7 +3,7 @@
-
+
{{item.aname}}{{item.cusInfo}}
{{item.eventTime}}
@@ -55,11 +55,11 @@
-
+
@@ -124,6 +124,13 @@
if(code==''|| code==undefined){return '';}
return this.orgDomainMap.get(code);
},
+ jumpDetail(item){
+ if(item.info.deleted){
+ this.$message.warning("此案例已删除");
+ return;
+ }
+ this.$router.push('/case/detail?id='+item.contentId)
+ },
}
}
diff --git a/src/components/HomePage/courseList.vue b/src/components/HomePage/courseList.vue
index 70b5e0a6..ade382a9 100644
--- a/src/components/HomePage/courseList.vue
+++ b/src/components/HomePage/courseList.vue
@@ -2,7 +2,7 @@
-
+
@@ -98,7 +98,11 @@
if(!data.contentId){
return;
}
-
+ console.log(data.info,'data.info')
+ if(!data.info.enabled || data.info.deleted){
+ this.$message.warning("此课程已停用或已删除");
+ return;
+ }
this.$router.push({ path: '/course/detail?id=', query: { id: data.contentId } });
}
}
diff --git a/src/components/HomePage/noteList.vue b/src/components/HomePage/noteList.vue
index 1343056f..b94124f8 100644
--- a/src/components/HomePage/noteList.vue
+++ b/src/components/HomePage/noteList.vue
@@ -2,7 +2,7 @@
-
+
@@ -74,6 +74,10 @@
},
methods:{
jumpDetail(item){
+ if(item.info.deleted){
+ this.$message.warning("此笔记已删除");
+ return;
+ }
this.$router.push('/course/detail?id='+item.info.courseId)
},
emitHide(id) {
diff --git a/src/components/HomePage/putTo.vue b/src/components/HomePage/putTo.vue
index 9e49c5f5..7332aecf 100644
--- a/src/components/HomePage/putTo.vue
+++ b/src/components/HomePage/putTo.vue
@@ -2,9 +2,9 @@
-
-
- {{item.aname}}{{item.cusInfo}}
- {{item.eventTime}}
+
+ {{item.aname}}{{item.cusInfo}}
+ {{item.eventTime}}
已隐藏
隐藏
@@ -23,14 +23,14 @@
-
+
-
+
-
+
-
\ No newline at end of file
diff --git a/src/components/Portal/interactBar.vue b/src/components/Portal/interactBar.vue
index ba6c7a3e..28a5b22e 100644
--- a/src/components/Portal/interactBar.vue
+++ b/src/components/Portal/interactBar.vue
@@ -48,7 +48,7 @@
{{data.shares}}
-
+
diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue
index 86556ca9..146028d0 100644
--- a/src/components/PortalHeader.vue
+++ b/src/components/PortalHeader.vue
@@ -155,7 +155,7 @@ export default {
components:{gonggao},
computed: {
- ...mapGetters(['userInfo', 'userMsg','identity']),
+ ...mapGetters(['userInfo', 'userMsg','identity','studyTaskCount']),
avatarText(){
return userAvatarText(this.userInfo.name);
@@ -190,20 +190,25 @@ export default {
console.log('lll')
},
loadBoeData() {
- let params = {
- // keyword:this.keyword,
- page: 1,
- size: 10
- // cmtask_status:this.cmtask_status,
- // cmtask_name:this.cmtask_name,
- };
- apiBoeCourse.cmtaskList(params).then(res => {
- if (res.status == 200 && res.result.count > 0) {
- this.isTiao = true;
- } else {
- this.isTiao = false;
- }
- });
+ if(this.studyTaskCount>0){
+ this.isTiao = true;
+ }else{
+ this.isTiao = false;
+ }
+ // let params = {
+ // // keyword:this.keyword,
+ // page: 1,
+ // size: 10
+ // // cmtask_status:this.cmtask_status,
+ // // cmtask_name:this.cmtask_name,
+ // };
+ // apiBoeCourse.cmtaskList(params).then(res => {
+ // if (res.status == 200 && res.result.count > 0) {
+ // this.isTiao = true;
+ // } else {
+ // this.isTiao = false;
+ // }
+ // });
},
handleCommand(val) {
let urlPre=window.location.protocol+'//'+window.location.host;
diff --git a/src/components/UcHeader/Index.vue b/src/components/UcHeader/Index.vue
index d0776672..8be154a1 100644
--- a/src/components/UcHeader/Index.vue
+++ b/src/components/UcHeader/Index.vue
@@ -78,9 +78,9 @@
-
+
diff --git a/src/data/pages.js b/src/data/pages.js
index 5a3f784b..f105308c 100644
--- a/src/data/pages.js
+++ b/src/data/pages.js
@@ -89,7 +89,20 @@ export const pages=[
]},
{title:'消息中心',path:'/message/center',hidden:false,children:[
{title:'消息中心',path:'index',component:'portal/user/Message',hidden:false}
- ]},
+ ]}
+
+];
+export const iframes=[
+ {title:'课件管理', path:'/iframe/course/coursewares',hidden:false,component:'course/Courseware'},
+ {title:'课程管理', path:'/iframe/course/manages',hidden:false,component:'course/ManageList'},
+ {title:'考试试题管理', path:'/iframe/exam/questions',hidden:false,component:'exam/Question'},
+ {title:'考试试卷管理', path:'/iframe/exam/papers',hidden:false,component:'exam/TestPaper'},
+ {title:'考试管理', path:'/iframe/exam/tests',hidden:false,component:'exam/ExamList'},
+ {title:'案例管理', path:'/iframe/cases/manages',hidden:false,component:'case/ManageList'},
+ {title:'文章管理', path:'/iframe/article/manages',hidden:false,component:'article/ManageList'},
+ {title:'问答管理', path:'/iframe/qa/manages',hidden:false,component:'qa/ManageList'},
+ {title:'待审核课程', path:'/iframe/course/noapproved',hidden:false,component:'examine/NotApproved'},
+ {title:'已审核课程', path:'/iframe/course/reviewed',hidden:false,component:'examine/Reviewed'}
]
export function routers(){
@@ -110,10 +123,17 @@ export function routers(){
delete sub.title;
})
};
-
-
myrouters.push(item);
n++;
});
+ //增加iframe的页面
+
+ iframes.forEach((item,index)=>{
+ item.name='iframe'+index;
+ item.alwaysShow=true;
+ item.meta={title:item.title,icon:"menu",noCache:true},
+ delete item.title;
+ myrouters.push(item);
+ })
return myrouters;
}
diff --git a/src/security.js b/src/security.js
index 4abfcb01..31c11c9e 100644
--- a/src/security.js
+++ b/src/security.js
@@ -17,9 +17,11 @@ router.beforeEach((to, from, next) => {
//动态计算文件的路径
let configPath=process.env.VUE_APP_FILE_RELATIVE_PATH;
if(configPath.startsWith('http')){
- xpage.fileBaseUrl=configPath;
+ //xpage.fileBaseUrl=configPath;
+ xpage.constants.fileBaseUrl=configPath;
}else{
- xpage.fileBaseUrl = window.location.protocol+'//'+window.location.host+configPath;
+ //xpage.fileBaseUrl = window.location.protocol+'//'+window.location.host+configPath;
+ xpage.constants.fileBaseUrl=window.location.protocol+'//'+window.location.host+configPath;
}
diff --git a/src/utils/xpage.js b/src/utils/xpage.js
index aa69ed59..0f1da9fd 100644
--- a/src/utils/xpage.js
+++ b/src/utils/xpage.js
@@ -1,6 +1,6 @@
/**页面设置的一些常量,方便,用于一个处理只写一处,不要多处写*/
const constants={
- fileBaseUrl:'http://192.168.0.11/cdn/upload',
+ fileBaseUrl:'',
newLoginKey:'boe_new_login'
}
diff --git a/src/views/Index.vue b/src/views/Index.vue
index b89aae89..0d46542b 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -64,10 +64,10 @@