Commit 2379d886 by 莫晓莉

批量打开

parent 1453321b
...@@ -196,4 +196,13 @@ export const delFile = (data) => { ...@@ -196,4 +196,13 @@ export const delFile = (data) => {
}) })
} }
// 批量打开新闻
export const batchOpenNews = (data) => {
return request({
url: 'websiteCluster/website/batchOpenNews',
method: 'POST',
data
})
}
...@@ -381,6 +381,12 @@ export default { ...@@ -381,6 +381,12 @@ export default {
this.$router.push({ this.$router.push({
path: item.path, //跳转路由 path: item.path, //跳转路由
}); });
}else if(item.name == "fun"){
this.$message({
message:'维护中...',
type:'error'
});
return;
}else{ }else{
this.$router.push({ this.$router.push({
path: "/list", //跳转路由 path: "/list", //跳转路由
...@@ -403,7 +409,13 @@ export default { ...@@ -403,7 +409,13 @@ export default {
this.classA = i; 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({ this.$router.push({
path: "/list", //跳转路由 path: "/list", //跳转路由
query: { query: {
...@@ -412,6 +424,8 @@ export default { ...@@ -412,6 +424,8 @@ export default {
type:'sub' type:'sub'
}, },
}); });
}, },
// treeNavSwitch(){}, // treeNavSwitch(){},
//获取全区法院 //获取全区法院
......
...@@ -1124,6 +1124,31 @@ ...@@ -1124,6 +1124,31 @@
<!-- 7、日志弹窗end --> <!-- 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> </div>
</template> </template>
<script> <script>
...@@ -1144,6 +1169,7 @@ import { ...@@ -1144,6 +1169,7 @@ import {
updateNews,//修改信息 updateNews,//修改信息
assInfoBatch,//审核信息批量打开 assInfoBatch,//审核信息批量打开
assInfoBatchOp,//审核信息批量操作 assInfoBatchOp,//审核信息批量操作
batchOpenNews,//批量打开新闻
sbBatch,//收报批量打开 sbBatch,//收报批量打开
sbBatchUseOrNot,//收报批量采用或不采用 sbBatchUseOrNot,//收报批量采用或不采用
adviceDetail,//建议详情 adviceDetail,//建议详情
...@@ -1164,6 +1190,8 @@ export default { ...@@ -1164,6 +1190,8 @@ export default {
}, },
data() { data() {
return { return {
batchList:[],//批量打开集合
batchDialogVisible:false,//批量打开弹窗
messageDetailDataList:[], messageDetailDataList:[],
delFileList:[],//删除附件 delFileList:[],//删除附件
userInfo:{},//用户信息 userInfo:{},//用户信息
...@@ -1457,15 +1485,26 @@ export default { ...@@ -1457,15 +1485,26 @@ export default {
}, },
// 审核信息批量打开 // 审核信息批量打开
assInfoBatch(){ assInfoBatch(){
if(this.multipleSelection2.length==0){
this.$message({
message:'请选择新闻!',
type:'warning'
})
return;
}
this.batchDialogVisible=true;//批量打开弹窗
let params={}; let params={};
params.newsIds=this.multipleSelection2 params.newsIds=this.multipleSelection2;
// params.publish // params.publish
assInfoBatch(JSON.stringify(params)).then(res=>{ // assInfoBatch(JSON.stringify(params)).then(res=>{
batchOpenNews(JSON.stringify(params)).then(res=>{
if(res.success){ if(res.success){
this.$message({ this.batchList=res.data;
message:'批量打开成功!', // this.$message({
type:'success' // message:'批量打开成功!',
}) // type:'success'
// })
} }
}) })
}, },
...@@ -1486,16 +1525,33 @@ export default { ...@@ -1486,16 +1525,33 @@ export default {
}, },
//收报批量打开 //收报批量打开
sbBatch(publish){ 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={}; let params={};
params.newsIds=this.multipleSelection3; params.newsIds=this.multipleSelection3;
// params.publish=publish; // params.publish
sbBatch(JSON.stringify(params)).then(res=>{ // assInfoBatch(JSON.stringify(params)).then(res=>{
batchOpenNews(JSON.stringify(params)).then(res=>{
if(res.success){ if(res.success){
this.getReportList();//刷新收报列表 this.batchList=res.data;
this.$message({
message:'收报批量打开成功!',
type:'success'
})
} }
}) })
}, },
...@@ -2376,6 +2432,10 @@ ul{ ...@@ -2376,6 +2432,10 @@ ul{
overflow-x: auto; overflow-x: auto;
} }
.wiriter-intro{
text-align:right;
margin-top:10px;
font-size:13px;
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment