Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏敏伟
xxx_phase2_web
Commits
49df73ab
Commit
49df73ab
authored
Nov 29, 2023
by
夏敏伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加删除确认
parent
70c7b567
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
280 additions
and
192 deletions
+280
-192
src/view/flfg/flfg1.vue
src/view/flfg/flfg1.vue
+28
-18
src/view/xxxl/llxx.vue
src/view/xxxl/llxx.vue
+40
-29
src/view/yqjc/zk_info.vue
src/view/yqjc/zk_info.vue
+212
-145
No files found.
src/view/flfg/flfg1.vue
View file @
49df73ab
...
...
@@ -29,8 +29,8 @@
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
@
c
lick=
"viewLiterature(item1)"
@
c
ontextmenu.prevent.stop=
"showInfo(item1)"
/>
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
contextmenu.prevent.stop=
"showInfo(item1)"
/>
</div>
</div>
<div
class=
"content-list"
>
...
...
@@ -65,8 +65,7 @@
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
dblclick=
"showInfo(item1)"
/>
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
dblclick=
"showInfo(item1)"
/>
</div>
</div>
<div
class=
"content-list"
>
...
...
@@ -101,8 +100,8 @@
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
@
c
lick=
"viewLiterature(item1)"
@
c
ontextmenu.prevent.stop=
"showInfo(item1)"
/>
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
contextmenu.prevent.stop=
"showInfo(item1)"
/>
</div>
</div>
<div
class=
"content-list"
>
...
...
@@ -1633,7 +1632,7 @@ export default {
},
//根据文本信息查询文件
searchLiterature
()
{
searchLiterature
(
'
法律法规
'
,
this
.
fulltextPagination
.
currentPage
,
this
.
fulltextPagination
.
everySize
,
this
.
input
).
then
((
res
)
=>
{
searchLiterature
(
'
法律法规
'
,
this
.
fulltextPagination
.
currentPage
,
this
.
fulltextPagination
.
everySize
,
this
.
input
).
then
((
res
)
=>
{
res
.
list
.
forEach
((
item
)
=>
{
item
.
createTime
=
dateChangeFormat
(
"
YYYY-mm-dd HH:MM:SS
"
,
...
...
@@ -2047,6 +2046,11 @@ export default {
},
//删除收藏夹目录
delectCollectionFolder
(
id
)
{
this
.
$confirm
(
'
此操作将永久删除, 是否继续?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
removeCollectionFolder
(
id
)
.
then
((
res
)
=>
{
if
(
res
==
1
)
{
...
...
@@ -2057,6 +2061,12 @@ export default {
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'
info
'
,
message
:
'
已取消删除
'
});
});
},
//全文检索
handleCurrentChangeFulltext
(
pageNum
)
{
...
...
@@ -2139,7 +2149,7 @@ export default {
});
})
.
then
(()
=>
{
multiQueryLiterature
(
"
法律法规
"
,
false
,
ids
)
multiQueryLiterature
(
"
法律法规
"
,
false
,
ids
)
.
then
((
res
)
=>
{
this
.
viewData
=
res
;
//国际法
...
...
@@ -2165,7 +2175,7 @@ export default {
.
catch
((
err
)
=>
{
});
//多板块文献资料图片查询
multiQueryLiterature
(
"
法律法规
"
,
true
,
ids
)
multiQueryLiterature
(
"
法律法规
"
,
true
,
ids
)
.
then
((
res
)
=>
{
//三战业务理论
this
.
internationalLaw
[
0
].
img
=
res
[
1
];
...
...
src/view/xxxl/llxx.vue
View file @
49df73ab
...
...
@@ -28,8 +28,8 @@
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
@
c
lick=
"viewLiterature(item1)"
@
c
ontextmenu.prevent.stop=
"showInfo(item1)"
/>
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
contextmenu.prevent.stop=
"showInfo(item1)"
/>
</div>
</div>
<div
class=
"content-list"
>
...
...
@@ -64,8 +64,8 @@
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
@
c
lick=
"viewLiterature(item1)"
@
c
ontextmenu.prevent.stop=
"showInfo(item1)"
/>
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
contextmenu.prevent.stop=
"showInfo(item1)"
/>
</div>
</div>
<div
class=
"content-list"
>
...
...
@@ -101,8 +101,8 @@
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
@
c
lick=
"viewLiterature(item1)"
@
c
ontextmenu.prevent.stop=
"showInfo(item1)"
/>
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
contextmenu.prevent.stop=
"showInfo(item1)"
/>
</div>
</div>
<div
class=
"content-list"
>
...
...
@@ -2005,6 +2005,11 @@ export default {
},
//删除收藏夹目录
delectCollectionFolder
(
id
)
{
this
.
$confirm
(
'
此操作将永久删除, 是否继续?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
removeCollectionFolder
(
id
).
then
((
res
)
=>
{
if
(
res
==
1
)
{
this
.
$message
.
success
(
"
删除成功!
"
);
...
...
@@ -2014,6 +2019,12 @@ export default {
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'
info
'
,
message
:
'
已取消删除
'
});
});
},
//全文检索
handleCurrentChangeFulltext
(
pageNum
)
{
...
...
src/view/yqjc/zk_info.vue
View file @
49df73ab
...
...
@@ -4,14 +4,14 @@
<div
class=
"news_info_top-nav"
>
<img
class=
"back"
:src=
"back"
@
click=
"goBack"
/>
<div
class=
"top-left-left"
>
<div
class=
"zzsx"
:style=
"
{
'display':getNews.summary==null||getNews.summary==undefined?'none':''
}">
<span><span
style=
"font-size: 14px;"
>
中心思想:
</span><br>
{{
getNews
.
summary
}}
</span>
<div
class=
"zzsx"
:style=
"
{
'display': getNews.summary == null || getNews.summary == undefined ? 'none' : ''
}">
<span><span
style=
"font-size: 14px;"
>
中心思想:
</span><br>
{{
getNews
.
summary
}}
</span>
</div>
</div>
<div
class=
"top-left"
>
<div
class=
"zyx1"
>
<div>
<span>
{{
txtFlag
?
'
译
'
:
'
原
'
}}
</span>
<span>
{{
txtFlag
?
'
译
'
:
'
原
'
}}
</span>
</div>
</div>
<div
class=
"top-left-title"
v-text=
"getNews.title"
:title=
"getNews.title"
></div>
...
...
@@ -19,10 +19,12 @@
<span>
来源:
</span><span
v-text=
"getNews.site_name"
></span>
   
<span>
发布时间:
</span><span
v-text=
"getNews.pubTime"
></span>
</div>
<div
class=
"top-left-img"
v-show=
"getNews.website_img!=null&&getNews.website_img.length>0"
>
<el-image
v-for=
"(item,index) in getNews.website_img"
:src=
"NewsPictureUrl+item"
:key=
"index"
></el-image>
<div
class=
"top-left-img"
v-show=
"getNews.website_img != null && getNews.website_img.length > 0"
>
<el-image
v-for=
"(item, index) in getNews.website_img"
:src=
"NewsPictureUrl + item"
:key=
"index"
></el-image>
</div>
<div
class=
"top-left-content"
ref=
"copy1"
v-html=
"getNews.text"
@
contextmenu.prevent.stop=
"openMenu($event)"
></div>
<div
class=
"top-left-content"
ref=
"copy1"
v-html=
"getNews.text"
@
contextmenu.prevent.stop=
"openMenu($event)"
></div>
</div>
<div
class=
"top-left-left"
>
<div
style=
"width:100%;height:200px"
id=
"rmcy"
>
...
...
@@ -32,22 +34,28 @@
</div>
<div
class=
"bottom-nav"
>
<div
class=
"bottom-title"
>
<div
class=
"title-one1"
v-if=
"getNews.tag&&getNews.tag!=''&&getNews.tag.length>0"
>
<el-tag
:style=
"
{backgroundColor:returnColor(item),borderColor:returnColor(item)}" effect="dark" v-for="(item,index) in getNews.tag" v-text="item" :key="index" v-if="item">
</el-tag>
<div
class=
"title-one1"
v-if=
"getNews.tag && getNews.tag != '' && getNews.tag.length > 0"
>
<el-tag
:style=
"
{ backgroundColor: returnColor(item), borderColor: returnColor(item) }" effect="dark"
v-for="(item, index) in getNews.tag" v-text="item" :key="index" v-if="item">
</el-tag>
</div>
<div
class=
"title-one1"
v-else=
"getNews.tag&&getNews.tag!=''&&getNews.tag.length>0"
>
</div>
<div
class=
"title-three"
>
<a
class=
"translation"
@
click=
"translation"
><i
class=
"el-icon-s-order"
></i>
{{
txtFlag
?
'
原文
'
:
'
译文
'
}}
</a>
 
<a
class=
"copy"
@
click=
"copy(0)"
:data-clipboard-text=
"getNews.url"
><i
class=
"el-icon-connection"
></i><span>
<a
class=
"translation"
@
click=
"translation"
><i
class=
"el-icon-s-order"
></i>
{{
txtFlag
?
'
原文
'
:
'
译文
'
}}
</a>
 
<a
class=
"copy"
@
click=
"copy(0)"
:data-clipboard-text=
"getNews.url"
><i
class=
"el-icon-connection"
></i><span>
原文链接
</span></a>
 
<a
class=
"copy1"
@
click=
"copy(1)"
:data-clipboard-text=
"getNews.text"
><i
class=
"el-icon-document-copy"
></i><span>
复制
</span></a>
 
<a
@
click=
"exportWord"
><i
class=
"el-icon-download"
></i><span>
下载
</span></a>
     
<a
class=
"copy1"
@
click=
"copy(1)"
:data-clipboard-text=
"getNews.text"
><i
class=
"el-icon-document-copy"
></i><span>
复制
</span></a>
 
<a
@
click=
"exportWord"
><i
class=
"el-icon-download"
></i><span>
下载
</span></a>
     
</div>
</div>
</div>
</div>
<div
v-show=
"visible"
:style=
"
{position:'absolute',backgroundColor:'white',left:left+'px',top:top+'px'}" class="contextmenu">
<div
v-show=
"visible"
:style=
"
{ position: 'absolute', backgroundColor: 'white', left: left + 'px', top: top + 'px' }"
class="contextmenu">
<!--
<ul>
<li
v-for=
"(item,index) in collectionFolder"
@
click.stop=
"addFolder(item,index)"
:style=
"
{'background':(index==selectIndex)?'#f56c6c':''}">
<span
class=
"el-icon-folder-opened"
></span>
 
{{
item
.
name
}}
...
...
@@ -78,10 +86,12 @@
<el-dialog
title=
"关联人物"
:visible.sync=
"dialogVisiblePerson"
width=
"30%"
:before-close=
"handleClose"
>
<el-form
ref=
"form"
label-width=
"120px"
>
<el-form-item
label=
"摘要"
>
<el-input
type=
"textarea"
:autosize=
"
{ minRows: 2, maxRows: 10}" placeholder="请输入内容" v-model="selectText" disabled style="width:70%;">
</el-input>
<el-input
type=
"textarea"
:autosize=
"
{ minRows: 2, maxRows: 10 }" placeholder="请输入内容"
v-model="selectText" disabled style="width:70%;">
</el-input>
</el-form-item>
<el-form-item
label=
"搜索人物"
>
<el-autocomplete
v-model=
"state"
:fetch-suggestions=
"querySearchAsync"
placeholder=
"请输入内容"
@
select=
"handleSelect"
style=
"width:70%;"
></el-autocomplete>
<el-autocomplete
v-model=
"state"
:fetch-suggestions=
"querySearchAsync"
placeholder=
"请输入内容"
@
select=
"handleSelect"
style=
"width:70%;"
></el-autocomplete>
</el-form-item>
<el-form-item
label=
"选择类型"
>
<el-select
v-model=
"personType"
style=
"width:70%;"
>
...
...
@@ -103,10 +113,12 @@
<el-dialog
title=
"关联机构"
:visible.sync=
"dialogVisibleOrganization"
width=
"30%"
:before-close=
"handleClose"
>
<el-form
ref=
"form"
label-width=
"120px"
>
<el-form-item
label=
"摘要"
>
<el-input
type=
"textarea"
:autosize=
"
{ minRows: 2, maxRows: 10}" placeholder="请输入内容" v-model="selectText" disabled style="width:70%;">
</el-input>
<el-input
type=
"textarea"
:autosize=
"
{ minRows: 2, maxRows: 10 }" placeholder="请输入内容"
v-model="selectText" disabled style="width:70%;">
</el-input>
</el-form-item>
<el-form-item
label=
"搜索机构"
>
<el-autocomplete
v-model=
"state"
:fetch-suggestions=
"querySearchAsyncOrganization"
placeholder=
"请输入内容"
@
select=
"handleSelect"
style=
"width:70%;"
></el-autocomplete>
<el-autocomplete
v-model=
"state"
:fetch-suggestions=
"querySearchAsyncOrganization"
placeholder=
"请输入内容"
@
select=
"handleSelect"
style=
"width:70%;"
></el-autocomplete>
</el-form-item>
<el-form-item
label=
"选择类型"
>
<el-select
v-model=
"organizationType"
style=
"width:70%;"
>
...
...
@@ -130,8 +142,9 @@
</el-dialog>
<el-dialog
title=
"添加收藏"
:visible.sync=
"dialogVisibleCollection"
width=
"20%"
:before-close=
"handleClose"
>
<ul>
<li
v-for=
"(item,index) in collectionFolder"
@
click.stop=
"addFolder(item,index)"
:style=
"
{'background':(index==selectIndex)?'#f56c6c':''}">
<span
class=
"el-icon-folder-opened"
></span>
 
{{
item
.
name
}}
<li
v-for=
"(item, index) in collectionFolder"
@
click.stop=
"addFolder(item, index)"
:style=
"
{ 'background': (index == selectIndex) ? '#f56c6c' : '' }">
<span
class=
"el-icon-folder-opened"
></span>
 
{{
item
.
name
}}
<el-button
class=
"delete"
type=
"text"
size=
"mini"
@
click.stop.native=
"delectCollectionFolder(item.id)"
>
<i
class=
"el-icon-error"
></i>
</el-button>
...
...
@@ -150,15 +163,11 @@
</el-dialog>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
""
size=
"mini"
@
click.stop=
"defineAddCollection"
>
确定
</el-button>
<el-button
type=
"danger"
size=
"mini"
@
click.stop=
"innerVisible
=true,collectionName=
''"
>
新增收藏夹
</el-button>
<el-button
type=
"danger"
size=
"mini"
@
click.stop=
"innerVisible
= true, collectionName =
''"
>
新增收藏夹
</el-button>
</span>
</el-dialog>
<el-dialog
title=
"关联信息"
:visible.sync=
"dialogVisible_glxx"
width=
"50%"
:modal-append-to-body=
"false"
>
<component
:is=
"currentRole_wx_data"
:clientDetails=
"clientDetails_wx_data"
ref=
"mychild_glxx"
/>
<component
:is=
"currentRole_wx_data"
:clientDetails=
"clientDetails_wx_data"
ref=
"mychild_glxx"
/>
</el-dialog>
</div>
</
template
>
...
...
@@ -168,13 +177,13 @@ import back from "../../assets/img/setting/back.png";
import
{
get
,
post
,
getReplaceColor
,
delete_util
,
fileDownload
}
from
"
../../util/http_util
"
;
import
Clipboard
from
"
clipboard
"
;
import
{
queryDictType
,
queryDictItem
}
from
'
../../api/dictitem
'
;
import
{}
from
"
../../util/data_util
"
;
import
{
}
from
"
../../util/data_util
"
;
import
*
as
echarts
from
"
echarts
"
;
import
{
option_hot_word
}
from
"
../../constant/echart-options
"
;
import
{
option_hot_word
}
from
"
../../constant/echart-options
"
;
import
navs_relevance
from
"
../../components/common/relevance_moudule.vue
"
;
import
{
NewsPictureUrl
}
from
"
../../api/publicUrl
"
;
export
default
{
components
:
{
navs_relevance
},
components
:
{
navs_relevance
},
name
:
""
,
data
()
{
return
{
...
...
@@ -208,8 +217,8 @@ export default {
innerVisible
:
false
,
collectionName
:
''
,
colorList
:
[
'
#409eff
'
,
'
#F56C6C
'
,
'
#67C23A
'
,
'
#E6A23C
'
,
'
#909399
'
,
'
#303133
'
],
myChart1
:
''
,
dialogVisible_glxx
:
false
,
myChart1
:
''
,
dialogVisible_glxx
:
false
,
currentRole_wx_data
:
"
navs_relevance
"
,
clientDetails_wx_data
:
{},
};
...
...
@@ -217,7 +226,7 @@ export default {
methods
:
{
echarts_1
(
data
)
{
let
_this
=
this
;
if
(
_this
.
myChart1
==
null
||
_this
.
myChart1
==
""
||
_this
.
myChart1
==
undefined
)
{
if
(
_this
.
myChart1
==
null
||
_this
.
myChart1
==
""
||
_this
.
myChart1
==
undefined
)
{
_this
.
myChart1
=
echarts
.
init
(
document
.
getElementById
(
"
rmcy
"
));
_this
.
myChart1
.
setOption
(
option_hot_word
);
window
.
addEventListener
(
"
resize
"
,
function
()
{
...
...
@@ -227,11 +236,11 @@ export default {
let
datas
=
[];
if
(
data
.
length
>
0
)
{
data
.
forEach
((
item
)
=>
{
if
(
item
.
word
!=
''
&&
item
.
word
.
length
>
1
)
{
if
(
item
.
word
!=
''
&&
item
.
word
.
length
>
1
)
{
datas
.
push
(
item
);
}
});
let
data_all
=
datas
.
slice
(
0
,
40
);
let
data_all
=
datas
.
slice
(
0
,
40
);
datas
=
[];
data_all
.
forEach
((
item
)
=>
{
datas
.
push
({
name
:
item
.
word
,
value
:
item
.
count
});
...
...
@@ -303,7 +312,7 @@ export default {
this
.
top
=
e
.
clientY
-
0
;
// fix 位置bug
this
.
selectText
=
window
.
getSelection
().
toString
();
if
(
this
.
selectText
!=
''
)
{
if
(
this
.
selectText
!=
''
)
{
this
.
visible
=
true
;
}
// this.selectText = window.getSelection().anchorNode.data;
...
...
@@ -324,7 +333,7 @@ export default {
querySearchAsync
(
queryString
,
cb
)
{
let
personList
=
[];
post
(
`api/rest/resource/queryDynamicCharacter?pageNum=1&pageSize=100&multiFieldSearch=`
+
queryString
,
`api/rest/resource/queryDynamicCharacter?pageNum=1&pageSize=100&multiFieldSearch=`
+
queryString
,
{
mould
:
"
敌方资源
"
,
}
...
...
@@ -341,12 +350,12 @@ export default {
cb
(
personList
);
},
3000
*
Math
.
random
());
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
post
(
`api/rest/resource/queryDynamicCharacter?pageNum=1&pageSize=100&multiFieldSearch=`
+
queryString
,
`api/rest/resource/queryDynamicCharacter?pageNum=1&pageSize=100&multiFieldSearch=`
+
queryString
,
{
mould
:
"
敌方外网资源
"
,
}
...
...
@@ -363,14 +372,14 @@ export default {
cb
(
personList
);
},
3000
*
Math
.
random
());
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
},
querySearchAsyncOrganization
(
queryString
,
cb
)
{
let
organizationList
=
[];
post
(
"
api/rest/resource/queryDynamicOrganization?pageNum=1&pageSize=100&multiFieldSearch=
"
+
queryString
,
"
api/rest/resource/queryDynamicOrganization?pageNum=1&pageSize=100&multiFieldSearch=
"
+
queryString
,
{
mould
:
"
敌方外网资源机构
"
,
}
...
...
@@ -387,11 +396,11 @@ export default {
cb
(
organizationList
);
},
3000
*
Math
.
random
());
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
post
(
"
api/rest/resource/queryDynamicOrganization?pageNum=1&pageSize=100&multiFieldSearch=
"
+
queryString
,
"
api/rest/resource/queryDynamicOrganization?pageNum=1&pageSize=100&multiFieldSearch=
"
+
queryString
,
{
mould
:
"
敌方资源机构
"
,
}
...
...
@@ -408,7 +417,7 @@ export default {
cb
(
organizationList
);
},
3000
*
Math
.
random
());
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
},
...
...
@@ -436,7 +445,7 @@ export default {
this
.
$message
.
error
(
'
关联人员失败!
'
);
}
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
...
...
@@ -457,7 +466,7 @@ export default {
this
.
$message
.
error
(
'
关联机构失败!
'
);
}
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
},
...
...
@@ -470,7 +479,7 @@ export default {
get
(
'
api/rest/resource/queryCollectionFolder?collector=
'
+
this
.
userInfo
.
account
).
then
(
res
=>
{
this
.
collectionFolder
=
res
;
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
})
},
...
...
@@ -496,7 +505,7 @@ export default {
this
.
dialogVisibleCollection
=
false
;
}
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
}
else
{
...
...
@@ -518,7 +527,7 @@ export default {
this
.
innerVisible
=
false
;
}
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
}
else
{
...
...
@@ -528,15 +537,26 @@ export default {
},
//删除收藏夹目录
delectCollectionFolder
(
id
)
{
this
.
$confirm
(
'
此操作将永久删除, 是否继续?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
delete_util
(
'
api/rest/resource/removeCollectionFolder?folderId=
'
+
id
).
then
(
res
=>
{
if
(
res
==
1
)
{
this
.
$message
.
success
(
"
删除成功!
"
);
this
.
searchCollectionFolder
();
}
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'
info
'
,
message
:
'
已取消删除
'
});
});
},
//返回颜色
returnColor
(
val
)
{
...
...
@@ -550,61 +570,61 @@ export default {
return
this
.
colorList
[
3
];
}
},
cli_keyword
(
item
,
type
)
{
cli_keyword
(
item
,
type
)
{
let
name
=
item
.
innerText
;
if
(
type
==
1
)
{
//地点
if
(
type
==
1
)
{
//地点
this
.
dialogVisible_glxx
=
true
;
(
this
.
currentRole_wx_data
=
"
navs_relevance
"
),
setTimeout
(()
=>
{
setTimeout
(()
=>
{
(
this
.
clientDetails_wx_data
=
{
name_relevance
:
name
,
name_relevance_type
:
false
,
});
},
200
)
}
else
if
(
type
==
2
)
{
//组织
},
200
)
}
else
if
(
type
==
2
)
{
//组织
this
.
dialogVisible_glxx
=
true
;
(
this
.
currentRole_wx_data
=
"
navs_relevance
"
),
setTimeout
(()
=>
{
setTimeout
(()
=>
{
(
this
.
clientDetails_wx_data
=
{
name_relevance
:
name
,
name_relevance_type
:
false
,
});
},
200
)
},
200
)
}
else
if
(
type
==
3
)
{
//人物
}
else
if
(
type
==
3
)
{
//人物
this
.
dialogVisible_glxx
=
true
;
(
this
.
currentRole_wx_data
=
"
navs_relevance
"
),
setTimeout
(()
=>
{
setTimeout
(()
=>
{
(
this
.
clientDetails_wx_data
=
{
name_relevance
:
name
,
name_relevance_type
:
true
,
});
},
200
)
},
200
)
}
},
highlight
()
{
if
(
this
.
getNews
.
name_entity
!=
''
&&
this
.
getNews
.
name_entity
!=
undefined
&&
this
.
getNews
.
name_entity
!=
null
)
{
if
(
this
.
getNews
.
name_entity
!=
''
&&
this
.
getNews
.
name_entity
!=
undefined
&&
this
.
getNews
.
name_entity
!=
null
)
{
var
key
=
JSON
.
parse
(
this
.
getNews
.
name_entity
);
if
(
key
.
length
>
0
)
{
if
(
key
.
length
>
0
)
{
let
i_index
=
-
1
;
//计算主体的次数
let
arr_new
=
[];
for
(
var
i
=
0
;
i
<
key
.
length
;
i
++
)
{
if
(
key
[
i
].
entity_list
.
length
>
0
)
{
for
(
var
j
=
0
;
j
<
key
[
i
].
entity_list
.
length
;
j
++
)
{
if
(
key
[
i
].
entity_list
.
length
>
0
)
{
for
(
var
j
=
0
;
j
<
key
[
i
].
entity_list
.
length
;
j
++
)
{
// i_index++;
let
colors
=
'
#3dd2f4
'
;
let
type
=
''
;
if
(
key
[
i
].
entity_list
[
j
].
type
==
'
LOCATION
'
)
{
if
(
key
[
i
].
entity_list
[
j
].
type
==
'
LOCATION
'
)
{
colors
=
'
#f4a33d
'
;
type
=
1
;
}
else
if
(
key
[
i
].
entity_list
[
j
].
type
==
'
ORGANIZATION
'
)
{
}
else
if
(
key
[
i
].
entity_list
[
j
].
type
==
'
ORGANIZATION
'
)
{
colors
=
'
#f43d3d
'
;
type
=
2
;
}
else
if
(
key
[
i
].
entity_list
[
j
].
type
==
'
PERSON
'
)
{
}
else
if
(
key
[
i
].
entity_list
[
j
].
type
==
'
PERSON
'
)
{
colors
=
'
#48f43d
'
;
type
=
3
;
}
let
str
=
"
<span style=
\"
color:
"
+
colors
+
"
;text-decoration: underline;cursor: pointer;
\"
onclick=cli_keyword(this,'
"
+
type
+
"
')>
"
;
let
str
=
"
<span style=
\"
color:
"
+
colors
+
"
;text-decoration: underline;cursor: pointer;
\"
onclick=cli_keyword(this,'
"
+
type
+
"
')>
"
;
let
str1
=
"
</span>
"
;
// let index_length = i_index*(str.length+str1.length) - this.getNews.title.length;
// let str_replace = str + key[i].entity_list[j].entity_name + str1;
...
...
@@ -612,25 +632,27 @@ export default {
// let index_length = i_index*(str.length+str1.length) - this.getNews.title.length;
let
str_replace
=
str
+
key
[
i
].
entity_list
[
j
].
entity_name
+
str1
;
arr_new
.
push
({
entity_name
:
str_replace
,
start_pos
:
key
[
i
].
entity_list
[
j
].
start_pos
-
this
.
getNews
.
title_zh
.
length
,
end_pos
:
key
[
i
].
entity_list
[
j
].
end_pos
-
this
.
getNews
.
title_zh
.
length
})
arr_new
.
push
({
entity_name
:
str_replace
,
start_pos
:
key
[
i
].
entity_list
[
j
].
start_pos
-
this
.
getNews
.
title_zh
.
length
,
end_pos
:
key
[
i
].
entity_list
[
j
].
end_pos
-
this
.
getNews
.
title_zh
.
length
})
}
}
}
if
(
arr_new
.
length
>
0
)
{
if
(
arr_new
.
length
>
0
)
{
let
arr
=
arr_new
.
reverse
();
arr
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
entity_name
.
length
>
1
&&
item
.
start_pos
>=
0
)
this
.
getNews
.
txt
=
this
.
getNews
.
txt
.
slice
(
0
,
item
.
start_pos
)
+
item
.
entity_name
+
this
.
getNews
.
txt
.
slice
(
item
.
end_pos
);
arr
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
entity_name
.
length
>
1
&&
item
.
start_pos
>=
0
)
this
.
getNews
.
txt
=
this
.
getNews
.
txt
.
slice
(
0
,
item
.
start_pos
)
+
item
.
entity_name
+
this
.
getNews
.
txt
.
slice
(
item
.
end_pos
);
})
}
}
}
}
},
mounted
(){
mounted
()
{
window
.
cli_keyword
=
this
.
cli_keyword
;
},
activated
()
{
...
...
@@ -640,7 +662,7 @@ export default {
if
(
this
.
$route
.
params
.
key
!=
null
)
{
get
(
"
api/rest/fulltext/queryOneThinkTank?Id=
"
+
this
.
$route
.
params
.
key
)
.
then
((
res
)
=>
{
if
(
res
==
null
)
{
if
(
res
==
null
)
{
this
.
$message
.
warning
(
'
关联的新闻已删除
'
);
return
}
...
...
@@ -649,11 +671,11 @@ export default {
// this.getNews.text&&(this.getNews.text = this.getNews.text.replaceAll(
"
<
br
>
"
,
"
\
n
"
).replaceAll(
"
<
BR
>
"
,
"
\
n
"
));
this.tmpTxt = this.getNews.text;
this.tmpTitle = this.getNews.title;
this.getNews.site_name = this.getNews.siteNames
? this.getNews.siteNames.length>0?this.getNews.siteNames[0]:'':
'';
this.getNews.site_name = this.getNews.siteNames
? this.getNews.siteNames.length > 0 ? this.getNews.siteNames[0] : '' :
'';
this.getNews.text = this.getNews.txt_zh;
this.getNews.title = this.getNews.title_zh;
this.highlight();
if
(this.getNews.hot_word1!=undefined&&this.getNews.hot_word1!=null&&this.getNews.hot_word1.length>0)
this.echarts_1(this.getNews.hot_word1);
if
(this.getNews.hot_word1 != undefined && this.getNews.hot_word1 != null && this.getNews.hot_word1.length > 0)
this.echarts_1(this.getNews.hot_word1);
queryDictItem('01').then(item => {
item.forEach(ele => {
if (ele.code == res.language_type) {
...
...
@@ -723,6 +745,7 @@ body {
padding
:
0
;
overflow
:
hidden
;
}
#zk_info
{
width
:
99%
;
height
:
97%
;
...
...
@@ -730,15 +753,18 @@ body {
padding
:
20px
;
box-sizing
:
border-box
;
overflow
:
hidden
;
.news_info_content
{
width
:
100%
;
height
:
100%
;
float
:
left
;
.news_info_top-nav
{
width
:
100%
;
height
:
calc
(
100%
-
40px
);
padding
:
10px
;
box-sizing
:
border-box
;
.back
{
width
:
40px
;
height
:
40px
;
...
...
@@ -747,12 +773,14 @@ body {
right
:
80px
;
cursor
:
pointer
;
}
.top-left-left
{
.top-left-left
{
width
:
15%
;
float
:
left
;
height
:
100%
;
font-size
:
12px
;
.zzsx
{
.zzsx
{
width
:
80%
;
margin-left
:
10%
;
height
:
100%
;
...
...
@@ -762,6 +790,7 @@ body {
color
:
#aeaeae
;
}
}
.top-left
{
width
:
70%
;
height
:
100%
;
...
...
@@ -772,17 +801,20 @@ body {
background
:
#263b5d
29
;
float
:
left
;
position
:
relative
;
.zyx1
{
.zyx1
{
position
:
absolute
;
width
:
calc
(
100%
-
5px
);
height
:
calc
(
100%
-
20px
);
pointer-events
:
none
;
div
{
div
{
width
:
100%
;
height
:
100%
;
position
:
relative
;
overflow
:
hidden
;
span
{
span
{
position
:
absolute
;
top
:
-4px
;
left
:
-30px
;
...
...
@@ -799,9 +831,11 @@ body {
}
}
}
&
:
:-
webkit-scrollbar
{
display
:
none
;
}
.top-left-title
{
width
:
100%
;
line-height
:
1
.5
;
...
...
@@ -811,6 +845,7 @@ body {
color
:
#6cabef
;
cursor
:
pointer
;
}
.top-left-from
{
width
:
100%
;
height
:
50px
;
...
...
@@ -820,10 +855,12 @@ body {
margin-top
:
10px
;
margin-bottom
:
10px
;
}
.top-left-img
{
width
:
100%
;
margin-bottom
:
20px
;
text-align
:
center
;
.el-image
{
width
:
60%
;
height
:
60%
;
...
...
@@ -831,6 +868,7 @@ body {
cursor
:
pointer
;
}
}
.top-left-content
{
width
:
100%
;
height
:
calc
(
100%
-
300px
);
...
...
@@ -838,45 +876,56 @@ body {
letter-spacing
:
1px
;
font-size
:
18px
;
text-indent
:
2em
;
em
{
color
:
red
;
}
img
{
max-width
:
700px
;
}
}
}
}
.bottom-nav
{
width
:
100%
;
height
:
40px
;
.bottom-title
{
width
:
100%
;
height
:
40px
;
line-height
:
40px
;
display
:
-
webkit-box
;
background-color
:
#263b5d
;
.title-one1
{
.title-one1
{
width
:
66
.6%
;
height
:
40px
;
overflow
:
hidden
;
span
{
span
{
margin-left
:
10px
;
margin-top
:
5px
;
}
}
.title-three
{
width
:
33
.3%
;
height
:
100%
;
}
.title-three
{
text-align
:
right
;
a
{
cursor
:
pointer
;
i
{
color
:
#168c96
;
}
}
a
:hover
{
color
:
aquamarine
;
}
...
...
@@ -884,15 +933,18 @@ body {
}
}
}
.contextmenu
{
width
:
200px
;
padding
:
5px
0px
;
box-sizing
:
border-box
;
ul
{
margin
:
0
;
padding
:
0
;
overflow-y
:
auto
;
list-style
:
none
;
li
{
height
:
30px
;
line-height
:
30px
;
...
...
@@ -901,13 +953,16 @@ body {
font-size
:
14px
;
box-sizing
:
border-box
;
color
:
black
;
&
:hover
{
cursor
:
pointer
;
background-color
:
#ddd
;
}
.delete
{
position
:
absolute
;
right
:
10px
;
i
{
font-size
:
16px
;
color
:
#ff5454
;
...
...
@@ -920,39 +975,46 @@ body {
.el-dialog
{
color
:
white
;
background
:
#1d2d46
!
important
;
.el-dialog__body
{
.el-form
{
.el-form-item
{
.el-form-item__label
{
color
:
white
;
}
.el-form-item__content
{
color
:
white
;
.el-upload__tip
{
color
:
white
;
}
}
}
}
.el-input__inner
{
color
:
white
!
important
;
background
:
none
!
important
;
border
:
1px
solid
#146a80
!
important
;
box-shadow
:
0
0
10px
#1b6097
;
}
textarea
{
color
:
white
!
important
;
background
:
none
!
important
;
border
:
1px
solid
#146a80
!
important
;
box-shadow
:
0
0
10px
#1b6097
;
}
.el-icon-document
{
height
:
auto
;
}
.el-tag
+
.el-tag
{
.el-tag
+
.el-tag
{
margin-left
:
10px
;
}
.button-new-tag
{
margin-left
:
10px
;
height
:
32px
;
...
...
@@ -960,17 +1022,20 @@ body {
padding-top
:
0
;
padding-bottom
:
0
;
}
.input-new-tag
{
width
:
90px
;
margin-left
:
10px
;
vertical-align
:
bottom
;
}
ul
{
height
:
150px
;
margin
:
0
;
padding
:
0
;
overflow-y
:
auto
;
list-style
:
none
;
li
{
height
:
30px
;
line-height
:
30px
;
...
...
@@ -978,13 +1043,16 @@ body {
position
:
relative
;
box-sizing
:
border-box
;
color
:
white
;
&
:hover
{
color
:
white
;
background-color
:
#f56c6c
;
}
.delete
{
position
:
absolute
;
right
:
10px
;
i
{
font-size
:
16px
;
color
:
#ff5454
;
...
...
@@ -994,5 +1062,4 @@ body {
}
}
}
}
</
style
>
\ No newline at end of file
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment