From 18cde410f8e82994848541428705b242ee72e906 Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Thu, 9 Jun 2022 11:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/case/Index.vue | 47 +++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index b205ae6c..9002109b 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -52,7 +52,9 @@ {{ item.name }} + + @@ -78,6 +80,7 @@
+
@@ -86,29 +89,36 @@
+
- + +
+
- +
{{ item.keyword1 }} {{ item.keyword2 }} {{ item.keyword3 }} {{ item.keyword4 }} {{ item.keyword5 }} +
-
+ +
- + {{displayAll(item)}} - + + + {{item.isAll?'收起':'展开'}}
- +
@@ -124,8 +134,10 @@ 没有查询到相关内容
+
+ @@ -138,6 +150,8 @@
+ + @@ -149,6 +163,7 @@ {{ item.sysCreateUname }} +
@@ -159,6 +174,8 @@
+ + @@ -170,6 +187,7 @@ {{ item.title }} +
@@ -180,6 +198,8 @@
+ + @@ -191,12 +211,14 @@ {{ item.title }} +
+
@@ -208,7 +230,7 @@ - + 确 定 @@ -300,6 +322,7 @@ export default { searchTags: [] }; }, + mounted() { this.$nextTick(function() { this.closeSearch(); @@ -348,6 +371,7 @@ export default { }, //展示全部 displayAll(item) { + if (!item.isAll && item.summary && item.summary.length > 180) { return item.summary.slice(0, 180) + "..."; } @@ -369,6 +393,7 @@ export default { searchBoxHeght.style.height = "auto"; } }, + getAnkingData() { apiCase.usernameList(5).then(res => { if (res.status == 200) { @@ -389,9 +414,11 @@ export default { apiCase.queryComments(5).then(res => { if (res.status == 200) { this.Positive = res.result; + console.log(res); } }); }, + getdomain() { let key = "org_domain"; apiDict.items(key).then(res => { @@ -544,11 +571,8 @@ export default { if (i == "orgDomain") { this.queryCondition.orgDomain = null; } - if(i == 'keyWord') { - this.queryCondition.keyWord = ''; - this.keyWord = ''; - } this.queryCondition[i] = ""; + this.searchTags.splice(index, 1); this.getCaseData(); } @@ -597,6 +621,7 @@ export default { } }); }, + jumpRouter(item) { this.$router.push(`/case/detail?id=${item.id}`); }