mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
Merge branch 'dev' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/portal into dev
This commit is contained in:
@@ -89,6 +89,8 @@ export default {
|
|||||||
apiArticle.detail(id,false).then(res => {
|
apiArticle.detail(id,false).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.addForm = res.result;
|
this.addForm = res.result;
|
||||||
|
// this.addForm.content = res.result.content.trim();
|
||||||
|
// console.log(this.addForm.content)
|
||||||
if(this.addForm.coverurl){
|
if(this.addForm.coverurl){
|
||||||
this.converImage = this.fileBaseUrl + this.addForm.coverurl;
|
this.converImage = this.fileBaseUrl + this.addForm.coverurl;
|
||||||
}
|
}
|
||||||
@@ -137,6 +139,16 @@ export default {
|
|||||||
}
|
}
|
||||||
this.loading=true;
|
this.loading=true;
|
||||||
this.addForm.status = 2;
|
this.addForm.status = 2;
|
||||||
|
let content= this.addForm.content.replace(/<.*?>/ig,"");
|
||||||
|
console.log(content)
|
||||||
|
if(content.trim() == ''){
|
||||||
|
this.$message('您输入的内容为空,无法发布')
|
||||||
|
type: 'warning'
|
||||||
|
this.loading=false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.addForm.content=content.trim()
|
||||||
|
console.log(this.addForm.content,'iguighui')
|
||||||
apiArticle.save(this.addForm).then(res => {
|
apiArticle.save(this.addForm).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
if(res.message=='服务处理成功'){
|
if(res.message=='服务处理成功'){
|
||||||
|
|||||||
@@ -54,7 +54,6 @@
|
|||||||
<span slot="title" class="textl">课件管理</span>
|
<span slot="title" class="textl">课件管理</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</el-submenu>
|
</el-submenu>
|
||||||
|
|
||||||
<el-submenu index="exam" v-show="curIdentity == 3">
|
<el-submenu index="exam" v-show="curIdentity == 3">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<svg-icon icon-class="exam" style="font-size:14px"></svg-icon>
|
<svg-icon icon-class="exam" style="font-size:14px"></svg-icon>
|
||||||
@@ -345,6 +344,10 @@ export default {
|
|||||||
activeMenu() {
|
activeMenu() {
|
||||||
const route = this.$route;
|
const route = this.$route;
|
||||||
const { meta, path } = route;
|
const { meta, path } = route;
|
||||||
|
console.log(meta)
|
||||||
|
if(meta.title == '添加受众'){
|
||||||
|
meta.activeMenu = '/manage/ugroups'
|
||||||
|
}
|
||||||
if (meta.activeMenu) {
|
if (meta.activeMenu) {
|
||||||
return meta.activeMenu;
|
return meta.activeMenu;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -322,7 +322,6 @@ export default {
|
|||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
if(this.searchTags.length == 0){
|
if(this.searchTags.length == 0){
|
||||||
console.log('gyigyu')
|
|
||||||
this.queryCondition.majorType = null;
|
this.queryCondition.majorType = null;
|
||||||
this.queryCondition.orgDomain = null;
|
this.queryCondition.orgDomain = null;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -975,7 +975,8 @@ export default {
|
|||||||
padding-left: 40px;
|
padding-left: 40px;
|
||||||
.comment-content{
|
.comment-content{
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
word-break:break-all;
|
white-space: pre-wrap;
|
||||||
|
word-break: break-all;
|
||||||
span{
|
span{
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #409EFF
|
color: #409EFF
|
||||||
|
|||||||
Reference in New Issue
Block a user