From f700a77c60401a0be5de6579450fdc49ecab1d79 Mon Sep 17 00:00:00 2001 From: 王家文 Date: Thu, 22 Aug 2024 12:19:23 +0800 Subject: [PATCH] 【工具】GM工具 --- src/components/PlayerEdit.vue | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/components/PlayerEdit.vue b/src/components/PlayerEdit.vue index 097a08b..672ee3d 100644 --- a/src/components/PlayerEdit.vue +++ b/src/components/PlayerEdit.vue @@ -152,6 +152,13 @@
+ + + + + +
@@ -209,6 +216,7 @@ export default { listPayTypes: ["模拟支付", "支付补单"], listEditBoard: ["删除棋盘物件", "删除仓库物件", "删除暂存区物件"], listPlayerData: ["存档玩家", "高级号", "复制其他玩家数据"], + listTempQuery: ["获取猜谜正确序列"], listActUid: [ { text: '新手礼包', v: '20001' }, @@ -265,15 +273,30 @@ export default { formClearActFlag: { id: 20001, }, + formTempQuery: { + id: '', + }, } }, methods: { + OnPop(body, title) { + this.$alert(body, title, { + confirmButtonText: '确定', + }); + }, onGmPost: function (data) { data.Uid = this.puid axios.post(this.serversDict[this.serverselected], data) - .then(function (response) { + .then((response) => { console.log(response); + let rsp = response.data; + if (rsp.Action == "获取猜谜正确序列") { + this.OnPop(rsp.Result, "猜谜正确序列") + } + if (rsp.Action == "模拟支付" || rsp.Action == "支付补单") { + this.OnPop(rsp.Result, rsp.Result) + } }) .catch(function (error) { console.log(error); @@ -348,6 +371,13 @@ export default { Args: [v, this.formPlayerData.id.toString()] }) }, + onTempQuery(event) { + let v = event.srcElement.value + this.onGmPost({ + Action: '玩家数据修改', + Args: [v] + }) + }, } } -- libgit2 0.21.0