From c9d8b320d1f57563053ca430882b5103a91804a5 Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Thu, 9 Jun 2022 15:28:31 +0800
Subject: [PATCH] =?UTF-8?q?=E6=88=91=E5=88=86=E4=BA=AB=E7=9A=84=E6=92=A4?=
=?UTF-8?q?=E5=9B=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/portal/case/Index.vue | 117 +++++++++++++-------------------
src/views/share/MyList.vue | 69 ++++++++++++-------
src/views/share/ToList.vue | 8 ++-
3 files changed, 99 insertions(+), 95 deletions(-)
diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue
index 08251157..d05f836d 100644
--- a/src/views/portal/case/Index.vue
+++ b/src/views/portal/case/Index.vue
@@ -52,9 +52,7 @@
{{ item.name }}
-
-
@@ -80,45 +78,33 @@
-
-
-
-
-
- {{ item.keyword1 }}
- {{ item.keyword2 }}
- {{ item.keyword3 }}
- {{ item.keyword4 }}
- {{ item.keyword5 }}
-
-
-
-
+
+
+ {{ item.keyword1 }}
+ {{ item.keyword2 }}
+ {{ item.keyword3 }}
+ {{ item.keyword4 }}
+ {{ item.keyword5 }}
+
+
-
+
{{displayAll(item)}}
-
-
-
-
+
+
{{item.isAll?'收起':'展开'}}
-
@@ -134,10 +120,8 @@
没有查询到相关内容
-
-
@@ -308,8 +292,8 @@ export default {
orderField: "comments",
// breCommend:null,
keyWord: "",
- majorType: '', //专业分类
- orgDomain: '', // 组织领域
+ majorType: "", //专业分类
+ orgDomain: "", // 组织领域
orderAsc: false
},
keyWord: "",
@@ -358,20 +342,20 @@ export default {
window.removeEventListener("scroll", this.handleScroll);
},
methods: {
- debounce(func, wait) {// 非立即执行
+ debounce(func, wait) {
+ // 非立即执行
let timeout;
- return function () {
+ return function() {
let context = this;
let args = arguments;
if (timeout) clearTimeout(timeout);
timeout = setTimeout(() => {
- func.apply(context, args)
+ func.apply(context, args);
}, wait);
- }
+ };
},
//展示全部
displayAll(item) {
-
if (!item.isAll && item.summary && item.summary.length > 180) {
return item.summary.slice(0, 180) + "...";
}
@@ -398,7 +382,7 @@ export default {
apiCase.usernameList(5).then(res => {
if (res.status == 200) {
this.ankingList = res.result;
- console.log(res)
+ console.log(res);
}
});
},
@@ -453,7 +437,7 @@ export default {
let scrollTop = document.documentElement.scrollTop;
if (outerHeight + scrollTop + 350 >= innerHeight) {
if (this.moreState == 1) {
- this.debounce(this.loadMore(),5000);
+ this.debounce(this.loadMore(), 5000);
}
}
if (scrollTop > 630) {
@@ -571,9 +555,9 @@ export default {
if (i == "orgDomain") {
this.queryCondition.orgDomain = null;
}
- if(i == "keyWord"){
- this.queryCondition.keyWord = '';
- this.keyWord = '';
+ if (i == "keyWord") {
+ this.queryCondition.keyWord = "";
+ this.keyWord = "";
}
this.queryCondition[i] = "";
this.searchTags.splice(index, 1);
@@ -633,40 +617,38 @@ export default {