批量审核成功后跳转到已处理页签
This commit is contained in:
parent
00f0d7a8db
commit
ab0e28d91f
|
@ -152,6 +152,7 @@ class SscUserList extends Component {
|
||||||
buttonController(props, moduleId, record, index, status) {
|
buttonController(props, moduleId, record, index, status) {
|
||||||
let checkedrows = props.table.getCheckedRows(moduleId);
|
let checkedrows = props.table.getCheckedRows(moduleId);
|
||||||
this.selectedRows = checkedrows;
|
this.selectedRows = checkedrows;
|
||||||
|
console.log("选中行:",checkedrows);
|
||||||
}
|
}
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
// debugger
|
// debugger
|
||||||
|
@ -836,7 +837,7 @@ class SscUserList extends Component {
|
||||||
//批量审核点击
|
//批量审核点击
|
||||||
clickBatchAudit() {
|
clickBatchAudit() {
|
||||||
if (!this.selectedRows || Object.keys(this.selectedRows).length == 0) {
|
if (!this.selectedRows || Object.keys(this.selectedRows).length == 0) {
|
||||||
alert("请先选择行后重试");
|
toast({ color: 'danger', content: '请先选择行后重试' });
|
||||||
} else {
|
} else {
|
||||||
const dataList = [];
|
const dataList = [];
|
||||||
|
|
||||||
|
@ -865,18 +866,20 @@ class SscUserList extends Component {
|
||||||
let data = {
|
let data = {
|
||||||
batchDataList:dataList
|
batchDataList:dataList
|
||||||
}
|
}
|
||||||
console.log("查看参数-------",data)
|
|
||||||
requestApi.batchTaskApproveAction({
|
requestApi.batchTaskApproveAction({
|
||||||
data: {
|
data: {
|
||||||
batchDataList:dataList
|
batchDataList:dataList
|
||||||
},
|
},
|
||||||
success: (data) => {
|
success: (data) => {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
|
toast({ color: 'success', content: '审核成功' });
|
||||||
|
//审核成功之后跳转到已处理页面
|
||||||
|
this.selectTabChange('handled')
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue