| 
				
			 | 
			
			
				@@ -5,7 +5,7 @@ 
			 | 
		
	
		
			
			| 
				5
			 | 
			
				5
			 | 
			
			
				           <div class="block"> 
			 | 
		
	
		
			
			| 
				6
			 | 
			
				6
			 | 
			
			
				               <!-- <span class="demonstration">時間篩選</span> --> 
			 | 
		
	
		
			
			| 
				7
			 | 
			
				7
			 | 
			
			
				               <el-date-picker 
			 | 
		
	
		
			
			| 
				8
			 | 
			
				
			 | 
			
			
				-              v-model="query.thirdLayer.date" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8
			 | 
			
			
				+              v-model="date" 
			 | 
		
	
		
			
			| 
				9
			 | 
			
				9
			 | 
			
			
				               type="datetimerange" 
			 | 
		
	
		
			
			| 
				10
			 | 
			
				10
			 | 
			
			
				               :picker-options="pickerOptions" 
			 | 
		
	
		
			
			| 
				11
			 | 
			
				11
			 | 
			
			
				               range-separator="至" 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -133,12 +133,13 @@ export default { 
			 | 
		
	
		
			
			| 
				133
			 | 
			
				133
			 | 
			
			
				           } 
			 | 
		
	
		
			
			| 
				134
			 | 
			
				134
			 | 
			
			
				         }] 
			 | 
		
	
		
			
			| 
				135
			 | 
			
				135
			 | 
			
			
				       }, 
			 | 
		
	
		
			
			| 
				136
			 | 
			
				
			 | 
			
			
				-      // date: null, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				136
			 | 
			
			
				+      date: [], 
			 | 
		
	
		
			
			| 
				137
			 | 
			
				137
			 | 
			
			
				       dialogFormVisible: false 
			 | 
		
	
		
			
			| 
				138
			 | 
			
				138
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				139
			 | 
			
				139
			 | 
			
			
				     } 
			 | 
		
	
		
			
			| 
				140
			 | 
			
				140
			 | 
			
			
				   }, 
			 | 
		
	
		
			
			| 
				141
			 | 
			
				141
			 | 
			
			
				   created() { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				142
			 | 
			
			
				+    this.date = this.p_date 
			 | 
		
	
		
			
			| 
				142
			 | 
			
				143
			 | 
			
			
				     this.SetVisible(3) 
			 | 
		
	
		
			
			| 
				143
			 | 
			
				144
			 | 
			
			
				     this.getList() 
			 | 
		
	
		
			
			| 
				144
			 | 
			
				145
			 | 
			
			
				   }, 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -146,14 +147,16 @@ export default { 
			 | 
		
	
		
			
			| 
				146
			 | 
			
				147
			 | 
			
			
				     ...mapGetters([ 
			 | 
		
	
		
			
			| 
				147
			 | 
			
				148
			 | 
			
			
				       'visible', 
			 | 
		
	
		
			
			| 
				148
			 | 
			
				149
			 | 
			
			
				       'data', 
			 | 
		
	
		
			
			| 
				149
			 | 
			
				
			 | 
			
			
				-      'query' 
			 | 
		
	
		
			
			| 
				
			 | 
			
				150
			 | 
			
			
				+      'query', 
			 | 
		
	
		
			
			| 
				
			 | 
			
				151
			 | 
			
			
				+      'p_date' 
			 | 
		
	
		
			
			| 
				150
			 | 
			
				152
			 | 
			
			
				     ]) 
			 | 
		
	
		
			
			| 
				151
			 | 
			
				153
			 | 
			
			
				   }, 
			 | 
		
	
		
			
			| 
				152
			 | 
			
				154
			 | 
			
			
				   methods: { 
			 | 
		
	
		
			
			| 
				153
			 | 
			
				155
			 | 
			
			
				     ...mapActions([ 
			 | 
		
	
		
			
			| 
				154
			 | 
			
				156
			 | 
			
			
				       'SetVisible', 
			 | 
		
	
		
			
			| 
				155
			 | 
			
				157
			 | 
			
			
				       'SetData', 
			 | 
		
	
		
			
			| 
				156
			 | 
			
				
			 | 
			
			
				-      'SetQuery' 
			 | 
		
	
		
			
			| 
				
			 | 
			
				158
			 | 
			
			
				+      'SetQuery', 
			 | 
		
	
		
			
			| 
				
			 | 
			
				159
			 | 
			
			
				+      'SetDate' 
			 | 
		
	
		
			
			| 
				157
			 | 
			
				160
			 | 
			
			
				     ]), 
			 | 
		
	
		
			
			| 
				158
			 | 
			
				161
			 | 
			
			
				     getList() { 
			 | 
		
	
		
			
			| 
				159
			 | 
			
				162
			 | 
			
			
				       this.listLoading = true 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -208,24 +211,24 @@ export default { 
			 | 
		
	
		
			
			| 
				208
			 | 
			
				211
			 | 
			
			
				       console.log('Game detail') 
			 | 
		
	
		
			
			| 
				209
			 | 
			
				212
			 | 
			
			
				     }, 
			 | 
		
	
		
			
			| 
				210
			 | 
			
				213
			 | 
			
			
				     handleFilter() { 
			 | 
		
	
		
			
			| 
				211
			 | 
			
				
			 | 
			
			
				-      if (this.query.thirdLayer.date) { 
			 | 
		
	
		
			
			| 
				212
			 | 
			
				
			 | 
			
			
				-        this.SetQuery({layer:3, query: {page: 1,startAt: moment.utc(this.query.thirdLayer.date[0]).format(), endAt: moment.utc(this.query.thirdLayer.date[1]).format()}})       
			 | 
		
	
		
			
			| 
				
			 | 
			
				214
			 | 
			
			
				+      if (this.p_date) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				215
			 | 
			
			
				+        this.SetQuery({layer:3, query: {page: 1,startAt: moment.utc(this.p_date[0]).format(), endAt: moment.utc(this.p_date[1]).format()}})       
			 | 
		
	
		
			
			| 
				213
			 | 
			
				216
			 | 
			
			
				       } else { 
			 | 
		
	
		
			
			| 
				214
			 | 
			
				217
			 | 
			
			
				          this.SetQuery({layer:3, query: {page: 1,startAt: null, endAt: null}})   
			 | 
		
	
		
			
			| 
				215
			 | 
			
				218
			 | 
			
			
				       } 
			 | 
		
	
		
			
			| 
				216
			 | 
			
				219
			 | 
			
			
				       this.getList() 
			 | 
		
	
		
			
			| 
				217
			 | 
			
				220
			 | 
			
			
				     }, 
			 | 
		
	
		
			
			| 
				218
			 | 
			
				221
			 | 
			
			
				     handleSizeChange(val) { 
			 | 
		
	
		
			
			| 
				219
			 | 
			
				
			 | 
			
			
				-      if (this.query.thirdLayer.date) { 
			 | 
		
	
		
			
			| 
				220
			 | 
			
				
			 | 
			
			
				-        this.SetQuery({layer:3, query: {limit: val, startAt: moment.utc(this.query.thirdLayer.date[0]).format(), endAt: moment.utc(this.query.thirdLayer.date[1]).format()}})       
			 | 
		
	
		
			
			| 
				
			 | 
			
				222
			 | 
			
			
				+      if (this.p_date) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				223
			 | 
			
			
				+        this.SetQuery({layer:3, query: {limit: val, startAt: moment.utc(this.p_date[0]).format(), endAt: moment.utc(this.p_date[1]).format()}})       
			 | 
		
	
		
			
			| 
				221
			 | 
			
				224
			 | 
			
			
				       } else { 
			 | 
		
	
		
			
			| 
				222
			 | 
			
				225
			 | 
			
			
				          this.SetQuery({layer:3, query: {limit: val,startAt: null, endAt: null}})   
			 | 
		
	
		
			
			| 
				223
			 | 
			
				226
			 | 
			
			
				       } 
			 | 
		
	
		
			
			| 
				224
			 | 
			
				227
			 | 
			
			
				       this.getList() 
			 | 
		
	
		
			
			| 
				225
			 | 
			
				228
			 | 
			
			
				     }, 
			 | 
		
	
		
			
			| 
				226
			 | 
			
				229
			 | 
			
			
				     handleCurrentChange(val) { 
			 | 
		
	
		
			
			| 
				227
			 | 
			
				
			 | 
			
			
				-      if (this.query.thirdLayer.date) { 
			 | 
		
	
		
			
			| 
				228
			 | 
			
				
			 | 
			
			
				-        this.SetQuery({layer:3, query: {page: val, startAt: moment.utc(this.query.thirdLayer.date[0]).format(), endAt: moment.utc(this.query.thirdLayer.date[1]).format()}})       
			 | 
		
	
		
			
			| 
				
			 | 
			
				230
			 | 
			
			
				+      if (this.p_date) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				231
			 | 
			
			
				+        this.SetQuery({layer:3, query: {page: val, startAt: moment.utc(this.p_date[0]).format(), endAt: moment.utc(this.p_date[1]).format()}})       
			 | 
		
	
		
			
			| 
				229
			 | 
			
				232
			 | 
			
			
				       } else { 
			 | 
		
	
		
			
			| 
				230
			 | 
			
				233
			 | 
			
			
				          this.SetQuery({layer:3, query: {page: val,startAt: null, endAt: null}})   
			 | 
		
	
		
			
			| 
				231
			 | 
			
				234
			 | 
			
			
				       } 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -260,12 +263,10 @@ export default { 
			 | 
		
	
		
			
			| 
				260
			 | 
			
				263
			 | 
			
			
				   destroyed() { 
			 | 
		
	
		
			
			| 
				261
			 | 
			
				264
			 | 
			
			
				     this.SetVisible(2) 
			 | 
		
	
		
			
			| 
				262
			 | 
			
				265
			 | 
			
			
				   }, 
			 | 
		
	
		
			
			| 
				263
			 | 
			
				
			 | 
			
			
				-  // TODO time 持九化 
			 | 
		
	
		
			
			| 
				
			 | 
			
				266
			 | 
			
			
				+  // time 持久化 
			 | 
		
	
		
			
			| 
				264
			 | 
			
				267
			 | 
			
			
				   watch: { 
			 | 
		
	
		
			
			| 
				265
			 | 
			
				
			 | 
			
			
				-    'query.thirdLayer.date': function(val) { 
			 | 
		
	
		
			
			| 
				266
			 | 
			
				
			 | 
			
			
				-      if(this.query.thirdLayer.date) if((val[0] = this.query.thirdLayer.date[0]) && (val[1] = this.query.thirdLayer.date[1])) return 
			 | 
		
	
		
			
			| 
				267
			 | 
			
				
			 | 
			
			
				-      this.SetQuery({layer:3, query: {date: val}}) 
			 | 
		
	
		
			
			| 
				268
			 | 
			
				
			 | 
			
			
				-      console.log('test', val); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				268
			 | 
			
			
				+    'date': function(val) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				269
			 | 
			
			
				+     this.SetDate(val) 
			 | 
		
	
		
			
			| 
				269
			 | 
			
				270
			 | 
			
			
				     } 
			 | 
		
	
		
			
			| 
				270
			 | 
			
				271
			 | 
			
			
				   } 
			 | 
		
	
		
			
			| 
				271
			 | 
			
				272
			 | 
			
			
				 } 
			 |