浏览代码

游戏记录

ssvfdn 3 月之前
父节点
当前提交
13e7ed5998

+ 20 - 1
apps/web-antd/src/locales/langs/zh-CN/player_data.json

@@ -51,6 +51,25 @@
         "prev_amount": "下注前",
         "next_amount": "结算后",
         "total_win_amount": "总输赢",
-        "balance_amount": "最后结算金额"
+        "balance_amount": "最后结算金额",
+        "tips": {
+            "third_gid": "每一局的父级ID",
+            "create_time": "此条游戏记录的生成时间,也为玩家当局游戏结算的时间",
+            "third_round_id": "此条游戏记录的编号,唯一,对应客户端的展示用于比对查找",
+            "nickname": "平台玩家昵称",
+            "user_id": "玩家ID",
+            "app_id": "所属商户昵称",
+            "uname": "平台玩家ID编号,唯一",
+            "game_play": "标记玩家在游戏过程中的玩法类型\n“-“:普通转动;\n“免费旋转”:玩家触发了游戏内的特殊玩法,如免费游戏等;\n“连消”:玩家在普通转动中中奖连续消除;\n“重转”:疯狂钱来也、森巴嘉年华游戏的特点玩法;",
+            "control_state": "玩家被调控的状态",
+            "trigger_mode": "标记此免费旋转是否为购买免费",
+            "rtp": "游戏的回报率;值越高玩家盈利机会越高",
+            "bet_amount": "玩家在此局游戏的下注额度",
+            "win_amount": "此局游戏玩家的输赢情况,正为玩家盈利,负为玩家亏损",
+            "prev_amount": "此局游戏玩家的输赢情况,正为玩家盈利,负为玩家亏损",
+            "next_amount": "玩家在此局游戏下注、结算后的持有余额数量",
+            "total_win_amount": "玩家在此局游戏下注、结算后的持有余额数量",
+            "balance_amount": "当前下注连消后的余额"
+        }
     }
 }

+ 23 - 22
apps/web-antd/src/views/player_data/game_records/index.vue

