lilei преди 1 година
родител
ревизия
dd04a3a401
променени са 1 файла, в които са добавени 12 реда и са изтрити 0 реда
  1. 12 0
      src/views/dealerManagement/rebateBinding/categoryList.vue

+ 12 - 0
src/views/dealerManagement/rebateBinding/categoryList.vue

@@ -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