Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
court-inner
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
莫晓莉
court-inner
Commits
2379d886
Commit
2379d886
authored
Oct 22, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量打开
parent
1453321b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
99 additions
and
15 deletions
+99
-15
src/api/manage/manage.js
+9
-0
src/views/layout/menu.vue
+15
-1
src/views/manage/index.vue
+75
-14
No files found.
src/api/manage/manage.js
View file @
2379d886
...
...
@@ -196,4 +196,13 @@ export const delFile = (data) => {
})
}
// 批量打开新闻
export
const
batchOpenNews
=
(
data
)
=>
{
return
request
({
url
:
'websiteCluster/website/batchOpenNews'
,
method
:
'POST'
,
data
})
}
src/views/layout/menu.vue
View file @
2379d886
...
...
@@ -381,6 +381,12 @@ export default {
this
.
$router
.
push
({
path
:
item
.
path
,
//跳转路由
});
}
else
if
(
item
.
name
==
"fun"
){
this
.
$message
({
message
:
'维护中...'
,
type
:
'error'
});
return
;
}
else
{
this
.
$router
.
push
({
path
:
"/list"
,
//跳转路由
...
...
@@ -403,7 +409,13 @@ export default {
this
.
classA
=
i
;
}
}
// this.$router.push({ name: "list", params: { boardId: item.boardId } });
if
(
item
.
name
=
"fun"
){
this
.
$message
({
message
:
'维护中...'
,
type
:
'error'
});
return
;
}
this
.
$router
.
push
({
path
:
"/list"
,
//跳转路由
query
:
{
...
...
@@ -412,6 +424,8 @@ export default {
type
:
'sub'
},
});
},
// treeNavSwitch(){},
//获取全区法院
...
...
src/views/manage/index.vue
View file @
2379d886
...
...
@@ -1124,6 +1124,31 @@
<!-- 7、日志弹窗end -->
<!-- 8、批量打开start -->
<el-dialog
title=
"批量打开新闻"
:visible
.
sync=
"batchDialogVisible"
top=
"3%"
width=
"60%"
center
>
<div
style=
"height:650px;over-flow:hidden;overflow-y:auto;"
>
<el-row
v-for=
"(item,index) in batchList"
:key=
"index"
>
<h2
style=
" text-align: center;"
>
{{item.newsDetail.subject}}
</h2>
<div
v-if=
"item.newsDetail.newsTime"
style=
"color: #999999; font-size: 12px;text-align:right"
>
发布时间:{{item.newsDetail.newsTime.substring(0,10)}}
</div>
<div
v-if=
"item.attachList"
>
<el-image
style=
"margin-top:5px;width:100%;margin-bottom:5px;"
fit=
"contain"
v-for=
"v in item.attachList"
:key=
"v.id"
:src=
"v.downloadPath"
></el-image>
</div>
<div
class=
"view-html"
style=
"width:100%;"
v-html=
"item.newsDetail.content"
></div>
<div
class=
"wiriter-intro"
>
作者: {{ item.newsDetail.provider }}
</div>
</el-row>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<!-- <el-button @click="batchDialogVisible = false">取 消</el-button> -->
<el-button
type=
"primary"
@
click=
"batchDialogVisible = false"
>
关闭
</el-button>
</span>
</el-dialog>
<!-- 8、批量打开end -->
</div>
</template>
<
script
>
...
...
@@ -1144,6 +1169,7 @@ import {
updateNews
,
//修改信息
assInfoBatch
,
//审核信息批量打开
assInfoBatchOp
,
//审核信息批量操作
batchOpenNews
,
//批量打开新闻
sbBatch
,
//收报批量打开
sbBatchUseOrNot
,
//收报批量采用或不采用
adviceDetail
,
//建议详情
...
...
@@ -1164,6 +1190,8 @@ export default {
},
data
()
{
return
{
batchList
:[],
//批量打开集合
batchDialogVisible
:
false
,
//批量打开弹窗
messageDetailDataList
:[],
delFileList
:[],
//删除附件
userInfo
:{},
//用户信息
...
...
@@ -1457,15 +1485,26 @@ export default {
},
// 审核信息批量打开
assInfoBatch
(){
if
(
this
.
multipleSelection2
.
length
==
0
){
this
.
$message
({
message
:
'请选择新闻!'
,
type
:
'warning'
})
return
;
}
this
.
batchDialogVisible
=
true
;
//批量打开弹窗
let
params
=
{};
params
.
newsIds
=
this
.
multipleSelection2
params
.
newsIds
=
this
.
multipleSelection2
;
// params.publish
assInfoBatch
(
JSON
.
stringify
(
params
)).
then
(
res
=>
{
// assInfoBatch(JSON.stringify(params)).then(res=>{
batchOpenNews
(
JSON
.
stringify
(
params
)).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$message
({
message
:
'批量打开成功!'
,
type
:
'success'
})
this
.
batchList
=
res
.
data
;
// this.$message({
// message:'批量打开成功!',
// type:'success'
// })
}
})
},
...
...
@@ -1486,16 +1525,33 @@ export default {
},
//收报批量打开
sbBatch
(
publish
){
// let params={};
// params.newsIds=this.multipleSelection3;
// // params.publish=publish;
// sbBatch(JSON.stringify(params)).then(res=>{
// if(res.success){
// this.getReportList();//刷新收报列表
// this.$message({
// message:'收报批量打开成功!',
// type:'success'
// })
// }
// })
if
(
this
.
multipleSelection3
.
length
==
0
){
this
.
$message
({
message
:
'请选择新闻!'
,
type
:
'warning'
})
return
;
}
this
.
batchDialogVisible
=
true
;
//批量打开弹窗
let
params
=
{};
params
.
newsIds
=
this
.
multipleSelection3
;
// params.publish=publish;
sbBatch
(
JSON
.
stringify
(
params
)).
then
(
res
=>
{
// params.publish
// assInfoBatch(JSON.stringify(params)).then(res=>{
batchOpenNews
(
JSON
.
stringify
(
params
)).
then
(
res
=>
{
if
(
res
.
success
){
this
.
getReportList
();
//刷新收报列表
this
.
$message
({
message
:
'收报批量打开成功!'
,
type
:
'success'
})
this
.
batchList
=
res
.
data
;
}
})
},
...
...
@@ -2376,6 +2432,10 @@ ul{
overflow-x
:
auto
;
}
.wiriter-intro
{
text-align
:
right
;
margin-top
:
10px
;
font-size
:
13px
;
}
</
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