From 270dc1c892572615cd923464807085d924cae11c Mon Sep 17 00:00:00 2001
From: children117cl <278950112@qq.com>
Date: 星期二, 18 五月 2021 12:00:04 +0800
Subject: [PATCH] 修复金额正则

---
 src/pages/demo/index.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/pages/demo/index.vue b/src/pages/demo/index.vue
index 91decb3..b8d386c 100644
--- a/src/pages/demo/index.vue
+++ b/src/pages/demo/index.vue
@@ -34,7 +34,7 @@
     </el-row>
     <!-- 鎿嶄綔鍖� 鈫戔啈鈫戔啈鈫戔啈鈫戔啈鈫戔啈 -->
 
-    <el-table :data="list" max-height="500px" stripe>
+    <el-table :data="list" stripe>
       <el-table-column type="index" label="搴忓彿" align="center" width="60" />
       <el-table-column label="瑙掕壊鍚嶇О" prop="name" align="center" min-width="120" />
       <el-table-column label="鏄惁涓婃灦" prop="isUp" align="center" min-width="100">
@@ -67,7 +67,7 @@
     </el-table>
 
     <!-- 鏂板&缂栬緫 -->
-    <el-dialog v-el-drag-dialog :title="dialogData.type=='add'?'鏂板鍖婚櫌绉戝':'缂栬緫鍖婚櫌绉戝'" width="500px" :visible.sync="dialogVisible" append-to-body :before-close="hideDialog">
+    <el-dialog v-el-drag-dialog :title="dialogData.type=='add'?'鏂板鍖婚櫌绉戝':'缂栬緫鍖婚櫌绉戝'" width="500px" :visible.sync="dialogVisible" append-to-body :before-close="hideDialog" :close-on-click-modal="false">
       <el-form ref="refDialog" :model="dialogData" label-width="110px" :rules="rules" size="small">
         <el-form-item label="鍚嶇О" prop="name">
           <el-input v-model="dialogData.name" placeholder="璇疯緭鍏ュ悕绉�" maxlength="50" />
@@ -93,13 +93,16 @@
       :limit.sync="pageSize"
       @pagination="getList"
     />
+
+    <back-to-top :visibility-height="300" :back-position="50" transition-name="fade" />
   </div>
 </template>
 
 <script>
-
+import BackToTop from '@/components/BackToTop'
 export default {
   name: 'Demo',
+  components: { BackToTop },
   data() {
     return {
       showSearch: true, // 鏄惁鏄剧ず鎼滅储鍖�
@@ -220,6 +223,9 @@
           }
         }, () => {
           this.$messageSuc(text + '鎴愬姛')
+        }, (res) => {
+          item.isUp = item.isUp === 1 ? 0 : 1
+          this.$messageError(res.msg)
         })
       }).catch(() => {
         item.isUp = item.isUp === 1 ? 0 : 1
@@ -290,7 +296,7 @@
       }, () => {
         this.$messageSuc('淇濆瓨鎴愬姛')
         this.hideDialog()
-        this.reGetList()
+        isAdd ? this.reGetList() : this.getList()
       })
     }
   }

--
Gitblit v1.8.0