+
+ 批量标记发放
+
{
- updateCmmssnSend({ id: row.id }).then((res) => {
+ this.loading = true
+ updateCmmssnSend({ ids: [row.id] }).then((res) => {
this.$message.success(res)
this.reload()
}).catch((e) => {
this.$message.error(e.message)
+ }).finally(() => {
+ this.loading = false
+ })
+ })
+ },
+ sendBatch() {
+ if (!this.selection.length) {
+ this.$message.error('请至少选择一条数据')
+ return
+ }
+ if (this.loading) {
+ return
+ }
+ this.$confirm('确定要批量标记发放选中数据吗?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.loading = true
+ updateCmmssnSend({ ids: this.selection.map((d) => d.id) }).then((res) => {
+ this.$message.success(res)
+ this.reload()
+ }).catch((e) => {
+ this.$message.error(e.message)
+ }).finally(() => {
+ this.loading = false
})
})
}