From 6e117fef7935e99588a161ec8a35482fff0b2c37 Mon Sep 17 00:00:00 2001
From: lmj <3407000732@qq.com>
Date: Tue, 28 Jun 2022 14:38:27 +0800
Subject: [PATCH 01/12] =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=96=87=E7=AB=A0?=
=?UTF-8?q?=E7=A9=BA=E6=A0=BC=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Article/editItems.vue | 11 +++++++++++
src/views/portal/case/Index.vue | 1 -
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/components/Article/editItems.vue b/src/components/Article/editItems.vue
index 24e4b068..a37adc9a 100644
--- a/src/components/Article/editItems.vue
+++ b/src/components/Article/editItems.vue
@@ -89,6 +89,8 @@ export default {
apiArticle.detail(id,false).then(res => {
if (res.status == 200) {
this.addForm = res.result;
+ // this.addForm.content = res.result.content.trim();
+ // console.log(this.addForm.content)
if(this.addForm.coverurl){
this.converImage = this.fileBaseUrl + this.addForm.coverurl;
}
@@ -137,6 +139,15 @@ export default {
}
this.loading=true;
this.addForm.status = 2;
+ let content= this.addForm.content.replace(/<.*?>/ig,"");
+ console.log(content)
+ if(content.trim() == ''){
+ this.$message('您输入的内容为空,无法发布')
+ type: 'warning'
+ return
+ }
+ this.addForm.content=content.trim()
+ console.log(this.addForm.content,'iguighui')
apiArticle.save(this.addForm).then(res => {
if (res.status == 200) {
if(res.message=='服务处理成功'){
diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue
index a36d8826..c9cc83b6 100644
--- a/src/views/portal/case/Index.vue
+++ b/src/views/portal/case/Index.vue
@@ -322,7 +322,6 @@ export default {
mounted() {
if(this.searchTags.length == 0){
- console.log('gyigyu')
this.queryCondition.majorType = null;
this.queryCondition.orgDomain = null;
};
From ecc41ca380af6952a25da6fd21abb4daf63b1a51 Mon Sep 17 00:00:00 2001
From: lmj <3407000732@qq.com>
Date: Tue, 28 Jun 2022 16:49:45 +0800
Subject: [PATCH 02/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=97=E4=BC=97?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E9=AB=98=E9=87=8F=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/UserCenter/menu.vue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue
index 1d383b2a..7a8f30fe 100644
--- a/src/components/UserCenter/menu.vue
+++ b/src/components/UserCenter/menu.vue
@@ -54,7 +54,6 @@
课件管理
-
@@ -345,6 +344,10 @@ export default {
activeMenu() {
const route = this.$route;
const { meta, path } = route;
+ console.log(meta)
+ if(meta.title == '添加受众'){
+ meta.activeMenu = '/manage/ugroups'
+ }
if (meta.activeMenu) {
return meta.activeMenu;
}
From b9ca95ebc317112ba5685adaa2879b75556d2873 Mon Sep 17 00:00:00 2001
From: lmj <3407000732@qq.com>
Date: Tue, 28 Jun 2022 17:43:39 +0800
Subject: [PATCH 03/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Article/editItems.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/components/Article/editItems.vue b/src/components/Article/editItems.vue
index a37adc9a..0407550f 100644
--- a/src/components/Article/editItems.vue
+++ b/src/components/Article/editItems.vue
@@ -144,6 +144,7 @@ export default {
if(content.trim() == ''){
this.$message('您输入的内容为空,无法发布')
type: 'warning'
+ this.loading=false
return
}
this.addForm.content=content.trim()
From f4617d6dbc7a65339bd5eaac92fda29557fd158f Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Tue, 28 Jun 2022 18:57:14 +0800
Subject: [PATCH 04/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/portal/qa/Answer.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/views/portal/qa/Answer.vue b/src/views/portal/qa/Answer.vue
index 6e12204a..41a90710 100644
--- a/src/views/portal/qa/Answer.vue
+++ b/src/views/portal/qa/Answer.vue
@@ -975,7 +975,8 @@ export default {
padding-left: 40px;
.comment-content{
padding-bottom: 0px;
- word-break:break-all;
+ white-space: pre-wrap;
+ word-break: break-all;
span{
cursor: pointer;
color: #409EFF
From 10b77bdd195c3d5dd98bb7a5ce65fb0f824b4bb2 Mon Sep 17 00:00:00 2001
From: daihh
Date: Thu, 30 Jun 2022 17:39:56 +0800
Subject: [PATCH 05/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/portal/case/Index.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue
index a36d8826..276783d5 100644
--- a/src/views/portal/case/Index.vue
+++ b/src/views/portal/case/Index.vue
@@ -70,7 +70,7 @@
- 最热
+ 最热
最新
@@ -301,7 +301,7 @@ export default {
pageIndex: 1,
pageSize: 10,
isTop: true,
- orderField: "comments",
+ orderField: "views",
// breCommend:null,
keyWord: "",
majorType:null, //专业分类
From 5cba8e53b1365e0b225ceb1d782523cb2557e51d Mon Sep 17 00:00:00 2001
From: lmj <3407000732@qq.com>
Date: Wed, 6 Jul 2022 14:05:44 +0800
Subject: [PATCH 06/12] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A1=88=E4=BE=8B?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4=20=E6=A1=88=E4=BE=8B?=
=?UTF-8?q?=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3=E6=9B=BF=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/modules/cases.js | 12 +++++++++++-
src/views/Index.vue | 8 ++++++--
src/views/portal/case/Detail.vue | 4 ++--
3 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/src/api/modules/cases.js b/src/api/modules/cases.js
index a922f82b..7d7f1542 100644
--- a/src/api/modules/cases.js
+++ b/src/api/modules/cases.js
@@ -99,6 +99,15 @@ const queryComments=function(pageSize){
const majorTypes=function (){
return ajax.get('/xboe/m/boe/cases/majorTypes');
}
+/**
+* 详情新*/
+const details = function (id, addView) {
+ let pars = 'id=' + id;
+ if (addView) {
+ pars += '&addView=' + addView
+ }
+ return ajax.get('/xboe/m/boe/cases/details?' + pars);
+}
export default {
indexList,
@@ -112,5 +121,6 @@ export default {
usernameList,
queryPraises,
queryComments,
- majorTypes
+ majorTypes,
+ details
}
diff --git a/src/views/Index.vue b/src/views/Index.vue
index 1cb404e6..78571247 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -139,7 +139,7 @@
-
@@ -649,6 +649,10 @@ export default {