From 4e6d0b06e25b5afd63c0e96b83c2c973976c96b1 Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Tue, 11 Nov 2025 18:24:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(richedit):=20=E9=87=8D=E6=9E=84=E8=B5=84?= =?UTF-8?q?=E8=AE=AF=E7=B2=BE=E9=80=89=E5=92=8C=E5=AE=A1=E6=A0=B8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 根据用户类型区分展示不同的筛选条件 - 优化筛选条件的布局和样式 - 调整信号规则获取逻辑,支持不同类型 - 更新标签显示逻辑,使用实际数据字段 - 修改环境配置中的API地址 --- .env.development | 4 +- src/views/pages/richedit/all.vue | 147 ++++++++++++++++++----------- src/views/pages/richedit/index.vue | 120 ++++++++++++++++++++--- 3 files changed, 201 insertions(+), 70 deletions(-) diff --git a/.env.development b/.env.development index c92ea84..dc34e7e 100644 --- a/.env.development +++ b/.env.development @@ -2,10 +2,10 @@ ENV = development # 本地环境接口地址 -# VITE_API_URL = https://4155gf93ll13.vicp.fun/admin +VITE_API_URL = http://4155gf93ll13.vicp.fun/admin # VITE_API_URL = http://localhost:13579/admin # VITE_API_URL = https://cankao.cs.com.cn/admin -VITE_API_URL = http://123.60.153.169:8040/admin +# VITE_API_URL = http://123.60.153.169:8040/admin # VITE_API_URL = /api diff --git a/src/views/pages/richedit/all.vue b/src/views/pages/richedit/all.vue index 98ed0cf..ae3c636 100644 --- a/src/views/pages/richedit/all.vue +++ b/src/views/pages/richedit/all.vue @@ -3,13 +3,12 @@
资讯精选
-
- 清空条件 - +
+ 标题检索: + @keyup.enter="handleSearch" style="width: 500px"> @@ -32,21 +31,30 @@ -
- - +
+ 信号规则: + - - - + -
+ + + + 报道时间: +
+ +
+ + +
评分范围: @@ -58,21 +66,36 @@
+
-
- - - +
+ 媒体来源: + + 企业检索: + + + - - + 独家资源: + + + + + + 删除状态: + + + + + + 清空条件
@@ -91,15 +114,20 @@
-
- {{ company }} +
+ {{ scope.row.companyName }}
+
-
- {{ label }} +
+ {{ scope.row.conceptLabels[0] }} +
+
+ {{ scope.row.industryLabels[0] }}
@@ -326,7 +354,7 @@ import { getColumn, getNewsScore, getIndustryHierarchy, - getTagSource, + getTagSource, getSignalRules, doRecover, } from '/@/api/api'; import { highlightTitle } from '/@/utils/highlight'; @@ -447,20 +475,20 @@ async function getData() { }); item.title = highlightTitle(item.title, form.value.keyword); - item.companys = [ - "英伟达", - "微软", - ] + // item.companys = [ + // "英伟达", + // "微软", + // ] - item.labels = [ - "新科技-人工智能", - "新科技-人工智能", - ] + // item.labels = [ + // "新科技-人工智能", + // "新科技-人工智能", + // ] - item.signalNames = [ - "信号规则1", - "信号规则2", - ] + // item.signalNames = [ + // "信号规则1", + // "信号规则2", + // ] }); } } catch (error) { @@ -783,16 +811,26 @@ const signalRulesList2 = ref([ }, ]) -async function getSignalRulesFn() { +async function getSignalRulesFn(type) { let { code, data } = await getSignalRules({ }); if (code == 200) { - signalRulesList.value = data.map((item: any) => { - return { - label: item.name, - value: item.id, - }; - }); + if (type == 1) { + signalRulesList1.value = data.map((item: any) => { + return { + label: item.name, + value: item.id, + }; + }); + } else { + signalRulesList2.value = data.map((item: any) => { + return { + label: item.name, + value: item.id, + }; + }); + } + } } @@ -839,7 +877,8 @@ onMounted(async () => { }); } - getSignalRulesFn() + getSignalRulesFn(0); + getSignalRulesFn(1); }); @@ -935,13 +974,13 @@ onMounted(async () => { flex: 1; display: flex; flex-direction: column; - align-items: flex-end; - min-width: 700px; + // align-items: flex-end; + // min-width: 700px; .colHeader-right-1, .colHeader-right-2 { display: flex; - justify-self: flex-end; + // justify-self: flex-end; align-items: center; margin-bottom: 10px; } diff --git a/src/views/pages/richedit/index.vue b/src/views/pages/richedit/index.vue index 65bbee1..0d96060 100644 --- a/src/views/pages/richedit/index.vue +++ b/src/views/pages/richedit/index.vue @@ -4,10 +4,13 @@
资讯精选
资讯审核
-
+ + +
清空条件 -
+
@@ -62,22 +65,104 @@
-
+ +
+
+ +
+
+ + 标题检索: + + + + +
+ 行业分类: + + +
+ + + + +
+ + +
+ 信号规则: + style="width: 180px" filterable @change="signalChange($event, 1)"> + style="width: 180px" filterable @change="signalChange($event, 2)"> + 报道时间: +
+ +
+ + +
+ 评分范围: + + - + + + +
+
+
+ 媒体来源: + + 企业检索: + + + + + + 独家资源: + + + + + + + 删除状态: + + + + + + 清空条件 +
@@ -95,15 +180,22 @@
-
- {{ company }} +
+ {{ scope.row.companyName }}
+
-
- {{ label }} +
+ {{ scope.row.conceptLabels[0] }} +
+
+ {{ scope.row.industryLabels[0] }}
@@ -1043,13 +1135,13 @@ onMounted(async () => { flex: 1; display: flex; flex-direction: column; - align-items: flex-end; - min-width: 700px; + // align-items: flex-end; + // min-width: 700px; .colHeader-right-1, .colHeader-right-2 { display: flex; - justify-self: flex-end; + // justify-self: flex-end; align-items: center; margin-bottom: 10px; }