From 2382033e55f86779eec1c8a87644f02ab3e2a8b2 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期六, 14 九月 2024 15:51:17 +0800
Subject: [PATCH] add:会员图片管理

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