Kaynağa Gözat

add show layer

Unknown 7 yıl önce
ebeveyn
işleme
862626ceed

+ 10 - 5
src/views/room/chipsHistory/index.vue

@@ -1,6 +1,6 @@
1 1
 <template>
2
-  <div class="app-container">
3
-    <div class="app-container">
2
+  <div   class="app-container">
3
+    <div v-show="visible.thirdLayer" class="app-container">
4 4
         <div class="block">
5 5
             <!-- <span class="demonstration">時間篩選</span> -->
6 6
             <el-date-picker
@@ -51,7 +51,7 @@
51 51
 
52 52
 <script>
53 53
 
54
-import { mapActions } from 'vuex'
54
+import { mapActions, mapGetters } from 'vuex'
55 55
 import { fetchChipsHistory } from '@/api/gambleMember'
56 56
 import waves from '@/directive/waves' // 水波纹指令
57 57
 import moment from 'moment-timezone'
@@ -121,10 +121,15 @@ export default {
121 121
     }
122 122
   },
123 123
   created() {
124
-    this.SetVisible(false)
124
+    this.SetVisible(3)
125 125
     this.getList()
126 126
   },
127 127
   props: ['member'],
128
+  computed: {
129
+    ...mapGetters([
130
+      'visible'
131
+    ])
132
+  },
128 133
   methods: {
129 134
     ...mapActions([
130 135
       'SetVisible'
@@ -164,7 +169,7 @@ export default {
164 169
     }
165 170
   },
166 171
   destroyed() {
167
-    this.SetVisible(true)
172
+    this.SetVisible(2)
168 173
   }
169 174
 }
170 175
 </script>

+ 7 - 4
src/views/room/gambleMember/index.vue

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
 <div class="app-container calendar-list-container">
3
-  <div  v-show="visible">
3
+  <div  v-show="visible.secondLayer">
4 4
     <div class="app-container">
5 5
       <el-input @keyup.enter.native="handleFilter" style="width: 200px;" class="filter-item" placeholder="名稱" v-model="listQuery.name">
6 6
       </el-input>
@@ -126,9 +126,12 @@ export default {
126 126
     }
127 127
   },
128 128
   created() {
129
-    this.SetVisible(true)
129
+    this.SetVisible(2)
130 130
     this.getList()
131 131
   },
132
+  destroyed() {
133
+    this.SetVisible(1)
134
+  },
132 135
   computed: {
133 136
     ...mapGetters([
134 137
       'visible'
@@ -212,12 +215,12 @@ export default {
212 215
     },
213 216
     handlePage(row) {
214 217
       const temp = Object.assign({}, row) // copy obj
215
-      this.SetVisible(false)
218
+      this.SetVisible(3)
216 219
       this.member = temp
217 220
     },
218 221
     handleLog(row) {
219 222
       const temp = Object.assign({}, row) // copy obj
220
-      this.SetVisible(false)
223
+      this.SetVisible(3)
221 224
       this.member = temp
222 225
     },
223 226
     handleFilter() {

+ 10 - 5
src/views/room/gameHistory/index.vue

@@ -1,6 +1,6 @@
1 1
 <template>
2
-  <div class="app-container">
3
-    <div class="app-container">
2
+  <div  class="app-container">
3
+    <div v-show="visible.thirdLayer" class="app-container">
4 4
         <div class="block">
5 5
             <!-- <span class="demonstration">時間篩選</span> -->
6 6
             <el-date-picker
@@ -91,7 +91,7 @@
91 91
 
92 92
 <script>
93 93
 
94
-import { mapActions } from 'vuex'
94
+import { mapActions, mapGetters } from 'vuex'
95 95
 import { fetchGameHistory, fetchPersonGameDetail } from '@/api/gambleMember'
96 96
 import waves from '@/directive/waves' // 水波纹指令
97 97
 import moment from 'moment-timezone'
@@ -161,9 +161,14 @@ export default {
161 161
     }
162 162
   },
163 163
   created() {
164
-    this.SetVisible(false)
164
+    this.SetVisible(3)
165 165
     this.getList()
166 166
   },
167
+  computed: {
168
+    ...mapGetters([
169
+      'visible'
170
+    ])
171
+  },
167 172
   props: ['member'],
168 173
   methods: {
169 174
     ...mapActions([
@@ -234,7 +239,7 @@ export default {
234 239
     }
235 240
   },
236 241
   destroyed() {
237
-    this.SetVisible(true)
242
+    this.SetVisible(2)
238 243
   }
239 244
 }
240 245
 </script>

+ 3 - 3
src/views/room/index.vue

@@ -1,7 +1,7 @@
1 1
 <!-- TODO select -->
2 2
 <template>
3 3
 <div class="app-container calendar-list-container">
4
-  <div  v-show="visible">
4
+  <div  v-show="visible.firstLayer">
5 5
     <div class="app-container">
6 6
       <el-input @keyup.enter.native="handleFilter" style="width: 200px;" class="filter-item" placeholder="房間名" v-model="listQuery.name">
7 7
       </el-input>
@@ -75,7 +75,7 @@ export default {
75 75
     }
76 76
   },
77 77
   created() {
78
-    this.SetVisible(true)
78
+    this.SetVisible(1)
79 79
     this.getList()
80 80
   },
81 81
   computed: {
@@ -97,7 +97,7 @@ export default {
97 97
     },
98 98
     handlePage(row) {
99 99
       const temp = Object.assign({}, row) // copy obj
100
-      this.SetVisible(false)
100
+      this.SetVisible(2)
101 101
       this.member = temp
102 102
     },
103 103
     handleCreate() {