diff --git a/src/components/Article/shareItems.vue b/src/components/Article/shareItems.vue
index 19e694fb..c1137264 100644
--- a/src/components/Article/shareItems.vue
+++ b/src/components/Article/shareItems.vue
@@ -6,9 +6,9 @@
【已查看】
【未查看】
-
+
-
+
@@ -72,7 +72,7 @@ export default {
}
})
}
- this.$router.push({path:'/article/detail',query:{id:item.objId}})
+ this.$router.push({path:'/article/detail',query:{id:item.objId || item.id}})
// window.open(`${this.webBaseUrl}/article/detail?id=${item.objId}`)
},
deleteshares(item){
@@ -129,7 +129,7 @@ export default {
font-weight: 400;
display: flex;
justify-content: flex-start;
-
+
align-items: center;
.readed{
font-size: 18px;
diff --git a/src/components/Course/shareItem.vue b/src/components/Course/shareItem.vue
index dd45b3b5..c40062a0 100644
--- a/src/components/Course/shareItem.vue
+++ b/src/components/Course/shareItem.vue
@@ -113,7 +113,12 @@ export default {
}
})
}
- this.$router.push({path:'/course/detail',query:{id:item.objId}})
+ if(item.contentType == 20) {
+ this.$router.push({path:'/course/detail',query:{id:item.objId || item.id}})
+ } else {
+ this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
+ }
+
// window.open(`${this.webBaseUrl}/course/detail?id=${item.objId}`)
},
},
diff --git a/src/views/case/ManageList.vue b/src/views/case/ManageList.vue
index dfc7074a..201110ba 100644
--- a/src/views/case/ManageList.vue
+++ b/src/views/case/ManageList.vue
@@ -14,9 +14,9 @@
-
+
- 搜索
+ 搜索
重置
@@ -28,9 +28,9 @@
{{ scope.row.title }}
-
-
-
+
+
@@ -158,13 +158,20 @@ export default {
this.getData();
},
methods: {
+ inputOn() {
+ this.$forceUpdate();
+ },
reset() {
this.queryObj.isTop = '';
this.queryObj.keyWord = '';
+ this.queryObj.pageIndex = 1;
this.getData()
},
//获取案例列表数据
- getData() {
+ getData(num) {
+ if(num === 1) {
+ this.queryObj.pageIndex = 1;
+ }
apiCase
.isTopList(this.queryObj)
.then(res => {
@@ -187,7 +194,7 @@ export default {
},
handleSizeChange(val) {
this.queryObj.pageSize=val;
- this.getData();
+ this.getData(1);
},
handleCurrentChange(val) {
this.queryObj.pageIndex=val;
diff --git a/src/views/portal/article/Detail.vue b/src/views/portal/article/Detail.vue
index 2912171e..9c3be34a 100644
--- a/src/views/portal/article/Detail.vue
+++ b/src/views/portal/article/Detail.vue
@@ -7,7 +7,7 @@
文章详情
-
+
diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue
index af451c38..c9db6c47 100644
--- a/src/views/portal/case/Detail.vue
+++ b/src/views/portal/case/Detail.vue
@@ -7,7 +7,7 @@
案例详情
-
+
@@ -18,7 +18,11 @@
工号:{{ authorInfo.code }}
部门:{{ authorInfo.orgInfo }}
- {{ caseDetail.sysCreateTime.substring(0,10) }}
+
+
+
+
+ {{ caseDetail.sysCreateTime.substring(0,10) }}
@@ -38,7 +42,7 @@
-
+
@@ -203,7 +207,7 @@ export default {
}
}
if(scrollTop > 630) {
- document.querySelector('#fixd-box').style.cssText = "position: fixed;top: -550px;width:245.5px";
+ document.querySelector('#fixd-box').style.cssText = "position: fixed;top: -500px;width:245.5px";
} else {
document.querySelector('#fixd-box').style.cssText = "position: static";
}
@@ -213,7 +217,6 @@ export default {
apiCase.usernameList(5).then(res=>{
if(res.status==200){
this.ankingList=res.result
- // console.log(res)
}
})
},
@@ -221,7 +224,6 @@ export default {
apiCase.queryPraises(5).then(res=>{
if(res.status==200){
this.Popularity=res.result
- // console.log(this.Popularity)
}
})
},
@@ -229,7 +231,6 @@ export default {
apiCase.queryComments(5).then(res=>{
if(res.status==200){
this.Positive=res.result
- console.log(res)
}
})
},
@@ -253,7 +254,12 @@ export default {
getCaseUserDetail() {
apiUser.getByIds([this.caseDetail.authorId]).then(res => {
if (res.status == 200 && res.result.length>0) {
- this.authorInfo = res.result[0];
+ this.authorInfo = res.result[0];
+ console.log(this.authorInfo)
+ let idx=this.authorInfo.orgInfo.indexOf('/');
+ if(idx>-1){
+ this.authorInfo.orgInfo=this.authorInfo.orgInfo.substring(idx+1);
+ }
this.toUsers = [
{name: res.result[0].name, aid:res.result[0].aid ,sex:res.result[0].sex}
];
diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue
index eba4c178..ccc5161c 100644
--- a/src/views/portal/case/Index.vue
+++ b/src/views/portal/case/Index.vue
@@ -78,8 +78,9 @@
-
+
+
{{ item.keyword1 }}
{{ item.keyword2 }}
@@ -103,14 +106,19 @@
{{ item.keyword5 }}
+
+
-
+
{{displayAll(item)}}
-
-
+
+
+
+
{{item.isAll?'收起':'展开'}}
+
@@ -363,6 +371,7 @@ export default {
},
//展示全部
displayAll(item) {
+
if (!item.isAll && item.summary && item.summary.length > 180) {
return item.summary.slice(0, 180) + "...";
}
@@ -449,7 +458,7 @@ export default {
}
if (scrollTop > 630) {
document.querySelector("#fixd-box").style.cssText =
- "position: fixed;top: -550px;width:245.5px";
+ "position: fixed;top: -500px;width:245.5px";
} else {
document.querySelector("#fixd-box").style.cssText = "position: static";
}
@@ -628,6 +637,7 @@ export default {
line-height: 25px;
display: flex;
.case-tittext{
+ font-size: 18px;
width: 80%;
display: -webkit-box;
overflow: hidden;
diff --git a/src/views/portal/qa/Detail.vue b/src/views/portal/qa/Detail.vue
index b7f87158..2408880f 100644
--- a/src/views/portal/qa/Detail.vue
+++ b/src/views/portal/qa/Detail.vue
@@ -7,7 +7,7 @@
问答详情
-
+
diff --git a/src/views/share/ToList.vue b/src/views/share/ToList.vue
index d5336baf..34ae2b33 100644
--- a/src/views/share/ToList.vue
+++ b/src/views/share/ToList.vue
@@ -318,11 +318,13 @@ export default {
item.question.title=item.title;
item.question.content=item.content;
item.question.bestAnswer=item.bestAnswer;
+ item.question.id=item.id;
}
if(item.type == 3){
item.cases = {title:'',summary:''};
item.cases.title=item.title;
item.cases.title=item.summary;
+ item.cases.id=item.id;
}
});
this.dataList.list = res.result.list;