Commit db402fb5 by 莫晓莉

短信审批

parent 9c5b1f36
...@@ -205,4 +205,12 @@ export const batchOpenNews = (data) => { ...@@ -205,4 +205,12 @@ export const batchOpenNews = (data) => {
}) })
} }
//批量发送审核提醒信息
export const sendBatchAssRemindSms = (data) => {
return request({
url: 'websiteCluster/website/sendBatchAssRemindSms',
method: 'POST',
data
})
}
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
</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> <el-button type="primary" size="mini" @click="upLetterEvent">提交短信审批</el-button>
</el-row> </el-row>
<div style="margin-top:10px;"> <div style="margin-top:10px;">
<el-pagination <el-pagination
...@@ -1225,6 +1225,7 @@ import { ...@@ -1225,6 +1225,7 @@ import {
logDetail,//日志详情 logDetail,//日志详情
findNews,//搜索信息 findNews,//搜索信息
delFile,//删除附件 delFile,//删除附件
sendBatchAssRemindSms,//批量短信
} from "@/api/manage/manage"; } from "@/api/manage/manage";
import { removeToken } from "@/utils/auth"; import { removeToken } from "@/utils/auth";
import { getInfo,logout } from "@/api/login"; import { getInfo,logout } from "@/api/login";
...@@ -1451,9 +1452,29 @@ export default { ...@@ -1451,9 +1452,29 @@ export default {
//勾选管理列表 //勾选管理列表
handleSelectionChange1(val){ handleSelectionChange1(val){
console.log('勾选1==',val); console.log('勾选1==',val);
this.multipleSelection1 = val; // this.multipleSelection1 = val;
var newsIdArr=[];
val.forEach(item=>{
newsIdArr.push(item.newsId);
})
this.multipleSelection1 = newsIdArr;
}, },
// 管理列表批量短信
upLetterEvent(){
let params={};
params.newsIds=this.multipleSelection1;
// params.publish=publish;
sendBatchAssRemindSms(JSON.stringify(params)).then(res=>{
if(res.success){
this.getManageList();//刷新列表
this.$message({
message:'批量审核成功!',
type:'success'
})
}
})
},
//勾选审核列表----接口用不了 //勾选审核列表----接口用不了
handleSelectionChange2(val){ handleSelectionChange2(val){
console.log('勾选2==',val); console.log('勾选2==',val);
......
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