[update] 缴费凭证编辑删除

This commit is contained in:
zhaoxiao
2021-12-16 19:37:18 +08:00
parent 694d5f19cd
commit 73aa835880
3 changed files with 34 additions and 7 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
* data中url定义 list为查询列表 delete为删除单条记录 deleteBatch为批量删除
*/
import {filterObj} from '@/utils/util'
import {deleteAction, downloadFile, getAction, getFileAccessHttpUrl} from '@/api/manage'
import { deleteAction, downloadFile, getAction, getFileAccessHttpUrl, postAction } from '@/api/manage'
import Vue from 'vue'
import {ACCESS_TOKEN, TENANT_ID} from '@/store/mutation-types'
import store from '@/store'
@@ -186,7 +186,7 @@ export const JeroListMixin = {
content: '是否删除选中数据?',
onOk: function () {
that.loading = true
that.deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => {
postAction(that.url.deleteBatch, {ids: ids}).then((res) => {
if (res.success) {
that.$message.success(res.message)
// 判断当前删除的数据是否是最后一页的全部数据,如果是的话页码减一
@@ -217,7 +217,7 @@ export const JeroListMixin = {
title: '确认删除',
content: '确定要删除此条数据吗?',
onOk: function() {
that.deleteAction(that.url.delete, {id: id}).then((res) => {
postAction(that.url.delete, {id: id}).then((res) => {
if (res.success) {
that.$message.success(res.message)
// 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一