|
@@ -173,10 +173,10 @@ export default {
|
|
|
this.formDialog = true
|
|
|
}}>明细</el-button>
|
|
|
{row.status == 'NO'?<el-button type="text" onClick={() => {
|
|
|
- this.confirm(row.id)
|
|
|
+ this.confirm([row.id])
|
|
|
}}>发放</el-button>:null}
|
|
|
{row.status == 'NO'?<el-button type="text" onClick={() => {
|
|
|
- this.cancel(row.id)
|
|
|
+ this.cancel([row.id])
|
|
|
}}>驳回</el-button>:null}
|
|
|
</div>
|
|
|
)
|
|
@@ -185,7 +185,7 @@ export default {
|
|
|
if(this.recordSelected.length == 0){
|
|
|
return this.$message.warning('请至少勾选一条数据!');
|
|
|
}
|
|
|
- this.cancel(this.recordSelected.map(item=>{return item.id}).join(','))
|
|
|
+ this.cancel(this.recordSelected.map(item=>{return item.id}))
|
|
|
},
|
|
|
cancel(ids) {
|
|
|
this.$confirm('请确认是否驳回选中的数据, 是否继续?', '提示', {
|
|
@@ -193,7 +193,7 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- cancel([ids]).then(res => {
|
|
|
+ cancel(ids).then(res => {
|
|
|
this.$message({ type: 'success', message: `驳回成功!` })
|
|
|
this.$refs.pageRef.refreshList()
|
|
|
})
|
|
@@ -203,7 +203,7 @@ export default {
|
|
|
if(this.recordSelected.length == 0){
|
|
|
return this.$message.warning('请至少勾选一条数据!');
|
|
|
}
|
|
|
- this.confirm(this.recordSelected.map(item=>{return item.id}).join(','))
|
|
|
+ this.confirm(this.recordSelected.map(item=>{return item.id}))
|
|
|
},
|
|
|
confirm(ids){
|
|
|
this.$confirm('请确认是否发放选中的数据, 是否继续?', '提示', {
|
|
@@ -211,7 +211,7 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- confirm([ids]).then(res => {
|
|
|
+ confirm(ids).then(res => {
|
|
|
this.$message({ type: 'success', message: `发放成功!` })
|
|
|
this.$refs.pageRef.refreshList()
|
|
|
})
|