Commit ecb2bad9 by 莫晓莉

收报排量采用成功

parent d4e3b118
...@@ -147,6 +147,24 @@ export const assInfoBatch = (data) => { ...@@ -147,6 +147,24 @@ export const assInfoBatch = (data) => {
data data
}) })
} }
//审核信息批量操作
export const assInfoBatchOp = (data) => {
return request({
url: 'websiteCluster/website/assInfoBatchOp',
method: 'POST',
data
})
}
// 收报批量打开
export const sbBatch = (data) => {
return request({
url: 'websiteCluster/website/sbBatch',
method: 'POST',
data
})
}
//日志详情 //日志详情
......
...@@ -428,9 +428,10 @@ ...@@ -428,9 +428,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-row class="mt-10"> <el-row class="mt-10">
<el-button type="primary" size="mini">批量打开</el-button> <!-- 创建未提交审核为5,提交审核为4,审核不通过为3,通过已发布为1 -->
<el-button type="primary" size="mini">批量审核通过并发布</el-button> <el-button type="primary" size="mini" @click="assInfoBatch">批量打开</el-button>
<el-button type="primary" size="mini">批量审核不通过</el-button> <el-button type="primary" size="mini" @click="assInfoBatchOp(1)">批量审核通过并发布</el-button>
<el-button type="primary" size="mini" @click="assInfoBatchOp(3)">批量审核不通过</el-button>
</el-row> </el-row>
<div style="margin-top:10px;"> <div style="margin-top:10px;">
<el-pagination <el-pagination
...@@ -510,8 +511,28 @@ ...@@ -510,8 +511,28 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 如果是高院的就都没有上报高院和上报中院,中院有上报高院 ,就是sbGy,基层院有上报高院 还要上报中院 sbZy -->
<!-- <el-form-item label="上报高院" v-if="userLevel!='高院'">
<el-checkbox
v-model="newsForm.sbGy"
true-label="1"
false-label="0"
></el-checkbox
>
</el-form-item>
<el-form-item label="上报中院" v-if="userLevel!='高院' && userLevel=='中院'">
<el-checkbox
v-model="newsForm.sbZy"
true-label="1"
false-label="0"
></el-checkbox
>
</el-form-item> -->
<el-row class="mt-10"> <el-row class="mt-10">
<el-button type="primary" size="mini">批量打开</el-button> <!-- 创建未提交审核为5,提交审核为4,审核不通过为3,通过已发布为1 -->
<el-button type="primary" size="mini" @click="sbBatch">批量打开</el-button>
<el-button type="primary" size="mini" @click="sbBatchUseOrNot(0)">批量采用</el-button>
<el-button type="primary" size="mini" @click="sbBatchUseOrNot(1)">批量不采用</el-button>
</el-row> </el-row>
<div style="margin-top:10px;"> <div style="margin-top:10px;">
<el-pagination <el-pagination
...@@ -1121,6 +1142,9 @@ import { ...@@ -1121,6 +1142,9 @@ import {
messageDetail,//留言详情 messageDetail,//留言详情
updateNews,//修改信息 updateNews,//修改信息
assInfoBatch,//审核信息批量打开 assInfoBatch,//审核信息批量打开
assInfoBatchOp,//审核信息批量操作
sbBatch,//收报批量打开
sbBatchUseOrNot,//收报批量采用或不采用
adviceDetail,//建议详情 adviceDetail,//建议详情
logDetail,//日志详情 logDetail,//日志详情
findNews,//搜索信息 findNews,//搜索信息
...@@ -1401,11 +1425,98 @@ export default { ...@@ -1401,11 +1425,98 @@ export default {
// setUserInfo(res.user); // setUserInfo(res.user);
}); });
}, },
//勾选管理列表
handleSelectionChange1(val){
console.log('勾选1==',val);
this.multipleSelection1 = val;
},
//勾选审核列表----接口用不了
handleSelectionChange2(val){
console.log('勾选2==',val);
var newsIdArr=[];
val.forEach(item=>{
// let obj={};
// obj.newsId=item.newsId;
// newsIdArr.push(obj);
newsIdArr.push(item.newsId);
})
this.multipleSelection2 = newsIdArr;
},
//勾选收报列表
handleSelectionChange3(val){
console.log('勾选3==',val);
// this.multipleSelection3 = val;
var newsIdArr=[];
val.forEach(item=>{
newsIdArr.push(item.newsId);
})
this.multipleSelection3 = newsIdArr;
},
// 审核信息批量打开 // 审核信息批量打开
assInfoBatch(){ assInfoBatch(){
assInfoBatch().then(res=>{ let params={};
params.newsIds=this.multipleSelection2
// params.publish
assInfoBatch(JSON.stringify(params)).then(res=>{
if(res.success){ if(res.success){
this.$message({
message:'批量打开成功!',
type:'success'
})
}
})
},
//审核信息批量操作
assInfoBatchOp(publish){
let params={};
params.newsIds=this.multipleSelection2;
params.publish=publish;
assInfoBatchOp(JSON.stringify(params)).then(res=>{
if(res.success){
this.getAssInfoList();//刷新列表
this.$message({
message:'批量审核成功!',
type:'success'
})
}
})
},
//收报批量打开
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'
})
}
})
},
// 收报批量采用不采用
sbBatchUseOrNot(status){
let params={};
params.isUse=status;
params.newsIds=this.multipleSelection3;
// params.publish=publish;
sbBatchUseOrNot(JSON.stringify(params)).then(res=>{
if(res.success){
this.getReportList();//刷新列表
var msg='收报批量采用成功!';
if(status==0){
msg='收报批量不采用成功!';
}else if(status==1){
msg='收报批量采用成功!';
}
this.$message({
message:msg,
type:'success'
})
} }
}) })
}, },
...@@ -1749,7 +1860,8 @@ export default { ...@@ -1749,7 +1860,8 @@ export default {
if(num=='4'){ if(num=='4'){
this.activeName='third'; this.activeName='third';
//刷新列表 //刷新列表
this.getManageList(); // this.getManageList();
this.getAssInfoList();//获取审核列表
msg='提交审核成功!'; msg='提交审核成功!';
//关闭弹窗 //关闭弹窗
this.editVisible=false; this.editVisible=false;
...@@ -1933,38 +2045,7 @@ export default { ...@@ -1933,38 +2045,7 @@ export default {
} }
}) })
}, },
//勾选管理列表
handleSelectionChange1(val){
console.log('勾选1==',val);
this.multipleSelection1 = val;
},
//勾选审核列表----接口用不了
handleSelectionChange2(val){
console.log('勾选2==',val);
this.multipleSelection2 = val;
var newsIdArr=[];
this.multipleSelection2.forEach(item=>{
let obj={};
obj.newsId=item.newsId;
newsIdArr.push(obj);
})
let params={};
params.newsId=newsIdArr
assInfoBatch().then(res=>{
if(res.success){
this.$message({
message:'批量打开成功',
type:'success'
})
}
})
},
//勾选收报列表
handleSelectionChange3(val){
console.log('勾选3==',val);
this.multipleSelection3 = val;
},
// 审核列表--页面切换 // 审核列表--页面切换
pageChangeAss(e) { pageChangeAss(e) {
......
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