|
@@ -122,6 +122,16 @@ export default {
|
|
|
}
|
|
|
// 操作按钮
|
|
|
const actionFormat = function (record, data, h) {
|
|
|
+ if (_this.isTeyue) {
|
|
|
+ return (<div>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-error"
|
|
|
+ onClick={(e) => _this.handleDel(record, e)}
|
|
|
+ >删除</a-button>
|
|
|
+ </div>)
|
|
|
+ }
|
|
|
return (
|
|
|
<div>
|
|
|
<a-button
|
|
@@ -279,6 +289,8 @@ export default {
|
|
|
dealerUpsDelete({ dealerUpsSn: record.dealerUpsSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
+ const rowIndex = _this.dataSource.findIndex(item => item.dealerUpsSn == record.dealerUpsSn && item.dealerSn == record.dealerSn)
|
|
|
+ _this.dataSource.splice(rowIndex, 1)
|
|
|
_this.$emit('del')
|
|
|
}
|
|
|
_this.spinning = false
|