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
Expand all
Hide 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 @@
...
@@ -29,8 +29,8 @@
<div
class=
"card-content"
>
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
c
lick=
"viewLiterature(item1)"
@
c
ontextmenu.prevent.stop=
"showInfo(item1)"
/>
@
contextmenu.prevent.stop=
"showInfo(item1)"
/>
</div>
</div>
</div>
</div>
<div
class=
"content-list"
>
<div
class=
"content-list"
>
...
@@ -65,8 +65,7 @@
...
@@ -65,8 +65,7 @@
<div
class=
"card-content"
>
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
dblclick=
"showInfo(item1)"
/>
@
click=
"viewLiterature(item1)"
@
dblclick=
"showInfo(item1)"
/>
</div>
</div>
</div>
</div>
<div
class=
"content-list"
>
<div
class=
"content-list"
>
...
@@ -101,8 +100,8 @@
...
@@ -101,8 +100,8 @@
<div
class=
"card-content"
>
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
c
lick=
"viewLiterature(item1)"
@
c
ontextmenu.prevent.stop=
"showInfo(item1)"
/>
@
contextmenu.prevent.stop=
"showInfo(item1)"
/>
</div>
</div>
</div>
</div>
<div
class=
"content-list"
>
<div
class=
"content-list"
>
...
@@ -1633,7 +1632,7 @@ export default {
...
@@ -1633,7 +1632,7 @@ export default {
},
},
//根据文本信息查询文件
//根据文本信息查询文件
searchLiterature
()
{
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
)
=>
{
res
.
list
.
forEach
((
item
)
=>
{
item
.
createTime
=
dateChangeFormat
(
item
.
createTime
=
dateChangeFormat
(
"
YYYY-mm-dd HH:MM:SS
"
,
"
YYYY-mm-dd HH:MM:SS
"
,
...
@@ -2047,16 +2046,27 @@ export default {
...
@@ -2047,16 +2046,27 @@ export default {
},
},
//删除收藏夹目录
//删除收藏夹目录
delectCollectionFolder
(
id
)
{
delectCollectionFolder
(
id
)
{
removeCollectionFolder
(
id
)
this
.
$confirm
(
'
此操作将永久删除, 是否继续?
'
,
'
提示
'
,
{
.
then
((
res
)
=>
{
confirmButtonText
:
'
确定
'
,
if
(
res
==
1
)
{
cancelButtonText
:
'
取消
'
,
this
.
$message
.
success
(
"
删除成功!
"
);
type
:
'
warning
'
this
.
searchCollectionFolder
();
}).
then
(()
=>
{
}
removeCollectionFolder
(
id
)
})
.
then
((
res
)
=>
{
.
catch
((
err
)
=>
{
if
(
res
==
1
)
{
this
.
$message
.
warning
(
err
.
message
);
this
.
$message
.
success
(
"
删除成功!
"
);
this
.
searchCollectionFolder
();
}
})
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'
info
'
,
message
:
'
已取消删除
'
});
});
});
},
},
//全文检索
//全文检索
handleCurrentChangeFulltext
(
pageNum
)
{
handleCurrentChangeFulltext
(
pageNum
)
{
...
@@ -2139,7 +2149,7 @@ export default {
...
@@ -2139,7 +2149,7 @@ export default {
});
});
})
})
.
then
(()
=>
{
.
then
(()
=>
{
multiQueryLiterature
(
"
法律法规
"
,
false
,
ids
)
multiQueryLiterature
(
"
法律法规
"
,
false
,
ids
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
viewData
=
res
;
this
.
viewData
=
res
;
//国际法
//国际法
...
@@ -2165,7 +2175,7 @@ export default {
...
@@ -2165,7 +2175,7 @@ export default {
.
catch
((
err
)
=>
{
});
.
catch
((
err
)
=>
{
});
//多板块文献资料图片查询
//多板块文献资料图片查询
multiQueryLiterature
(
"
法律法规
"
,
true
,
ids
)
multiQueryLiterature
(
"
法律法规
"
,
true
,
ids
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
//三战业务理论
//三战业务理论
this
.
internationalLaw
[
0
].
img
=
res
[
1
];
this
.
internationalLaw
[
0
].
img
=
res
[
1
];
...
...
src/view/xxxl/llxx.vue
View file @
49df73ab
...
@@ -28,8 +28,8 @@
...
@@ -28,8 +28,8 @@
<div
class=
"card-content"
>
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
c
lick=
"viewLiterature(item1)"
@
c
ontextmenu.prevent.stop=
"showInfo(item1)"
/>
@
contextmenu.prevent.stop=
"showInfo(item1)"
/>
</div>
</div>
</div>
</div>
<div
class=
"content-list"
>
<div
class=
"content-list"
>
...
@@ -64,8 +64,8 @@
...
@@ -64,8 +64,8 @@
<div
class=
"card-content"
>
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
c
lick=
"viewLiterature(item1)"
@
c
ontextmenu.prevent.stop=
"showInfo(item1)"
/>
@
contextmenu.prevent.stop=
"showInfo(item1)"
/>
</div>
</div>
</div>
</div>
<div
class=
"content-list"
>
<div
class=
"content-list"
>
...
@@ -101,8 +101,8 @@
...
@@ -101,8 +101,8 @@
<div
class=
"card-content"
>
<div
class=
"card-content"
>
<div
class=
"content-img"
>
<div
class=
"content-img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<div
v-for=
"(item1, index1) in item.img"
>
<img
:src=
"item1.coverUrl"
alt=
""
<img
:src=
"item1.coverUrl"
alt=
""
@
click=
"viewLiterature(item1)"
@
c
lick=
"viewLiterature(item1)"
@
c
ontextmenu.prevent.stop=
"showInfo(item1)"
/>
@
contextmenu.prevent.stop=
"showInfo(item1)"
/>
</div>
</div>
</div>
</div>
<div
class=
"content-list"
>
<div
class=
"content-list"
>
...
@@ -1656,9 +1656,9 @@ export default {
...
@@ -1656,9 +1656,9 @@ export default {
},
},
queryLiteratureKinds
(
pageNum
,
pageSize
,
type
)
{
queryLiteratureKinds
(
pageNum
,
pageSize
,
type
)
{
queryLiterature
(
"
学习训练
"
,
pageNum
,
pageSize
,
null
,
type
).
then
((
res
)
=>
{
queryLiterature
(
"
学习训练
"
,
pageNum
,
pageSize
,
null
,
type
).
then
((
res
)
=>
{
this
.
literatureListKinds
=
res
.
list
;
this
.
literatureListKinds
=
res
.
list
;
this
.
totalKinds
=
res
.
totals
;
this
.
totalKinds
=
res
.
totals
;
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
this
.
$message
.
warning
(
err
.
message
);
});
});
...
@@ -1676,10 +1676,10 @@ export default {
...
@@ -1676,10 +1676,10 @@ export default {
this
.
xgtj_news_data
=
[];
this
.
xgtj_news_data
=
[];
this
.
xgtj_news
(
item
.
id
);
this
.
xgtj_news
(
item
.
id
);
queryLiteratureById
(
item
.
name
).
then
((
res
)
=>
{
queryLiteratureById
(
item
.
name
).
then
((
res
)
=>
{
this
.
flag
=
4
;
this
.
flag
=
4
;
this
.
pickObj
=
res
;
this
.
pickObj
=
res
;
this
.
literatureObj
=
item
;
this
.
literatureObj
=
item
;
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
this
.
$message
.
warning
(
err
.
message
);
});
});
...
@@ -2005,15 +2005,26 @@ export default {
...
@@ -2005,15 +2005,26 @@ export default {
},
},
//删除收藏夹目录
//删除收藏夹目录
delectCollectionFolder
(
id
)
{
delectCollectionFolder
(
id
)
{
removeCollectionFolder
(
id
).
then
((
res
)
=>
{
this
.
$confirm
(
'
此操作将永久删除, 是否继续?
'
,
'
提示
'
,
{
if
(
res
==
1
)
{
confirmButtonText
:
'
确定
'
,
this
.
$message
.
success
(
"
删除成功!
"
);
cancelButtonText
:
'
取消
'
,
this
.
searchCollectionFolder
();
type
:
'
warning
'
}
}).
then
(()
=>
{
})
removeCollectionFolder
(
id
).
then
((
res
)
=>
{
.
catch
((
err
)
=>
{
if
(
res
==
1
)
{
this
.
$message
.
warning
(
err
.
message
);
this
.
$message
.
success
(
"
删除成功!
"
);
this
.
searchCollectionFolder
();
}
})
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'
info
'
,
message
:
'
已取消删除
'
});
});
});
},
},
//全文检索
//全文检索
handleCurrentChangeFulltext
(
pageNum
)
{
handleCurrentChangeFulltext
(
pageNum
)
{
...
@@ -2078,15 +2089,15 @@ export default {
...
@@ -2078,15 +2089,15 @@ export default {
this
.
treeData
[
0
].
children
.
push
({
label
:
item
.
name
,
id
:
item
.
id
});
this
.
treeData
[
0
].
children
.
push
({
label
:
item
.
name
,
id
:
item
.
id
});
});
});
res
.
filter
((
item
)
=>
item
.
remark
==
"
国际政治社会环境
"
).
forEach
((
item
,
index
)
=>
{
res
.
filter
((
item
)
=>
item
.
remark
==
"
国际政治社会环境
"
).
forEach
((
item
,
index
)
=>
{
this
.
socialEnvironment
[
index
].
title
=
item
.
name
;
this
.
socialEnvironment
[
index
].
title
=
item
.
name
;
this
.
socialEnvironment
[
index
].
id
=
item
.
id
;
this
.
socialEnvironment
[
index
].
id
=
item
.
id
;
this
.
treeData
[
1
].
children
.
push
({
label
:
item
.
name
,
id
:
item
.
id
});
this
.
treeData
[
1
].
children
.
push
({
label
:
item
.
name
,
id
:
item
.
id
});
});
});
res
.
filter
((
item
)
=>
item
.
remark
==
"
舆论战心理战法律战支撑信息
"
).
forEach
((
item
,
index
)
=>
{
res
.
filter
((
item
)
=>
item
.
remark
==
"
舆论战心理战法律战支撑信息
"
).
forEach
((
item
,
index
)
=>
{
this
.
supportingInformation
[
index
].
title
=
item
.
name
;
this
.
supportingInformation
[
index
].
title
=
item
.
name
;
this
.
supportingInformation
[
index
].
id
=
item
.
id
;
this
.
supportingInformation
[
index
].
id
=
item
.
id
;
this
.
treeData
[
2
].
children
.
push
({
label
:
item
.
name
,
id
:
item
.
id
});
this
.
treeData
[
2
].
children
.
push
({
label
:
item
.
name
,
id
:
item
.
id
});
});
});
res
.
forEach
((
item
)
=>
{
res
.
forEach
((
item
)
=>
{
ids
.
push
(
item
.
id
);
ids
.
push
(
item
.
id
);
});
});
...
...
src/view/yqjc/zk_info.vue
View file @
49df73ab
This diff is collapsed.
Click to expand it.
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