| | |
| | | |
| | | if (res.data.count == 1) { |
| | | this.$modal.msgSuccess("删除成功"); |
| | | this.$refs.tableData.clearSelection(); |
| | | // 清空选中数据 |
| | | this.ids = []; |
| | | this.rowForm = {}; |
| | | // 重置按钮状态 |
| | | this.single = true; |
| | | this.multiple = true; |
| | | this.getList(); |
| | | } else { |
| | | this.$modal.msgError(res.data.Message || "删除失败"); |
| | |
| | | |
| | | if (res.data.count == 1) { |
| | | this.$modal.msgSuccess(`${action}成功`); |
| | | // 清除表格选中状态 |
| | | this.$refs.tableData.clearSelection(); |
| | | // 清空选中数据 |
| | | this.ids = []; |
| | | this.rowForm = {}; |
| | | // 重置按钮状态 |
| | | this.single = true; |
| | | this.multiple = true; |
| | | this.getList(); |
| | | } else { |
| | | this.$modal.msgError(res.data.Message || `${action}失败`); |
| | |
| | | |
| | | if (res.data.count == 1) { |
| | | this.$modal.msgSuccess(`${action}成功`); |
| | | // 清除表格选中状态 |
| | | this.$refs.tableData.clearSelection(); |
| | | // 清空选中数据 |
| | | this.ids = []; |
| | | this.rowForm = {}; |
| | | // 重置按钮状态 |
| | | this.single = true; |
| | | this.multiple = true; |
| | | this.getList(); |
| | | } else { |
| | | this.$modal.msgError(res.data.Message || `${action}失败`); |