@@ -112,31 +112,32 @@ function onSubmit(values) {
 const gridOptions = {
 	border: true,
 	stripe: true,
-	checkboxConfig: {
-		highlight: true,
-	},
+	// checkboxConfig: {
+	// 	highlight: true,
+	// },
 	columns: [
-		{ fixed: 'left',  title: '序号', type: 'seq', width: 50 },
-		{ field: 'third_gid', title: $t('player_data.gameRecords.third_gid'), width: 230 },
+		{ fixed: 'left',  title: '序号', type: 'seq', width: 50},
+		{ fixed: 'left', field: 'third_gid', title: $t('player_data.gameRecords.third_gid'), width: 230, titlePrefix: {'content':$t('player_data.gameRecords.tips.third_gid')} },
 		{ field: 'uuid', title:  $t('player_data.gameRecords.uuid'), width: 230},
-		{ field: 'create_time', title: $t('player_data.gameRecords.create_time'), width: 200 },
-		{ field: 'third_round_id', title: $t('player_data.gameRecords.third_round_id'), width: 230 },
-		{ field: 'nickname', title: $t('player_data.gameRecords.nickname'), width: 150},
-		{ field: 'app_id', title: $t('player_data.gameRecords.app_id'), width: 100},
-		{ field: 'uname', title: $t('player_data.gameRecords.uname'), width: 150},
-		{ field: 'user_id', title: $t('player_data.gameRecords.user_id'), width: 100},
+		{ field: 'create_time', title: $t('player_data.gameRecords.create_time'), width: 200, titlePrefix: {'content':$t('player_data.gameRecords.tips.create_time')} },
+		{ field: 'third_round_id', title: $t('player_data.gameRecords.third_round_id'), width: 230, titlePrefix: {'content':$t('player_data.gameRecords.tips.third_round_id')} },
+		{ field: 'nickname', title: $t('player_data.gameRecords.nickname'), width: 150, titlePrefix: {'content':$t('player_data.gameRecords.tips.nickname')}},
+		{ field: 'user_id', title: $t('player_data.gameRecords.user_id'), width: 100, titlePrefix: {'content':$t('player_data.gameRecords.tips.user_id')}},
+		{ field: 'app_id', title: $t('player_data.gameRecords.app_id'), width: 100, titlePrefix: {'content':$t('player_data.gameRecords.tips.app_id')}},
+		{ field: 'uname', title: $t('player_data.gameRecords.uname'), width: 150, titlePrefix: {'content':$t('player_data.gameRecords.tips.uname')}},
 		{ field: 'game_title', title: $t('player_data.gameRecords.game_title'), width: 200},
-		{ field: 'bet_game_play_type', title: $t('player_data.gameRecords.game_play'), width: 140},
-		{ field: 'control_state', title: $t('player_data.gameRecords.control_state'), width: 140},
-		{ field: 'trigger_mode', title: $t('player_data.gameRecords.trigger_mode'), width: 140},
-		{ field: 'rtp', title: $t('player_data.gameRecords.rtp'), width: 140},
-		{ field: 'bet', title: $t('player_data.gameRecords.bet_amount'), width: 140},
+		{ field: 'bet_game_play_type', title: $t('player_data.gameRecords.game_play'), width: 140, titlePrefix: {'content':$t('player_data.gameRecords.tips.game_play')}},
+		{ field: 'control_state', title: $t('player_data.gameRecords.control_state'), width: 140, titlePrefix: {'content':$t('player_data.gameRecords.tips.control_state')}},
+		{ field: 'trigger_mode', title: $t('player_data.gameRecords.trigger_mode'), width: 140, titlePrefix: {'content':$t('player_data.gameRecords.tips.trigger_mode')}},
+		{ field: 'rtp', title: $t('player_data.gameRecords.rtp'), width: 140, titlePrefix: {'content':$t('player_data.gameRecords.tips.rtp')}},
+		{ field: 'bet', title: $t('player_data.gameRecords.bet_amount'), width: 140, titlePrefix: {'content':$t('player_data.gameRecords.tips.bet_amount')}},
 		{ field: 'should_bet_result', title: $t('player_data.gameRecords.should_bet_result'), width: 140},
-		{ field: 'win_amount', title: $t('player_data.gameRecords.win_amount'), width: 140},
-		{ field: 'prev_amount', title: $t('player_data.gameRecords.prev_amount'), width: 140},
-		{ field: 'next_amount', title: $t('player_data.gameRecords.next_amount'), width: 140},
-		{ field: 'total_win_amount', title: $t('player_data.gameRecords.total_win_amount'), width: 140},
-		{ field: 'balance_amount', title: $t('player_data.gameRecords.balance_amount'), width: 140},
+		{ field: 'win_amount', title: $t('player_data.gameRecords.win_amount'), width: 140, titlePrefix: {'content':$t('player_data.gameRecords.tips.win_amount')}},
+		{ field: 'prev_amount', title: $t('player_data.gameRecords.prev_amount'), width: 140, titlePrefix: {'content':$t('player_data.gameRecords.tips.prev_amount')}},
+		{ field: 'next_amount', title: $t('player_data.gameRecords.next_amount'), width: 140, titlePrefix: {'content':$t('player_data.gameRecords.tips.next_amount')}},
+		{ field: 'total_win_amount', title: $t('player_data.gameRecords.total_win_amount'), width: 140, titlePrefix: {'content':$t('player_data.gameRecords.tips.total_win_amount')}},
+		{ field: 'balance_amount', title: $t('player_data.gameRecords.balance_amount'), width: 140, titlePrefix: {'content':$t('player_data.gameRecords.tips.balance_amount')}},
+		// { fixed: 'right', title: $t('game_control.game_list.action'), width: 220},
 		// { field: 'next_amount', title: $t('player_data.playlist.reg_ip'), width: 140},
 		// { field: 'releaseDate', formatter: 'formatDateTime', title: 'DateTime' },
 	],
@@ -145,7 +146,7 @@ const gridOptions = {
 	keepSource: true,
 	treeConfig: {
 		transform: true, // 指定表格为树形表格
-		parentField: 'children', // 父节点字段名
+		parentField: 'parent_id', // 父节点字段名
 		rowField: 'id', // 行数据字段名
 	},
 	proxyConfig: {