Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
3f12faf6
提交
3f12faf6
authored
3月 24, 2026
作者:
朱政
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into zz-dev
上级
b5529599
80947d07
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
456 行增加
和
253 行删除
+456
-253
.gitignore
.gitignore
+1
-0
App.vue
src/App.vue
+19
-0
down.png
src/components/base/WarningPane/icons/down.png
+0
-0
up.png
src/components/base/WarningPane/icons/up.png
+0
-0
index.vue
src/components/base/WarningPane/index.vue
+64
-10
IntelligentEntityText.vue
src/components/base/texts/IntelligentEntityText.vue
+97
-97
TextTranslatePane.vue
src/components/base/texts/TextTranslatePane.vue
+106
-93
index.js
src/router/index.js
+1
-0
comprehensiveSearch.js
src/router/modules/comprehensiveSearch.js
+36
-37
setChart.js
src/utils/setChart.js
+0
-1
index.vue
src/views/bill/billHome/index.vue
+3
-1
index.vue
src/views/dataLibrary/bill/countryBill/index.vue
+0
-0
index.vue
src/views/dataLibrary/index.vue
+117
-4
index.vue
src/views/home/index.vue
+3
-3
NewsDetial.vue
src/views/newsBrief/NewsDetial.vue
+0
-0
NewsMain.vue
src/views/newsBrief/NewsMain.vue
+9
-7
没有找到文件。
.gitignore
浏览文件 @
3f12faf6
...
@@ -14,6 +14,7 @@ lerna-debug.log*
...
@@ -14,6 +14,7 @@ lerna-debug.log*
# Dependencies
# Dependencies
node_modules
node_modules
*node_modules
.pnpm
.pnpm
.npm
.npm
...
...
src/App.vue
浏览文件 @
3f12faf6
...
@@ -29,6 +29,25 @@ import { ElMessage } from "element-plus";
...
@@ -29,6 +29,25 @@ import { ElMessage } from "element-plus";
const
router
=
useRouter
();
const
router
=
useRouter
();
const
route
=
useRoute
();
const
route
=
useRoute
();
import
useTagsViewStore
from
'@/stores/tagsView.js'
const
tagsViewStore
=
useTagsViewStore
()
// 在路由全局守卫中处理
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
// 路由允许添加标签(排除掉隐藏的布局页如 /404, /login 等)
if
(
to
.
path
.
includes
(
'dataLibrary'
))
{
tagsViewStore
.
addView
({
path
:
to
.
path
,
name
:
to
.
name
,
// 对应组件的 name,用于缓存
meta
:
{
...
to
.
meta
},
active
:
true
})
}
next
()
})
const
isShowAiBox
=
ref
(
false
);
const
isShowAiBox
=
ref
(
false
);
...
...
src/components/base/WarningPane/icons/down.png
0 → 100644
浏览文件 @
3f12faf6
953 Bytes
src/components/base/WarningPane/icons/up.png
0 → 100644
浏览文件 @
3f12faf6
517 Bytes
src/components/base/WarningPane/index.vue
浏览文件 @
3f12faf6
<
template
>
<
template
>
<div
class=
"warnning-pane-wrapper"
:style=
"
{ width: width ? width : '1600px'
, height: height ? height : 'auto', minHeight: height ? undefined : '116px'
}"
<div
class=
"warnning-pane-wrapper"
:style=
"
{ width: width ? width : '1600px' }"
:class="{
:class="{
level1: warnningLevel === '特别重大风险',
level1: warnningLevel === '特别重大风险',
level2: warnningLevel === '重大风险',
level2: warnningLevel === '重大风险',
...
@@ -27,12 +27,22 @@
...
@@ -27,12 +27,22 @@
</div>
</div>
</div>
</div>
<div
class=
"warnning-pane-content text-regular"
>
<div
class=
"warnning-pane-content text-regular"
>
{{
warnningContent
}}
{{
showContent
}}
<div
class=
"show-all-btn"
v-if=
"props.warnningContent.length > 185"
@
click
.
stop=
"handleClickShowAll"
>
<div
class=
"text text-tip-2"
>
{{
isShowAllContent
?
'收起'
:
'展开'
}}
</div>
<div
class=
"icon"
>
<img
v-if=
"!isShowAllContent"
src=
"./icons/down.png"
alt=
""
>
<img
v-else
src=
"./icons/up.png"
alt=
""
>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
import
{
ref
,
computed
}
from
'vue'
import
{
ElMessage
}
from
'element-plus'
import
{
ElMessage
}
from
'element-plus'
...
@@ -50,6 +60,14 @@ const props = defineProps(
...
@@ -50,6 +60,14 @@ const props = defineProps(
}
}
)
)
const
showContent
=
computed
(()
=>
{
if
(
!
isShowAllContent
.
value
)
{
return
props
.
warnningContent
.
length
>
185
?
props
.
warnningContent
.
slice
(
0
,
185
)
+
'...'
:
props
.
warnningContent
}
else
{
return
props
.
warnningContent
}
})
const
emit
=
defineEmits
([
'clickPane'
])
const
emit
=
defineEmits
([
'clickPane'
])
const
handleClickPane
=
()
=>
{
const
handleClickPane
=
()
=>
{
...
@@ -57,6 +75,12 @@ const handleClickPane = () => {
...
@@ -57,6 +75,12 @@ const handleClickPane = () => {
emit
(
'clickPane'
)
emit
(
'clickPane'
)
}
}
const
isShowAllContent
=
ref
(
false
)
const
handleClickShowAll
=
()
=>
{
isShowAllContent
.
value
=
!
isShowAllContent
.
value
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
@@ -64,7 +88,8 @@ const handleClickPane = () => {
...
@@ -64,7 +88,8 @@ const handleClickPane = () => {
border-radius
:
10px
;
border-radius
:
10px
;
border
:
1px
solid
var
(
--
color-primary-100
);
border
:
1px
solid
var
(
--
color-primary-100
);
box-shadow
:
0px
0px
20px
0px
rgba
(
25
,
69
,
130
,
0
.1
);
box-shadow
:
0px
0px
20px
0px
rgba
(
25
,
69
,
130
,
0
.1
);
cursor
:
pointer
;
// cursor: pointer;
height
:
max-content
;
}
}
.level1
{
.level1
{
...
@@ -146,12 +171,40 @@ const handleClickPane = () => {
...
@@ -146,12 +171,40 @@ const handleClickPane = () => {
.warnning-pane-content
{
.warnning-pane-content
{
width
:
calc
(
100%
-
40px
);
width
:
calc
(
100%
-
40px
);
margin
:
0
auto
;
margin
:
0
auto
;
margin-bottom
:
16px
;
// height: 60px;
min-height
:
60px
;
// display: -webkit-box;
height
:
auto
;
// /* 2. 设置内部布局方向为垂直 */
display
:
block
;
// -webkit-box-orient: vertical;
overflow
:
visible
;
// /* 3. 限制显示的行数为 2 行 */
white-space
:
pre-wrap
;
// -webkit-line-clamp: 2;
word-break
:
break-word
;
// /* 4. 隐藏超出部分 */
// overflow: hidden;
// /* 5. 设置文本溢出显示省略号 */
// text-overflow: ellipsis;
position
:
relative
;
.show-all-btn
{
position
:
absolute
;
right
:
0px
;
bottom
:
4px
;
width
:
48px
;
height
:
22px
;
display
:
flex
;
gap
:
4px
;
cursor
:
pointer
;
.text
{
color
:
var
(
--
text-primary-50-color
);
&
:hover
{
color
:
var
(
--
color-primary-100
);
}
}
.icon
{
width
:
16px
;
height
:
16px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/components/base/texts/IntelligentEntityText.vue
浏览文件 @
3f12faf6
<
template
>
<
template
>
<p
class=
"p-regular-rereg"
>
<p
class=
"p-regular-rereg"
>
<span
class=
"text-regular"
v-for=
"(segment, index) in processedText"
:key=
"index"
>
<span
class=
"text-regular"
v-for=
"(segment, index) in processedText"
:key=
"index"
>
<a
v-if=
"segment.isEntity"
:href=
"`https://cn.bing.com/search?q=$
{segment.entity?.text_span}`"
<span
v-if=
"segment.isEntity"
@
click=
"$emit('onEntityClick', segment.entity)"
class=
"entity-link"
>
class="entity-link" target="_blank" rel="noopener noreferrer">
{{
segment
.
entity
?.
text_span
}}
{{
segment
.
entity
?.
text_span
}}
<img
:src=
"SearchIcon"
:width=
"10"
:height=
"10"
alt=
"search"
/>
<img
:src=
"SearchIcon"
:width=
"10"
:height=
"10"
alt=
"search"
/>
</span>
</a>
<span
v-else
>
<span
v-else
>
{{
segment
.
text
}}
{{
segment
.
text
}}
</span>
</span>
</span>
</span>
</p>
</p>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
TextEntity
}
from
'@/api/intelligent'
;
import
{
TextEntity
}
from
"@/api/intelligent"
;
import
{
ref
,
watch
,
onMounted
}
from
'vue'
;
import
{
ref
,
watch
,
onMounted
}
from
"vue"
;
import
SearchIcon
from
'./images/search.png'
import
SearchIcon
from
"./images/search.png"
;
export
interface
ProcessedTextSegment
{
export
interface
ProcessedTextSegment
{
text
:
string
text
:
string
;
isEntity
:
boolean
isEntity
:
boolean
;
entity
?:
TextEntity
entity
?:
TextEntity
;
}
}
const
props
=
defineProps
({
const
props
=
defineProps
({
text
:
{
text
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
""
},
},
entities
:
{
entities
:
{
type
:
Array
<
TextEntity
>
,
type
:
Array
<
TextEntity
>
,
default
:
()
=>
[]
default
:
()
=>
[]
}
}
})
})
;
const
emit
=
defineEmits
([
"onEntityClick"
]);
// 处理后的文本段
// 处理后的文本段
const
processedText
=
ref
<
ProcessedTextSegment
[]
>
([])
const
processedText
=
ref
<
ProcessedTextSegment
[]
>
([]);
// 处理文本,识别并替换实体
// 处理文本,识别并替换实体
const
processText
=
()
=>
{
const
processText
=
()
=>
{
console
.
log
(
'props.entities.length'
,
props
.
entities
.
length
)
console
.
log
(
"props.entities.length"
,
props
.
entities
.
length
);
if
(
!
props
.
text
||
!
props
.
entities
)
{
if
(
!
props
.
text
||
!
props
.
entities
)
{
// console.log('props.text', props.entities.length)
// console.log('props.text', props.entities.length)
processedText
.
value
=
[{
text
:
''
,
isEntity
:
false
}]
processedText
.
value
=
[{
text
:
""
,
isEntity
:
false
}];
return
return
;
}
}
const
result
=
[]
const
result
=
[];
let
currentPosition
=
0
let
currentPosition
=
0
;
// 按实体文本长度排序,优先匹配长文本
// 按实体文本长度排序,优先匹配长文本
const
sortedEntities
=
[...
props
.
entities
].
sort
((
a
,
b
)
=>
const
sortedEntities
=
[...
props
.
entities
].
sort
((
a
,
b
)
=>
b
.
text_span
.
length
-
a
.
text_span
.
length
);
b
.
text_span
.
length
-
a
.
text_span
.
length
)
while
(
currentPosition
<
props
.
text
.
length
)
{
while
(
currentPosition
<
props
.
text
.
length
)
{
let
matched
=
false
let
matched
=
false
;
for
(
const
entity
of
sortedEntities
)
{
for
(
const
entity
of
sortedEntities
)
{
const
entityText
=
entity
.
text_span
const
entityText
=
entity
.
text_span
;
const
endPosition
=
currentPosition
+
entityText
.
length
const
endPosition
=
currentPosition
+
entityText
.
length
;
if
(
props
.
text
.
substring
(
currentPosition
,
endPosition
)
===
entityText
)
{
if
(
props
.
text
.
substring
(
currentPosition
,
endPosition
)
===
entityText
)
{
// 如果当前位置是实体,添加到结果
// 如果当前位置是实体,添加到结果
result
.
push
({
result
.
push
({
isEntity
:
true
,
isEntity
:
true
,
entity
:
{
...
entity
}
entity
:
{
...
entity
}
})
});
currentPosition
=
endPosition
currentPosition
=
endPosition
;
matched
=
true
matched
=
true
;
break
break
;
}
}
}
}
if
(
!
matched
)
{
if
(
!
matched
)
{
// 如果不是实体,收集普通文本
// 如果不是实体,收集普通文本
let
nextEntityStart
=
props
.
text
.
length
let
nextEntityStart
=
props
.
text
.
length
;
for
(
const
entity
of
sortedEntities
)
{
for
(
const
entity
of
sortedEntities
)
{
const
pos
=
props
.
text
.
indexOf
(
entity
.
text_span
,
currentPosition
)
const
pos
=
props
.
text
.
indexOf
(
entity
.
text_span
,
currentPosition
);
if
(
pos
!==
-
1
&&
pos
<
nextEntityStart
)
{
if
(
pos
!==
-
1
&&
pos
<
nextEntityStart
)
{
nextEntityStart
=
pos
nextEntityStart
=
pos
;
}
}
}
}
if
(
nextEntityStart
>
currentPosition
)
{
if
(
nextEntityStart
>
currentPosition
)
{
const
plainText
=
props
.
text
.
substring
(
currentPosition
,
nextEntityStart
)
const
plainText
=
props
.
text
.
substring
(
currentPosition
,
nextEntityStart
);
result
.
push
({
result
.
push
({
text
:
plainText
,
text
:
plainText
,
isEntity
:
false
isEntity
:
false
})
});
currentPosition
=
nextEntityStart
currentPosition
=
nextEntityStart
;
}
else
{
}
else
{
// 没有更多实体,添加剩余文本
// 没有更多实体,添加剩余文本
const
remainingText
=
props
.
text
.
substring
(
currentPosition
)
const
remainingText
=
props
.
text
.
substring
(
currentPosition
);
if
(
remainingText
)
{
if
(
remainingText
)
{
result
.
push
({
result
.
push
({
text
:
remainingText
,
text
:
remainingText
,
isEntity
:
false
isEntity
:
false
})
});
}
}
currentPosition
=
props
.
text
.
length
currentPosition
=
props
.
text
.
length
;
}
}
}
}
}
}
processedText
.
value
=
result
processedText
.
value
=
result
;
}
}
;
// 监听文本和实体变化
// 监听文本和实体变化
watch
(()
=>
props
.
text
,
processText
)
watch
(()
=>
props
.
text
,
processText
)
;
watch
(()
=>
props
.
entities
,
processText
,
{
deep
:
true
})
watch
(()
=>
props
.
entities
,
processText
,
{
deep
:
true
})
;
// 初始化处理
// 初始化处理
onMounted
(
processText
)
onMounted
(
processText
)
;
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@use
'@/styles/common.scss'
;
@use
"@/styles/common.scss"
;
.entity-link
{
.entity-link
{
color
:
var
(
--
color-primary-100
);
color
:
var
(
--
color-primary-100
);
&
:hover
{
cursor
:
pointer
;
}
}
}
.p-regular-rereg
{
.p-regular-rereg
{
text-indent
:
2em
;
text-indent
:
2em
;
margin
:
4px
0
;
margin
:
4px
0
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/components/base/texts/TextTranslatePane.vue
浏览文件 @
3f12faf6
<
template
>
<
template
>
<div
class=
"full-width"
>
<div
class=
"full-width"
>
<div
class=
"flex-display"
style=
"align-items: center;"
>
<div
class=
"flex-display"
style=
"align-items: center"
>
<common-text
class=
"text-title-3-bold"
color=
"var(--text-primary-80-color)"
>
{{
isOpenTranslation
<common-text
class=
"text-title-3-bold"
color=
"var(--text-primary-80-color)"
>
{{
?
'中文'
:
'原文'
}}
</common-text>
isOpenTranslation
?
"中文"
:
"原文"
<div
class=
"flex-fill"
style=
"margin: 0 10px;"
>
}}
</common-text>
<el-divider></el-divider>
<div
class=
"flex-fill"
style=
"margin: 0 10px"
>
</div>
<el-divider></el-divider>
<el-button
v-if=
"showMoreVisible"
@
click=
"() =>
{ showMore = !showMore; updateText() }">
</div>
{{
showMore
?
'收起'
:
'展开'
}}
<el-button
<el-icon>
v-if=
"showMoreVisible"
<arrow-up
v-if=
"showMore"
/>
@
click=
"
<arrow-down
v-else
/>
() =>
{
</el-icon>
showMore = !showMore;
</el-button>
updateText();
</div>
}
<el-row
:gutter=
"32"
>
"
<el-col
:span=
"textColSpan"
v-for=
"(item, index) in allTexts"
:key=
"index"
>
>
<!--
<p
class=
"p-news-content"
>
{{
item
}}
</p>
-->
{{
showMore
?
"收起"
:
"展开"
}}
<intelligent-entity-text
:text=
"item"
<el-icon>
:entities=
"isHighlightEntity ? textEntities : []"
></intelligent-entity-text>
<arrow-up
v-if=
"showMore"
/>
</el-col>
<arrow-down
v-else
/>
</el-row>
</el-icon>
</div>
</el-button>
</div>
<el-row
:gutter=
"32"
>
<el-col
:span=
"textColSpan"
v-for=
"(item, index) in allTexts"
:key=
"index"
>
<!--
<p
class=
"p-news-content"
>
{{
item
}}
</p>
-->
<intelligent-entity-text
:text=
"item"
@
on-entity-click=
"e => $emit('onEntityClick', e)"
:entities=
"isHighlightEntity ? textEntities : []"
></intelligent-entity-text>
</el-col>
</el-row>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
'@/styles/container.scss'
;
import
"@/styles/container.scss"
;
import
'@/styles/common.scss'
;
import
"@/styles/common.scss"
;
import
{
ref
,
watch
,
onMounted
}
from
'vue'
;
import
{
ref
,
watch
,
onMounted
}
from
"vue"
;
import
{
TextEntity
}
from
'@/api/intelligent'
;
import
{
TextEntity
}
from
"@/api/intelligent"
;
import
IntelligentEntityText
from
'@/components/base/texts/IntelligentEntityText.vue'
;
import
IntelligentEntityText
from
"@/components/base/texts/IntelligentEntityText.vue"
;
import
{
ElIcon
,
ElButton
,
ElDivider
,
ElRow
,
ElCol
}
from
'element-plus'
;
import
{
ElIcon
,
ElButton
,
ElDivider
,
ElRow
,
ElCol
}
from
"element-plus"
;
import
CommonText
from
'./CommonText.vue'
;
import
CommonText
from
"./CommonText.vue"
;
const
allTexts
=
ref
([]);
const
allTexts
=
ref
([]);
const
textColSpan
=
ref
(
12
);
const
textColSpan
=
ref
(
12
);
...
@@ -39,71 +51,73 @@ const hasTranslation = ref(false);
...
@@ -39,71 +51,73 @@ const hasTranslation = ref(false);
const
showMore
=
ref
(
false
);
const
showMore
=
ref
(
false
);
const
showMoreVisible
=
ref
(
false
);
const
showMoreVisible
=
ref
(
false
);
const
props
=
defineProps
({
const
props
=
defineProps
({
//段落列表: 原始文本
//段落列表: 原始文本
textsRaw
:
{
textsRaw
:
{
type
:
Array
<
String
>
,
type
:
Array
<
String
>
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
//段落列表: 翻译文本
//段落列表: 翻译文本
textsTranslate
:
{
textsTranslate
:
{
type
:
Array
<
String
>
,
type
:
Array
<
String
>
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
//是否显示翻译
//是否显示翻译
isOpenTranslation
:
{
isOpenTranslation
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
},
//是否高亮实体
//是否高亮实体
isHighlightEntity
:
{
isHighlightEntity
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
},
//实体列表
//实体列表
textEntities
:
{
textEntities
:
{
type
:
Array
<
TextEntity
>
,
type
:
Array
<
TextEntity
>
,
default
:
()
=>
[]
default
:
()
=>
[]
}
}
})
})
;
const
emit
=
defineEmits
([
"onEntityClick"
]);
function
updateText
()
{
function
updateText
()
{
const
tempTexts
=
[]
const
tempTexts
=
[];
const
tempRaws
=
props
.
textsRaw
??
[]
const
tempRaws
=
props
.
textsRaw
??
[];
const
tempTranslates
=
props
.
textsTranslate
??
[]
const
tempTranslates
=
props
.
textsTranslate
??
[];
hasTranslation
.
value
=
tempTranslates
.
length
>
0
hasTranslation
.
value
=
tempTranslates
.
length
>
0
;
if
(
hasTranslation
.
value
&&
props
.
isOpenTranslation
)
{
if
(
hasTranslation
.
value
&&
props
.
isOpenTranslation
)
{
// 遍历原始文本和翻译文本,将它们交替添加到 tempTexts 中,并保持原始文本和翻译文本的的数量一致
// 遍历原始文本和翻译文本,将它们交替添加到 tempTexts 中,并保持原始文本和翻译文本的的数量一致
const
maxCount
=
Math
.
max
(
tempRaws
.
length
,
tempTranslates
.
length
)
const
maxCount
=
Math
.
max
(
tempRaws
.
length
,
tempTranslates
.
length
);
for
(
let
i
=
0
;
i
<
maxCount
;
i
++
)
{
for
(
let
i
=
0
;
i
<
maxCount
;
i
++
)
{
if
(
i
<
tempTranslates
.
length
)
{
if
(
i
<
tempTranslates
.
length
)
{
tempTexts
.
push
(
tempTranslates
[
i
]);
tempTexts
.
push
(
tempTranslates
[
i
]);
}
else
{
}
else
{
tempTexts
.
push
(
''
);
tempTexts
.
push
(
""
);
}
}
if
(
i
<
tempRaws
.
length
)
{
if
(
i
<
tempRaws
.
length
)
{
tempTexts
.
push
(
tempRaws
[
i
]);
tempTexts
.
push
(
tempRaws
[
i
]);
}
else
{
}
else
{
tempTexts
.
push
(
''
);
tempTexts
.
push
(
""
);
}
}
}
}
console
.
log
(
tempTexts
.
length
)
console
.
log
(
tempTexts
.
length
);
textColSpan
.
value
=
12
;
textColSpan
.
value
=
12
;
showMoreVisible
.
value
=
tempTexts
.
length
>
6
;
showMoreVisible
.
value
=
tempTexts
.
length
>
6
;
allTexts
.
value
=
showMore
.
value
?
tempTexts
:
tempTexts
.
slice
(
0
,
6
);
allTexts
.
value
=
showMore
.
value
?
tempTexts
:
tempTexts
.
slice
(
0
,
6
);
}
else
{
}
else
{
textColSpan
.
value
=
24
;
textColSpan
.
value
=
24
;
showMoreVisible
.
value
=
tempRaws
.
length
>
3
;
showMoreVisible
.
value
=
tempRaws
.
length
>
3
;
allTexts
.
value
=
showMore
.
value
?
tempRaws
:
tempRaws
.
slice
(
0
,
3
);
allTexts
.
value
=
showMore
.
value
?
tempRaws
:
tempRaws
.
slice
(
0
,
3
);
}
}
}
}
watch
(()
=>
[
props
.
textsRaw
,
props
.
textsTranslate
,
props
.
isOpenTranslation
],
()
=>
{
watch
(
updateText
();
()
=>
[
props
.
textsRaw
,
props
.
textsTranslate
,
props
.
isOpenTranslation
],
})
()
=>
{
updateText
();
}
);
onMounted
(()
=>
{
onMounted
(()
=>
{
updateText
();
updateText
();
})
});
</
script
>
</
script
>
\ No newline at end of file
src/router/index.js
浏览文件 @
3f12faf6
...
@@ -65,4 +65,5 @@ router.beforeEach((to, from, next) => {
...
@@ -65,4 +65,5 @@ router.beforeEach((to, from, next) => {
next
();
next
();
});
});
export
default
router
;
export
default
router
;
src/router/modules/comprehensiveSearch.js
浏览文件 @
3f12faf6
// 综合搜索
// 综合搜索
const
ComprehensiveSearch
=
()
=>
import
(
'@/views/comprehensiveSearch/index.vue'
)
const
ComprehensiveSearch
=
()
=>
import
(
"@/views/comprehensiveSearch/index.vue"
);
const
SearchResults
=
()
=>
import
(
'@/views/comprehensiveSearch/searchResults/index.vue'
)
const
SearchResults
=
()
=>
import
(
"@/views/comprehensiveSearch/searchResults/index.vue"
);
const
Chat
=
()
=>
import
(
'@/views/comprehensiveSearch/chat/index.vue'
)
const
Chat
=
()
=>
import
(
"@/views/comprehensiveSearch/chat/index.vue"
);
const
comprehensiveSearchRoutes
=
[
const
comprehensiveSearchRoutes
=
[
// 综合搜索
// 综合搜索
{
{
path
:
"/comprehensiveSearch"
,
path
:
"/comprehensiveSearch"
,
name
:
"comprehensiveSearch"
,
name
:
"comprehensiveSearch"
,
component
:
ComprehensiveSearch
,
component
:
ComprehensiveSearch
,
meta
:
{
meta
:
{
title
:
"搜索-科技安全"
title
:
"搜索-科技安全"
}
}
},
},
{
{
path
:
"/searchResults"
,
path
:
"/searchResults"
,
name
:
"searchResults"
,
name
:
"searchResults"
,
component
:
SearchResults
,
component
:
SearchResults
,
meta
:
{
meta
:
{
title
:
"搜索结果"
,
title
:
"搜索结果"
,
dynamicTitle
:
true
dynamicTitle
:
true
}
}
},
},
{
{
path
:
"/chat"
,
path
:
"/chat"
,
name
:
"chat"
,
name
:
"chat"
,
component
:
Chat
,
component
:
Chat
,
meta
:
{
meta
:
{
title
:
"智能问答"
title
:
"智能问答"
}
}
},
}
];
]
import
{
useGotoPage
}
from
"../common.js"
;
import
{
useGotoPage
}
from
"../common.js"
;
export
function
useGotoComprehensiveSearch
()
{
export
function
useGotoComprehensiveSearch
()
{
const
gotoPage
=
useGotoPage
();
const
gotoPage
=
useGotoPage
();
return
(
isNewTabs
=
true
)
=>
gotoPage
(
"/comprehensiveSearch/"
,
{},
isNewTabs
)
return
(
isNewTabs
=
true
)
=>
gotoPage
(
"/comprehensiveSearch/"
,
{},
isNewTabs
);
}
}
export
function
useGotoSearchResults
()
{
export
function
useGotoSearchResults
()
{
const
gotoPage
=
useGotoPage
();
const
gotoPage
=
useGotoPage
();
return
(
isNewTabs
=
true
)
=>
gotoPage
(
"/searchResults/"
,
{
searchText
,
areaName
},
isNewTabs
)
return
(
searchText
,
areaName
,
isNewTabs
=
true
)
=>
gotoPage
(
"/searchResults/"
,
{
searchText
,
areaName
},
isNewTabs
);
}
}
export
default
comprehensiveSearchRoutes
export
default
comprehensiveSearchRoutes
;
\ No newline at end of file
src/utils/setChart.js
浏览文件 @
3f12faf6
...
@@ -11,7 +11,6 @@ const setChart = (option, chartId, allowClick, selectParam) => {
...
@@ -11,7 +11,6 @@ const setChart = (option, chartId, allowClick, selectParam) => {
let
chart
=
echarts
.
init
(
chartDom
);
let
chart
=
echarts
.
init
(
chartDom
);
chart
.
setOption
(
option
);
chart
.
setOption
(
option
);
if
(
allowClick
)
{
if
(
allowClick
)
{
// 3. 添加点击事件监听
chart
.
on
(
'click'
,
function
(
params
)
{
chart
.
on
(
'click'
,
function
(
params
)
{
switch
(
selectParam
.
moduleType
)
{
switch
(
selectParam
.
moduleType
)
{
case
'国会法案'
:
case
'国会法案'
:
...
...
src/views/bill/billHome/index.vue
浏览文件 @
3f12faf6
...
@@ -988,7 +988,9 @@ const handleBox9Data = async () => {
...
@@ -988,7 +988,9 @@ const handleBox9Data = async () => {
const
selectParam
=
{
const
selectParam
=
{
moduleType
:
'国会法案'
,
moduleType
:
'国会法案'
,
proposedDateStart
:
box9selectetedTime
.
value
,
proposedDateStart
:
box9selectetedTime
.
value
,
status
:
box9LegislativeStatus
.
value
===
'提出法案'
?
0
:
1
status
:
box9LegislativeStatus
.
value
===
'提出法案'
?
0
:
1
,
isInvolveCn
:
1
}
}
box9ChartInstance
=
setChart
(
box9Chart
,
"box9Chart"
,
true
,
selectParam
);
box9ChartInstance
=
setChart
(
box9Chart
,
"box9Chart"
,
true
,
selectParam
);
...
...
src/views/dataLibrary/bill/countryBill/index.vue
浏览文件 @
3f12faf6
差异被折叠。
点击展开。
src/views/dataLibrary/index.vue
浏览文件 @
3f12faf6
...
@@ -111,13 +111,13 @@ const siderList = ref([
...
@@ -111,13 +111,13 @@ const siderList = ref([
{
{
name
:
'科技法案'
,
name
:
'科技法案'
,
icon
:
Icon1
,
icon
:
Icon1
,
active
:
tru
e
,
active
:
fals
e
,
isExpanded
:
tru
e
,
isExpanded
:
fals
e
,
children
:
[
children
:
[
{
{
name
:
'国会法案'
,
name
:
'国会法案'
,
path
:
'/dataLibrary/countryBill'
,
path
:
'/dataLibrary/countryBill'
,
active
:
tru
e
,
active
:
fals
e
,
},
},
{
{
name
:
'州法案'
,
name
:
'州法案'
,
...
@@ -477,6 +477,118 @@ const handleClickToolBox = () => {
...
@@ -477,6 +477,118 @@ const handleClickToolBox = () => {
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
const
path
=
route
.
path
switch
(
path
)
{
case
'/dataLibrary/countryBill'
:
siderList
.
value
[
0
].
active
=
true
siderList
.
value
[
0
].
isExpanded
=
true
siderList
.
value
[
0
].
children
[
0
].
active
=
true
break
case
'/dataLibrary/stateBill'
:
siderList
.
value
[
0
].
active
=
true
siderList
.
value
[
0
].
isExpanded
=
true
siderList
.
value
[
0
].
children
[
1
].
active
=
true
break
case
'/dataLibrary/dataDecree'
:
siderList
.
value
[
1
].
active
=
true
break
case
'/dataLibrary/dataThinkTank'
:
siderList
.
value
[
2
].
active
=
true
break
case
'/dataLibrary/dataEntityList'
:
siderList
.
value
[
3
].
active
=
true
siderList
.
value
[
3
].
isExpanded
=
true
siderList
.
value
[
3
].
children
[
0
].
active
=
true
break
case
'/dataLibrary/dataCommerceControlList'
:
siderList
.
value
[
3
].
active
=
true
siderList
.
value
[
3
].
isExpanded
=
true
siderList
.
value
[
3
].
children
[
1
].
active
=
true
break
case
'/dataLibrary/dataEntityListEvent'
:
siderList
.
value
[
3
].
active
=
true
siderList
.
value
[
3
].
isExpanded
=
true
siderList
.
value
[
3
].
children
[
2
].
active
=
true
break
case
'/dataLibrary/dataCommerceControlListEvent'
:
siderList
.
value
[
3
].
active
=
true
siderList
.
value
[
3
].
isExpanded
=
true
siderList
.
value
[
3
].
children
[
3
].
active
=
true
break
case
'/dataLibrary/sDNList'
:
siderList
.
value
[
4
].
active
=
true
siderList
.
value
[
4
].
isExpanded
=
true
siderList
.
value
[
4
].
children
[
0
].
active
=
true
break
case
'/dataLibrary/mREList'
:
siderList
.
value
[
4
].
active
=
true
siderList
.
value
[
4
].
isExpanded
=
true
siderList
.
value
[
4
].
children
[
1
].
active
=
true
break
case
'/dataLibrary/sDNListEvent'
:
siderList
.
value
[
4
].
active
=
true
siderList
.
value
[
4
].
isExpanded
=
true
siderList
.
value
[
4
].
children
[
2
].
active
=
true
break
case
'/dataLibrary/mREListEvent'
:
siderList
.
value
[
4
].
active
=
true
siderList
.
value
[
4
].
isExpanded
=
true
siderList
.
value
[
4
].
children
[
3
].
active
=
true
break
case
'/dataLibrary/case337'
:
siderList
.
value
[
5
].
active
=
true
siderList
.
value
[
5
].
isExpanded
=
true
siderList
.
value
[
5
].
children
[
0
].
active
=
true
break
case
'/dataLibrary/case232'
:
siderList
.
value
[
5
].
active
=
true
siderList
.
value
[
5
].
isExpanded
=
true
siderList
.
value
[
5
].
children
[
1
].
active
=
true
break
case
'/dataLibrary/case301'
:
siderList
.
value
[
5
].
active
=
true
siderList
.
value
[
5
].
isExpanded
=
true
siderList
.
value
[
5
].
children
[
2
].
active
=
true
break
case
'/dataLibrary/congressMan'
:
siderList
.
value
[
6
].
active
=
true
siderList
.
value
[
6
].
isExpanded
=
true
siderList
.
value
[
6
].
children
[
0
].
active
=
true
break
case
'/dataLibrary/technologyLeader'
:
siderList
.
value
[
6
].
active
=
true
siderList
.
value
[
6
].
isExpanded
=
true
siderList
.
value
[
6
].
children
[
1
].
active
=
true
break
case
'/dataLibrary/minister'
:
siderList
.
value
[
6
].
active
=
true
siderList
.
value
[
6
].
isExpanded
=
true
siderList
.
value
[
6
].
children
[
2
].
active
=
true
break
case
'/dataLibrary/thinkTankResearcher'
:
siderList
.
value
[
6
].
active
=
true
siderList
.
value
[
6
].
isExpanded
=
true
siderList
.
value
[
6
].
children
[
3
].
active
=
true
break
case
'/dataLibrary/technologyCompany'
:
siderList
.
value
[
7
].
active
=
true
siderList
.
value
[
7
].
isExpanded
=
true
siderList
.
value
[
7
].
children
[
0
].
active
=
true
break
case
'/dataLibrary/researchUniversity'
:
siderList
.
value
[
7
].
active
=
true
siderList
.
value
[
7
].
isExpanded
=
true
siderList
.
value
[
7
].
children
[
1
].
active
=
true
break
case
'/dataLibrary/keyLab'
:
siderList
.
value
[
7
].
active
=
true
siderList
.
value
[
7
].
isExpanded
=
true
siderList
.
value
[
7
].
children
[
2
].
active
=
true
break
}
})
})
...
@@ -683,7 +795,8 @@ onMounted(() => {
...
@@ -683,7 +795,8 @@ onMounted(() => {
.icon
{
.icon
{
width
:
16px
;
width
:
16px
;
height
:
16px
;
height
:
16px
;
&
:hover
{
&
:hover
{
border-radius
:
8px
;
border-radius
:
8px
;
background
:
var
(
--
color-primary-10
);
background
:
var
(
--
color-primary-10
);
}
}
...
...
src/views/home/index.vue
浏览文件 @
3f12faf6
...
@@ -77,7 +77,7 @@ import { useRoute } from "vue-router";
...
@@ -77,7 +77,7 @@ import { useRoute } from "vue-router";
import
AiBox
from
"@/components/AiBox.vue"
;
import
AiBox
from
"@/components/AiBox.vue"
;
import
{
getPersonType
}
from
"@/api/common/index"
;
import
{
getPersonType
}
from
"@/api/common/index"
;
// import { useDraggable } from "@vueuse/core";
// import { useDraggable } from "@vueuse/core";
import
ModuleHeader
from
'@/components/base/
M
oduleHeader/index.vue'
import
ModuleHeader
from
'@/components/base/
m
oduleHeader/index.vue'
import
Menu1
from
"@/assets/icons/overview/menu1.png"
;
import
Menu1
from
"@/assets/icons/overview/menu1.png"
;
import
Menu2
from
"@/assets/icons/overview/menu2.png"
;
import
Menu2
from
"@/assets/icons/overview/menu2.png"
;
...
@@ -120,7 +120,7 @@ const handleGetPersonType = async () => {
...
@@ -120,7 +120,7 @@ const handleGetPersonType = async () => {
personTypeList
.
value
=
[];
personTypeList
.
value
=
[];
}
}
window
.
sessionStorage
.
setItem
(
"personTypeList"
,
JSON
.
stringify
(
personTypeList
.
value
));
window
.
sessionStorage
.
setItem
(
"personTypeList"
,
JSON
.
stringify
(
personTypeList
.
value
));
}
catch
(
error
)
{}
}
catch
(
error
)
{
}
};
};
const
isCurrentOverview
=
computed
(()
=>
{
const
isCurrentOverview
=
computed
(()
=>
{
...
@@ -298,7 +298,7 @@ body {
...
@@ -298,7 +298,7 @@ body {
text-align
:
justify
;
text-align
:
justify
;
}
}
.el-popper
[
data-popper-placement
^=
"top"
]
>
.el-popper__arrow
:before
{
.el-popper
[
data-popper-placement
^=
"top"
]
>
.el-popper__arrow
:before
{
display
:
none
;
display
:
none
;
}
}
...
...
src/views/newsBrief/NewsDetial.vue
浏览文件 @
3f12faf6
差异被折叠。
点击展开。
src/views/newsBrief/NewsMain.vue
浏览文件 @
3f12faf6
...
@@ -25,20 +25,21 @@
...
@@ -25,20 +25,21 @@
<img
src=
"@/assets/icons/subject-icon.png"
/>
<img
src=
"@/assets/icons/subject-icon.png"
/>
</
template
>
</
template
>
<el-space
:size=
"16"
direction=
"vertical"
fill
class=
"full-width common-padding"
>
<el-space
:size=
"16"
direction=
"vertical"
fill
class=
"full-width common-padding"
>
<el-space
v-for=
"(item, index) in subjectData.slice(0, 3)"
:key=
"index"
class=
"mouse-hover"
<el-space
v-for=
"(item, index) in subjectData.slice(0, 3)"
:key=
"index"
@
click=
"() => gotoNewsDetail(item.newsId)"
alignment=
"center"
>
@
click=
"() => gotoNewsDetail(item.newsId)"
alignment=
"center"
>
<common-text
class=
"text-bold"
<common-text
class=
"text-bold
text-hover
"
:color=
"index === 0 ? 'var(--color-red-100)' : (index === 1 ? 'var(--color-orange-100)' : 'var(--text-primary-65-color)')"
>
:color=
"index === 0 ? 'var(--color-red-100)' : (index === 1 ? 'var(--color-orange-100)' : 'var(--text-primary-65-color)')"
>
{{ `${index + 1}` }}
{{ `${index + 1}` }}
</common-text>
</common-text>
<common-text
class=
"text-bold"
color=
"var(--text-primary-80-color)"
>
{{
<common-text
class=
"text-bold
text-hover
"
color=
"var(--text-primary-80-color)"
>
{{
item.newsTitle
item.newsTitle
}}
</common-text>
}}
</common-text>
</el-space>
</el-space>
<el-space
v-for=
"(item, index) in subjectData.slice(3)"
:key=
"index"
class=
"mouse-hover"
>
<el-space
v-for=
"(item, index) in subjectData.slice(3)"
:key=
"index"
<common-text
class=
"text-regular"
color=
"var(--text-primary-80-color)"
>
{{
@
click=
"() => gotoNewsDetail(item.newsId)"
>
<common-text
class=
"text-regular text-hover"
color=
"var(--text-primary-80-color)"
>
{{
"• " + item.newsTitle
"• " + item.newsTitle
}}
</common-text>
}}
</common-text>
</el-space>
</el-space>
</el-space>
</el-space>
</box-background>
</box-background>
...
@@ -48,6 +49,7 @@
...
@@ -48,6 +49,7 @@
</template>
</template>
<
script
setup
>
<
script
setup
>
import
{
ref
,
onMounted
}
from
"vue"
;
import
{
ref
,
onMounted
}
from
"vue"
;
import
'@/styles/common.scss'
;
import
'@/styles/container.scss'
;
import
'@/styles/container.scss'
;
import
'@/styles/radio.scss'
;
import
'@/styles/radio.scss'
;
import
{
useGotoNewsModule
,
useGotoNewsDetail
}
from
"@/router/modules/news"
;
import
{
useGotoNewsModule
,
useGotoNewsDetail
}
from
"@/router/modules/news"
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论