From 4d507e67eaee76c3ee106a14d55149417858e95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BF=97=E6=81=92?= <842328916@qq.com> Date: Sat, 18 Oct 2025 23:33:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B8=E8=BF=9024-=E5=90=8E=E5=8F=B0-?= =?UTF-8?q?=E9=A2=9D=E5=A4=96=E6=95=B0=E7=BB=84=E9=85=8D=E7=BD=AE-?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E4=B8=89=E5=A4=A9=E5=86=85=E6=8A=95=E4=BA=A7?= =?UTF-8?q?=E6=AF=94=E8=BE=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/luckGift/luckGiftSet.vue | 124 ++++++++++++++++++++--------- 1 file changed, 85 insertions(+), 39 deletions(-) diff --git a/src/views/luckGift/luckGiftSet.vue b/src/views/luckGift/luckGiftSet.vue index 487692a..cd7ba66 100644 --- a/src/views/luckGift/luckGiftSet.vue +++ b/src/views/luckGift/luckGiftSet.vue @@ -423,38 +423,52 @@
- 单次投入金币门槛 - 当天获得次数限制 +
- 用户充值等级 - 当天进入判断点位(最后一位循环判断) +
- 当天退出率 - -
- -
- 当天差额 - -
- -
- 近两天获得次数限制 - + 配置 + + + + + + + + + + + + + + + + + + +
- - - - - - - - + - - - - - + @@ -696,6 +700,9 @@ export default { multiEditDialogTitle: "", detailsDialog: false, extraPoolDialog: false, + judgeConfigDialogVisible: false, + activeJudgeTab: '0', + tempJudgeConfig: {}, // 用于临时存储编辑的judgeConfig extraDialogButClick: true, value: "", type: null, @@ -741,9 +748,29 @@ export default { this.inquire.extraStock = res.data.extraStock; this.inquire.extraPoolConfig = res.data.extraPoolConfig; - this.inquire.extraPoolConfig.userRechargeLevels = res.data.extraPoolConfig.userRechargeLevels.join(','); + this.inquire.extraPoolConfig.timesJudgeArray = res.data.extraPoolConfig.timesJudgeArray.join(','); + this.inquire.extraPoolConfig.judgeConfigTree = this.convertToTree(res.data.extraPoolConfig.judgeConfig) + console.info(this.inquire.extraPoolConfig.judgeConfigTree) + }); }, + // 获取第二层表格数据 + getLevel2TableData(level2Obj) { + return Object.keys(level2Obj).map(level2Key => ({ + level2Key, + level3Obj: level2Obj[level2Key] + })); + }, + + // 根据值获取键 + getKeyByValue(obj, value) { + for (const key in obj) { + if (obj[key] === value) { + return key; + } + } + return ''; // 如果没有找到对应的值,返回空字符串 + }, // 排序 sortK12 (kObj) { // 创建一个新对象以保持排序后的键值对 @@ -927,7 +954,7 @@ export default { obj.partitionId = this.inquire.value; obj.extraPoolConfig = this.inquire.extraPoolConfig; console.info(this.inquire.extraPoolConfig.userRechargeLevels) - obj.extraPoolConfig.userRechargeLevels = this.inquire.extraPoolConfig.userRechargeLevels.split(","); + obj.extraPoolConfig.timesJudgeArray = this.inquire.extraPoolConfig.timesJudgeArray.split(","); updateSet(obj).then((res) => { if (res.code == 200) { ElMessage({ @@ -976,4 +1003,23 @@ export default { margin-bottom: 20px; } } - + +// 卡片样式适配表单项 +.judge-config-card { + border: 1px solid #dcdfe6; + border-radius: 4px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + margin-bottom: 10px; + background-color: #fff; +} +.el-card__header { + padding: 10px 15px; + border-bottom: 1px solid #dcdfe6; + font-size: 14px; + color: #303133; + line-height: 1.5; +} +.el-card__body { + padding: 15px; +} + \ No newline at end of file