From 6cc8145bad194fa33a7b8b05cd11e7b43bb3e8c9 Mon Sep 17 00:00:00 2001
From: mayf <m13160102112@163.com>
Date: 星期四, 12 九月 2024 14:16:24 +0800
Subject: [PATCH] 活动优惠券列表增加领取渠道字段

---
 pages/marketing/point-mall/coupon/index.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/pages/marketing/point-mall/coupon/index.vue b/pages/marketing/point-mall/coupon/index.vue
index d445c10..0962726 100644
--- a/pages/marketing/point-mall/coupon/index.vue
+++ b/pages/marketing/point-mall/coupon/index.vue
@@ -1,5 +1,5 @@
 <template>
-  <el-bus-crud v-bind="tableConfig" />
+  <el-bus-crud ref="crud" v-bind="tableConfig" />
 </template>
 
 <script>
@@ -59,6 +59,7 @@
             el: {
               inputAttrs: {
                 min: 1,
+                max: 99999999,
                 precision: 0,
                 controls: false,
               },
@@ -74,6 +75,7 @@
             el: {
               precision: 0,
               min: 0,
+              max: 99999999,
               controls: false,
             },
             rules: { required: true, message: '请输入库存', trigger: 'blur' },
@@ -85,6 +87,7 @@
             el: {
               precision: 0,
               min: 1,
+              max: 99999999,
               controls: false,
             },
             rules: {
@@ -158,6 +161,7 @@
                 )
                 if (code === 0) {
                   this.$message.success('上架成功')
+                  this.$refs.crud.clearSelection()
                 }
               } catch (e) {
                 return false
@@ -184,6 +188,7 @@
                 )
                 if (code === 0) {
                   this.$message.success('下架成功')
+                  this.$refs.crud.clearSelection()
                 }
               } catch (e) {
                 return false

--
Gitblit v1.9.3