Compare commits

...

590 Commits

Author SHA1 Message Date
dragon
50919fd508 修改雷蛇充值字段 2025-01-22 15:48:47 +08:00
dragon
8dc17b87ad 新增雷蛇充值 2025-01-13 15:27:54 +08:00
dragon
d420979350 修复开屏设置层级问题 2025-01-08 11:24:17 +08:00
dragon
63c7f5ed80 消息管理-读取分区 2025-01-08 11:05:14 +08:00
dragon
eba1d654d3 同步代码 2025-01-08 11:04:02 +08:00
dragon
09dc6f3645 新增开屏设置编辑连接 2025-01-08 10:47:20 +08:00
dragon
5338943b9b 新增跳转位置类型-开屏设置 2025-01-08 10:47:19 +08:00
dragon
1b47d48d0a 新增信誉值 2025-01-07 18:15:21 +08:00
dragon
3659f582d5 修复页面异常缩短问题 2025-01-06 17:13:38 +08:00
dragon
ed17e47390 修改用户查询接口接口 2025-01-06 15:45:25 +08:00
dragon
84e86deb73 修改传参可是 2025-01-03 13:44:00 +08:00
dragon
0751f06ec4 修复时间异常问题 2025-01-03 11:56:29 +08:00
dragon
4bc596e3d8 公会金币流水-修改时间展示 2025-01-03 10:43:04 +08:00
khalil
1683225a72 代充设置-查询-分区 2024-12-27 17:23:00 +08:00
dragon
c904646f4a 新增首页tab置顶判断 2024-12-27 14:13:01 +08:00
dragon
98d5f20be7 修复编辑回显异常问题 2024-12-26 19:02:28 +08:00
dragon
924971a290 新增必填项 2024-12-26 19:02:26 +08:00
dragon
f5b721a6f8 完成首页Ttab管理 2024-12-26 19:02:24 +08:00
dragon
47c819433b 新增公会信息&公会申请客服专用信息 2024-12-26 18:08:17 +08:00
khalil
3e9a2bfb60 装扮商城-气泡-去掉图片限制 2024-12-20 19:35:19 +08:00
dragon
ce2a63c864 修复主播薪资操作分页异常问题 2024-12-19 16:31:55 +08:00
dragon
0e5857873c 修改页数 2024-12-16 18:05:34 +08:00
dragon
26d422ecda 新增永辉账单查询变动前后 2024-12-16 16:35:05 +08:00
dragon
ccf95bb81a 完成充值操作记录和充值代理导出 2024-12-12 18:02:32 +08:00
dragon
dd1fdb23c2 金币钻石暂存 2024-12-12 18:02:31 +08:00
dragon
84a26ed699 新增编辑奖励 2024-12-12 15:28:24 +08:00
dragon
f1f558e2b1 修改弹窗没有回显奖励图片问题 2024-12-12 13:53:06 +08:00
dragon
1b74d19c98 新增奖励图片Boom 2024-12-12 11:47:12 +08:00
dragon
aab2ff2794 优化boom 2024-12-12 11:47:10 +08:00
dragon
d750ae68d2 ‘完成boom后台’ 2024-12-12 11:47:08 +08:00
dragon
44ea9d3dcf boom暂存 2024-12-12 11:47:06 +08:00
dragon
2394d2ef60 boom暂存 2024-12-12 11:47:05 +08:00
dragon
91e295e3b7 个人幸运礼物数据分区改为读接口 2024-12-12 11:45:59 +08:00
khalil
47a67f4718 用户信息查询-保存-错误提醒 2024-12-11 15:12:22 +08:00
dragon
8c06877c67 新增操作人 2024-12-10 17:10:46 +08:00
dragon
be82b67bab 图片显示新公会申请 2024-12-10 15:22:22 +08:00
dragon
da9368018a 新增新公会申请 2024-12-09 14:05:05 +08:00
khalil
c39b992e31 送礼明细-后台-增加房间 2024-12-06 14:27:31 +08:00
khalil
1aa6a67531 充值h5-后台-支持同地区下不同货币收款 2024-12-05 15:20:40 +08:00
khalil
a2fa4a8fbd ss公会-后台-奖励发放-默认分区阿拉伯 2024-12-03 18:59:55 +08:00
dragon
4ab5768849 修复装扮商城状态不生效问题 2024-12-03 18:19:34 +08:00
dragon
fa2d3975d2 修改文案 2024-12-03 18:09:16 +08:00
dragon
0fdcf097c8 新增id 2024-12-03 16:00:26 +08:00
dragon
3d18a53f34 礼物管理土耳其编辑 2024-12-03 10:29:57 +08:00
dragon
627de18eaf 修改标题 2024-12-03 10:29:56 +08:00
dragon
8868f4204c 修改图片上传异常问题 2024-12-03 10:29:55 +08:00
dragon
38bffe26dc 修复资料卡编辑异常问题 2024-12-03 10:29:54 +08:00
dragon
8a548f9a69 重新定义全局报错异常 2024-12-03 10:29:53 +08:00
dragon
28b21d5c85 新增全局错误监听 2024-12-03 10:29:52 +08:00
dragon
dcdf89aa48 优化加载页面 2024-12-03 10:29:51 +08:00
dragon
b9dcae392a 隐藏清除svga容器 2024-12-03 10:29:50 +08:00
dragon
ae4b9d0493 个人主页资源管理用vue3写法 2024-12-03 10:29:49 +08:00
dragon
8789fdfc29 移除mp4测试是否有异常 2024-12-03 10:29:48 +08:00
dragon
0700880ade 测试不展示svga是否异常 2024-12-03 10:29:47 +08:00
dragon
7c042161bd 删除表头动效字段 2024-12-03 10:29:46 +08:00
dragon
431749ef28 测试svga是否还有异常 2024-12-03 10:29:45 +08:00
dragon
7bb0faad23 隐藏表格svga 2024-12-03 10:29:44 +08:00
dragon
59a2461f73 新增装扮商城支持mp4限制第二banner不能输入空格 2024-12-03 10:29:43 +08:00
dragon
223311f321 新增个人赠送记录撤回功能 2024-12-03 10:29:42 +08:00
dragon
02474473bf 完成装扮商城版本需求 2024-12-03 10:29:40 +08:00
dragon
559fea9300 版本功能 2024-12-03 10:29:39 +08:00
dragon
ed618598c2 版本暂存 2024-12-03 10:29:38 +08:00
dragon
7610a2768f 新增礼物管理全服通知-赛头像 2024-12-03 10:29:37 +08:00
khalil
eb7e9387c6 主播薪资-后台-分页 2024-12-02 21:56:50 +08:00
dragon
212498b6be 关闭初始化充值明细 2024-11-29 14:03:30 +08:00
dragon
369bf84a1f 修改退款货币排序 2024-11-29 11:47:50 +08:00
dragon
a79445b9e5 修改退款金额字段 2024-11-29 10:54:27 +08:00
dragon
fda1a6aacb 新增退款明细后台错误提示 2024-11-28 17:57:37 +08:00
dragon
e58363371c 修改渲染总额顺序 2024-11-28 15:31:30 +08:00
dragon
943518ce24 修改国家接口 2024-11-27 15:07:07 +08:00
dragon
df0093c4f8 修复充值明细异常问题 2024-11-27 14:51:02 +08:00
dragon
19d8ac3753 充值明细和转赠新增送统计字段 2024-11-27 14:51:01 +08:00
dragon
9486359ddf 新增用户退款查询 2024-11-27 14:50:59 +08:00
khalil
ef7c060545 送礼记录-后台-查询-修改结构 2024-11-26 14:37:58 +08:00
dragon
350c1b0e07 修复分区异常问题 2024-11-25 18:57:46 +08:00
dragon
f9a1f6a89c 完成幸运礼物优化 2024-11-20 15:59:20 +08:00
dragon
c7597a1b14 幸运礼物暂存 2024-11-20 15:59:19 +08:00
dragon
9b7d0132ef 幸运礼物暂存 2024-11-20 15:59:18 +08:00
khalil
0dcf3594bd 幸运24-记录-分区-增加土耳其区 2024-11-20 15:59:13 +08:00
khalil
e50a89fb0a 幸运24-记录-分区-增加土耳其区 2024-11-20 15:51:19 +08:00
khalil
49bd77ae3f 幸运24-分区-增加土耳其区 2024-11-20 11:58:17 +08:00
dragon
d9a6c2881b 修复财务管理-转赠统计时间筛选异常问题 2024-11-19 15:23:14 +08:00
dragon
46af95e834 公会信息异常问题 2024-11-15 18:53:59 +08:00
dragon
07543cca7d 修复页面异常问题 2024-11-15 18:36:50 +08:00
dragon
a75058d202 修复公会信息异常问题 2024-11-15 15:40:50 +08:00
dragon
9129e29bf3 新增公会默认选择地区 2024-11-15 11:55:56 +08:00
dragon
37df3b5db1 补齐新增土耳座驾资源管理 2024-11-14 15:54:12 +08:00
dragon
6e841bc675 完成土耳其化 2024-11-14 15:40:14 +08:00
dragon
286969cdd1 分区暂存 2024-11-14 15:40:12 +08:00
dragon
d3b48eea86 新增土耳其相关 2024-11-14 15:40:11 +08:00
dragon
9e6495d807 修复第二banner新增弹窗异常问题 2024-11-12 15:31:09 +08:00
dragon
836fb732c8 优化图片显示 2024-11-12 10:31:17 +08:00
dragon
9a151fbe05 新增第二banner无跳转接触必填限制 2024-11-12 10:31:16 +08:00
dragon
07e9a1e8b2 工会信息新增公会头像 2024-11-12 10:31:16 +08:00
dragon
d3c14383f8 新增无跳转类型-banner 2024-11-12 10:31:15 +08:00
dragon
5bba43c189 移除svga图片 2024-11-12 10:31:14 +08:00
dragon
74939056ce deBug未知报错 2024-11-12 10:31:13 +08:00
dragon
004bf0e03a 优化房间背景svga代码先后流程 2024-11-12 10:31:13 +08:00
dragon
b467577792 完成第二banner 2024-11-12 10:31:12 +08:00
dragon
99a1c89643 修复appui配置异常问题 2024-11-12 10:31:11 +08:00
dragon
b043d8c06e 修复报错问题 2024-11-12 10:31:10 +08:00
dragon
fb007e763c 完成房间背景和首页ui配置 2024-11-12 10:31:10 +08:00
khalil
2fddf66a5d 房间流水-后台-listByPage改list 2024-11-11 22:05:20 +08:00
khalil
75bcd232a4 banner-后台-跳转类型 2024-11-04 18:58:16 +08:00
dragon
ae0a3507a6 钻石流水显示时分秒+转赠类型新增web-api金币 2024-10-30 17:46:48 +08:00
khalil
31d6efd60e 头像-房间-上传 2024-10-28 14:20:59 +08:00
khalil
70993f1b4d 头像-房间-列表增加审核状态 2024-10-25 17:04:58 +08:00
khalil
e4fb991a98 寻爱-后台-奖品取消分区 2024-10-25 17:04:53 +08:00
khalil
b84438c19d 寻爱-后台-分区 2024-10-25 17:04:41 +08:00
dragon
ed9178a1d0 修复详情数据异常问题 2024-10-24 17:51:34 +08:00
dragon
78b3a70d5f 修复数据异常问题 2024-10-24 17:12:01 +08:00
dragon
baad132403 完成小游戏后台 2024-10-23 11:29:00 +08:00
dragon
c865eae77b 修复时间戳默认转换值 2024-10-18 17:00:48 +08:00
dragon
5d296f8086 新增充值搜索和修改usd 2024-10-18 15:23:37 +08:00
dragon
3f905c2b1e 修复查看详情状态异常问题 2024-10-17 18:01:13 +08:00
dragon
7add80a5ae 完善接口联调 2024-10-17 17:11:20 +08:00
dragon
0d6019e9f1 取消座驾动画限制 2024-10-15 18:21:26 +08:00
dragon
11ceac5d4f 修复字段 2024-10-12 23:55:07 +08:00
dragon
289aa70af3 修改介绍文案 2024-10-12 18:58:28 +08:00
dragon
c8b283b0d8 修改文案 2024-10-12 18:05:09 +08:00
dragon
9bec1ba472 新增幸运礼物-个人数据汇总-赠送倍数奖励按钮 2024-10-12 18:02:57 +08:00
khalil
2c64fc1443 靓号-后台-查询-分区 2024-10-12 14:57:48 +08:00
khalil
097dea0693 靓号-后台-上传 2024-10-11 17:59:57 +08:00
khalil
6abde0b9ec 靓号-后台-修改 2024-10-10 19:55:40 +08:00
dragon
c99ee00ca8 修复钻石流水分页问题 2024-09-30 10:31:17 +08:00
dragon
c3f70e3c9b 移除自动加载钻石流水数据 2024-09-29 17:52:15 +08:00
dragon
1e4002a4fa 修复时间选择器bug 2024-09-29 17:38:23 +08:00
dragon
090447e1ce 优化时间选择器 2024-09-29 16:11:25 +08:00
dragon
c847b94994 暂存官方提心&完成钻石流水统计 2024-09-29 13:51:11 +08:00
dragon
f91dc1cf62 公会暂存 2024-09-26 11:34:46 +08:00
dragon
4d5fb57ddf 新增定制礼物 2024-09-25 20:10:30 +08:00
khalil
b174c9818e 充值统计-增加startPay 2024-09-23 22:14:19 +08:00
dragon
c6f979c094 新增赠送成功toast 2024-09-20 14:18:20 +08:00
dragon
475ee45a44 新增对比值M 2024-09-20 11:43:40 +08:00
dragon
c4209d6c24 新增基础配置 2024-09-19 19:12:43 +08:00
dragon
e77165a1d7 优化超级幸运礼物下拉框 2024-09-18 11:06:59 +08:00
dragon
8a2c1381e9 修改标题 2024-09-14 23:46:27 +08:00
dragon
e062c2afa3 修复基础设置异常 2024-09-14 23:29:38 +08:00
dragon
591495edcc 新增幸运礼物和cp 2024-09-14 22:45:54 +08:00
dragon
25e828f7e4 修复显示异常 2024-09-14 22:36:00 +08:00
dragon
1ab319d372 修复总览没数据问题 2024-09-14 22:07:01 +08:00
dragon
9b6ee433d7 修复样式异常 2024-09-14 20:12:04 +08:00
dragon
9c4aa4efb9 完善幸运礼物 2024-09-14 19:03:04 +08:00
dragon
f228aad967 幸运礼物24暂存 2024-09-14 16:10:09 +08:00
khalil
e47b57f760 登录-取消验证码 2024-09-11 22:31:08 +08:00
dragon
4e3bbd9209 修复分页异常问题 2024-09-10 15:03:55 +08:00
dragon
9f9e7ca81c 完善靓号后台以及新增vip赠送天数 2024-09-10 14:41:28 +08:00
dragon
493ad80d1c 修复报错异常 2024-09-09 10:44:30 +08:00
khalil
a71144b735 公会-公会-增加操作人
(cherry picked from commit 8aeb9caa0dcc5bf2fd250af28c2f025bf210e344)
2024-09-06 20:39:47 +08:00
khalil
ebf22c8012 公会-成员-增加操作人 2024-09-06 20:09:09 +08:00
dragon
69dc2de281 新增ss工会后台,靓号暂存 2024-09-06 16:23:25 +08:00
khalil
520e4e4c58 公会-展示公会id
(cherry picked from commit 81f7ccc80fe709fa7d7c3c55510145e3e0eaa53a)
2024-09-05 20:00:49 +08:00
khalil
faa779555c 后台-官方赠送金币-校验
(cherry picked from commit af8bc4185ec3d6279d6f5f2096fa3dd2e0174b59)
2024-09-05 18:10:20 +08:00
khalil
a62f2a5eca 后台-官方赠送金币-调整金币与美元比例 2024-09-04 22:30:54 +08:00
dragon
65cf443cb4 活动奖品配置新增类型 2024-09-03 17:24:41 +08:00
dragon
9f2b89d0be 处理时间格式 2024-08-30 18:50:20 +08:00
dragon
b362a25028 修改传参格式 2024-08-30 18:24:03 +08:00
dragon
3c909bdb97 新增添加失败toast 2024-08-30 15:10:21 +08:00
dragon
d79917ecca 判空处理 2024-08-27 13:59:41 +08:00
dragon
b5de5e5125 修复bug 2024-08-26 18:59:38 +08:00
dragon
8cf9dfa2bc 新增新公会 2024-08-26 15:01:17 +08:00
dragon
fa41f55a23 完善工会信息 2024-08-06 16:39:48 +08:00
dragon
c6487e78bb 新增礼物管理礼物类型 2024-08-06 11:26:57 +08:00
khalil
de76dc8f56 用户钻石清除-批量传参 2024-08-05 20:44:23 +08:00
dragon
1e67efafe7 新增礼物面板管理 2024-08-05 15:29:14 +08:00
dragon
f31dcae058 礼物面板管理暂存 2024-08-02 11:00:41 +08:00
dragon
aa74f2ed36 新增代理工资 2024-08-01 19:02:35 +08:00
dragon
e4cbd9cc35 新增会长id以及导出-家族 2024-08-01 17:42:58 +08:00
dragon
775b8abc93 修复bug-公会 2024-07-31 10:23:34 +08:00
dragon
e1fb48d900 完善工会信息 2024-07-31 10:23:33 +08:00
khalil
93aded746e 充值h5-优化编辑
(cherry picked from commit 9a45da5db2ef34daba843c8e07670a238be237f1)
2024-07-25 21:58:17 +08:00
khalil
af1d94c1f2 游戏陪玩用户-保存-兼容游戏未配置 2024-07-19 12:14:51 +08:00
khalil
89c27b28e7 游戏陪玩用户-编辑-兼容游戏未配置 2024-07-19 11:56:57 +08:00
dragon
f34a7b9430 删除v-if判断条件 2024-07-18 16:56:11 +08:00
dragon
fbd4fdcbd1 勋章请求排序 2024-07-18 16:43:13 +08:00
dragon
7ea73622cd 完成勋章赠送 2024-07-18 14:32:57 +08:00
dragon
6e66ca4864 新增赠送VIP&新增工会信息-导出 2024-07-16 19:34:48 +08:00
khalil
12761b956c 后台-登录-恢复验证码 2024-07-15 18:49:39 +08:00
khalil
76f9bcddab 装扮商城-分页 2024-07-15 18:40:55 +08:00
khalil
3e490e2631 后台-登录-取消验证码
(cherry picked from commit ad73c6c3de1a3e6309c757f0511ce58414f01824)
2024-07-15 15:50:56 +08:00
khalil
00b2bf5917 家族-家族信息=增加会长分区信息 2024-07-12 23:43:17 +08:00
dragon
5b41dbabed 恢复工会信息代码 2024-07-12 20:50:54 +08:00
dragon
b53103c162 新增陪玩点单-游戏信息 2024-07-12 14:37:23 +08:00
khalil
4fcc220759 家族-后台-补充操作列 2024-07-12 11:11:21 +08:00
khalil
386966a84e 邀请排名-查询条件-日期格式 2024-07-12 10:47:55 +08:00
khalil
e2c6898f16 邀请排名-排序类型-默认值
(cherry picked from commit 020ac0a3adcf4e6cfba8832b5f3b60b8682ce1d5)
2024-07-11 22:34:38 +08:00
khalil
ef83e6d239 家族-后台-增加分区描述 2024-07-11 18:35:38 +08:00
khalil
942cd1e479 游戏陪玩-后台-用户陪玩-编辑回显 2024-07-11 18:33:08 +08:00
liaozetao
939940a217 新增游戏点单 2024-07-09 14:12:08 +08:00
dragon
de2c0fe8ea 移除反馈导出按钮 2024-07-08 19:01:21 +08:00
dragon
ab3b8c2871 新增反馈 2024-07-08 15:13:58 +08:00
dragon
3a39476782 删除中奖记录欧气1+1-幸运享 2024-07-08 14:15:47 +08:00
dragon
bda30dd647 进入子页面重新加载数据 2024-07-05 19:46:19 +08:00
dragon
e87f8e4c82 修复选择礼物异常问题-幸运享 2024-07-05 19:36:35 +08:00
liaozetao
34dbcc2f2b 修改福袋礼物列表接口 2024-07-05 18:25:45 +08:00
dragon
33af99f086 修复气泡不显示问题 2024-07-05 17:32:50 +08:00
dragon
4096f9be43 修改福袋接口请求 2024-07-05 17:32:46 +08:00
dragon
2210a40f67 优化代码 2024-07-05 17:32:23 +08:00
liaozetao
62155cbc96 修改获取线性福袋获取逻辑 2024-07-05 16:44:42 +08:00
dragon
7c0438b070 修复bug-幸运哼 2024-07-04 22:15:50 +08:00
dragon
40884b5b21 新增幸运福袋配置后台 2024-07-04 22:15:50 +08:00
dragon
966cc40b3c 新增工会信息查询外用 2024-07-04 22:13:36 +08:00
khalil
6075a3b7ef 后台-充值明细-分区
(cherry picked from commit ce063dc77e0f5be34a03939f9474062f448b0230)
2024-07-03 15:43:46 +08:00
liaozetao
5c54053377 新增小游戏统计导出 2024-07-03 14:22:19 +08:00
khalil
abcffa1cc3 后台-登录记录-增加ip地区 2024-07-03 11:04:34 +08:00
liaozetao
1860ce0e48 新增头饰类型上传 2024-07-03 10:59:38 +08:00
khalil
a9b5f44e88 首页-后台-最近-url 2024-06-24 20:19:52 +08:00
khalil
0645211afc 首页-后台-最近
(cherry picked from commit 8064566ab0e895e509802501dc69305a1b7b179f)
2024-06-24 20:19:44 +08:00
dragon
8b69be0d27 优化奖品设置下拉选项 2024-06-24 11:09:19 +08:00
liaozetao
24b59255c6 新增房间类型 2024-06-21 11:15:59 +08:00
dragon
79421740f9 新增工会阿拉伯公会信息-推荐人字段 2024-06-20 14:37:53 +08:00
liaozetao
6e3e4951aa 修改查询条件问题 2024-06-19 14:34:23 +08:00
liaozetao
7c06e79a8f 新增用户明细增加字段 2024-06-19 11:51:59 +08:00
liaozetao
dc041fd84f 修复保存逻辑 2024-06-17 17:18:57 +08:00
liaozetao
1eaceed61b 补充呢 2024-06-17 14:40:02 +08:00
liaozetao
017bf0c641 修复固定文案展示 2024-06-17 14:01:29 +08:00
liaozetao
8f9a22ffd1 新增铭牌固定文案多语言 2024-06-17 11:24:14 +08:00
khalil
aba3833f5b 分区充值统计-导出-增加分区id 2024-06-17 10:26:25 +08:00
liaozetao
daa04b9269 新增头条内容 2024-06-12 12:25:04 +08:00
dragon
4e9dbb6622 新增违规类型配置 2024-06-11 15:31:35 +08:00
dragon
57c96c8aaf 暂存阿拉伯公会新页面 以及新字段增加 2024-06-07 14:17:35 +08:00
dragon
28e104e649 修改游戏管理bug 2024-06-06 15:14:19 +08:00
dragon
9c996955f2 修复列表显示异常 2024-06-06 15:14:19 +08:00
dragon
8823ec2ec3 修改传参字段 2024-06-06 15:14:18 +08:00
dragon
2cc695c978 新增游戏管理后台 2024-06-06 15:14:18 +08:00
dragon
d591cfc013 游戏管理暂存 2024-06-06 15:14:17 +08:00
liaozetao
eec3bb54cb 修改字段名称 2024-06-06 14:12:15 +08:00
liaozetao
45ca219d0f 补充 2024-06-06 11:33:53 +08:00
liaozetao
d63f15638b 新增多语言管理 2024-06-06 11:28:57 +08:00
liaozetao
7b13dadd12 修改平台收入计算 2024-06-06 10:24:38 +08:00
liaozetao
6f5ad0ee6a 修改编码问题 2024-06-05 16:02:37 +08:00
liaozetao
d908b73193 修改选项长度 2024-06-05 15:55:17 +08:00
liaozetao
5ac087e5aa 修改时间格式化 2024-06-05 15:46:05 +08:00
liaozetao
1e1119eb35 补充 2024-06-05 15:39:02 +08:00
liaozetao
7c62ef6549 修改游戏数据统计 2024-06-05 15:22:52 +08:00
liaozetao
8a3806855b 修改展示字眼 2024-06-04 18:06:54 +08:00
dragon
2fce98c88e 补齐代码 2024-06-03 19:09:46 +08:00
dragon
5680f42d06 新增公会功能 2024-06-03 19:06:21 +08:00
liaozetao
5dc4eb5198 修改游戏模式 2024-05-31 17:43:05 +08:00
liaozetao
95382d1c87 buchon 2024-05-31 17:35:56 +08:00
dragon
d42e95e2b3 新增解散阿拉伯公会按钮 2024-05-29 18:46:28 +08:00
khalil
d9518f4c33 分区充值统计-拆分分区 2024-05-28 16:13:46 +08:00
khalil
6085f5fce6 分区充值统计-美元 2024-05-27 22:10:20 +08:00
khalil
eac6f613f7 分区充值统计
(cherry picked from commit 5f2cb18b6a89696b8285173ed4862629e1b0f73c)
2024-05-27 21:33:27 +08:00
dragon
80ddf7b5a5 添加映射类型 2024-05-24 17:43:25 +08:00
dragon
69ec2ebef9 修改工会时间选择器 2024-05-24 17:43:25 +08:00
dragon
3062812f1f 新增公会阿拉伯地区后台 2024-05-24 17:43:25 +08:00
liaozetao
616758549b 补充 2024-05-24 17:40:47 +08:00
liaozetao
8fdb2b6c0d 修改自定义文案逻辑 2024-05-24 17:31:43 +08:00
liaozetao
afe984fe84 修改铭牌选择问题 2024-05-23 16:41:45 +08:00
liaozetao
49dc775fff 新增LUDO游戏统计 2024-05-21 14:31:19 +08:00
liaozetao
4077895f55 修改长度 2024-05-20 16:18:08 +08:00
liaozetao
a9c7ee9a47 修改资源位多分区 2024-05-20 16:06:30 +08:00
liaozetao
e402157726 修改房间类型提示语 2024-05-17 14:24:30 +08:00
liaozetao
8e01552671 切换房间类型 2024-05-17 10:56:54 +08:00
liaozetao
c27c5490b2 去除新秀房 2024-05-17 10:31:26 +08:00
liaozetao
f4f374295d 修改时间 2024-05-16 16:09:04 +08:00
liaozetao
a514eacf81 新增时间筛选条件 2024-05-16 15:55:35 +08:00
liaozetao
4f7271a87b 修改为精确日期 2024-05-15 14:51:04 +08:00
liaozetao
f99c063b52 日期标题 2024-05-15 14:08:34 +08:00
liaozetao
d9aabae260 修复详情问题 2024-05-15 14:06:41 +08:00
liaozetao
04dcb3cfa5 补充 2024-05-15 11:36:03 +08:00
liaozetao
d461f9c298 新增百顺小游戏统计 2024-05-15 11:16:42 +08:00
liaozetao
3784b748f7 修复时间查询问题 2024-05-13 14:27:35 +08:00
liaozetao
85a6ea9106 修复查询条件问题 2024-05-09 18:10:22 +08:00
liaozetao
e4f9cfb3ec 修復時間篩選框問題 2024-05-09 15:11:09 +08:00
liaozetao
097c0b0d08 修改时间查询条件 2024-05-09 11:52:04 +08:00
liaozetao
c175d662e8 修改日期查询组建 2024-05-08 16:39:59 +08:00
liaozetao
2d28fbcb8f 修复时间问题 2024-05-08 16:31:38 +08:00
liaozetao
df9e96de9a 新增公聊大厅查询列表 2024-05-08 16:31:29 +08:00
liaozetao
fafbd3e75c 恢复代码 2024-05-07 12:03:55 +08:00
liaozetao
a86e731633 修改寻爱之旅编辑 2024-05-07 11:54:53 +08:00
liaozetao
c584f0154f 恢复代码 2024-04-30 18:01:49 +08:00
liaozetao
e694f3f9a7 补充扩展字段 2024-04-30 17:55:49 +08:00
liaozetao
4b417d446f 修复铭牌获取问题 2024-04-30 15:16:08 +08:00
liaozetao
697af0c109 修改默认值 2024-04-29 15:13:02 +08:00
liaozetao
a3d6c0c82c 修改字眼 2024-04-28 15:46:40 +08:00
liaozetao
2ac3b75d30 替换金币字眼为钻石 2024-04-28 10:26:23 +08:00
liaozetao
6819127c40 修改礼物管理默认值 2024-04-26 18:25:20 +08:00
liaozetao
5c67b35aaa 添加地区 2024-04-26 14:12:48 +08:00
liaozetao
f5753982d0 修复许愿之星地区查询 2024-04-25 15:22:17 +08:00
liaozetao
22285b39c2 修復查詢條件 2024-04-24 21:40:39 +08:00
liaozetao
da3e97026c 补充 2024-04-24 18:45:42 +08:00
liaozetao
5e4f13c8d9 修复许愿之星礼物过滤问题 2024-04-24 17:57:04 +08:00
liaozetao
8692437f87 修复寻爱之旅奖品配置问题 2024-04-24 11:51:01 +08:00
liaozetao
5efd586524 修改赠送金币字眼 2024-04-24 10:31:59 +08:00
liaozetao
747ef1c4f1 修复mp4问题 2024-04-23 16:57:37 +08:00
liaozetao
39040b282e 保存添加延时等待 2024-04-23 14:44:12 +08:00
liaozetao
2c988ee98c 修复腾讯云上传 2024-04-22 18:12:24 +08:00
liaozetao
0ec763d122 补充 2024-04-22 18:10:15 +08:00
liaozetao
851c1a7d55 生成帳號區分地區 2024-04-22 17:44:59 +08:00
liaozetao
e89f73e9c8 修改管理後台名稱2 2024-04-22 15:51:28 +08:00
liaozetao
0c28832c48 修改管理後台名稱 2024-04-22 15:51:03 +08:00
liaozetao
fdcda4a422 修改印语为英语 2024-04-22 15:23:02 +08:00
liaozetao
a62437cb4f 修复礼物名称返回问题 2024-04-22 11:42:21 +08:00
liaozetao
864f0d6af8 修复福袋新增礼物报错 2024-04-22 11:24:02 +08:00
liaozetao
712b14f105 补充 2024-04-22 11:12:25 +08:00
liaozetao
c0572cbb2c 添加日志 2024-04-22 11:07:25 +08:00
liaozetao
0fe9857c48 去除.action? 2024-04-22 10:49:46 +08:00
liaozetao
5f8660d4f4 去除.action后缀 2024-04-22 10:45:13 +08:00
liaozetao
9674f166b7 修复超级幸运礼物配置 2024-04-19 18:13:01 +08:00
liaozetao
b52bf78e63 修改管理后台名称 2024-04-19 17:45:05 +08:00
liaozetao
6859f0377e 修改气泡和资料卡展示名称 2024-04-19 14:18:17 +08:00
liaozetao
e42a1e7807 修复周星榜 2024-04-19 11:55:03 +08:00
liaozetao
c0e6eb60a2 修改礼物名称返回问题 2024-04-19 11:25:35 +08:00
liaozetao
69dc83b72b 修复福袋礼物查询 2024-04-18 18:02:33 +08:00
liaozetao
b6300b5e58 修改福袋名称配置 2024-04-18 17:52:49 +08:00
liaozetao
3efb68c477 修复话题列表报错 2024-04-18 17:37:25 +08:00
liaozetao
567c682a2b 修复话题查询条件 2024-04-18 17:31:20 +08:00
liaozetao
f91c663783 动态数据增加地区查询 2024-04-18 17:24:02 +08:00
liaozetao
62d45cb0fe 修复福袋购买记录的地区问题 2024-04-18 17:06:46 +08:00
liaozetao
54f2c29ada 补充 2024-04-18 16:59:19 +08:00
liaozetao
d6e023c040 修改日期查询 2024-04-18 16:55:44 +08:00
liaozetao
c5f6d75989 修改福袋购买记录查询 2024-04-18 16:53:19 +08:00
liaozetao
8bbbaa01f1 修复福袋数据统计查询问题 2024-04-18 16:41:53 +08:00
liaozetao
0aa0e1560a 修复长描述回显问题2 2024-04-18 15:49:24 +08:00
liaozetao
29e3edd925 修复长描述回显问题 2024-04-18 15:45:54 +08:00
liaozetao
d8975ca0e0 修复贵族特权保存问题 2024-04-18 15:34:56 +08:00
liaozetao
1150f56c72 修复字眼错误 2024-04-18 15:32:23 +08:00
liaozetao
4e7d8bba3e 修改VIP特权展示多语言 2024-04-18 11:25:12 +08:00
liaozetao
2276c55e2b 修复分区标识回显问题 2024-04-18 10:01:30 +08:00
liaozetao
d1670fc22c 修复话题多语言问题 2024-04-16 18:19:53 +08:00
liaozetao
5e48d3475e 修复许愿之星查询问题 2024-04-16 17:17:51 +08:00
liaozetao
6865cbb1ee 修复头饰查询按钮 2024-04-16 16:52:52 +08:00
liaozetao
998df42200 修复地区筛选框问题 2024-04-16 16:28:54 +08:00
liaozetao
53574cb63e 修复座驾保存问题 2024-04-16 16:20:36 +08:00
liaozetao
2b3cd29191 修复聊天气泡报错 2024-04-16 15:51:18 +08:00
liaozetao
c3f5a03df5 修改地区判断 2024-04-16 15:38:57 +08:00
liaozetao
7aa67988eb 补充 2024-04-16 15:21:40 +08:00
liaozetao
e399826bb9 修改banner管理样式 2024-04-16 14:59:27 +08:00
liaozetao
3209e05fc5 修复活动banner样式 2024-04-16 14:52:08 +08:00
liaozetao
d70621c8a0 修复推荐-活动banner管理 2024-04-16 14:43:37 +08:00
liaozetao
29e963f98d 修复tab首页查询 2024-04-16 14:20:41 +08:00
liaozetao
b94931d483 修复 2024-04-16 12:08:30 +08:00
liaozetao
9bb50c750a 修复房间列表查询条件排序问题 2024-04-16 11:59:19 +08:00
liaozetao
b41eaa4cda 修复礼物报错 2024-04-16 11:03:00 +08:00
liaozetao
a67c0ac06f 修复地区展示问题 2024-04-16 10:51:43 +08:00
liaozetao
53bd725166 修复房间标签地区不展示问题 2024-04-16 10:49:32 +08:00
liaozetao
cd2bf234c3 修复房间标签报错 2024-04-16 10:44:23 +08:00
liaozetao
da56379b68 修复礼物地区 2024-04-15 20:23:42 +08:00
liaozetao
63cd34ba0b 修复礼物保存问题 2024-04-15 20:17:02 +08:00
liaozetao
6749feb198 修复bug 2024-04-15 18:35:29 +08:00
liaozetao
9b881b205a 修改字符限制 2024-04-15 16:29:16 +08:00
liaozetao
4c4f17ae60 房间标签新增地区查询条件 2024-04-15 11:27:22 +08:00
liaozetao
cc80c36d96 修复房间管理 2024-04-15 11:22:48 +08:00
liaozetao
002022a0a6 修复tab首页管理 2024-04-15 11:20:45 +08:00
liaozetao
ed5aa8f19b 添加地区查询条件 2024-04-15 11:15:51 +08:00
liaozetao
24df62a873 banner管理添加地区字段 2024-04-15 11:15:13 +08:00
liaozetao
85e6e7e310 修复资源位请求问题 2024-04-15 11:10:55 +08:00
liaozetao
fe78dc545a 修复福袋数据统计无法展示问题 2024-04-15 11:08:29 +08:00
liaozetao
4b057265ce 提交报错 2024-04-15 11:02:37 +08:00
liaozetao
03ea2e5224 修复checkbox回显 2024-04-12 18:26:38 +08:00
liaozetao
617f630d9f 修复展示问题 2024-04-12 18:18:45 +08:00
liaozetao
7df38eca31 修复列表报错 2024-04-12 18:10:54 +08:00
liaozetao
4ffe60e391 修复报错 2024-04-12 09:49:11 +08:00
liaozetao
863e45d5d2 新增多分区选择分区逻辑 2024-04-12 09:44:49 +08:00
liaozetao
3641f36bb4 新增分区逻辑 2024-04-12 09:44:49 +08:00
liaozetao
bbd1b33996 修复vip校验 2024-04-02 14:51:33 +08:00
liaozetao
788f340db5 修复数值删除问题 2024-04-01 17:07:09 +08:00
liaozetao
0247de5ccc 修复保存问题 2024-04-01 16:55:22 +08:00
liaozetao
4e9c0d8649 修改保存校验问题 2024-04-01 16:46:46 +08:00
liaozetao
1f26d0ed64 修改传参 2024-04-01 14:19:31 +08:00
liaozetao
1c88a63fc9 修复参数问题 2024-04-01 14:16:26 +08:00
liaozetao
b1402a869e 返利数量不能为空 2024-04-01 11:46:30 +08:00
liaozetao
082a8c12df 修改窗口滚动条 2024-04-01 11:39:03 +08:00
liaozetao
77201f9f18 修改返利配置判断逻辑 2024-04-01 10:50:29 +08:00
liaozetao
8a895ec221 修复BUG 2024-04-01 10:40:06 +08:00
liaozetao
6445a5c4de 编辑回显 2024-03-29 16:12:30 +08:00
liaozetao
6163b385ad 修改窗口关闭问题 2024-03-29 16:10:33 +08:00
liaozetao
6096ce090f 修复html追加 2024-03-29 16:01:26 +08:00
liaozetao
97438b0045 补充 2024-03-29 15:57:02 +08:00
liaozetao
65e5a5b15a 修改删除逻辑 2024-03-29 15:52:18 +08:00
liaozetao
692294dcb8 修改vip贵族信息 2024-03-29 15:43:23 +08:00
Dragon
7d8f0a714c 修复传参 2024-03-25 18:23:23 +08:00
Dragon
14d17603d8 修改明细导出传参方式 2024-03-25 17:32:05 +08:00
liaozetao
7f16a7c4b3 修改最大值判断 2024-03-22 18:32:48 +08:00
liaozetao
d6df754f70 修复编辑取消问题 2024-03-22 14:32:05 +08:00
Dragon
4874240cdd 修复表单显示问题 2024-03-22 10:19:52 +08:00
Dragon
fde34bb405 修复保存接口先后顺序 2024-03-22 10:07:13 +08:00
Dragon
b2a9c4e376 修复配置查询问题 2024-03-21 18:58:13 +08:00
Dragon
08288a617c 修复bug 2024-03-21 16:55:42 +08:00
liaozetao
23ccbbf7b1 修改刷新表格功能 2024-03-21 15:47:08 +08:00
liaozetao
5cd26d2ff1 添加礼物ID 2024-03-21 15:43:23 +08:00
liaozetao
3580ed7790 修复删除问题 2024-03-21 15:11:24 +08:00
liaozetao
2959a7ec7c 取消新增逻辑 2024-03-21 15:06:26 +08:00
liaozetao
0880cedd77 新增超级幸运礼物类型 2024-03-21 14:27:37 +08:00
liaozetao
b0fda915af 成功才更新页面 2024-03-21 14:14:25 +08:00
liaozetao
1eae9577b6 修改保存后刷新表哥 2024-03-21 12:06:29 +08:00
liaozetao
8896135f72 新增不限制判断 2024-03-21 11:55:39 +08:00
liaozetao
2f6c2a03a4 调整排序 2024-03-21 11:35:04 +08:00
liaozetao
8ca3bcd9fc 修改判断2 2024-03-21 11:28:24 +08:00
liaozetao
5e421717e7 修改判断逻辑 2024-03-21 11:24:44 +08:00
liaozetao
543719ecd5 修改排序规则 2024-03-21 11:20:08 +08:00
liaozetao
dd8b755aec 修改区间添加限制 2024-03-21 11:09:05 +08:00
Dragon
b47a506901 修复每日排名 2024-03-19 20:06:13 +08:00
Dragon
cb7f4c519a 修复邀请详情 2024-03-19 19:01:47 +08:00
Dragon
1561657d37 修复邀请设置白名单bug 2024-03-19 19:01:46 +08:00
Dragon
3c8ef5d28e 修复分页问题以及导出问题 2024-03-19 19:01:46 +08:00
Dragon
84abbe28d2 修复bug 2024-03-19 19:01:45 +08:00
Dragon
cd1798c259 新增邀请裂变管理页面 2024-03-19 19:01:45 +08:00
Dragon
4fee145865 合并代码 2024-03-19 18:59:23 +08:00
Dragon
24ad849ffb 暂存 2024-03-19 18:58:11 +08:00
liaozetao
e1a01c39ef 还原 2024-03-18 18:11:33 +08:00
liaozetao
6ca3a71324 处理日期查询 2024-03-18 18:05:38 +08:00
liaozetao
c1be5c891d 修复多个选项框问题 2024-03-07 11:39:00 +08:00
liaozetao
3093ed5ed3 新增是否屏蔽86手机号码 2024-03-07 11:34:47 +08:00
liaozetao
65d9dfb5f3 修复下拉框选项问题 2024-03-05 10:29:14 +08:00
liaozetao
7971766283 修改时间展示 2024-02-28 11:59:55 +08:00
liaozetao
56ba1f5979 恢复时间格式问题 2024-02-27 21:47:13 +08:00
liaozetao
ce7ed33f03 时间样式 2024-02-27 21:39:15 +08:00
liaozetao
d20ba9e3a3 轮次持续时间展示问题 2024-02-27 21:39:15 +08:00
liaozetao
8b744fbc0a 修复白名单展示 2024-02-27 21:39:14 +08:00
liaozetao
78a0896e99 修复白名单ID 2024-02-27 21:39:14 +08:00
Dragon
c3e24aae51 修复查询异常问题 2024-02-27 21:39:13 +08:00
liaozetao
3aa9d98aa2 修复设置白名单 2024-02-27 21:39:13 +08:00
liaozetao
5d13b68c5a 修复查询参数 2024-02-27 21:39:13 +08:00
liaozetao
b900c5fe83 修复导出问题 2024-02-27 21:39:12 +08:00
liaozetao
cfeceed259 修复展示问题 2024-02-27 21:39:12 +08:00
liaozetao
a9fedeccf2 处理获奖展示 2024-02-27 21:39:12 +08:00
liaozetao
624afcc90a 修复设置白名单后重新渲染 2024-02-27 21:39:11 +08:00
liaozetao
1a3f6137cb 修复白名单数量 2024-02-27 21:39:11 +08:00
liaozetao
05721d3916 添加白名单数量判断 2024-02-27 21:39:10 +08:00
liaozetao
3a52b34239 修改按钮颜色 2024-02-27 21:39:10 +08:00
liaozetao
782989b3c8 修复设置完后刷新问题 2024-02-27 21:39:09 +08:00
liaozetao
e5a2bd8433 修复设置白名单 2024-02-27 21:39:09 +08:00
liaozetao
04d23c58de 返回轮次ID 2024-02-27 21:39:08 +08:00
liaozetao
72649778a5 修复查询问题 2024-02-27 21:39:08 +08:00
Dragon
e850d11175 调用初始化接口 2024-02-27 21:39:07 +08:00
Dragon
f78e1c10b7 修复bug,新增ts,去除黄色警告 2024-02-27 21:39:06 +08:00
Dragon
4ed3d88e1e 完善许愿管理剩余接口 2024-02-27 21:39:06 +08:00
liaozetao
ccc03895a7 新增许愿轮次记录 2024-02-27 21:39:05 +08:00
Dragon
b38614c45e 新增许愿之星 2024-02-27 21:39:04 +08:00
liaozetao
74b32be861 去除id默認值0 2024-02-23 17:27:34 +08:00
liaozetao
e5f78df6e5 修改時間各式 2024-02-23 17:22:34 +08:00
liaozetao
3c5ea1a5e0 展示置顶时间 2024-02-23 16:47:28 +08:00
liaozetao
8019555459 修复roomUid问题 2024-02-23 16:17:19 +08:00
liaozetao
a5996c3db8 去除tab不能删除逻辑 2024-02-23 15:42:25 +08:00
liaozetao
681d7f7a5c 修复数据回显问题 2024-02-23 15:37:52 +08:00
liaozetao
52f4d6277c 添加时间组件 2024-02-23 15:03:11 +08:00
liaozetao
bc4c36bdc8 修改校验逻辑 2024-02-23 14:29:51 +08:00
liaozetao
5fa717465e 修改判斷邏輯 2024-02-21 17:59:02 +08:00
liaozetao
889bb2363e 修改toast提示 2024-02-21 17:59:01 +08:00
liaozetao
1111d4782e 标题判断逻辑 2024-02-21 17:59:01 +08:00
liaozetao
96ad03efb9 修复展示问题 2024-02-21 17:59:01 +08:00
liaozetao
49cdeb7407 修改版本判断逻辑 2024-02-21 17:59:01 +08:00
liaozetao
80dca35881 新增app原生固定编码 2024-02-20 14:29:16 +08:00
liaozetao
c7d6455c16 修复台湾货币保存 2024-02-20 10:18:43 +08:00
liaozetao
b2cd8d5b75 新增台湾地区银行 2024-02-19 16:45:42 +08:00
liaozetao
f6740bf1ca 设置时间必填项 2024-02-18 16:11:55 +08:00
liaozetao
ec30e516a0 修改开屏设置时间问题 2024-02-18 15:50:08 +08:00
liaozetao
a962dbc669 线性福袋 2024-02-05 20:46:57 +08:00
liaozetao
dab97ce8ae 新增mycard字段 2024-01-31 12:42:07 +08:00
liaozetao
3fbb4e287e 修改窗口长度滚动 2024-01-24 18:39:32 +08:00
liaozetao
1096194250 修改loading尺寸 2024-01-24 18:39:32 +08:00
liaozetao
6ad1b136a8 修改高度 2024-01-24 18:39:32 +08:00
liaozetao
f5a30e7a04 修改大小 2024-01-24 18:39:32 +08:00
liaozetao
62e8a2239f 补充 2024-01-24 18:39:32 +08:00
liaozetao
0c17ceffce 新增loading图 2024-01-24 18:39:32 +08:00
liaozetao
1cb752be00 修改时间长度 2024-01-24 18:39:32 +08:00
liaozetao
62211d9cf4 去除添加功能 2024-01-24 18:39:06 +08:00
liaozetao
bf9de20556 修复表单提交问题 2024-01-24 18:38:05 +08:00
liaozetao
7185f8f77a 修復鏈接回線問題 2024-01-24 18:32:58 +08:00
liaozetao
7d5fcd1494 修改鏈接展示邏輯 2024-01-24 18:32:58 +08:00
liaozetao
d462f6bbde 修改上傳按鈕邏輯 2024-01-24 18:32:57 +08:00
liaozetao
b470859daa 修改刪除按鈕邏輯 2024-01-24 18:32:57 +08:00
liaozetao
e3c82bcf92 打印日誌 2024-01-24 18:32:57 +08:00
liaozetao
ef022da215 清空鏈接處理 2024-01-24 18:32:57 +08:00
liaozetao
82dc883119 修復編輯回線 2024-01-24 18:32:57 +08:00
liaozetao
bf1ae344e3 修復查詢問題 2024-01-24 18:32:57 +08:00
liaozetao
eb10bdb44d 修改上傳組件按鈕 2024-01-24 18:32:57 +08:00
liaozetao
b52de9a90d 刪除多餘代碼 2024-01-24 18:32:57 +08:00
liaozetao
2a4929b476 修改上傳組件 2024-01-24 18:32:57 +08:00
liaozetao
9433dd254f 修復view name問題 2024-01-24 18:32:57 +08:00
liaozetao
c206b17acb 修复报错 2024-01-24 18:32:57 +08:00
liaozetao
8d21755335 新增官网配置页面 2024-01-24 18:32:57 +08:00
liaozetao
d8593c736d 修改名称 2024-01-22 15:57:10 +08:00
liaozetao
9258f46bdb 处理电话账单 2024-01-22 14:08:52 +08:00
liaozetao
12c3ad1e6e 修复编辑问题 2024-01-22 11:25:53 +08:00
liaozetao
451f778732 修复上传组件问题 2024-01-20 19:00:04 +08:00
liaozetao
68d7433a05 修复表单提交问题 2024-01-20 17:47:30 +08:00
liaozetao
dcc8e081ee 修复开屏广告配置问题 2024-01-20 15:37:02 +08:00
liaozetao
fc705cbc01 新增公会名称字段 2024-01-15 15:24:00 +08:00
liaozetao
7072376da6 新增平台号搜索 2024-01-15 14:23:52 +08:00
liaozetao
368550d4b8 修改时间格式化 2024-01-12 15:13:52 +08:00
liaozetao
60f349060d 新增修改事件 2024-01-12 12:03:13 +08:00
liaozetao
a5b21a28e0 修复事件失效问题 2024-01-11 19:04:31 +08:00
liaozetao
0b3aa136f9 补充5 2024-01-11 19:00:19 +08:00
liaozetao
c46de130c6 修复奖品设置 2024-01-11 18:55:56 +08:00
liaozetao
c184753083 补充4 2024-01-11 18:48:23 +08:00
liaozetao
6a55b37490 补充3 2024-01-11 18:21:14 +08:00
liaozetao
4b4185f71d 修改事件加载问题 2024-01-11 18:11:03 +08:00
liaozetao
7371a1654a 将事件迁移 2024-01-11 17:53:53 +08:00
liaozetao
e3bb745a92 补充 2024-01-11 17:33:31 +08:00
liaozetao
eb2920b62b 修复报错 2024-01-11 17:28:33 +08:00
liaozetao
270ef2e0e1 修复字段报错 2024-01-11 17:14:45 +08:00
Dragon
b7cc65001f 访问白名单新增操作人字段 2024-01-10 15:34:44 +08:00
liaozetao
dbf84bf7c8 修复时间问题 2024-01-10 15:00:58 +08:00
khalil
9d98c1afd8 寻爱之旅-后台-去掉废弃接口 2024-01-09 18:02:36 +08:00
liaozetao
f6845854a1 修复vgg问题 2024-01-09 15:56:44 +08:00
liaozetao
dbb193c7e9 补充2 2024-01-09 15:51:32 +08:00
liaozetao
71e44300a4 补充 2024-01-09 15:48:42 +08:00
liaozetao
39f1ad026c 修改上传代码 2024-01-09 15:48:27 +08:00
liaozetao
fdc01127e2 修补选择组件 2024-01-09 12:11:42 +08:00
liaozetao
faf0250aae 补充 2024-01-08 17:30:11 +08:00
liaozetao
1526875c7f 修复工具类问题 2024-01-08 17:08:31 +08:00
liaozetao
56df854368 优化私聊查询 2024-01-04 19:02:10 +08:00
liaozetao
7f15427638 超过高度滚动 2024-01-02 18:32:18 +08:00
liaozetao
0586ef3e55 修改mp4 2024-01-02 18:29:34 +08:00
liaozetao
d65e4eb701 修改视图展示 2024-01-02 18:23:17 +08:00
liaozetao
c050d4a338 添加遮罩层 2024-01-02 18:11:11 +08:00
liaozetao
11f0ca3dbd 添加遮罩层 2024-01-02 16:03:17 +08:00
liaozetao
f40a401b2b 超出换行 2023-12-28 18:49:43 +08:00
liaozetao
25ed55eac6 补充2 2023-12-28 18:42:21 +08:00
liaozetao
789d71d7c2 补充 2023-12-28 18:31:57 +08:00
liaozetao
51fa966457 修复超管展示问题 2023-12-28 18:19:45 +08:00
liaozetao
b2334b4e5f 新用户送礼流水 2023-12-28 11:47:17 +08:00
liaozetao
bf909cfa0f 渠道展示颜色 2023-12-27 17:40:38 +08:00
liaozetao
1f7dc304fd 修复置顶问题 2023-12-27 17:31:53 +08:00
liaozetao
b5d8eeebfe 新增合作方字段 2023-12-26 18:55:31 +08:00
liaozetao
2940c9dc0a 去除提示 2023-12-21 20:13:53 +08:00
Dragon
e2c34e5863 修复房间流水筛选bug 2023-12-20 14:50:49 +08:00
liaozetao
ac415d1bcb 修复查询逻辑 2023-12-18 16:52:32 +08:00
liaozetao
61f9575255 窗口未关闭问题 2023-12-18 16:44:04 +08:00
liaozetao
ef4e04286b 增加人气礼物类型 2023-12-15 10:21:16 +08:00
liaozetao
32ad54e4e3 补充 2023-12-13 17:45:10 +08:00
liaozetao
6ff8e23e59 修改礼物类型组件 2023-12-13 17:23:31 +08:00
liaozetao
c60c28efa2 调整样式 2023-12-11 12:37:00 +08:00
liaozetao
86e62d8d40 添加忽视版本和渠道字段 2023-12-11 10:47:26 +08:00
liaozetao
b25b59615e 修改默认选中 2023-12-11 10:28:00 +08:00
liaozetao
ff6bd4a91f 修改礼物默认类型 2023-12-11 10:14:18 +08:00
liaozetao
d20a59e843 补充 2023-12-08 15:37:19 +08:00
liaozetao
94dbb140fb 修改礼物类型默认值 2023-12-08 15:16:13 +08:00
liaozetao
864687bdab 修改礼物管理默认值 2023-12-08 15:13:04 +08:00
liaozetao
e11bf2a439 修改铭牌配置为动态获取 2023-12-06 15:31:26 +08:00
liaozetao
053be766c9 修复按钮问题 2023-12-05 11:51:10 +08:00
Dragon
3f0839f434 新增地区访问简体中文判断条件 2023-12-04 17:54:43 +08:00
Dragon
a7a1e080f3 新增语言转换 2023-12-04 17:05:30 +08:00
Dragon
5171520e65 修复报错问题,更改渲染格式 2023-12-04 15:01:35 +08:00
Dragon
73bddf774b 新增访问限制字段和弹窗 2023-12-04 14:20:20 +08:00
liaozetao
7d794a0fff 修复礼物默认选中逻辑 2023-11-29 17:21:34 +08:00
liaozetao
16503488c1 修改字段名 2023-11-28 11:17:33 +08:00
liaozetao
ff850ee37a 去除授权码 2023-11-27 16:31:14 +08:00
Dragon
cdfecefa12 修复地点为时间 2023-11-27 16:16:55 +08:00
Dragon
abf81518fe 修复白名单错别字 2023-11-27 16:15:23 +08:00
Dragon
1431dff97b 修改错别字 2023-11-27 16:12:28 +08:00
liaozetao
8d6efb8efb 邀请码管理增加填写类型来源 2023-11-27 15:04:39 +08:00
liaozetao
b3defa71d1 删除奇怪的文件 2023-11-27 14:56:23 +08:00
liaozetao
83a4ed0c9e 修复手机号缺少86 2023-11-23 14:27:50 +08:00
Dragon
1148e4b35d 修复全局上传文件按钮影响 2023-11-23 14:27:50 +08:00
Dragon
3aacfea299 完善分页 2023-11-23 14:27:49 +08:00
Dragon
90a732b4f4 修复假如白名单传参异常问题 2023-11-23 14:27:49 +08:00
Dragon
24f6702101 修复字段名错误问题 2023-11-23 14:27:49 +08:00
Dragon
ddcfd8c7ec 修复列表展示文案,以及字眼错误问题 2023-11-23 14:27:48 +08:00
Dragon
0cf6366dbd 修改post请求方式 2023-11-23 14:27:48 +08:00
Dragon
ac9756cf08 完成白名单以及地区访问限制 2023-11-23 14:27:47 +08:00
Dragon
6d8117050c 白名单功能暂存 2023-11-23 14:27:47 +08:00
liaozetao
9ee10ef721 修改菜单查询逻辑 2023-11-23 10:36:00 +08:00
liaozetao
ef3a28e686 修改单线比刷新逻辑 2023-11-22 17:11:40 +08:00
liaozetao
fc6a53122c 修复查询字段 2023-11-22 15:25:01 +08:00
liaozetao
5179669fb1 修复代码报错 2023-11-21 17:59:09 +08:00
liaozetao
271d3ad2b3 修復編輯回線問題 2023-11-21 16:29:31 +08:00
liaozetao
972816b94b 暫時去除緩存 2023-11-21 16:20:39 +08:00
liaozetao
eea217af60 修复渠道展示问题 2023-11-21 15:59:25 +08:00
liaozetao
376a72fdb2 修复跳转类型 2023-11-21 15:59:25 +08:00
liaozetao
fa47d94a96 修复开屏跳转类型 2023-11-21 15:59:25 +08:00
liaozetao
babe71973b 开屏设置默认开启 2023-11-21 15:59:25 +08:00
liaozetao
bbd7e21197 修复闪屏逻辑 2023-11-21 15:59:25 +08:00
liaozetao
0356944be5 修复上传按钮 2023-11-21 15:59:25 +08:00
liaozetao
c5196494ea 手机授权页面增加字段 2023-11-21 15:59:25 +08:00
liaozetao
80f5f05ea0 上传文件增加遮罩层 2023-11-21 15:59:25 +08:00
liaozetao
a2f10cc41f 修改file文件上传判断 2023-11-21 15:59:25 +08:00
liaozetao
339e3f5ba9 补充 2023-11-21 15:59:25 +08:00
liaozetao
908047e40b 修复展示类型 2023-11-21 15:59:25 +08:00
liaozetao
545a86ed54 判断不允许重复发请求 2023-11-21 15:59:25 +08:00
liaozetao
14c2e701a0 删除日志 2023-11-21 15:59:25 +08:00
liaozetao
211f4f51fa 修复按钮展示问题 2023-11-21 15:59:25 +08:00
liaozetao
c9a6677b91 修复上传问题 2023-11-21 15:59:25 +08:00
liaozetao
c5f4861c78 补充 2023-11-21 15:59:25 +08:00
liaozetao
2ff3cdac81 修改上传逻辑 2023-11-21 15:59:25 +08:00
liaozetao
9bc44106d5 修復時間格式化 2023-11-21 15:59:25 +08:00
liaozetao
ba89520f01 修復圖片上傳 2023-11-21 15:59:25 +08:00
liaozetao
8a2a51b0de 修复下拉框字段 2023-11-21 15:59:25 +08:00
liaozetao
2c95c7fbd3 修复按钮判断 2023-11-21 15:59:25 +08:00
liaozetao
8e654d1680 修复时间格式化问题 2023-11-21 15:59:25 +08:00
liaozetao
d168653061 新增开屏设置 2023-11-21 15:59:25 +08:00
liaozetao
7689181eb8 新增资源位管理 2023-11-21 15:59:25 +08:00
liaozetao
dbe9d47065 去除分析工具 2023-11-20 18:53:30 +08:00
liaozetao
a8232182ba 去除分析库 2023-11-16 14:38:41 +08:00
liaozetao
8065c2faca 去除unmounted 2023-11-14 18:00:42 +08:00
liaozetao
3a13518b10 修复table组件问题 2023-11-14 17:57:02 +08:00
464 changed files with 55233 additions and 14880 deletions

View File

@@ -17,5 +17,6 @@ module.exports = {
'no-unused-vars': 'off',
'no-useless-escape': 'off',
'no-control-regex': 'off',
'no-extra-semi': 'off',
}
}

139
package-lock.json generated
View File

@@ -14,6 +14,7 @@
"bootstrap": "^3.3.5",
"core-js": "^3.8.3",
"element-plus": "^2.3.14",
"file-saver": "^2.0.5",
"font-awesome": "^4.6.3",
"ionicons": "^2.0.1",
"jquery": "^2.2.0",
@@ -21,10 +22,14 @@
"knockout": "^3.5.1",
"less": "^4.2.0",
"less-loader": "^11.1.3",
"moment-timezone": "^0.5.45",
"node-sass": "^9.0.0",
"popper.js": "^1.16.1",
"sass": "^1.67.0",
"sass-loader": "^13.3.2",
"svgaplayerweb": "^2.3.2",
"unplugin-element-plus": "^0.8.0",
"vue-clipboard2": "^0.3.3",
"vue-router": "^4.0.3",
"vuex": "^4.0.0",
"xlsx": "^0.18.5"
@@ -39,10 +44,10 @@
"@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3",
"script-loader": "^0.7.2",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2",
"vue": "^3.2.13",
"webpack-bundle-analyzer": "^4.9.1",
"webpack-cli": "^5.1.4"
}
},
@@ -2194,7 +2199,6 @@
"version": "5.0.5",
"resolved": "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-5.0.5.tgz",
"integrity": "sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==",
"dev": true,
"dependencies": {
"@types/estree": "^1.0.0",
"estree-walker": "^2.0.2",
@@ -4436,9 +4440,23 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001546",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001546.tgz",
"integrity": "sha512-zvtSJwuQFpewSyRrI3AsftF6rM0X80mZkChIt1spBGEvRglCrjTniXvinc8JKRoqTwXAgvqTImaN9igfSMtUBw=="
"version": "1.0.30001651",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001651.tgz",
"integrity": "sha512-9Cf+Xv1jJNe1xPZLGuUXLNkE1BoDkqRqYyFJ9TDYSqhduqA4hu4oR9HluGoWYQC/aj8WHjsGVV+bwkh0+tegRg==",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/browserslist"
},
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/caniuse-lite"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
]
},
"node_modules/case-sensitive-paths-webpack-plugin": {
"version": "2.4.0",
@@ -4653,6 +4671,16 @@
"node": ">=6"
}
},
"node_modules/clipboard": {
"version": "2.0.11",
"resolved": "https://registry.npmmirror.com/clipboard/-/clipboard-2.0.11.tgz",
"integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==",
"dependencies": {
"good-listener": "^1.2.2",
"select": "^1.1.2",
"tiny-emitter": "^2.0.0"
}
},
"node_modules/clipboardy": {
"version": "2.3.0",
"resolved": "https://registry.npmmirror.com/clipboardy/-/clipboardy-2.3.0.tgz",
@@ -5548,6 +5576,11 @@
"node": ">=0.4.0"
}
},
"node_modules/delegate": {
"version": "3.2.0",
"resolved": "https://registry.npmmirror.com/delegate/-/delegate-3.2.0.tgz",
"integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw=="
},
"node_modules/delegates": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/delegates/-/delegates-1.0.0.tgz",
@@ -6686,6 +6719,11 @@
"node": "^10.12.0 || >=12.0.0"
}
},
"node_modules/file-saver": {
"version": "2.0.5",
"resolved": "https://registry.npmmirror.com/file-saver/-/file-saver-2.0.5.tgz",
"integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA=="
},
"node_modules/fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz",
@@ -7083,6 +7121,14 @@
"node": "*"
}
},
"node_modules/good-listener": {
"version": "1.2.2",
"resolved": "https://registry.npmmirror.com/good-listener/-/good-listener-1.2.2.tgz",
"integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==",
"dependencies": {
"delegate": "^3.1.2"
}
},
"node_modules/gopd": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.0.1.tgz",
@@ -8930,6 +8976,25 @@
"integrity": "sha512-23g5BFj4zdQL/b6tor7Ji+QY4pEfNH784BMslY9Qb0UnJWRAt+lQGLYmRaM0KDBwIG23ffEBELhZDP2rhi9f/Q==",
"dev": true
},
"node_modules/moment": {
"version": "2.30.1",
"resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz",
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
"engines": {
"node": "*"
}
},
"node_modules/moment-timezone": {
"version": "0.5.45",
"resolved": "https://registry.npmmirror.com/moment-timezone/-/moment-timezone-0.5.45.tgz",
"integrity": "sha512-HIWmqA86KcmCAhnMAN0wuDOARV/525R2+lOLotuGFzn4HO+FH+/645z2wx0Dt3iDv6/p61SIvKnDstISainhLQ==",
"dependencies": {
"moment": "^2.29.4"
},
"engines": {
"node": "*"
}
},
"node_modules/mrmime": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/mrmime/-/mrmime-1.0.1.tgz",
@@ -10791,6 +10856,12 @@
"node": ">= 0.8"
}
},
"node_modules/raw-loader": {
"version": "0.5.1",
"resolved": "https://registry.npmmirror.com/raw-loader/-/raw-loader-0.5.1.tgz",
"integrity": "sha512-sf7oGoLuaYAScB4VGr0tzetsYlS8EJH6qnTCfQ/WVEa89hALQ4RQfCKt5xCyPQKPDUbVUAIP1QsxAwfAjlDp7Q==",
"dev": true
},
"node_modules/read-pkg": {
"version": "5.2.0",
"resolved": "https://registry.npmmirror.com/read-pkg/-/read-pkg-5.2.0.tgz",
@@ -11239,6 +11310,15 @@
"node": ">= 8.9.0"
}
},
"node_modules/script-loader": {
"version": "0.7.2",
"resolved": "https://registry.npmmirror.com/script-loader/-/script-loader-0.7.2.tgz",
"integrity": "sha512-UMNLEvgOAQuzK8ji8qIscM3GIrRCWN6MmMXGD4SD5l6cSycgGsCo0tX5xRnfQcoghqct0tjHjcykgI1PyBE2aA==",
"dev": true,
"dependencies": {
"raw-loader": "~0.5.1"
}
},
"node_modules/scss-tokenizer": {
"version": "0.4.3",
"resolved": "https://registry.npmmirror.com/scss-tokenizer/-/scss-tokenizer-0.4.3.tgz",
@@ -11262,6 +11342,11 @@
"integrity": "sha512-4AsO/FrViE/iDNEPaAQlb77tf0csuq27EsVpy6ett584EcRTp6pTDLoGWVxCD77y5iU5FauOvhsI4o1APwPoSQ==",
"dev": true
},
"node_modules/select": {
"version": "1.1.2",
"resolved": "https://registry.npmmirror.com/select/-/select-1.1.2.tgz",
"integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA=="
},
"node_modules/select-hose": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/select-hose/-/select-hose-2.0.0.tgz",
@@ -11906,6 +11991,11 @@
"integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==",
"dev": true
},
"node_modules/svgaplayerweb": {
"version": "2.3.2",
"resolved": "https://registry.npmmirror.com/svgaplayerweb/-/svgaplayerweb-2.3.2.tgz",
"integrity": "sha512-QuTvNIgy3W6Mi4h74SczEHUtAwb8m3ax7Ai7xRLUuN6hjJh49RGtWOWq1IuF2I7ECcl0HAYn8FcTn99UDz9UiQ=="
},
"node_modules/svgo": {
"version": "2.8.0",
"resolved": "https://registry.npmmirror.com/svgo/-/svgo-2.8.0.tgz",
@@ -12143,6 +12233,11 @@
"integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==",
"dev": true
},
"node_modules/tiny-emitter": {
"version": "2.1.0",
"resolved": "https://registry.npmmirror.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
"integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
},
"node_modules/to-fast-properties": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
@@ -12377,7 +12472,6 @@
"version": "1.5.0",
"resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-1.5.0.tgz",
"integrity": "sha512-9ZdRwbh/4gcm1JTOkp9lAkIDrtOyOxgHmY7cjuwI8L/2RTikMcVG25GsZwNAgRuap3iDw2jeq7eoqtAsz5rW3A==",
"dev": true,
"dependencies": {
"acorn": "^8.10.0",
"chokidar": "^3.5.3",
@@ -12449,6 +12543,28 @@
"node": ">=16 || 14 >=14.17"
}
},
"node_modules/unplugin-element-plus": {
"version": "0.8.0",
"resolved": "https://registry.npmmirror.com/unplugin-element-plus/-/unplugin-element-plus-0.8.0.tgz",
"integrity": "sha512-jByUGY3FG2B8RJKFryqxx4eNtSTj+Hjlo8edcOdJymewndDQjThZ1pRUQHRjQsbKhTV2jEctJV7t7RJ405UL4g==",
"dependencies": {
"@rollup/pluginutils": "^5.0.2",
"es-module-lexer": "^1.3.0",
"magic-string": "^0.30.1",
"unplugin": "^1.3.2"
},
"engines": {
"node": ">=14.19.0"
}
},
"node_modules/unplugin-element-plus/node_modules/magic-string": {
"version": "0.30.10",
"resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.10.tgz",
"integrity": "sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.4.15"
}
},
"node_modules/unplugin-vue-components": {
"version": "0.25.2",
"resolved": "https://registry.npmmirror.com/unplugin-vue-components/-/unplugin-vue-components-0.25.2.tgz",
@@ -12528,8 +12644,7 @@
"node_modules/unplugin/node_modules/webpack-virtual-modules": {
"version": "0.5.0",
"resolved": "https://registry.npmmirror.com/webpack-virtual-modules/-/webpack-virtual-modules-0.5.0.tgz",
"integrity": "sha512-kyDivFZ7ZM0BVOUteVbDFhlRt7Ah/CSPwJdi8hBpkK7QLumUqdLtVfm/PX/hkcnrvr0i77fO5+TjZ94Pe+C9iw==",
"dev": true
"integrity": "sha512-kyDivFZ7ZM0BVOUteVbDFhlRt7Ah/CSPwJdi8hBpkK7QLumUqdLtVfm/PX/hkcnrvr0i77fO5+TjZ94Pe+C9iw=="
},
"node_modules/update-browserslist-db": {
"version": "1.0.13",
@@ -12619,6 +12734,14 @@
"@vue/shared": "3.2.13"
}
},
"node_modules/vue-clipboard2": {
"version": "0.3.3",
"resolved": "https://registry.npmmirror.com/vue-clipboard2/-/vue-clipboard2-0.3.3.tgz",
"integrity": "sha512-aNWXIL2DKgJyY/1OOeITwAQz1fHaCIGvUFHf9h8UcoQBG5a74MkdhS/xqoYe7DNZdQmZRL+TAdIbtUs9OyVjbw==",
"dependencies": {
"clipboard": "^2.0.0"
}
},
"node_modules/vue-eslint-parser": {
"version": "8.3.0",
"resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-8.3.0.tgz",

View File

@@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "vue-cli-service serve --mode development --report",
"dev": "vue-cli-service serve --mode development",
"build": "vue-cli-service build --mode production",
"lint": "vue-cli-service lint"
},
@@ -14,6 +14,7 @@
"bootstrap": "^3.3.5",
"core-js": "^3.8.3",
"element-plus": "^2.3.14",
"file-saver": "^2.0.5",
"font-awesome": "^4.6.3",
"ionicons": "^2.0.1",
"jquery": "^2.2.0",
@@ -21,10 +22,14 @@
"knockout": "^3.5.1",
"less": "^4.2.0",
"less-loader": "^11.1.3",
"moment-timezone": "^0.5.45",
"node-sass": "^9.0.0",
"popper.js": "^1.16.1",
"sass": "^1.67.0",
"sass-loader": "^13.3.2",
"svgaplayerweb": "^2.3.2",
"unplugin-element-plus": "^0.8.0",
"vue-clipboard2": "^0.3.3",
"vue-router": "^4.0.3",
"vuex": "^4.0.0",
"xlsx": "^0.18.5"
@@ -39,10 +44,10 @@
"@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3",
"script-loader": "^0.7.2",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2",
"vue": "^3.2.13",
"webpack-bundle-analyzer": "^4.9.1",
"webpack-cli": "^5.1.4"
}
}

View File

@@ -34,3 +34,11 @@ export default {
computed: {},
};
</script>
<style>
.modal-open{
overflow-y: scroll;
}
body{
padding-right:0 !important;
}
</style>

View File

@@ -0,0 +1,65 @@
import request from '@/utils/request';
import qs from 'qs';
// ==================================地区限制====================================
// 地区列表
export const recordPage = query => {
return request({
url: '/admin/ip/region/limit/record/page',
method: 'get',
params: query
});
};
// 加入白名单
export const addWhite = query => {
return request({
url: '/admin/ip/region/limit/record/addWhite',
method: 'get',
params: query
});
};
// 解除限制
export const relieve = query => {
return request({
url: '/admin/ip/region/limit/record/relieve',
method: 'get',
params: query
});
};
// 添加地区访问限制
export const recordSave = query => {
return request({
url: '/admin/ip/region/limit/record/save',
headers:{"Content-Type": 'application/x-www-form-urlencoded'},
method: 'post',
data: query
});
};
// ==================================访问白名单====================================
// 白名单列表
export const whitePage = query => {
return request({
url: '/admin/ip/region/white/page',
method: 'get',
params: query
});
};
// 移除白名单
export const whiteDel = query => {
return request({
url: '/admin/ip/region/white/del',
method: 'get',
params: query
});
};
// 添加白名单
export const whiteSave = query => {
return request({
url: '/admin/ip/region/white/save',
headers:{"Content-Type": 'application/x-www-form-urlencoded'},
method: 'post',
data: query
});
};

View File

@@ -0,0 +1,19 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
// 列表
export const list = query => {
return request({
url: '/giftPanelTab/list',
method: 'get',
params: query
});
};
// 保存
export const update = query => {
return request({
url: '/giftPanelTab/update',
method: 'post',
params: query
});
};

View File

@@ -0,0 +1,42 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
import qs from 'qs';
// 周期选项下拉框
export const cycleDateList = query => {
return request({
url: '/admin/ssGuild/cycleDateList',
method: 'get',
params: query
});
};
// SS公会列表
export const list = query => {
return request({
url: '/admin/ssGuild/list',
method: 'get',
params: query
});
};
// 发送金币&批量发送
export const sendGold = query => {
return request({
url: '/admin/ssGuild/sendGold',
method: 'post',
params: query
});
};
// 导出
// export const ssGuildExport = query => {
// return request({
// url: `/admin/ssGuild/export`,
// method: 'post',
// params: query,
// responseType: 'blob'
// });
// };
// 导出-公会信息
export const ssGuildExport = query => {
window.location.href = `/admin/ssGuild/export?${genQueryParam(query)}`;
return;
};

View File

@@ -0,0 +1,34 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
// 查询用户接口
export const getByErbanNo = query => {
return request({
url: '/admin/user/getByErbanNo',
method: 'get',
params: query
});
};
// 获取VIP列表接口
export const listAll = query => {
return request({
url: '/admin/vip/listAll',
method: 'get',
params: query
});
};
// 获取列表接口
export const pageRecord = query => {
return request({
url: '/vipSend/pageRecord',
method: 'get',
params: query
});
};
// 赠送VIP接口
export const vipSendSend = query => {
return request({
url: '/vipSend/send',
method: 'post',
params: query
});
};

166
src/api/boom/boom.js Normal file
View File

@@ -0,0 +1,166 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
// 分区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
// 邀请移除记录
export const pageOperateRecord = query => {
return request({
url: '/admin/guild/manage/pageOperateRecord',
method: 'get',
params: query
});
};
// 查询公会信息
export const pageFamily = query => {
return request({
url: '/admin/guild/manage/pageGuild',
method: 'get',
params: query
});
};
// 公会成员信息
export const pageFamilyMember = query => {
return request({
url: '/admin/family/manage/pageFamilyMember',
method: 'get',
params: query
});
};
// 创建公会信息
export const create = query => {
return request({
url: '/admin/guild/manage/create',
method: 'post',
params: query
});
};
// 删除公会信息
export const dismiss = query => {
return request({
url: '/admin/guild/manage/dismiss',
method: 'post',
params: query
});
};
// 幸运礼物详情导出
export const luckyGiftRewardRecordExport = query => {
window.location.href = `/admin/luckyGiftRewardRecord/export?${genQueryParam(query)}`;
return;
};
// 公会信息编辑接口
export const update = query => {
return request({
url: '/admin/guild/manage/update',
method: 'post',
params: query
});
};
// 导出-公会信息
export const exportInfo = query => {
window.location.href = `/admin/guild/manage/exportGuild?${genQueryParam(query)}`;
return;
};
// 成员信息-弹窗详情
export const manageListFamilyMember = query => {
return request({
url: '/admin/guild/manage/listGuildMember',
method: 'get',
params: query
});
};
// 成员信息-新增成员
export const addMember = query => {
return request({
url: '/admin/guild/manage/addMember',
method: 'post',
params: query
});
};
// 成员信息-设置管理员
export const setManager = query => {
return request({
url: '/admin/guild/manage/setManager',
method: 'post',
params: query
});
};
// 成员信息-删除管理员
export const removeMember = query => {
return request({
url: '/admin/guild/manage/removeMember',
method: 'post',
params: query
});
};
// ========================================================Boom活动等级配置================================================
// Boom活动等级配置-列表
export const levelList = query => {
return request({
url: '/room/boom/level/list',
method: 'get',
params: query
});
};
// Boom活动等级配置-弹窗列表详情
export const awardList = query => {
return request({
url: '/room/boom/level/award/list',
method: 'get',
params: query
});
};
// Boom活动等级配置-弹窗列表删除详情
export const awardDel = query => {
return request({
url: '/room/boom/level/award/del',
method: 'get',
params: query
});
};
// Boom活动等级配置-编辑
export const levelUpdate = query => {
return request({
url: '/room/boom/level/update',
method: 'put',
data: query
});
};
// Boom活动等级配置-弹窗编辑
export const awardUpdate = query => {
return request({
url: '/room/boom/level/award/update',
method: 'put',
data: query
});
};
// ========================================================Boom数据后台================================================
// Boom活动等级配置-数据后台列表
export const recordList = query => {
return request({
url: '/room/boom/award/record/list',
method: 'get',
params: query
});
};
// Boom活动等级配置-数据后台明细列表
export const detailList = query => {
return request({
url: '/room/boom/award/record/detail/list',
method: 'get',
params: query
});
};
// 导出-Boom活动等级配置
export const recordExport = query => {
window.location.href = `/room/boom/award/record/export?${genQueryParam(query)}`;
return;
};

View File

@@ -0,0 +1,9 @@
import request from '@/utils/request';
export const getPublicChatTopRecordPage = query => {
return request({
url: '/admin/publicChatTopRecord/page',
method: 'get',
params: query
});
};

9
src/api/common/gift.js Normal file
View File

@@ -0,0 +1,9 @@
import request from '@/utils/request';
export const getGiftList = query => {
return request({
url: '/admin/gift/getAll',
method: 'get',
params: query
});
};

72
src/api/common/upload.js Normal file
View File

@@ -0,0 +1,72 @@
import request from "@/utils/request";
import '@/utils/ajaxfileupload';
export const uploadFile = id => {
return new Promise((resolve, reject) => {
$.ajaxFileUpload({
fileElementId: id,
url: '/admin/upload/img',
type: 'post',
dataType: 'json',
secureuri: false,
async: true,
submitType: 'ajax',
success: function (res) {
resolve(res);
},
error: function (res, status, e) {
console.error(res);
console.error(status);
reject(e);
}
});
});
};
export const uploadQiNiuFile = (file) => {
console.log(file);
let formData = new FormData();
formData.append('file', file);
return new Promise((resolve, reject) => {
request.post('/admin/qiniu/upload/file', formData).then(res => {
resolve(res);
}).catch(e => {
reject(e);
});
});
};
export const uploadTencentFile = id => {
return new Promise((resolve, reject) => {
$.ajaxFileUpload({
fileElementId: id,
url: '/admin/upload/tencent/file',
type: 'post',
dataType: 'json',
secureuri: false,
async: true,
submitType: 'ajax',
success: function (res) {
resolve(res);
},
error: function (res, status, e) {
console.error(res);
console.error(status);
reject(e);
}
});
});
};
export const uploadGift = (file) => {
let formData = new FormData();
console.log(file);
formData.append('file', file);
return new Promise((resolve, reject) => {
request.post('/admin/gift/upload', formData).then(res => {
resolve(res);
}).catch(e => {
reject(e);
});
});
};

View File

@@ -0,0 +1,21 @@
import request from '@/utils/request';
import qs from 'qs';
import { genQueryParam } from '@/utils/maintainer';
// ==================================每日数据====================================
// 反馈类型
export const listType = query => {
return request({
url: '/admin/feedback/listType',
method: 'get',
params: query
});
};
// 反馈列表
export const pageRecord = query => {
return request({
url: '/admin/feedback/pageRecord',
method: 'get',
params: query
});
};

View File

@@ -0,0 +1,20 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
// 获取游戏列表
export const mgList = query => {
return request({
url: '/admin/miniGame/statis/mgList',
method: 'get',
params: query
});
};
// 游戏编辑
export const save = query => {
return request({
url: '/admin/miniGame/save',
headers:{"Content-Type": 'application/x-www-form-urlencoded'},
method: 'post',
data: query
});
};

View File

@@ -0,0 +1,29 @@
import request from '@/utils/request';
import qs from 'qs';
import { genQueryParam } from '@/utils/maintainer';
// ==================================每日数据====================================
// 列表
export const page = query => {
return request({
url: '/admin/gamePartner/info/page',
method: 'get',
params: query
});
};
// 编辑修改
export const save = query => {
return request({
url: '/admin/gamePartner/info/save',
method: 'post',
data: query
});
};
// 删除
export const delGame = query => {
return request({
url: '/admin/gamePartner/info/delGame',
method: 'get',
params: query
});
};

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request';
import qs from 'qs';
import { genQueryParam } from '@/utils/maintainer';
// ==================================每日数据====================================
// 表单
export const userInviteFissionRecordGetDailyPage = query => {
return request({
url: '/admin/userInviteFissionRecord/getDailyPage',
method: 'get',
params: query
});
};
// 详情表单
export const userInviteFissionRecordGetDailyDetailList = query => {
return request({
url: '/admin/userInviteFissionRecord/getDailyDetailList',
method: 'get',
params: query
});
};
// 导出
export const userInviteFissionRecordExport = query => {
window.location.href = `/admin/userInviteFissionRecord/export?${genQueryParam(query)}`;
return;
};
// ==================================邀请排名====================================
// 设置白名单
export const userInviteFissionRecordSetBlack = query => {
return request({
url: '/admin/userInviteFissionRecord/setBlack',
headers: { "Content-Type": 'application/x-www-form-urlencoded' },
method: 'post',
data: query
});
};
// 邀请排名列表
export const userInviteFissionRecordGetInviteRank = query => {
return request({
url: '/admin/userInviteFissionRecord/getInviteRank',
method: 'get',
params: query
});
};

View File

@@ -0,0 +1,38 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
import qs from 'qs';
// 获取游戏列表
export const sysConfKey = query => {
return request({
url: '/admin/sysConf/key',
method: 'get',
params: query
});
};
// 获取列表
export const statisPage = query => {
return request({
url: '/admin/miniGame/leadercc/statis/page',
method: 'get',
params: query
});
};
// 获取详情列表
export const detailPage = query => {
return request({
url: '/admin/miniGame/leadercc/statis/detailPage',
method: 'get',
params: query
});
};
// 导出
export const exportForMiniGame = query => {
window.location.href = `/admin/miniGame/leadercc/statis/exportForMiniGame?${genQueryParam(query)}`;
return;
};
// 导出弹窗
export const statisExport = query => {
window.location.href = `/admin/miniGame/leadercc/statis/export?${genQueryParam(query)}`;
return;
};

View File

@@ -0,0 +1,79 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
import qs from 'qs';
// 分区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
// 奖池拉框
export const listType = query => {
return request({
url: '/admin/lucky24/pool/listType',
method: 'get',
params: query
});
};
// 池子列表
export const list = query => {
return request({
url: '/admin/lucky24/pool/list',
method: 'get',
params: query
});
};
// 基础配置
export const getConfig = query => {
return request({
url: '/admin/lucky24/config/getConfig',
method: 'get',
params: query
});
};
// 基础配置-修改
export const updateSet = query => {
return request({
headers: { "Content-Type": 'application/json;charset=UTF-8' },
url: '/admin/lucky24/config/update',
method: 'post',
data: query
});
};
// 个人数据
export const personal = query => {
return request({
url: '/admin/lucky24/record/personal',
method: 'get',
params: query
});
};
// 汇总
export const platform = query => {
return request({
url: '/admin/lucky24/record/platform',
method: 'get',
params: query
});
};
// 保存池子
export const save = query => {
return request({
headers: { "Content-Type": 'application/json;charset=UTF-8' },
url: '/admin/lucky24/pool/save',
method: 'post',
data: query
});
};
// 赠送用户
export const updateUserMulti = query => {
return request({
url: '/admin/lucky24/config/updateUserMulti',
method: 'post',
params: query
});
};

View File

@@ -0,0 +1,80 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
export const getLuckyGiftRangeConfigList = query => {
return request({
url: '/admin/luckyGiftRangeConfig/list',
method: 'get',
params: query
});
};
export const saveLuckyGiftRangeConfig = data => {
return request({
url: '/admin/luckyGiftRangeConfig/save',
method: 'post',
data: data
});
};
// 获取礼物
export const getAll = query => {
return request({
url: '/admin/gift/getAll',
method: 'get',
params: query
});
};
// 获取礼物区间
export const luckyGiftRangeConfigList = query => {
return request({
url: '/admin/luckyGiftRangeConfig/list',
method: 'get',
params: query
});
};
// 幸运礼物配置列表
export const luckyGiftRewardList = query => {
return request({
url: '/admin/luckyGiftReward/list',
method: 'get',
params: query
});
};
// 幸运礼物配置删除
export const luckyGiftRewardDelete = query => {
return request({
url: '/admin/luckyGiftReward/delete',
method: 'get',
params: query
});
};
// 幸运礼保存列表
export const luckyGiftRewardSave = query => {
return request({
url: '/admin/luckyGiftReward/save',
method: 'post',
params: query
});
};
// 幸运礼物明细
export const getGiftSendPage = query => {
return request({
url: '/admin/luckyGiftRewardRecord/getGiftSendPage',
method: 'get',
params: query
});
};
// 幸运礼物详情
export const getRewardList = query => {
return request({
url: '/admin/luckyGiftRewardRecord/getRewardList',
method: 'get',
params: query
});
};
// 幸运礼物详情导出
export const luckyGiftRewardRecordExport = query => {
window.location.href = `/admin/luckyGiftRewardRecord/export?${genQueryParam(query)}`;
return;
};

View File

@@ -0,0 +1,173 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
// 地区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
// 福袋列表请求
export const listLuckyBagLinearGift = query => {
return request({
url: '/admin/gift/getGiftByTypes',
method: 'get',
params: query
});
};
// 福袋礼物列表请求
export const getPrizeGroupsInfo = query => {
return request({
url: '/admin/luckyBag/getGroupInfo',
method: 'get',
params: query
});
};
// 所有礼物列表请求
export const getAll = query => {
return request({
url: '/admin/gift/getAll',
method: 'get',
params: query
});
};
// 所有座驾列表请求
export const carAll = query => {
return request({
url: '/admin/car/goods/total/list',
method: 'get',
params: query
});
};
// 所有头饰列表请求
export const headwearAll = query => {
return request({
url: '/admin/headwear/total/list',
method: 'get',
params: query
});
};
// 所有铭牌列表请求
export const nameplateAll = query => {
return request({
url: '/admin/nameplate/total/list',
method: 'get',
params: query
});
};
// 所有气泡列表请求
export const chatbubbleAll = query => {
return request({
url: '/admin/chatbubble/total/list',
method: 'get',
params: query
});
};
// 所有资料卡列表请求
export const infocard = query => {
return request({
url: '/admin/infocard/total/list',
method: 'get',
params: query
});
};
// 榜单统计-列表接口
export const luckyBagWeekRankList = query => {
return request({
url: '/admin/luckyBagWeekRank/list',
method: 'get',
params: query
});
};
// 榜单统计-详情列表接口
export const luckyBagWeekRankListRank = query => {
return request({
url: '/admin/luckyBagWeekRank/pageRank',
method: 'get',
params: query
});
};
// 榜单统计-总导出
export const exportList = query => {
window.location.href = `/admin/luckyBagWeekRank/exportList?${genQueryParam(query)}`;
return;
};
// 榜单统计-详情导出
export const exportRank = query => {
window.location.href = `/admin/luckyBagWeekRank/exportRank?${genQueryParam(query)}`;
return;
};
// 用户中奖记录-列表
export const getRecordPage = query => {
return request({
url: '/admin/luckyBagFortunate/getRecordPage',
method: 'get',
params: query
});
};
// 用户中奖记录-导出
export const exportForReward = query => {
window.location.href = `/admin/luckyBagFortunate/exportForReward?${genQueryParam(query)}`;
return;
};
// 欧气1+1-导出
export const luckyBagFortunateExport = query => {
window.location.href = `/admin/luckyBagFortunate/export?${genQueryParam(query)}`;
return;
};
// 欧气1+1-列表
export const luckyBagFortunatePage = query => {
return request({
url: '/admin/luckyBagFortunate/page',
method: 'get',
params: query
});
};
// 欧气1+1-保存
export const luckyBagFortunateSave = query => {
return request({
url: '/admin/luckyBagFortunate/save',
method: 'post',
params: query
});
};
// 欧气1+1-上下线
export const luckyBagFortunateUpdateEnabled = query => {
return request({
url: '/admin/luckyBagFortunate/updateEnabled',
method: 'post',
params: query
});
};
// 收藏-列表
export const luckyBagCollectPage = query => {
return request({
url: '/admin/luckyBagCollect/page',
method: 'get',
params: query
});
};
// 收藏-上下线
export const updateEnabled = query => {
return request({
url: '/admin/luckyBagCollect/updateEnabled',
method: 'post',
params: query
});
};
// 收藏-保存
export const luckyBagCollectSave = query => {
return request({
url: '/admin/luckyBagCollect/save',
headers:{"Content-Type": 'application/x-www-form-urlencoded'},
method: 'post',
data: query
});
};
// 收藏-导出
export const luckyBagCollectExport = query => {
window.location.href = `/admin/luckyBagCollect/export?${genQueryParam(query)}`;
return;
};

58
src/api/medal/medal.js Normal file
View File

@@ -0,0 +1,58 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
// 地区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
// 勋章信息-列表
export const medalPage = query => {
return request({
url: '/admin/medal/page',
method: 'get',
params: query
});
};
// 勋章信息-新增&保存
export const medalSave = query => {
return request({
url: '/admin/medal/save',
method: 'post',
params: query
});
};
// 勋章信息-发放
export const medalSend = query => {
return request({
url: '/admin/medal/send',
method: 'post',
params: query
});
};
// 勋章记录-撤销
export const rollback = query => {
return request({
url: '/admin/medalRecord/rollback',
method: 'post',
params: query
});
};
// 勋章记录-列表
export const medalRecordPage = query => {
return request({
url: '/admin/medalRecord/page',
method: 'get',
params: query
});
};
// 勋章记录-勋章列表
export const listAll = query => {
return request({
url: '/admin/medal/listAll',
method: 'get',
params: query
});
};

View File

@@ -0,0 +1,28 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
export const miniGameForBaiShunPage = query => {
return request({
url: '/admin/miniGame/baiShun/statis/page',
method: 'get',
params: query
});
};
export const miniGameForBaiShunDetailPage = query => {
return request({
url: '/admin/miniGame/baiShun/statis/detailPage',
method: 'get',
params: query
});
};
export const miniGameForBaiShunExport = query => {
window.location.href = `/admin/miniGame/baiShun/statis/export?${genQueryParam(query)}`;
return;
};
export const miniGameForBaiShunExportAll = query => {
window.location.href = `/admin/miniGame/baiShun/statis/exportForMiniGame?${genQueryParam(query)}`;
return;
};

View File

@@ -0,0 +1,9 @@
import request from '@/utils/request';
export const miniGameForNavPage = query => {
return request({
url: '/admin/miniGame/nav/page',
method: 'get',
params: query
});
};

View File

@@ -0,0 +1,281 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
// 分区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
// 邀请移除记录
export const pageOperateRecord = query => {
return request({
url: '/admin/family/manage/pageOperateRecord',
method: 'get',
params: query
});
};
// 查询公会信息
export const pageFamily = query => {
return request({
url: '/admin/family/manage/pageFamily',
method: 'get',
params: query
});
};
// 公会成员信息
export const pageFamilyMember = query => {
return request({
url: '/admin/family/manage/pageFamilyMember',
method: 'get',
params: query
});
};
// 创建公会信息
export const create = query => {
return request({
url: '/admin/family/manage/create',
method: 'post',
params: query
});
};
// 删除公会信息
export const dismiss = query => {
return request({
url: '/admin/family/manage/dismiss',
method: 'post',
params: query
});
};
// 幸运礼物详情导出
export const luckyGiftRewardRecordExport = query => {
window.location.href = `/admin/luckyGiftRewardRecord/export?${genQueryParam(query)}`;
return;
};
// 公会信息编辑接口
export const update = query => {
return request({
url: '/admin/family/manage/update',
method: 'post',
params: query
});
};
// 违规类型列表接口
export const pageFun = query => {
return request({
url: '/admin/familyMember/violation/page',
method: 'get',
params: query
});
};
// 违规类型列表接口
export const listFun = query => {
return request({
url: '/admin/familyMember/violation/list',
method: 'get',
params: query
});
};
// 违规类型添加接口
export const addFun = query => {
return request({
url: '/admin/familyMember/violation/add',
method: 'post',
params: query
});
};
// 编辑
export const updateFun = query => {
return request({
url: '/admin/familyMember/violation/update',
method: 'post',
params: query
});
};
// 删除
export const delFun = query => {
return request({
url: '/admin/familyMember/violation/del',
method: 'post',
params: query
});
};
// 添加违规记录
export const addRecord = query => {
return request({
url: '/admin/familyMember/violation/addRecord',
method: 'post',
params: query
});
};
// 保存收款账户
export const savePayAccount = query => {
return request({
url: '/admin/family/manage/savePayAccount',
method: 'post',
params: query
});
};
// 违规类查询
export const listRecord = query => {
return request({
url: '/admin/familyMember/violation/listRecord',
method: 'get',
params: query
});
};
// 导出
export const exportFamilyMember = query => {
window.location.href = `/admin/family/manage/exportFamilyMember?${genQueryParam(query)}`;
return;
};
// 导出-公会信息
export const exportInfo = query => {
window.location.href = `/admin/family/manage/exportFamily?${genQueryParam(query)}`;
return;
};
// 工资梯度-列表
export const manageList = query => {
return request({
url: '/admin/family/manage/list',
method: 'get',
params: query
});
};
// 工资梯度-新增
export const manageAdd = query => {
return request({
url: '/admin/family/manage/add',
method: 'post',
params: query
});
};
// 工资梯度-删除
export const manageDelete = query => {
return request({
url: '/admin/family/manage/delete',
method: 'post',
params: query
});
};
// 工会统计-列表
export const statPageFamily = query => {
return request({
url: '/admin/family/wage/stat/pageFamily',
method: 'get',
params: query
});
};
// 工会统计-单个工会详情
export const listFamilyMember = query => {
return request({
url: '/admin/family/wage/stat/listFamilyMember',
method: 'get',
params: query
});
};
// 工会统计-单个工会导出
export const statExportFamilyMember = query => {
window.location.href = `/admin/family/wage/stat/exportFamilyMember?${genQueryParam(query)}`;
return;
};
// 工会统计-每日工会详情
export const listFamilyMemberDaily = query => {
return request({
url: '/admin/family/wage/stat/listFamilyMemberDaily',
method: 'get',
params: query
});
};
// 工会统计-单每日会导出
export const exportFamilyMemberDaily = query => {
window.location.href = `/admin/family/wage/stat/exportFamilyMemberDaily?${genQueryParam(query)}`;
return;
};
// 工会统计-导出公会工资统计
export const statExportFamily = query => {
window.location.href = `/admin/family/wage/stat/exportFamily?${genQueryParam(query)}`;
return;
};
// 工会统计-导出家族流水
export const incomeExportFamilys = query => {
window.location.href = `/admin/family/income/exportFamily?${genQueryParam(query)}`;
return;
};
// 金币流水-列表
export const incomePageFamily = query => {
return request({
url: '/admin/family/income/pageFamily',
method: 'get',
params: query
});
};
// 金币流水-详情
export const incomeListFamilyMember = query => {
return request({
url: '/admin/family/income/listFamilyMember',
method: 'get',
params: query
});
};
// 金币流水-导出成员流水信息
export const incomeExportFamily = query => {
window.location.href = `/admin/family/income/exportFamilyMember?${genQueryParam(query)}`;
return;
};
// 成员信息-弹窗详情
export const manageListFamilyMember = query => {
return request({
url: '/admin/family/manage/listFamilyMember',
method: 'get',
params: query
});
};
// 成员信息-新增成员
export const addMember = query => {
return request({
url: '/admin/family/manage/addMember',
method: 'post',
params: query
});
};
// 成员信息-设置管理员
export const setManager = query => {
return request({
url: '/admin/family/manage/setManager',
method: 'post',
params: query
});
};
// 成员信息-删除管理员
export const removeMember = query => {
return request({
url: '/admin/family/manage/removeMember',
method: 'post',
params: query
});
};
// -审核列表
export const guildApplyList = query => {
return request({
url: '/admin/guildApply/list',
method: 'get',
params: query
});
};
// -审核操作
export const guildApplyAudit = query => {
return request({
url: '/admin/guildApply/audit',
method: 'post',
params: query
});
};

View File

@@ -0,0 +1,103 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
// 分区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
// 邀请移除记录
export const pageOperateRecord = query => {
return request({
url: '/admin/guild/manage/pageOperateRecord',
method: 'get',
params: query
});
};
// 查询公会信息
export const pageFamily = query => {
return request({
url: '/admin/guild/manage/pageGuild',
method: 'get',
params: query
});
};
// 公会成员信息
export const pageFamilyMember = query => {
return request({
url: '/admin/family/manage/pageFamilyMember',
method: 'get',
params: query
});
};
// 创建公会信息
export const create = query => {
return request({
url: '/admin/guild/manage/create',
method: 'post',
params: query
});
};
// 删除公会信息
export const dismiss = query => {
return request({
url: '/admin/guild/manage/dismiss',
method: 'post',
params: query
});
};
// 幸运礼物详情导出
export const luckyGiftRewardRecordExport = query => {
window.location.href = `/admin/luckyGiftRewardRecord/export?${genQueryParam(query)}`;
return;
};
// 公会信息编辑接口
export const update = query => {
return request({
url: '/admin/guild/manage/update',
method: 'post',
params: query
});
};
// 导出-公会信息
export const exportInfo = query => {
window.location.href = `/admin/guild/manage/exportGuild?${genQueryParam(query)}`;
return;
};
// 成员信息-弹窗详情
export const manageListFamilyMember = query => {
return request({
url: '/admin/guild/manage/listGuildMember',
method: 'get',
params: query
});
};
// 成员信息-新增成员
export const addMember = query => {
return request({
url: '/admin/guild/manage/addMember',
method: 'post',
params: query
});
};
// 成员信息-设置管理员
export const setManager = query => {
return request({
url: '/admin/guild/manage/setManager',
method: 'post',
params: query
});
};
// 成员信息-删除管理员
export const removeMember = query => {
return request({
url: '/admin/guild/manage/removeMember',
method: 'post',
params: query
});
};

View File

@@ -0,0 +1,18 @@
import request from '@/utils/request';
export const getOfficialConfigList = query => {
return request({
url: '/admin/official/config/list',
method: 'get',
params: query
});
};
export const saveOfficialConfig = data => {
return request({
url: '/admin/official/config/save',
headers:{"Content-Type": 'application/x-www-form-urlencoded'},
method: 'post',
data: data
});
}

View File

@@ -0,0 +1,9 @@
import request from '@/utils/request';
export const browseFor30Days = query => {
return request({
url: '/admin/official/browse/record/browseFor30Days',
method: 'get',
params: query
});
};

View File

@@ -0,0 +1,16 @@
import request from '@/utils/request';
export const getPartitionInfoList = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
export const listAll = query => {
return request({
url: '/partition/listAll',
method: 'get',
params: query
});
};

View File

@@ -0,0 +1,52 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
import qs from 'qs';
// 地区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
// 个人主页资源管理列表
export const pesonalBackgroundListByPage = query => {
return request({
url: '/admin/pesonalBackground/listByPage',
method: 'get',
params: query
});
};
// 个人主页资源管理赠送
export const pesonalBackgroundListSend = query => {
return request({
url: '/admin/pesonalBackground/send',
method: 'get',
params: query
});
};
// 个人主页资源管理保存
export const pesonalBackgroundSaveOrUpdate = query => {
return request({
url: '/admin/pesonalBackground/saveOrUpdate',
method: 'post',
params: query
});
};
// 个人主页记录管理&个人赠送记录
export const pesonalBackgroundListRecordByPage = query => {
return request({
url: '/admin/pesonalBackground/listRecordByPage',
method: 'get',
params: query
});
};
// 个人赠送记录撤回
export const pesonalBackgroundListRecordRecoveryPersonalBackground = query => {
return request({
url: '/admin/pesonalBackground/recoveryPersonalBackground',
method: 'get',
params: query
});
};

48
src/api/refund/refund.js Normal file
View File

@@ -0,0 +1,48 @@
import request from '@/utils/request';
import qs from 'qs';
import { genQueryParam } from '@/utils/maintainer';
// 活动配置 相关接口(一级菜单:活动配置)
// 分区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
// 国家
export const regionInfoList = query => {
return request({
url: '/admin/regionInfo/list',
method: 'get',
params: query
});
};
// 列表
export const refundList = query => {
return request({
url: '/admin/chargeRecord/refundList',
method: 'get',
params: query
});
};
// 导出
export const refundExport = query => {
window.location.href = `/admin/chargeRecord/refundExport?${genQueryParam(query)}`;
return;
};
// ======================================金币钻石操作记录==================================
// 列表
export const goldcoinRecordAll = query => {
return request({
url: '/admin/goldcoin/recordAll',
method: 'get',
params: query
});
};
// 导出
export const recordAllExport = query => {
window.location.href = `/admin/goldcoin/recordAllExport?${genQueryParam(query)}`;
return;
};

View File

@@ -0,0 +1,191 @@
import request from '@/utils/request';
import qs from 'qs';
import { genQueryParam } from '@/utils/maintainer';
// 活动配置 相关接口(一级菜单:活动配置)
// 分区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
// 充值代理列表导出
export const chargeAgentExport = query => {
window.location.href = `/anchorSalaryBill/chargeAgent/export?${genQueryParam(query)}`;
return;
};
// 获取 周期列表
export const getDateCycleList = query => {
return request({
url: '/anchorSalaryBill/dateCycle/list',
method: 'get',
params: query
});
};
// 获取 公会钻石薪资流水统计 列表
export const getAgencyDiamondFlow = query => {
return request({
url: '/agency/diamond/flow/list',
method: 'get',
params: query
});
};
// 公会钻石薪资流水统计 导出
// export const agencyDiamondFlowExport = query => {
// return request({
// url: `/agency/diamond/flow/export`,
// method: 'post',
// params: query,
// responseType: 'blob'
// });
// };
export const agencyDiamondFlowExport = query => {
window.location.href = `/agency/diamond/flow/export?${genQueryParam(query)}`;
return;
};
// 主播薪资操作(不用分区)
export const getAnchorSalaryBill = query => {
return request({
url: '/anchorSalaryBill/anchorSummary/list',
method: 'get',
params: query
});
};
// salaryType 1钻石兑换薪资明细 2 薪资转赠充值代理 明细 3薪资转增公会长明细 4官方提现 6 薪资兑换金币明细
export const anchorSalaryBillDetail = query => {
return request({
url: '/anchorSalaryBill/detail/list',
method: 'get',
params: query
});
};
// 充值代理转增薪资
export const chargeAgentList = query => {
return request({
url: '/anchorSalaryBill/chargeAgent/list',
method: 'get',
params: query
});
};
// 充值代理转增薪资 总值
export const chargeAgentSum = query => {
return request({
url: '/anchorSalaryBill/chargeAgent/sum',
method: 'get',
params: query
});
};
// 官方提现记录 列表
export const agencyWithdrawList = query => {
return request({
url: '/agencyWithdrawExamine/list',
method: 'get',
params: query
});
};
// 官方提现记录 导出
export const agencyWithdrawExamineExport = query => {
return request({
url: `/agencyWithdrawExamine/export`,
method: 'post',
params: query,
responseType: 'blob'
});
};
// 官方提现记录 结算
// export const agencyWithdrawSet = query => {
// return request({
// url: '/agencyWithdrawExamine/settle',
// method: 'post',
// params: query
// });
// };
export const agencyWithdrawSet = query => {
return request({
url: '/agencyWithdrawExamine/batchSettle',
method: 'post',
params: query
});
};
// 官方提现记录 批量结算
export const agencyWithdrawBatchSet = query => {
return request({
url: '/agencyWithdrawExamine/batchSettle',
method: 'post',
params: query
});
};
// 官方提现记录 批量驳回
export const batchReject = query => {
return request({
url: '/agencyWithdrawExamine/batchReject',
method: 'post',
params: query
});
};
// 公会开业数据统计
export const agencyOpenList = query => {
return request({
url: '/agency/open/list',
method: 'get',
params: query
});
};
// 公会开业数据 详情
export const agencyOpenDetail = query => {
return request({
url: '/agency/open/detail/list',
method: 'get',
params: query
});
};
// 公会优秀主播数据统计
export const excellentAnchorList = query => {
return request({
url: '/agency/open/excellentAnchor/list',
method: 'get',
params: query
});
};
// 公会优秀主播数据统计
export const excellentAnchorDetail = query => {
return request({
url: '/agency/open/excellentAnchor/detail/list',
method: 'get',
params: query
});
};
// 官方提现-国家
export const adminCountry = query => {
return request({
url: '/admin/country/list',
method: 'get',
params: query
});
};
// =====================================钻石充值流水=======================================
// 查询
export const diamondStatistics = query => {
return request({
url: '/admin/guild/diamondStatistics',
method: 'get',
params: query
});
};
// 导出
export const diamondStatisticsExport = query => {
window.location.href = `/admin/guild/diamondStatistics/export?${genQueryParam(query)}`;
return;
};

View File

@@ -0,0 +1,43 @@
import request from '@/utils/request';
import qs from 'qs';
// 靓号申请管理 列表
export const getPrettyNumberExamineList = query => {
return request({
url: '/admin/prettyNumber/examine/list',
method: 'get',
params: query
});
};
// 靓号申请管理 通过
export const prettyNumberExaminePass = query => {
return request({
url: '/admin/prettyNumber/examine/pass',
method: 'post',
params: query
});
};
// 靓号申请管理 删除
export const prettyNumberExamineDelete = query => {
return request({
url: '/admin/prettyNumber/examine/delete',
method: 'get',
params: query
});
};
// 靓号申请管理 拒绝
export const prettyNumberExamineReject = query => {
return request({
url: '/admin/prettyNumber/examine/reject',
method: 'post',
params: query
});
};
// 靓号导入
export const erbanUpload = query => {
return request({
url: '/admin/prettyNumber/upload',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data: query
});
};

View File

@@ -0,0 +1,104 @@
import request from '@/utils/request';
import qs from 'qs';
// 用户财产 相关接口(一级菜单:用户财产管理)
// 获取 金币转赠历史列表
export const getGoldCoinTransferList = query => {
return request({
url: '/gold/give/history',
method: 'get',
params: query
});
};
// 获取 金币转赠历史 金币汇总
export const getGoldCoinSumGold = query => {
return request({
url: '/gold/give/history/sumGold',
method: 'get',
params: query
});
};
// 用户资产排行 列表
export const getUserAssetsList = query => {
return request({
url: '/userAssets/list',
method: 'get',
params: query
});
};
// 用户资产排行 导出
export const userAssetsExport = query => {
return request({
url: '/userAssets/export',
method: 'get',
params: query,
responseType: 'blob'
});
};
// 金币钻石操作记录 列表
export const officalGoldSearch = query => {
return request({
url: '/offical/gold/search',
method: 'get',
params: query
});
};
// 金币钻石操作记录 导出
export const officalGoldExport = query => {
return request({
url: '/offical/gold/export',
method: 'get',
params: query,
responseType: 'blob'
});
};
// 操作货币增加/减少 列表
export const officalGoldGive= query => {
return request({
url: '/offical/gold/give',
method: 'post',
params: query
// data: qs.stringify(query)
});
};
// 操作货币增加/减少 查看用户
export const getofficalGoldUserInfo = query => {
return request({
url: '/offical/gold/userInfo',
method: 'get',
params: query
});
};
// 冻结用户资产管理 列表
export const getFrozenRecordList = query => {
return request({
url: '/frozenRecord/list',
method: 'get',
params: query
});
};
// 冻结用户资产管理 冻结
export const userRecordFrozen= query => {
return request({
url: '/frozenRecord/frozen',
method: 'post',
params: query
});
};
// 冻结用户资产管理 解冻
export const frozenRecordFree= query => {
return request({
url: '/frozenRecord/free',
method: 'post',
params: query
});
};

View File

@@ -0,0 +1,34 @@
import request from '@/utils/request';
export const getResourcePage = query => {
return request({
url: '/admin/resource/page',
method: 'get',
params: query
});
};
export const delResource = query => {
return request({
url: '/admin/resource/del',
method: 'get',
params: query
});
};
export const effective = query => {
return request({
url: '/admin/resource/effective',
method: 'get',
params: query
});
};
export const saveResource = data => {
return request({
url: '/admin/resource/save',
headers:{"Content-Type": 'application/x-www-form-urlencoded'},
method: 'post',
data: data
});
}

View File

@@ -0,0 +1,9 @@
import request from '@/utils/request';
export const getResourceRuleList = query => {
return request({
url: '/admin/resource/rule/list',
method: 'get',
params: query
});
};

View File

@@ -0,0 +1,87 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
import qs from 'qs';
// 地区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};
// ==============================================首页ui配置==============================================
// 配置
export const appUiSetting = query => {
return request({
url: '/appUiSetting',
method: 'get',
params: query
});
};
// 保存
export const appUiSettingSave = query => {
return request({
url: '/appUiSetting/save',
method: 'post',
data: query
});
};
// ==============================================自定义背景==============================================
// 列表
export const page = query => {
return request({
url: '/admin/roomBackground/page',
method: 'get',
params: query
});
};
// 新增
export const roomBackgroundAdd = query => {
return request({
url: '/admin/roomBackground/add',
method: 'post',
params: query
});
};
// 编辑
export const roomBackgroundUpdate = query => {
return request({
url: '/admin/roomBackground/update',
method: 'post',
params: query
});
};
// ==============================================自定义背景==============================================
// 列表
export const customPage = query => {
return request({
url: '/admin/roomBackground/custom/page',
method: 'get',
params: query
});
};
// 通过
export const customPass = query => {
return request({
url: '/admin/roomBackground/custom/pass',
method: 'post',
params: query
});
};
// 拒绝
export const customReject = query => {
return request({
url: '/admin/roomBackground/custom/reject',
method: 'post',
params: query
});
};
// 删除
export const customDel = query => {
return request({
url: '/admin/roomBackground/custom/del',
method: 'post',
params: query
});
};

View File

@@ -0,0 +1,17 @@
import request from "@/utils/request";
export function getI18nMessageList() {
return request({
url: '/admin/i18nMessage/list',
method: 'get'
});
}
export function saveI18nMessage(data) {
return request({
url: '/admin/i18nMessage/save',
headers:{"Content-Type": 'application/x-www-form-urlencoded'},
method: 'post',
data: data
});
}

View File

@@ -5,4 +5,12 @@ export function getSysConfList() {
url: '/admin/sysConf/getList',
method: 'get'
});
}
export const getConfigValueByKey = query => {
return request({
url: '/admin/sysConf/key',
method: 'get',
params: query,
});
}

View File

@@ -0,0 +1,76 @@
import request from '@/utils/request';
import qs from 'qs';
import { genQueryParam } from '@/utils/maintainer';
// ==================================许愿礼物配置====================================
// 表单
export const promiseStarConfigList = query => {
return request({
url: '/admin/promiseStarConfig/list',
method: 'get',
params: query
});
};
// 新增弹窗列表数据
export const giftGetAll = query => {
return request({
url: '/admin/gift/getAll',
method: 'get',
params: query
});
};
// 新增
export const promiseStarConfigSave = query => {
return request({
url: '/admin/promiseStarConfig/save',
headers:{"Content-Type": 'application/x-www-form-urlencoded'},
method: 'post',
data: query
});
};
// 下线
export const promiseStarConfigUpdateEnable = query => {
return request({
url: '/admin/promiseStarConfig/updateEnable',
headers:{"Content-Type": 'application/x-www-form-urlencoded'},
method: 'post',
data: query
});
};
export const promiseStarRoundPage = query => {
return request({
url: '/admin/promiseStarRound/page',
method: 'get',
params: query
});
};
export const promiseStarUserRecordGetPromiseUsers = query => {
return request({
url: '/admin/promiseStarUserRecord/getPromiseUsers',
method: 'get',
params: query
});
};
export const promiseStarUserRecordSetUserWhite = query => {
return request({
url: '/admin/promiseStarUserRecord/setUserWhite',
headers:{"Content-Type": 'application/x-www-form-urlencoded'},
method: 'post',
data: query
});
};
export const promiseStarUserRecordPage = query => {
return request({
url: '/admin/promiseStarUserRecord/page',
method: 'get',
params: query
});
};
export const promiseStarUserRecordExport = query => {
window.location.href = `/admin/promiseStarUserRecord/export?${genQueryParam(query)}`;
return;
};

View File

@@ -2203,8 +2203,10 @@
fixedScroll = data.fixedScroll;
data = data[this.options.dataField];
} else if (!$.isArray(data)) { // support fixedScroll
fixedScroll = data.fixedScroll;
data = data.data;
if (data) {
fixedScroll = data.fixedScroll;
data = data.data;
}
}
this.initData(data);
@@ -2528,13 +2530,25 @@
};
BootstrapTable.prototype.destroy = function () {
let bootstrapTable = $('div .bootstrap-table');
if (bootstrapTable) {
let $this = this;
let tables = bootstrapTable.filter(i => {
let $container = $(bootstrapTable[i]);
return ($container && $container.html().indexOf('"' +$this.$el[0].id + '"') != -1);
});
if (tables.length > 1) {
this.$container = $(tables[0]);
this.options.toolbar = $('div.fixed-table-toolbar > div.bars.pull-left').html();
}
}
this.$el.insertBefore(this.$container);
$(this.options.toolbar).insertBefore(this.$el);
this.$container.next().remove();
this.$container.remove();
this.$el.html(this.$el_.html())
.css('margin-top', '0')
.attr('class', this.$el_.attr('class') || ''); // reset the class
$(this.options.toolbar).insertBefore(this.$el);
this.$container.next().remove();
this.$container.remove();
this.$el.html(this.$el_.html())
.css('margin-top', '0')
.attr('class', this.$el_.attr('class') || ''); // reset the class
};
BootstrapTable.prototype.showLoading = function () {
@@ -2776,12 +2790,17 @@
data = $this.data('bootstrap.table'),
options = $.extend({}, BootstrapTable.DEFAULTS, $this.data(),
typeof option === 'object' && option);
if (typeof option === 'string') {
if ($.inArray(option, allowedMethods) < 0) {
throw new Error("Unknown method: " + option);
}
if (!data && option === 'destroy') {
new BootstrapTable(this, options).destroy();
return;
}
if (!data) {
return;
}

View File

@@ -0,0 +1,98 @@
<template>
<div class="pagination">
<el-pagination
background
:layout="paginationLayout"
:current-page="pageParams.pageNo"
:page-size="pageParams.pageSize"
:page-sizes="pageSizes"
:total="pageTotal"
:pager-count="pagerCount"
@size-change="handleSizeChange"
@current-change="handlePageChange"
></el-pagination>
</div>
</template>
<script>
export default {
props: {
pageParams: {
type: Object,
default: () => {}
},
pageSizes: {
type: Array,
default: function () {
return [5, 10, 20, 30, 40, 50, 100];
}
},
// pagerCount: {
// type: Number,
// default: 5
// },
pageTotal: {
type: Number,
default: 0
},
ifShowTotal: {
type: Boolean,
default: true
},
ifShowSizes: {
type: Boolean,
default: true
},
ifShowPrev: {
type: Boolean,
default: true
},
ifShowPager: {
type: Boolean,
default: true
},
ifShowNext: {
type: Boolean,
default: true
},
ifShowJumper: {
type: Boolean,
default: false
}
},
data() {
return {
pagerCount: 5
};
},
methods: {
handleSizeChange(val) {
this.$emit('handleSizeChange', val);
},
handlePageChange(val) {
this.$emit('handlePageChange', val);
},
handleResize() {
if (window.innerWidth > 768) {
this.pagerCount = 5;
} else {
this.pagerCount = 2;
}
}
},
mounted() {
this.handleResize(); // 初始化宽度
},
computed: {
paginationLayout() {
const layoutStr = ['total', 'sizes', 'prev', 'pager', 'next', 'jumper'];
const { ifShowTotal, ifShowSizes, ifShowPrev, ifShowPager, ifShowNext, ifShowJumper } = this;
let layoutWantedToBeShowed = [];
[ifShowTotal, ifShowSizes, ifShowPrev, ifShowPager, ifShowNext, ifShowJumper].forEach((item, index) => {
if (item) layoutWantedToBeShowed.push(index);
});
return layoutWantedToBeShowed.map((item) => layoutStr[item]).join(',');
}
}
};
</script>

View File

@@ -3,7 +3,7 @@
<div class="pull-right hidden-xs">
<b>Version</b> 2.0.0
</div>
<strong>Copyright &copy; 2023 <a href="">触海网络</a>.</strong> All rights
<strong>Copyright &copy; 2024 <a href="">触海网络</a>.</strong> All rights
reserved.
</footer>
</template>

View File

@@ -4,9 +4,9 @@
<!-- Logo -->
<a class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>P</b>K</span>
<span class="logo-mini"><b>M</b>S</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>piko</b>管理系统</span>
<span class="logo-lg"><b>molistar</b>管理系统</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">

View File

@@ -1,185 +1,253 @@
<template>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar" style="height: 100%; overflow: hidden; overflow: scroll;">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel (optional) -->
<div class="user-panel">
<div class="pull-left image">
<img :src="avatar" class="img-circle" :alt="username">
</div>
<div class="pull-left info">
<p>{{ username }}</p>
<!-- Status -->
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
</div>
</div>
<!-- search form (Optional) -->
<form method="get" class="sidebar-form" onsubmit="return false;">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search..." @input="search">
<span class="input-group-btn">
<button name="search" id="search-btn" class="btn btn-flat" @click="search">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<!-- /.search form -->
<!-- Sidebar Menu -->
<ul class="sidebar-menu">
<li class="header">主导航</li>
<!-- Optionally, you can add icons to the links -->
<li v-for="(parent, parentIndex) in parentMenus" :key="parent" :data-index="parentIndex" class="treeview">
<a>
<i :class="[parent.icon ? parent.icon : 'fa fa-link']"></i>
<span>{{ parent.name }}</span>
<span class="label pull-right bg-yellow" :id="['ic' + parent.id]">
{{ getChildLength(parent.id) }}
</span>
</a>
<ul class="treeview-menu" :id="['menu' + parent.id]">
<li v-for="(child, childIndex) in getChilds(parent.id)" :key="child" :data-index="childIndex">
<a :data-url="child.path" @click="handleClick(child)">
<i
:class="[child.icon && child.icon != '' ? child.icon : 'fa fa-circle-o text-yellow']"></i>
<span>{{ child.name }}</span>
</a>
</li>
</ul>
</li>
</ul>
<!-- /.sidebar-menu -->
</section>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper" style="height: 100%;">
<!-- Content Header (Page header) -->
<section class="content-header"
:style="[childMenu.name && childMenu.name != '' ? 'display:block;' : 'display:none;']">
<h1>
{{ childMenu.name }}
<small>{{ childMenu.description }}</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> {{ childMenu.parentName }}</a></li>
<li class="active">{{ childMenu.name }}</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<!-- <section class="content" style="height: 100%; overflow: hidden; overflow: scroll;"> -->
<!-- Your Page Content Here -->
<component :is="componentName"></component>
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<div class="modal fade" id="tipModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">提示信息</h4>
</div>
<div class="modal-body" id="tipMsg"></div>
</div>
<!-- Left side column. contains the logo and sidebar -->
<aside
class="main-sidebar"
style="height: 100%; overflow: hidden; overflow: scroll"
>
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel (optional) -->
<div class="user-panel">
<div class="pull-left image">
<img :src="avatar" class="img-circle" :alt="username" />
</div>
</div>
<div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel"
data-backdrop="static">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">确认信息</h4>
</div>
<div class="modal-body" id="confirmMsg"></div>
</div>
<div class="pull-left info">
<p>{{ username }}</p>
<!-- Status -->
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
</div>
</div>
<!-- search form (Optional) -->
<form method="get" class="sidebar-form" onsubmit="return false;">
<div class="input-group">
<input
type="text"
name="q"
class="form-control"
placeholder="Search..."
@input="search"
/>
<span class="input-group-btn">
<button
name="search"
id="search-btn"
class="btn btn-flat"
@click="search"
>
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<!-- /.search form -->
<!-- Sidebar Menu -->
<ul class="sidebar-menu">
<li class="header">主导航</li>
<!-- Optionally, you can add icons to the links -->
<li
v-for="(parent, parentIndex) in parentMenus"
:key="parent"
:data-index="parentIndex"
class="treeview"
>
<a>
<i :class="[parent.icon ? parent.icon : 'fa fa-link']"></i>
<span>{{ parent.name }}</span>
<span class="label pull-right bg-yellow" :id="['ic' + parent.id]">
{{ getChildLength(parent.id) }}
</span>
</a>
<ul class="treeview-menu" :id="['menu' + parent.id]">
<li
v-for="(child, childIndex) in getChilds(parent.id)"
:key="child"
:data-index="childIndex"
>
<a :data-url="child.path" @click="handleClick(child)">
<i
:class="[
child.icon && child.icon != ''
? child.icon
: 'fa fa-circle-o text-yellow',
]"
></i>
<span>{{ child.name }}</span>
</a>
</li>
</ul>
</li>
</ul>
<!-- /.sidebar-menu -->
</section>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper" style="height: 100%">
<!-- Content Header (Page header) -->
<section
class="content-header"
:style="[
childMenu.name && childMenu.name != ''
? 'display:block;'
: 'display:none;',
]"
>
<h1>
{{ childMenu.name }}
<small>{{ childMenu.description }}</small>
</h1>
<ol class="breadcrumb">
<li>
<a href="#"
><i class="fa fa-dashboard"></i> {{ childMenu.parentName }}</a
>
</li>
<li class="active">{{ childMenu.name }}</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<!-- <section class="content" style="height: 100%; overflow: hidden; overflow: scroll;"> -->
<!-- Your Page Content Here -->
<component :is="componentName"></component>
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<div
class="modal fade"
id="tipModal"
tabindex="-1"
role="dialog"
aria-labelledby="modalLabel"
>
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">提示信息</h4>
</div>
<div class="modal-body" id="tipMsg"></div>
</div>
</div>
<div class="modal fade loading" style="background: #00000040;" tabindex="-1" role="dialog"
aria-labelledby="loadingModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="loadingGif" style="position: fixed;"><img :src="loading"></div>
</div>
<div
class="modal fade"
id="confirmModal"
tabindex="-1"
role="dialog"
aria-labelledby="modalLabel"
data-backdrop="static"
>
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">确认信息</h4>
</div>
<div class="modal-body" id="confirmMsg"></div>
</div>
</div>
</div>
<div
class="modal fade loading"
style="background: #00000040"
tabindex="-1"
role="dialog"
aria-labelledby="loadingModalLabel"
aria-hidden="true"
data-backdrop="static"
data-keyboard="false"
>
<div class="loadingGif" style="position: fixed; left: 50%; top: 50%">
<img
src="https://img.zcool.cn/community/0111345d94b0b8a801211d53cbd04d.gif"
style="width: 10%"
/>
</div>
</div>
</template>
<script>
import store from '@/store';
import { getStore } from '@/utils/store';
import loading from '@/assets/images/loading.gif';
import store from "@/store";
import Vue from "vue";
import { getStore } from "@/utils/store";
export default {
name: 'MaintainerView',
data() {
return {
componentName: "",
username: "",
avatar: "",
parentMenus: [],
childMenus: [],
childMenu: {
name: "",
parentName: "",
description: "",
}
};
name: "MaintainerView",
data() {
return {
componentName: "",
username: "",
avatar: "",
parentMenus: [],
childMenus: [],
childMenu: {
name: "",
parentName: "",
description: "",
},
};
},
created() {
this.getMenu();
this.username = store.getters.username;
this.avatar = store.getters.avatar;
},
methods: {
getMenu() {
this.parentMenus = getStore({ name: "parent_menus" });
this.childMenus = getStore({ name: "child_menus" });
store.dispatch("getMenu").then((res) => {
this.parentMenus = res.parents;
this.childMenus = res.childs;
});
},
created() {
this.getMenu();
this.username = store.getters.username;
this.avatar = store.getters.avatar;
getChilds(parentId) {
return this.childMenus.filter((v) => v.parentid == parentId);
},
methods: {
getMenu() {
let parentMenus = getStore({ name: 'parent_menus' });
let childMenus = getStore({ name: 'child_menus' });
if (parentMenus && childMenus && parentMenus.length > 0 && childMenus.length > 0) {
this.parentMenus = parentMenus;
this.childMenus = childMenus;
} else {
store.dispatch('getMenu').then(res => {
this.parentMenus = res.parents;
this.childMenus = res.childs;
});
}
},
getChilds(parentId) {
return this.childMenus.filter(v => v.parentid == parentId);
},
getChildLength(parentId) {
return this.childMenus.filter(v => v.parentid == parentId).length;
},
handleClick(menu) {
this.childMenu.name = menu.name;
this.childMenu.parentName = menu.parentstr;
this.childMenu.description = menu.description;
store.dispatch('getViewComponent', menu.path).then(componentName => {
console.log(componentName);
this.componentName = componentName;
});
},
search() {
let text = $("input[type='text']").val();
this.childMenus = store.getters.childMenus.filter(v => v.name.indexOf(text) >= 0);
if (!this.childMenus.length || this.childMenus.length == 0) {
this.parentMenus = store.getters.parentMenus.filter(v => v.name.indexOf(text) >= 0);
} else {
let parentIds = this.childMenus.map(v => v.parentid);
let parentMenus = store.getters.parentMenus.filter(v => v.name.indexOf(text) >= 0);
if (parentMenus && parentMenus.length > 0) {
parentMenus.forEach(v => {
parentIds.push(v.id);
});
}
console.log(parentIds);
this.parentMenus = store.getters.parentMenus.filter(v1 => parentIds.filter(v2 => v1.id == v2).length > 0);
this.childMenus = store.getters.childMenus.filter(v1 => parentIds.filter(v2 => v1.parentid == v2).length > 0);
}
getChildLength(parentId) {
return this.childMenus.filter((v) => v.parentid == parentId).length;
},
handleClick(menu) {
this.childMenu.name = menu.name;
this.childMenu.parentName = menu.parentstr;
this.childMenu.description = menu.description;
store.dispatch("getViewComponent", menu.path).then((componentName) => {
this.componentName = componentName;
const files = require.context("@/views", true, /\.vue$/);
let components = {};
files.keys().forEach((key) => {
components[key.replace(/(\.\/|\.vue)/g, "")] = files(key).default;
});
});
},
search() {
let text = $("input[type='text']").val();
this.childMenus = store.getters.childMenus.filter(
(v) => v.name.indexOf(text) >= 0
);
if (!this.childMenus.length || this.childMenus.length == 0) {
this.parentMenus = store.getters.parentMenus.filter(
(v) => v.name.indexOf(text) >= 0
);
} else {
let parentIds = this.childMenus.map((v) => v.parentid);
let parentMenus = store.getters.parentMenus.filter(
(v) => v.name.indexOf(text) >= 0
);
if (parentMenus && parentMenus.length > 0) {
parentMenus.forEach((v) => {
parentIds.push(v.id);
});
}
this.parentMenus = store.getters.parentMenus.filter(
(v1) => parentIds.filter((v2) => v1.id == v2).length > 0
);
}
},
}
},
};
</script>
<style scoped>
@import '@/css/main.css';
@import "@/css/main.css";
</style>

View File

@@ -1,8 +1,8 @@
export default {
KEY: "piko",
EXCLUDES: [
"/login/login.action",
"/login/sendSmsCode.action",
"/login/login",
"/login/sendSmsCode",
],
NEED_LOGOUT: "needLogout",
};

View File

@@ -1,7 +1,9 @@
import { createApp } from 'vue'
// @ts-ignore
import App from './App.vue'
import router from './router'
import store from './store'
import 'jquery'
import 'jquery.md5'
import 'bootstrap/dist/css/bootstrap.min.css'
@@ -45,10 +47,30 @@ import '@/assets/plugins/jQuery-Validation-Engine/js/languages/jquery.validation
import '@/assets/plugins/bootstrap-treeview/css/bootstrap-treeview.min.css'
import '@/assets/plugins/bootstrap-treeview/js/bootstrap-treeview.min.js'
// @ts-ignore
import components from '@/utils/components.js'
import Vue from 'vue';
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
import '@/css/public.css'
createApp(App).use(store).use(router).use(components).mount('#app')
import VueClipboard from 'vue-clipboard2'
// import 'vue-clipboard2/dist/vue-clipboard.min.css'
import { copy } from './utils/copy.js';
const app = createApp(App)
app.config.globalProperties.$copy = function (text) {
copy(text, this);
};
// 全局错误处理
window.onerror = function (message, source, lineno, colno, error) {
console.log(error)
// 判断是否是 'insertBefore' 错误
if (error instanceof TypeError && message.includes('insertBefore')) {
console.error('捕获到 TypeError 错误:', error);
window.location.reload();
// 你可以在这里处理错误,比如记录日志或执行其他操作
return true; // 阻止浏览器默认的错误处理
}
return false; // 默认处理其他类型的错误
};
app.config.warnHandler = () => null;
app.use(store).use(router).use(components).use(VueClipboard).mount('#app')

81
src/mixin/mixRegion.js Normal file
View File

@@ -0,0 +1,81 @@
// 公共混入 用户区服处理
/**
* 注意: 使用混入,在选择区服切换的时候会添加搜索的区服,
* 所以页面data如果没有searchForm: { region: null }, 需要加上,否则查询searchForm为空
*/
export default {
data() {
return {
userRegion: JSON.parse(localStorage.getItem('user_region')),
regionEnum: [
{ value: 1, name: 'A区' },
{ value: 2, name: 'B区' },
{ value: 3, name: 'C区' },
{ value: 4, name: 'D区' },
{ value: 5, name: 'E区' },
{ value: 6, name: 'F区' }
],
userAreaRegion: [], //拥有权限的区域列表
region: null, //展示的区域
}
},
created() {
this.handleUserRegion()
},
methods: {
handleUserRegion() {
if (this.userRegion.length == 0) {
this.$message.error({
message: '请先联系管理员设置你的区服权限!',
duration: 5000
});
return
}
this.userAreaRegion = this.regionEnum.filter(item => this.userRegion.includes(item.value));
this.region = this.userAreaRegion[0].value;
this.searchForm.region = this.region;
console.log('当前查看区服:', this.region);
},
handSearchRegion() {
if (this.$refs['searchForm']) { // 检查 this.$refs['searchForm'] 是否存在
this.$refs['searchForm'].validate((valid) => {
if (valid) {
this.pageParams.pageNo = 1;
this.getData();
}
});
} else {
this.pageParams.pageNo = 1;
this.getData();
}
},
},
computed: {
regionType() {
const { regionEnum } = this;
return function (value) {
for (let item of regionEnum) {
if (item.value === value) {
return item.name;
}
}
return '';
};
}
},
watch: {
region: {
handler(newVal, oldVal) {
this.searchForm.region = newVal;
// 防止初始化重复调用查询表单接口
if (oldVal != null) {
this.handSearchRegion()
}
},
// immediate: true, //立即监听
},
}
}

View File

@@ -51,6 +51,7 @@ export default {
},
getViewComponent(context, path) {
let component = path;
console.log(component)
if (path && path.endsWith('.html')) {
const pathArray = path.split('/');
const routeName = toCamelCase(pathArray[pathArray.length - 1].replace('.html', ''));

View File

@@ -1,42 +1,50 @@
export default {
idstr: null,
// 是否有且只选择了一项
isSelectOne: function (idstr) {
if ($(idstr).bootstrapTable('getSelections').length == 1) {
isSelectOne: function (id) {
if ($(id).bootstrapTable('getSelections').length == 1) {
return true;
}
return false;
},
//是否选择了至少一项
hasSelectAny: function (idstr) {
if ($(idstr).bootstrapTable('getSelections').length > 0) {
hasSelectAny: function (id) {
if ($(id).bootstrapTable('getSelections').length > 0) {
return true;
}
return false;
},
// 获取选择的一项
getOneSelectItem: function (idstr) {
return $(idstr).bootstrapTable('getSelections')[0];
getOneSelectItem: function (id) {
return $(id).bootstrapTable('getSelections')[0];
},
// 已经选择的记录
getAllSelectItems: function (idstr) {
return $(idstr).bootstrapTable('getSelections');
getAllSelectItems: function (id) {
return $(id).bootstrapTable('getSelections');
},
getRowByUniqueId: function (idstr, id) {
return $(idstr).bootstrapTable('getRowByUniqueId', id);
getRowByUniqueId: function (id, recordId) {
return $(id).bootstrapTable('getRowByUniqueId', recordId);
},
// 已选择的项数量
selectLength: function (idstr) {
return $(idstr).bootstrapTable('getSelections').length;
selectLength: function (id) {
return $(id).bootstrapTable('getSelections').length;
},
// 刷新
doRefresh: function (idstr) {
$(idstr).bootstrapTable('refresh');
doRefresh: function (id) {
$(id).bootstrapTable('refresh');
},
unCheckAll: function (idstr) {
$(idstr).bootstrapTable('uncheckAll');
unCheckAll: function (id) {
$(id).bootstrapTable('uncheckAll');
},
doRefreshAndToPage1: function (idstr) {
$(idstr).bootstrapTable('selectPage', 1);
doRefreshAndToPage1: function (id) {
$(id).bootstrapTable('selectPage', 1);
},
getData: function(id) {
return $(id).bootstrapTable('getData');
},
destroy: function(id) {
$(id).bootstrapTable('destroy');
},
load: function(id, data) {
$(id).bootstrapTable('load', data);
}
}

11
src/utils/copy.js Normal file
View File

@@ -0,0 +1,11 @@
// copy.js
export function copy(text, vueInstance) {
vueInstance.$copyText(text)
.then(() => {
vueInstance.$message.success('已复制');
})
.catch(() => {
vueInstance.$message.warning('复制失败');
});
}

684
src/utils/excel/Blob.js Normal file
View File

@@ -0,0 +1,684 @@
// /* Blob.js
// * A Blob, File, FileReader & URL implementation.
// * 2019-04-19
// *
// * By Eli Grey, http://eligrey.com
// * By Jimmy Wärting, https://github.com/jimmywarting
// * License: MIT
// * See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md
// */
// ; (function () {
// var global = typeof window === 'object'
// ? window : typeof self === 'object'
// ? self : this
// var BlobBuilder = global.BlobBuilder
// || global.WebKitBlobBuilder
// || global.MSBlobBuilder
// || global.MozBlobBuilder
// global.URL = global.URL || global.webkitURL || function (href, a) {
// a = document.createElement('a')
// a.href = href
// return a
// }
// var origBlob = global.Blob
// var createObjectURL = URL.createObjectURL
// var revokeObjectURL = URL.revokeObjectURL
// var strTag = global.Symbol && global.Symbol.toStringTag
// var blobSupported = false
// var blobSupportsArrayBufferView = false
// var arrayBufferSupported = !!global.ArrayBuffer
// var blobBuilderSupported = BlobBuilder
// && BlobBuilder.prototype.append
// && BlobBuilder.prototype.getBlob
// try {
// // Check if Blob constructor is supported
// blobSupported = new Blob(['ä']).size === 2
// // Check if Blob constructor supports ArrayBufferViews
// // Fails in Safari 6, so we need to map to ArrayBuffers there.
// blobSupportsArrayBufferView = new Blob([new Uint8Array([1, 2])]).size === 2
// } catch (e) { }
// /**
// * Helper function that maps ArrayBufferViews to ArrayBuffers
// * Used by BlobBuilder constructor and old browsers that didn't
// * support it in the Blob constructor.
// */
// function mapArrayBufferViews(ary) {
// return ary.map(function (chunk) {
// if (chunk.buffer instanceof ArrayBuffer) {
// var buf = chunk.buffer
// // if this is a subarray, make a copy so we only
// // include the subarray region from the underlying buffer
// if (chunk.byteLength !== buf.byteLength) {
// var copy = new Uint8Array(chunk.byteLength)
// copy.set(new Uint8Array(buf, chunk.byteOffset, chunk.byteLength))
// buf = copy.buffer
// }
// return buf
// }
// return chunk
// })
// }
// function BlobBuilderConstructor(ary, options) {
// options = options || {}
// var bb = new BlobBuilder()
// mapArrayBufferViews(ary).forEach(function (part) {
// bb.append(part)
// })
// return options.type ? bb.getBlob(options.type) : bb.getBlob()
// }
// function BlobConstructor(ary, options) {
// return new origBlob(mapArrayBufferViews(ary), options || {})
// }
// if (global.Blob) {
// BlobBuilderConstructor.prototype = Blob.prototype
// BlobConstructor.prototype = Blob.prototype
// }
// /********************************************************/
// /* String Encoder fallback */
// /********************************************************/
// function stringEncode(string) {
// var pos = 0
// var len = string.length
// var Arr = global.Uint8Array || Array // Use byte array when possible
// var at = 0 // output position
// var tlen = Math.max(32, len + (len >> 1) + 7) // 1.5x size
// var target = new Arr((tlen >> 3) << 3) // ... but at 8 byte offset
// while (pos < len) {
// var value = string.charCodeAt(pos++)
// if (value >= 0xd800 && value <= 0xdbff) {
// // high surrogate
// if (pos < len) {
// var extra = string.charCodeAt(pos)
// if ((extra & 0xfc00) === 0xdc00) {
// ++pos
// value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000
// }
// }
// if (value >= 0xd800 && value <= 0xdbff) {
// continue // drop lone surrogate
// }
// }
// // expand the buffer if we couldn't write 4 bytes
// if (at + 4 > target.length) {
// tlen += 8 // minimum extra
// tlen *= (1.0 + (pos / string.length) * 2) // take 2x the remaining
// tlen = (tlen >> 3) << 3 // 8 byte offset
// var update = new Uint8Array(tlen)
// update.set(target)
// target = update
// }
// if ((value & 0xffffff80) === 0) { // 1-byte
// target[at++] = value // ASCII
// continue
// } else if ((value & 0xfffff800) === 0) { // 2-byte
// target[at++] = ((value >> 6) & 0x1f) | 0xc0
// } else if ((value & 0xffff0000) === 0) { // 3-byte
// target[at++] = ((value >> 12) & 0x0f) | 0xe0
// target[at++] = ((value >> 6) & 0x3f) | 0x80
// } else if ((value & 0xffe00000) === 0) { // 4-byte
// target[at++] = ((value >> 18) & 0x07) | 0xf0
// target[at++] = ((value >> 12) & 0x3f) | 0x80
// target[at++] = ((value >> 6) & 0x3f) | 0x80
// } else {
// // FIXME: do we care
// continue
// }
// target[at++] = (value & 0x3f) | 0x80
// }
// return target.slice(0, at)
// }
// /********************************************************/
// /* String Decoder fallback */
// /********************************************************/
// function stringDecode(buf) {
// var end = buf.length
// var res = []
// var i = 0
// while (i < end) {
// var firstByte = buf[i]
// var codePoint = null
// var bytesPerSequence = (firstByte > 0xEF) ? 4
// : (firstByte > 0xDF) ? 3
// : (firstByte > 0xBF) ? 2
// : 1
// if (i + bytesPerSequence <= end) {
// var secondByte, thirdByte, fourthByte, tempCodePoint
// switch (bytesPerSequence) {
// case 1:
// if (firstByte < 0x80) {
// codePoint = firstByte
// }
// break
// case 2:
// secondByte = buf[i + 1]
// if ((secondByte & 0xC0) === 0x80) {
// tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
// if (tempCodePoint > 0x7F) {
// codePoint = tempCodePoint
// }
// }
// break
// case 3:
// secondByte = buf[i + 1]
// thirdByte = buf[i + 2]
// if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
// tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
// if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
// codePoint = tempCodePoint
// }
// }
// break
// case 4:
// secondByte = buf[i + 1]
// thirdByte = buf[i + 2]
// fourthByte = buf[i + 3]
// if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
// tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
// if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
// codePoint = tempCodePoint
// }
// }
// }
// }
// if (codePoint === null) {
// // we did not generate a valid codePoint so insert a
// // replacement char (U+FFFD) and advance only 1 byte
// codePoint = 0xFFFD
// bytesPerSequence = 1
// } else if (codePoint > 0xFFFF) {
// // encode to utf16 (surrogate pair dance)
// codePoint -= 0x10000
// res.push(codePoint >>> 10 & 0x3FF | 0xD800)
// codePoint = 0xDC00 | codePoint & 0x3FF
// }
// res.push(codePoint)
// i += bytesPerSequence
// }
// var len = res.length
// var str = ''
// var i = 0
// while (i < len) {
// str += String.fromCharCode.apply(String, res.slice(i, i += 0x1000))
// }
// return str
// }
// // string -> buffer
// var textEncode = typeof TextEncoder === 'function'
// ? TextEncoder.prototype.encode.bind(new TextEncoder())
// : stringEncode
// // buffer -> string
// var textDecode = typeof TextDecoder === 'function'
// ? TextDecoder.prototype.decode.bind(new TextDecoder())
// : stringDecode
// function FakeBlobBuilder() {
// function isDataView(obj) {
// return obj && DataView.prototype.isPrototypeOf(obj)
// }
// function bufferClone(buf) {
// var view = new Array(buf.byteLength)
// var array = new Uint8Array(buf)
// var i = view.length
// while (i--) {
// view[i] = array[i]
// }
// return view
// }
// function array2base64(input) {
// var byteToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
// var output = []
// for (var i = 0; i < input.length; i += 3) {
// var byte1 = input[i]
// var haveByte2 = i + 1 < input.length
// var byte2 = haveByte2 ? input[i + 1] : 0
// var haveByte3 = i + 2 < input.length
// var byte3 = haveByte3 ? input[i + 2] : 0
// var outByte1 = byte1 >> 2
// var outByte2 = ((byte1 & 0x03) << 4) | (byte2 >> 4)
// var outByte3 = ((byte2 & 0x0F) << 2) | (byte3 >> 6)
// var outByte4 = byte3 & 0x3F
// if (!haveByte3) {
// outByte4 = 64
// if (!haveByte2) {
// outByte3 = 64
// }
// }
// output.push(
// byteToCharMap[outByte1], byteToCharMap[outByte2],
// byteToCharMap[outByte3], byteToCharMap[outByte4]
// )
// }
// return output.join('')
// }
// var create = Object.create || function (a) {
// function c() { }
// c.prototype = a
// return new c()
// }
// if (arrayBufferSupported) {
// var viewClasses = [
// '[object Int8Array]',
// '[object Uint8Array]',
// '[object Uint8ClampedArray]',
// '[object Int16Array]',
// '[object Uint16Array]',
// '[object Int32Array]',
// '[object Uint32Array]',
// '[object Float32Array]',
// '[object Float64Array]'
// ]
// var isArrayBufferView = ArrayBuffer.isView || function (obj) {
// return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
// }
// }
// function concatTypedarrays(chunks) {
// var size = 0
// var i = chunks.length
// while (i--) { size += chunks[i].length }
// var b = new Uint8Array(size)
// var offset = 0
// for (i = 0, l = chunks.length; i < l; i++) {
// var chunk = chunks[i]
// b.set(chunk, offset)
// offset += chunk.byteLength || chunk.length
// }
// return b
// }
// /********************************************************/
// /* Blob constructor */
// /********************************************************/
// function Blob(chunks, opts) {
// chunks = chunks || []
// opts = opts == null ? {} : opts
// for (var i = 0, len = chunks.length; i < len; i++) {
// var chunk = chunks[i]
// if (chunk instanceof Blob) {
// chunks[i] = chunk._buffer
// } else if (typeof chunk === 'string') {
// chunks[i] = textEncode(chunk)
// } else if (arrayBufferSupported && (ArrayBuffer.prototype.isPrototypeOf(chunk) || isArrayBufferView(chunk))) {
// chunks[i] = bufferClone(chunk)
// } else if (arrayBufferSupported && isDataView(chunk)) {
// chunks[i] = bufferClone(chunk.buffer)
// } else {
// chunks[i] = textEncode(String(chunk))
// }
// }
// this._buffer = global.Uint8Array
// ? concatTypedarrays(chunks)
// : [].concat.apply([], chunks)
// this.size = this._buffer.length
// this.type = opts.type || ''
// if (/[^\u0020-\u007E]/.test(this.type)) {
// this.type = ''
// } else {
// this.type = this.type.toLowerCase()
// }
// }
// Blob.prototype.arrayBuffer = function () {
// return Promise.resolve(this._buffer)
// }
// Blob.prototype.text = function () {
// return Promise.resolve(textDecode(this._buffer))
// }
// Blob.prototype.slice = function (start, end, type) {
// var slice = this._buffer.slice(start || 0, end || this._buffer.length)
// return new Blob([slice], { type: type })
// }
// Blob.prototype.toString = function () {
// return '[object Blob]'
// }
// /********************************************************/
// /* File constructor */
// /********************************************************/
// function File(chunks, name, opts) {
// opts = opts || {}
// var a = Blob.call(this, chunks, opts) || this
// a.name = name.replace(/\//g, ':')
// a.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date()
// a.lastModified = +a.lastModifiedDate
// return a
// }
// File.prototype = create(Blob.prototype)
// File.prototype.constructor = File
// if (Object.setPrototypeOf) {
// Object.setPrototypeOf(File, Blob)
// } else {
// try { File.__proto__ = Blob } catch (e) { }
// }
// File.prototype.toString = function () {
// return '[object File]'
// }
// /********************************************************/
// /* FileReader constructor */
// /********************************************************/
// function FileReader() {
// if (!(this instanceof FileReader)) {
// throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")
// }
// var delegate = document.createDocumentFragment()
// this.addEventListener = delegate.addEventListener
// this.dispatchEvent = function (evt) {
// var local = this['on' + evt.type]
// if (typeof local === 'function') local(evt)
// delegate.dispatchEvent(evt)
// }
// this.removeEventListener = delegate.removeEventListener
// }
// function _read(fr, blob, kind) {
// if (!(blob instanceof Blob)) {
// throw new TypeError("Failed to execute '" + kind + "' on 'FileReader': parameter 1 is not of type 'Blob'.")
// }
// fr.result = ''
// setTimeout(function () {
// this.readyState = FileReader.LOADING
// fr.dispatchEvent(new Event('load'))
// fr.dispatchEvent(new Event('loadend'))
// })
// }
// FileReader.EMPTY = 0
// FileReader.LOADING = 1
// FileReader.DONE = 2
// FileReader.prototype.error = null
// FileReader.prototype.onabort = null
// FileReader.prototype.onerror = null
// FileReader.prototype.onload = null
// FileReader.prototype.onloadend = null
// FileReader.prototype.onloadstart = null
// FileReader.prototype.onprogress = null
// FileReader.prototype.readAsDataURL = function (blob) {
// _read(this, blob, 'readAsDataURL')
// this.result = 'data:' + blob.type + ';base64,' + array2base64(blob._buffer)
// }
// FileReader.prototype.readAsText = function (blob) {
// _read(this, blob, 'readAsText')
// this.result = textDecode(blob._buffer)
// }
// FileReader.prototype.readAsArrayBuffer = function (blob) {
// _read(this, blob, 'readAsText')
// // return ArrayBuffer when possible
// this.result = (blob._buffer.buffer || blob._buffer).slice()
// }
// FileReader.prototype.abort = function () { }
// /********************************************************/
// /* URL */
// /********************************************************/
// URL.createObjectURL = function (blob) {
// return blob instanceof Blob
// ? 'data:' + blob.type + ';base64,' + array2base64(blob._buffer)
// : createObjectURL.call(URL, blob)
// }
// URL.revokeObjectURL = function (url) {
// revokeObjectURL && revokeObjectURL.call(URL, url)
// }
// /********************************************************/
// /* XHR */
// /********************************************************/
// var _send = global.XMLHttpRequest && global.XMLHttpRequest.prototype.send
// if (_send) {
// XMLHttpRequest.prototype.send = function (data) {
// if (data instanceof Blob) {
// this.setRequestHeader('Content-Type', data.type)
// _send.call(this, textDecode(data._buffer))
// } else {
// _send.call(this, data)
// }
// }
// }
// global.FileReader = FileReader
// global.File = File
// global.Blob = Blob
// }
// function fixFileAndXHR() {
// var isIE = !!global.ActiveXObject || (
// '-ms-scroll-limit' in document.documentElement.style &&
// '-ms-ime-align' in document.documentElement.style
// )
// // Monkey patched
// // IE don't set Content-Type header on XHR whose body is a typed Blob
// // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6047383
// var _send = global.XMLHttpRequest && global.XMLHttpRequest.prototype.send
// if (isIE && _send) {
// XMLHttpRequest.prototype.send = function (data) {
// if (data instanceof Blob) {
// this.setRequestHeader('Content-Type', data.type)
// _send.call(this, data)
// } else {
// _send.call(this, data)
// }
// }
// }
// try {
// new File([], '')
// } catch (e) {
// try {
// var klass = new Function('class File extends Blob {' +
// 'constructor(chunks, name, opts) {' +
// 'opts = opts || {};' +
// 'super(chunks, opts || {});' +
// 'this.name = name.replace(/\//g, ":");' +
// 'this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date();' +
// 'this.lastModified = +this.lastModifiedDate;' +
// '}};' +
// 'return new File([], ""), File'
// )()
// global.File = klass
// } catch (e) {
// var klass = function (b, d, c) {
// var blob = new Blob(b, c)
// var t = c && void 0 !== c.lastModified ? new Date(c.lastModified) : new Date()
// blob.name = d.replace(/\//g, ':')
// blob.lastModifiedDate = t
// blob.lastModified = +t
// blob.toString = function () {
// return '[object File]'
// }
// if (strTag) {
// blob[strTag] = 'File'
// }
// return blob
// }
// global.File = klass
// }
// }
// }
// if (blobSupported) {
// fixFileAndXHR()
// global.Blob = blobSupportsArrayBufferView ? global.Blob : BlobConstructor
// } else if (blobBuilderSupported) {
// fixFileAndXHR()
// global.Blob = BlobBuilderConstructor
// } else {
// FakeBlobBuilder()
// }
// if (strTag) {
// File.prototype[strTag] = 'File'
// Blob.prototype[strTag] = 'Blob'
// FileReader.prototype[strTag] = 'FileReader'
// }
// var blob = global.Blob.prototype
// var stream
// function promisify(obj) {
// return new Promise(function (resolve, reject) {
// obj.onload =
// obj.onerror = function (evt) {
// obj.onload =
// obj.onerror = null
// evt.type === 'load'
// ? resolve(obj.result || obj)
// : reject(new Error('Failed to read the blob/file'))
// }
// })
// }
// try {
// new ReadableStream({ type: 'bytes' })
// stream = function stream() {
// var position = 0
// var blob = this
// return new ReadableStream({
// type: 'bytes',
// autoAllocateChunkSize: 524288,
// pull: function (controller) {
// var v = controller.byobRequest.view
// var chunk = blob.slice(position, position + v.byteLength)
// return chunk.arrayBuffer()
// .then(function (buffer) {
// var uint8array = new Uint8Array(buffer)
// var bytesRead = uint8array.byteLength
// position += bytesRead
// v.set(uint8array)
// controller.byobRequest.respond(bytesRead)
// if (position >= blob.size)
// controller.close()
// })
// }
// })
// }
// } catch (e) {
// try {
// new ReadableStream({})
// stream = function stream(blob) {
// var position = 0
// var blob = this
// return new ReadableStream({
// pull: function (controller) {
// var chunk = blob.slice(position, position + 524288)
// return chunk.arrayBuffer().then(function (buffer) {
// position += buffer.byteLength
// var uint8array = new Uint8Array(buffer)
// controller.enqueue(uint8array)
// if (position == blob.size)
// controller.close()
// })
// }
// })
// }
// } catch (e) {
// try {
// new Response('').body.getReader().read()
// stream = function stream() {
// return (new Response(this)).body
// }
// } catch (e) {
// stream = function stream() {
// throw new Error('Include https://github.com/MattiasBuelens/web-streams-polyfill')
// }
// }
// }
// }
// if (!blob.arrayBuffer) {
// blob.arrayBuffer = function arrayBuffer() {
// var fr = new FileReader()
// fr.readAsArrayBuffer(this)
// return promisify(fr)
// }
// }
// if (!blob.text) {
// blob.text = function text() {
// var fr = new FileReader()
// fr.readAsText(this)
// return promisify(fr)
// }
// }
// if (!blob.stream) {
// blob.stream = stream
// }
// })()

View File

@@ -0,0 +1,141 @@
/* eslint-disable */
require('script-loader!file-saver');
// require('script-loader!./Blob.js');
require('script-loader!xlsx/dist/xlsx.core.min');
function generateArray(table) {
var out = [];
var rows = table.querySelectorAll('tr');
var ranges = [];
for (var R = 0; R < rows.length; ++R) {
var outRow = [];
var row = rows[R];
var columns = row.querySelectorAll('td');
for (var C = 0; C < columns.length; ++C) {
var cell = columns[C];
var colspan = cell.getAttribute('colspan');
var rowspan = cell.getAttribute('rowspan');
var cellValue = cell.innerText;
if (cellValue !== "" && cellValue == +cellValue) cellValue = +cellValue;
//Skip ranges
ranges.forEach(function (range) {
if (R >= range.s.r && R <= range.e.r && outRow.length >= range.s.c && outRow.length <= range.e.c) {
for (var i = 0; i <= range.e.c - range.s.c; ++i) outRow.push(null);
}
});
//Handle Row Span
if (rowspan || colspan) {
rowspan = rowspan || 1;
colspan = colspan || 1;
ranges.push({s: {r: R, c: outRow.length}, e: {r: R + rowspan - 1, c: outRow.length + colspan - 1}});
}
;
//Handle Value
outRow.push(cellValue !== "" ? cellValue : null);
//Handle Colspan
if (colspan) for (var k = 0; k < colspan - 1; ++k) outRow.push(null);
}
out.push(outRow);
}
return [out, ranges];
};
function datenum(v, date1904) {
if (date1904) v += 1462;
var epoch = Date.parse(v);
return (epoch - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1000);
}
function sheet_from_array_of_arrays(data, opts) {
var ws = {};
var range = {s: {c: 10000000, r: 10000000}, e: {c: 0, r: 0}};
for (var R = 0; R != data.length; ++R) {
for (var C = 0; C != data[R].length; ++C) {
if (range.s.r > R) range.s.r = R;
if (range.s.c > C) range.s.c = C;
if (range.e.r < R) range.e.r = R;
if (range.e.c < C) range.e.c = C;
var cell = {v: data[R][C]};
if (cell.v == null) continue;
var cell_ref = XLSX.utils.encode_cell({c: C, r: R});
if (typeof cell.v === 'number') cell.t = 'n';
else if (typeof cell.v === 'boolean') cell.t = 'b';
else if (cell.v instanceof Date) {
cell.t = 'n';
cell.z = XLSX.SSF._table[14];
cell.v = datenum(cell.v);
}
else cell.t = 's';
ws[cell_ref] = cell;
}
}
if (range.s.c < 10000000) ws['!ref'] = XLSX.utils.encode_range(range);
return ws;
}
function Workbook() {
if (!(this instanceof Workbook)) return new Workbook();
this.SheetNames = [];
this.Sheets = {};
}
function s2ab(s) {
var buf = new ArrayBuffer(s.length);
var view = new Uint8Array(buf);
for (var i = 0; i != s.length; ++i) view[i] = s.charCodeAt(i) & 0xFF;
return buf;
}
export function export_table_to_excel(id) {
var theTable = document.getElementById(id);
console.log('a')
var oo = generateArray(theTable);
var ranges = oo[1];
/* original data */
var data = oo[0];
var ws_name = "SheetJS";
console.log(data);
var wb = new Workbook(), ws = sheet_from_array_of_arrays(data);
/* add ranges to worksheet */
// ws['!cols'] = ['apple', 'banan'];
ws['!merges'] = ranges;
/* add worksheet to workbook */
wb.SheetNames.push(ws_name);
wb.Sheets[ws_name] = ws;
var wbout = XLSX.write(wb, {bookType: 'xlsx', bookSST: false, type: 'binary'});
saveAs(new Blob([s2ab(wbout)], {type: "application/octet-stream"}), "test.xlsx")
}
function formatJson(jsonData) {
console.log(jsonData)
}
export function export_json_to_excel(th, jsonData, defaultTitle) {
/* original data */
var data = jsonData;
data.unshift(th);
var ws_name = "SheetJS";
var wb = new Workbook(), ws = sheet_from_array_of_arrays(data);
/* add worksheet to workbook */
wb.SheetNames.push(ws_name);
wb.Sheets[ws_name] = ws;
var wbout = XLSX.write(wb, {bookType: 'xlsx', bookSST: false, type: 'binary'});
var title = defaultTitle || '列表'
saveAs(new Blob([s2ab(wbout)], {type: "application/octet-stream"}), title + ".xlsx")
}

11
src/utils/exportExcel.js Normal file
View File

@@ -0,0 +1,11 @@
function formatJson(filterVal, jsonData) {
return jsonData.map(v => filterVal.map(j => v[j]));
}
export const exportExcel = (tHeader, filterVal, data, excelName) => {
require.ensure([], () => {
const { export_json_to_excel } = require('./excel/Export2Excel.js');
const combineData = formatJson(filterVal, data);
export_json_to_excel(tHeader, combineData, excelName);
});
}

View File

@@ -47,4 +47,13 @@ export function apiResult(json) {
$("#tipMsg").text("请求失败,错误信息:" + json.message);
$("#tipModal").modal('show');
return false;
}
export function genQueryParam(json) {
if (!json) return ''
return cleanArray(Object.keys(json).map(key => {
if (json[key] === undefined) return ''
return encodeURIComponent(key) + '=' +
encodeURIComponent(json[key])
})).join('&');
}

View File

@@ -3,7 +3,7 @@ export const notifyNotice = () => {
console.log(window.Notification.permission);
if (window.Notification) {
$.ajax({
url: "/admin/dynamic/verify/notifySwitch.action",
url: "/admin/dynamic/verify/notifySwitch",
success: function (json) {
if (json == 'true') {
notifyInterval = setInterval(notify, 50000);
@@ -17,7 +17,7 @@ export const notifyNotice = () => {
function notify() {
$.ajax({
url: "/admin/dynamic/verify/notify.action",
url: "/admin/dynamic/verify/notify",
success: function (json) {
if (json != null && json != "" && json != undefined && json != 'undefined') {
var dynamicCount = json.dynamic;

View File

@@ -0,0 +1,20 @@
const partitionInfoMap = {
1: '英语区',
2: '阿拉伯语区',
4: '华语区',
8: '土耳其区',
}
export const partitionDesc = (val) => {
return Object.keys(partitionInfoMap).filter(k=>{
return(Number(val) & Number(k)) != 0
}).map(k=>partitionInfoMap[k]).join(",");
}
export const partitionIdArr = (val) => {
var arr =[];
Object.keys(partitionInfoMap).filter(k=>{
return(Number(val) & Number(k)) != 0
}).map(k=>arr.push(Number(k)));
return arr
}

107
src/utils/relDate.js Normal file
View File

@@ -0,0 +1,107 @@
export const formatDate = (value) => {
let timezone = 3; //目标时区时间东3区(东时区正数 西时区负数)
let offset_GMT = new Date(value).getTimezoneOffset(); // 本地时间和格林威治的时间差,单位为分钟
let nowDate = new Date(value).getTime(); // 本地时间距 1970 年 1 月 1 日午夜GMT 时间)之间的毫秒数
let date = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000);
// 提取年、月、日、小时、分钟和秒
let y = date.getFullYear();
let MM = date.getMonth() + 1;
MM = MM < 10 ? ('0' + MM) : MM;
let d = date.getDate();
d = d < 10 ? ('0' + d) : d;
let h = date.getHours();
h = h < 10 ? ('0' + h) : h;
let m = date.getMinutes();
m = m < 10 ? ('0' + m) : m;
let s = date.getSeconds();
s = s < 10 ? ('0' + s) : s;
return `${y}-${MM}-${d} ${h}:${m}:${s}`;
}
export const formatDate2 = (value) => {
let timezone = 3; //目标时区时间东3区(东时区正数 西时区负数)
let offset_GMT = new Date(value).getTimezoneOffset(); // 本地时间和格林威治的时间差,单位为分钟
let nowDate = new Date(value).getTime(); // 本地时间距 1970 年 1 月 1 日午夜GMT 时间)之间的毫秒数
let date = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000);
let y = date.getFullYear();
let MM = date.getMonth() + 1;
MM = MM < 10 ? ('0' + MM) : MM;
let d = date.getDate();
d = d < 10 ? ('0' + d) : d;
let h = date.getHours();
h = h < 10 ? ('0' + h) : h;
let m = date.getMinutes();
m = m < 10 ? ('0' + m) : m;
let s = date.getSeconds();
s = s < 10 ? ('0' + s) : s;
return `${y}/${MM}/${d} ${h}:${m}:${s}`;
}
export const formatDateYMD = (value) => {
let timezone = 3; //目标时区时间东3区(东时区正数 西时区负数)
let offset_GMT = new Date(value).getTimezoneOffset(); // 本地时间和格林威治的时间差,单位为分钟
let nowDate = new Date(value).getTime(); // 本地时间距 1970 年 1 月 1 日午夜GMT 时间)之间的毫秒数
let date = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000);
let y = date.getFullYear();
let MM = date.getMonth() + 1;
MM = MM < 10 ? ('0' + MM) : MM;
let d = date.getDate();
d = d < 10 ? ('0' + d) : d;
let h = date.getHours();
h = h < 10 ? ('0' + h) : h;
let m = date.getMinutes();
m = m < 10 ? ('0' + m) : m;
let s = date.getSeconds();
s = s < 10 ? ('0' + s) : s;
return `${y}/${MM}/${d}`;
}
export const formatDateYYYYMMDD = (value) => {
let date = new Date(value);
// 将时区设置为GMT+3
let gmtOffset = 3; // GMT+3时区偏移量为3小时
let localOffset = date.getTimezoneOffset() / 60; // 获取本地时区偏移量(以小时为单位)
let targetOffset = gmtOffset - localOffset; // 计算目标时区偏移量
date.setHours(date.getHours() + targetOffset); // 根据偏移量调整小时
const y = date.getFullYear();
let MM = date.getMonth() + 1;
MM = MM < 10 ? ('0' + MM) : MM;
let d = date.getDate();
d = d < 10 ? ('0' + d) : d;
let h = date.getHours();
h = h < 10 ? ('0' + h) : h;
let m = date.getMinutes();
m = m < 10 ? ('0' + m) : m;
let s = date.getSeconds();
s = s < 10 ? ('0' + s) : s;
return `${y}-${MM}-${d}`;
}
export const formatDateYYYYMM = (value) => {
let date = new Date(value);
// 将时区设置为GMT+3
let gmtOffset = 3; // GMT+3时区偏移量为3小时
let localOffset = date.getTimezoneOffset() / 60; // 获取本地时区偏移量(以小时为单位)
let targetOffset = gmtOffset - localOffset; // 计算目标时区偏移量
date.setHours(date.getHours() + targetOffset); // 根据偏移量调整小时
let y = date.getFullYear();
let MM = date.getMonth() + 1;
MM = MM < 10 ? ('0' + MM) : MM;
let d = date.getDate();
d = d < 10 ? ('0' + d) : d;
let h = date.getHours();
h = h < 10 ? ('0' + h) : h;
let m = date.getMinutes();
m = m < 10 ? ('0' + m) : m;
let s = date.getSeconds();
s = s < 10 ? ('0' + s) : s;
console.log(y, MM, d, h, s);
return `${y}-${MM}`;
}

View File

@@ -5,7 +5,7 @@ import global from "@/constants/global";
const service = axios.create();
import { ElMessage } from 'element-plus'
service.interceptors.request.use(config => {
console.log('config', config);
// console.log('config', config);
return config;
}, error => {
Promise.reject(error);
@@ -13,7 +13,7 @@ service.interceptors.request.use(config => {
service.interceptors.response.use(res => {
userLogout(res.headers[global.NEED_LOGOUT.toLowerCase()]);
console.log('res.data', res);
// console.log('res.data', res);
// if (res.data.code == 200) {
// ElMessage({
// message: "成功",

View File

@@ -1,6 +1,54 @@
//获取url中的参数
function getUrlParam(name) {
export function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg); //匹配目标参数
if (r != null) return unescape(r[2]); return null; //返回参数值
}
export function dateFormat (date, fmt) {
date = new Date(date);
var o = {
'M+': date.getMonth() + 1,
'd+': date.getDate(),
'h+': date.getHours(),
'm+': date.getMinutes(),
's+': date.getSeconds()
};
// 补全0
let padLeftZero = (str) => {
return ('00' + str).substr(str.length);
}
// 年份
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
}
// 月日时分秒
for (var k in o) {
if (new RegExp('(' + k + ')').test(fmt)) {
var str = o[k] + '';
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str));
}
}
date = o = padLeftZero = null;
return fmt;
}
export function buildSelectOption(id, defVal, array) {
let $select = $(id);
let children = $select.children();
if (children && children.length > 0) {
$select.empty();
}
for(let i in array) {
let obj = array[i];
let selected = false;
if (obj.value == defVal) {
selected = true;
}
$select.append('<option value="' + obj.value + '"' + (selected ? 'selected' : '') + '>' + obj.text + '</option>');
}
}

View File

@@ -0,0 +1,242 @@
<template>
<div class="box">
<!-- 选择分区 -->
<div class="inquire">
<div class="block">
<span class="demonstration">选择分区</span>
<el-select
v-model="inquire.partitionId"
style="width: 75%"
placeholder="请选择"
@change="handleChange"
>
<el-option
v-for="item in inquire.inquireonInfos"
:key="item.id"
:label="item.desc"
:value="item.id"
></el-option>
</el-select>
</div>
</div>
<!-- 表格 -->
<el-table
v-loading="loading"
:data="tableData"
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="seq" align="center" label="排序" />
<el-table-column prop="name" align="center" label="礼物面板类型" />
<el-table-column prop="enable" align="center" label="是否生效">
<template v-slot="scope">{{ scope.row.enable ? "是" : "否" }}</template>
</el-table-column>
<el-table-column align="center" label="操作">
<template v-slot="scope">
<el-button
@click="ediClick(scope.row)"
class="primary"
type="primary"
size="default"
>编辑</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 编辑弹窗 -->
<el-dialog v-model="eidDialog" :title="eidDialogTitle" width="30%" center>
<!-- 礼物面板类型 -->
<div style="margin-bottom: 25px; margin-top: 10px">
<span
style="display: inline-block; white-space: nowrap; margin-right: 70px"
class="col-sm-2 control-label"
>礼物面板类型</span
>
<el-input
v-model="eidObj.type"
style="width: 60%"
class="input"
placeholder="请输入"
disabled
></el-input>
</div>
<!-- 面板排序 -->
<div style="margin-bottom: 25px; margin-top: 10px">
<span
style="display: inline-block; white-space: nowrap; margin-right: 70px"
class="col-sm-2 control-label"
>面板排序-{{ eidText }}</span
>
<el-input
v-model="eidObj.seq"
style="width: 60%"
class="input"
placeholder="请输入"
></el-input>
</div>
<!-- 是否生效 -->
<div style="margin-bottom: 25px; margin-top: 10px">
<span
style="display: inline-block; white-space: nowrap; margin-right: 70px"
class="col-sm-2 control-label"
>是否生效</span
>
<el-select
v-model="eidObj.value"
style="width: 60%"
placeholder="请选择"
>
<el-option
v-for="item in eidObj.option"
:key="item.id"
:label="item.desc"
:value="item.id"
></el-option>
</el-select>
</div>
<template #footer>
<span class="dialog-footer">
<el-button @click="eidDialog = false">取消</el-button>
<el-button type="primary" @click="eidDialogClick()"> 确认 </el-button>
</span>
</template>
</el-dialog>
</div>
</template>
<script>
import { list, update } from "@/api/GiftPanelManagement/GiftPanelManagement";
// @ts-ignore
import { dateFormat } from "@/utils/system-helper";
// @ts-ignore
import { ElMessage } from "element-plus";
export default {
name: "GiftPanelManagement",
data() {
return {
loading: false,
//查询所需条件对象
inquire: {
partitionId: 4,
inquireonInfos: [
{ desc: "英语区", id: 1 },
{ desc: "阿拉伯区", id: 2 },
{ desc: "华语区", id: 4 },
{ desc: "土耳其区", id: 8 },
],
},
// 表格
tableData: [],
// 编辑
eidDialog: false,
eidDialogTitle: "",
eidText: "",
eidObjNew: {},
eidObj: {
type: "",
clientName: "",
seq: "",
value: "",
option: [
{
desc: "是",
id: true,
},
{
desc: "否",
id: false,
},
],
},
};
},
created() {
this.eidDialogTitle = `编辑礼物面板信息-华语区`;
this.eidText = `华语区`;
this.getData();
},
methods: {
// 查询接口
getData() {
this.loading = true;
list({
partitionId: this.inquire.partitionId,
}).then((res) => {
this.tableData = res.data;
this.loading = false;
});
},
ediClick(val) {
this.eidDialog = true;
this.eidObj.type = val.name;
this.eidObj.seq = val.seq;
this.eidObj.value = val.enable;
this.eidObjNew = val;
},
eidDialogClick() {
update({
enable: this.eidObj.value,
id: this.eidObjNew.id,
seq: this.eidObj.seq,
partitionId: this.inquire.partitionId,
}).then((res) => {
if (res.code == 200) {
ElMessage({
showClose: true,
message: "编辑成功",
type: "success",
});
this.eidDialog = false;
this.getData();
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
},
handleChange(val) {
console.log(val);
if (val == 1) {
this.eidDialogTitle = `编辑礼物面板信息-英语区`;
this.eidText = `英语区`;
} else if (val == 2) {
this.eidDialogTitle = `编辑礼物面板信息-阿拉伯区`;
this.eidText = `阿拉伯区`;
} else if (val == 4) {
this.eidDialogTitle = `编辑礼物面板信息-华语区`;
this.eidText = `华语区`;
}else if (val == 8) {
this.eidDialogTitle = `编辑礼物面板信息-土耳其区`;
this.eidText = `土耳其区`;
}
this.getData();
},
},
};
</script>
<style lang="less" scoped>
.box {
padding-top: 20px;
background: #ecf0f5;
.inquire {
display: inline-block;
margin-right: 70px;
span {
margin-right: 10px;
}
.input {
width: 180px;
margin-right: 10px;
}
}
.dialogTableVisibleBut {
display: block;
margin: 30px 0 0 830px;
}
.paginationClass {
margin: 15px 0 5px 0px;
}
}
</style>

View File

@@ -213,7 +213,7 @@ export default {
return param;
},
toolbar: '#toolbar',
url: '/admin/sms/list.action',
url: '/admin/sms/list',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -256,7 +256,7 @@ export default {
showLoading();
var option = ({
type: "POST",
url: "/admin/sms/uploadExcel.action",
url: "/admin/sms/uploadExcel",
cache: false,
contentType: false, //不可缺
processData: false, //不可缺
@@ -310,7 +310,7 @@ export default {
createTime: createTime,
sendTime: sendTime
};
var url = "/admin/sms/query/send.action";
var url = "/admin/sms/query/send";
if (confirm("按查询条件发送最多一次可发送一万条短信!已发送过的用户不会重复发送,你确认批量发送吗?")) {
sendSmsByData(data, url);
}
@@ -329,7 +329,7 @@ export default {
var data = {
ids: JSON.stringify(idArr)
}
var url = "/admin/sms/page/send.action";
var url = "/admin/sms/page/send";
if (confirm("你确认批量发送吗?")) {
sendSmsByData(data, url);
}
@@ -338,7 +338,7 @@ export default {
$("#table").on('click', '.opt-send', function () {
var id = $(this).attr("data-id");
var data = { recordId: id };
var url = "/admin/sms/send.action";
var url = "/admin/sms/send";
if (confirm("已经发送过的短信将会重复发送,确定重复发送短信吗?")) {
sendSmsByData(data, url);
}
@@ -349,7 +349,7 @@ export default {
if (confirm("删除的数据将不能找回,确定删除吗?")) {
$.ajax({
type: "post",
url: "/admin/sms/del.action",
url: "/admin/sms/del",
data: { recordId: id },
dataType: "json",
success: function (json) {
@@ -389,9 +389,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -62,7 +62,7 @@ export default {
}
$.ajax({
type: "POST",
url: "/admin/qiniu/uploadPatch.action",
url: "/admin/qiniu/uploadPatch",
data: data,
cache: false,
contentType: false, //不可缺

View File

@@ -0,0 +1,195 @@
<template>
<section class="content">
<div class="box box-primary">
<div class="box-body">
<section class="content-header">
<h1 id="itemTitle"></h1>
</section>
<!-- .content -->
<div id="table"></div>
<div id="toolbar">
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button id="updateImgs" class="btn btn-sm btn-primary">上传文件</button>
<h3 id="urlInfo"></h3>
<br />
</div>
</div>
</div>
</section>
<div class=" modal fade" id="fileUpload" tabindex="-1" role="dialog" aria-labelledby="modalLabel1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" id="modalLabel1">上传文件</h4>
</div>
<div class="modal-footer" style="height: 20%">
<span>上传文件</span>
<!--<input type="file" name="file" id="uploadFile">-->
<input type="file" name="logoFile1" id="logoFile1" onchange="setFiles(this);" style="display:inline;"
multiple>
<!--<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>-->
<!--<button type="button" class="btn btn-primary" id="upload">上传七牛</button>-->
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "TencentUploadAdminView",
setup() {
function setFiles(obj) {
$("#confirmMsg").text("正在上传,请稍后");
$("#confirmModal").modal('show');
var f = $(obj).val();
if (f == null || f == undefined || f == '') {
return false;
}
var filePaths = $(obj)[0].files;
var num = filePaths.length;
var data = new FormData();
for (var i = 0; i <= num - 1; i++) {
var file = $(obj)[0].files[i];
data.append('file_' + i, file);
}
$.ajax({
type: "POST",
url: "/admin/tencent/cos/uploadPatch",
data: data,
cache: false,
contentType: false, //不可缺
processData: false, //不可缺
dataType: "json",
success: function (res) {
$("#logoFile1").val("");
$("#confirmModal").modal('hide');
$("#fileUpload").modal('hide');
console.log(res)
if (res.code == 200) {
$("#tipMsg").text("上传成功");
$("#tipModal").modal('show');
buildResult(res.data);
} else {
$("#tipMsg").text("上传失败.");
$("#tipModal").modal('show');
}
}
});
}
window.setFiles = setFiles;
return {
setFiles
};
},
created() {
this.$nextTick(function () {
this.initData();
});
},
methods: {
initData() {
$("#updateImgs").click(function () {
$("#uploadFile").val("");
$("#fileUpload").modal('show');
});
$("#upload").click(function () {
$.ajaxFileUpload({
fileElementId: 'uploadFile', //需要上传的文件域的ID即<input type="file">的ID。
url: "/admin/tencent/cos/upload", //后台方法的路径
type: 'post', //当要提交自定义参数时这个参数要设置成post
dataType: 'json', //服务器返回的数据类型。可以为xml,script,json,html。如果不填写jQuery会自动判断。
secureuri: false, //是否启用安全提交默认为false。
async: true, //是否是异步
success: function (json) { //提交成功后自动执行的处理函数参数data就是服务器返回的数据。
console.log(json)
if (json.flag) {
$("#urlInfo").html(json.url);
$("#tipMsg").text("上传成功");
$("#tipModal").modal('show');
}
else {
$("#tipMsg").text("上传失败.");
$("#tipModal").modal('show');
}
$("#faceJsonImgsUpload").modal('hide');
},
error: function (data, status, e) { //提交失败自动执行的处理函数。
console.error(e);
$("#tipMsg").text("上传失败");
$("#tipModal").modal('show');
}
});
});
}
},
};
function buildResult(data) {
var $urlInfo = $('#urlInfo');
for (var i = 0; i < data.length; i++) {
var $p = $('<p />');
$p.html(data[i]);
$urlInfo.append($p);
}
}
</script>
<style scoped>
.bar1, .bar2 {
margin-bottom: 10px;
}
label.col-sm-1 {
padding: 0;
line-height: 30px;
text-align: right;
/*padding-right: 4px;*/
}
label.col-sm-1 {
padding: 0;
line-height: 30px;
text-align: right;
/*padding-right: 4px;*/
}
input, select {
margin-left: 8px;
margin-right: 8px;
}
.button-wrapper {
margin-top: 10px;
}
.record {
margin-top: 10px;
}
.record .title {
font-size: 16px;
}
.toggle-group {
display: none;
}
.tips {
font-size: 13px;
color: red;
}
.opt-group .col-sm-7 {
text-align: left;
}
</style>

View File

@@ -0,0 +1,355 @@
<template>
<div class="outer">
<div class="search">
<div class="searchLeft">
<span>用户平台ID</span>
<el-input
v-model="userId"
size="default"
placeholder="用户平台ID"
class="input"
></el-input>
</div>
</div>
<!-- 按钮 -->
<div class="buttonBox">
<el-button class="primary" type="primary" size="default" @click="add()"
>新增</el-button
>
<el-button class="primary" type="primary" size="default" @click="search()"
>查询</el-button
>
</div>
<!-- 列表 -->
<el-table
v-loading="loading"
:data="tableData"
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="erbanNo" align="center" label="用戶id" />
<el-table-column prop="nick" align="center" label="用戶昵称" />
<el-table-column prop="phone" align="center" label="手机号" />
<el-table-column prop="signTime" align="center" label="注册时间" />
<el-table-column prop="createTime" align="center" label="进入访问限制时间" />
<el-table-column prop="inviteCode" align="center" label="邀请码" />
<el-table-column prop="signDeviceId" align="center" label="注册设备" />
<el-table-column prop="deviceIds" align="center" label="访问设备" />
<el-table-column prop="lastCheckIpRegion" align="center" label="最近一次访问地点" />
<el-table-column align="center" label="平台"
><template v-slot="scope">{{
scope.row.os == "android" ? "安卓" : "苹果"
}}</template>
</el-table-column>
<el-table-column align="center" label="sim卡信息" width="150"
><template v-slot="scope">
<div v-html="tableArrFormat(scope.row)"></div>
</template>
</el-table-column>
<el-table-column align="center" label="系统语言" width="200">
<template v-slot="scope">
{{langFormat(scope.row.lang)}}
</template>
</el-table-column>
<el-table-column align="center" label="操作" width="300">
<template v-slot="scope">
<el-button
@click="unfreeze(scope.row)"
class="primary"
type="primary"
size="default"
>解除限制</el-button
>
<el-button
@click="addWhite(scope.row)"
class="primary"
type="primary"
size="default"
>加入白名单</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 分页 -->
<el-pagination
style="margin-top: 10px"
class="paginationClass"
v-model:current-page="currentPage"
v-model:page-size="pageSize"
:page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500]"
:small="small"
:disabled="disabled"
:background="background"
layout="sizes, prev, pager, next"
:total="total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
<!-- 公共二次确认删除弹窗 -->
<el-dialog v-model="delDialog" title="提示" width="30%" center>
<span> {{ delDialogText }}</span>
<template #footer>
<span class="dialog-footer">
<el-button @click="delDialog = false">取消</el-button>
<el-button type="primary" @click="sureClick(val, type)"> 确认 </el-button>
</span>
</template>
</el-dialog>
<!-- 添加弹窗 -->
<el-dialog v-model="addSure" title="提示" width="30%" center>
<div class="selectBox">
<span class="left" style="margin-right: 20px">用户ID</span>
<el-input
v-model="selectUserId"
size="default"
placeholder="用户平台ID"
class="right"
style="width: 70%"
></el-input>
</div>
<template #footer>
<span class="dialog-footer">
<el-button @click="addSure = false">取消</el-button>
<el-button type="primary" @click="addSureClick()"> 添加 </el-button>
</span>
</template>
</el-dialog>
</div>
</template>
<script>
import {
recordPage,
addWhite,
relieve,
recordSave,
} from "@/api/AccessRestriction.vue/AccessRestriction.js";
import { ElMessage } from "element-plus";
export default {
name: "AccessRestriction",
data() {
return {
userId: "", //用戶id
loading: false, //列表loading
tableData: [
{
erbanNo: "123123123",
},
], //列表数据
total: 10, //总页数
currentPage: 1, //页码
pageSize: 10, //条数
delDialog: false, //控制公共弹窗展示
delDialogText: "确定要解除限制吗?", //公共弹窗标题
type: null, //1解除限制 2加入白名单
obj: {}, //存放公共参数
addSure: false, //控制确认添加弹窗展示
selectUserId: "", //添加用户id
};
},
created() {
this.getData();
},
methods: {
// 初始化
getData() {
this.loading = true;
recordPage({
page: this.currentPage,
pageSize: this.pageSize,
userErBanNo: this.userId,
}).then((res) => {
this.tableData = res.data.records;
this.loading = false;
this.total = res.data.total;
});
},
// 搜索
search() {
this.getData();
},
// 新增
add() {
this.addSure = true;
},
// 确认新增
addSureClick() {
this.addSure = false;
this.delDialogText = "确定要添加地区限制访问吗?";
this.delDialog = true;
this.type = 3;
},
// 解除限制按钮
unfreeze(row) {
console.log(row);
this.delDialogText = "确定要解除限制吗?";
this.delDialog = true;
this.type = 1;
this.obj = row;
},
// 加入白名单
addWhite(row) {
console.log(row);
this.delDialogText = "确定要加入白名单吗?";
this.delDialog = true;
this.type = 2;
this.obj = row;
},
// 二次确认
sureClick() {
if (this.type == 1) {
relieve({ uid: this.obj.uid }).then((res) => {
if (res.code == 200) {
ElMessage({
showClose: true,
message: res.message,
type: "success",
});
this.getData();
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
} else if (this.type == 2) {
addWhite({ uid: this.obj.uid }).then((res) => {
if (res.code == 200) {
ElMessage({
showClose: true,
message: res.message,
type: "success",
});
this.getData();
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
}
if (this.type == 3) {
recordSave({ erBanNoStr: this.selectUserId }).then((res) => {
if (res.code == 200) {
this.selectUserId = "";
ElMessage({
showClose: true,
message: res.message,
type: "success",
});
this.getData();
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
}
this.getData();
this.delDialog = false;
},
// 分页导航
handleSizeChange(val) {
this.getData();
},
handleCurrentChange(val) {
this.getData();
},
// sim格式化
tableArrFormat(val) {
// console.log("aaaaaaaaaaaaa", val.simCards);
var str = "";
if (!val.simCards) {
return;
}
val.simCards.forEach((res, i) => {
str += `
sim卡${i + 1}: ${
res == 452
? "越南"
: res == 454
? "香港"
: res == 460
? "中国"
: res == 466
? "台湾"
: res == 456
? "柬埔寨"
: res == 502
? "马来西亚"
: res == 525
? "新加坡"
: res == 510
? "印尼"
: res == 414
? "缅甸"
: res == 515
? "菲律宾"
: res == 520
? "泰国"
: res == 457
? "老挝"
: res
}<br>
`;
});
return str;
},
// sim格式化
langFormat(val) {
var str = "";
if (val == null) {
str = "空";
}else if(val.match(/cn/gi)||val.match(/hans/gi)){
str = `${val}【简体中文】`;
}else if(val.match(/tw/gi)||val.match(/hant/gi)||val.match(/hk/gi)||val.match(/mo/gi)){
str = `${val}【繁体中文】`;
}else{
str = val;
}
return str;
},
},
};
</script>
<style lang="less" scoped>
.outer {
padding-top: 20px;
background: #ecf0f5;
border-top: 3px solid #d2d6de;
.search {
width: 100%;
height: 41px;
.searchLeft,
.searchRight {
width: 20%;
float: left;
span {
margin-right: 10px;
}
.input {
width: 75%;
}
}
}
.buttonBox {
margin-top: 10px;
}
.authorityBox {
.authoritySpan {
margin-right: 20px;
}
.authorityInpput {
width: 50%;
}
}
.dialogTableVisibleBut {
margin: -25px 0 20px 0px;
}
}
</style>

View File

@@ -0,0 +1,355 @@
<template>
<div class="outer">
<!-- 搜索 -->
<div class="search">
<div class="searchLeft">
<span>用户平台ID</span>
<el-input
v-model="userId"
size="default"
placeholder="用户平台ID"
class="input"
></el-input>
</div>
<div class="searchRight">
<span>用户手机号</span>
<el-input
v-model="userPhone"
size="default"
placeholder="用户手机号"
class="input"
></el-input>
</div>
</div>
<!-- 按钮 -->
<div class="buttonBox">
<el-button class="primary" type="primary" size="default" @click="add()"
>新增</el-button
>
<el-button class="primary" type="primary" size="default" @click="search()"
>查询</el-button
>
</div>
<!-- 列表 -->
<el-table
v-loading="loading"
:data="tableData"
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="erbanNo" align="center" label="用戶id" />
<el-table-column prop="phone" align="center" label="用戶手机号" />
<el-table-column prop="nick" align="center" label="昵称" />
<el-table-column prop="signTime" align="center" label="注册时间" />
<el-table-column prop="roleName" align="center" label="身份" />
<el-table-column prop="createTime" align="center" label="进入白名单时间" />
<el-table-column prop="lastCheckTime" align="center" label="最近一次访问时间" />
<el-table-column align="center" label="进入白名单来源">
<template v-slot="scope">
{{
scope.row.source == 1
? "手动添加"
: scope.row.source == 2
? "手机号申请通过"
: scope.row.source == 3
? "限制访问记录添加"
: "未知来源"
}}
</template>
</el-table-column>
<el-table-column prop="adminName" align="center" label="操作人" />
<el-table-column align="center" label="操作" width="300">
<template v-slot="scope">
<el-button
@click="delWhite(scope.row)"
class="primary"
type="primary"
size="default"
>移除白名单</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 分页 -->
<el-pagination
style="margin-top: 10px"
class="paginationClass"
v-model:current-page="currentPage"
v-model:page-size="pageSize"
:page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500]"
:small="small"
:disabled="disabled"
:background="background"
layout="sizes, prev, pager, next"
:total="total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
<!-- 公共二次确认删除弹窗 -->
<el-dialog v-model="delDialog" title="提示" width="30%" center>
<span> {{ delDialogText }}</span>
<template #footer>
<span class="dialog-footer">
<el-button @click="delDialog = false">取消</el-button>
<el-button type="primary" @click="sureClick(val, type)"> 确认 </el-button>
</span>
</template>
</el-dialog>
<!-- 添加弹窗 -->
<el-dialog v-model="addSure" title="提示" width="30%" center>
<div class="selectBox">
<span class="left">添加号码类型</span>
<el-select
v-model="value"
fit-input-width="true"
placeholder="请选择"
class="right"
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</div>
<div class="selectBox" v-if="value == 1">
<span class="left">用户ID</span>
<el-input
v-model="selectUserId"
size="default"
placeholder="用户平台ID"
class="right"
></el-input>
</div>
<div class="selectBox" v-else>
<span class="left">手机号</span>
<el-input
v-model="selectUserPhone"
size="default"
placeholder=""
class="right"
style="width: 56%"
>
</el-input>
<b>+86</b>
</div>
<template #footer>
<span class="dialog-footer">
<el-button @click="addSure = false">取消</el-button>
<el-button type="primary" @click="addSureClick()"> 添加 </el-button>
</span>
</template>
</el-dialog>
</div>
</template>
<script>
import {
whitePage,
whiteDel,
whiteSave,
} from "@/api/AccessRestriction.vue/AccessRestriction.js";
import { ElMessage } from "element-plus";
export default {
name: "AccessWhitelist",
data() {
return {
userId: "", //用戶id
userPhone: "", //用戶手机号
loading: false, //列表loading
tableData: [], //列表数据
total: 10, //总页数
currentPage: 1, //页码
pageSize: 10, //条数
delDialog: false, //控制公共弹窗展示
delDialogText: "确定要移除白名单吗?", //公共弹窗标题
addSure: false, //控制确认添加弹窗展示
value: "1", //选择器
options: [
{
value: "1",
label: "用户id",
},
{
value: "2",
label: "用户手机号",
},
],
selectUserId: "", //添加弹窗用户id
selectUserPhone: "", //添加弹窗用户手机号
obj: {}, //存放公共参数
};
},
created() {
this.getData();
},
methods: {
// 初始化
getData() {
this.loading = true;
whitePage({
page: this.currentPage,
pageSize: this.pageSize,
userErBanNo: this.userId,
phone: this.userPhone,
}).then((res) => {
this.tableData = res.data.records;
this.loading = false;
this.total = res.data.total;
});
},
// 新增
add() {
this.addSure = true;
},
// 搜索
search() {
this.getData();
},
// 移除白名单
delWhite(row) {
console.log(row);
this.obj = row;
this.delDialog = true;
},
// 二次确认
sureClick() {
whiteDel({ id: this.obj.id }).then((res) => {
if (res.code == 200) {
ElMessage({
showClose: true,
message: res.message,
type: "success",
});
this.getData();
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
this.delDialog = false;
});
},
// 添加确认
addSureClick() {
var objs = {};
if (this.value == 1) {
objs = {
userErBanNoStr: this.selectUserId,
};
} else {
let phone = this.selectUserPhone;
if (phone) {
phone = '86' + phone;
}
objs = {
phone: phone,
};
}
whiteSave(objs).then((res) => {
this.selectUserId = "";
this.selectUserPhone = "";
if (res.code == 200) {
ElMessage({
showClose: true,
message: res.message,
type: "success",
});
this.getData();
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
this.getData();
});
this.addSure = false;
},
// 分页导航
handleSizeChange(val) {
this.getData();
},
handleCurrentChange(val) {
this.getData();
},
},
};
</script>
<style lang="less" scoped>
.outer {
padding-top: 20px;
background: #ecf0f5;
border-top: 3px solid #d2d6de;
.search {
width: 100%;
height: 41px;
.searchLeft,
.searchRight {
width: 20%;
float: left;
span {
margin-right: 10px;
}
.input {
width: 75%;
}
}
}
.buttonBox {
margin-top: 10px;
}
.authorityBox {
.authoritySpan {
margin-right: 20px;
}
.authorityInpput {
width: 50%;
}
}
.dialogTableVisibleBut {
margin: -25px 0 20px 0px;
}
.selectBox {
margin-bottom: 10px;
display: flex;
justify-content: space-between;
width: 70%;
.left {
display: block;
margin-right: 25px;
white-space: nowrap;
}
.right {
width: 70%;
position: relative;
}
b {
font-style: normal;
position: absolute;
left: 135px;
width: 54px;
height: 32px;
line-height: 32px;
text-align: center;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
border-right: 1px solid #dcdfe6;
border-left: 1px solid #dcdfe6;
border-bottom: 1px solid #dcdfe6;
border-top: 1px solid #dcdfe6;
background: #fff;
}
}
}
input[type="file"] {
display: none;
}
</style>

View File

@@ -0,0 +1,457 @@
<template>
<div class="account-apply-manage">
<div class="container">
<div class="region-box">
<el-radio-group v-model="region">
<el-radio v-for="(item, index) in userAreaRegion"
:key="index"
:label="item.value">{{ item.name }}</el-radio>
</el-radio-group>
</div>
<div class="handle-box">
<el-form ref="searchForm"
:model="searchForm"
label-width="90px"
:disabled="tableLoading">
<div class="search-line">
<el-form-item label="MoliStar ID"
prop="erbanNo">
<el-input v-model.trim="searchForm.erbanNo"
placeholder="Please enter"></el-input>
</el-form-item>
<el-form-item label="UID"
prop="uid">
<el-input v-model.trim="searchForm.uid"
placeholder="Please enter"></el-input>
</el-form-item>
<el-form-item label="SID"
prop="sid">
<el-input v-model.trim="searchForm.sid"
placeholder="Please enter"></el-input>
</el-form-item>
<el-form-item label="Region"
prop="partitionId">
<el-select v-model="searchForm.partitionId">
<el-option label="全部"
value=""></el-option>
<el-option v-for="item in partitionInfoList"
:key="item.id"
:label="item.desc"
:value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item label-width="40px">
<el-button type="primary"
@click="handSearch">Search</el-button>
<el-button plain
@click="resetSearchForm">Reset Search</el-button>
<el-upload class="file-uploader"
action="#"
list-type="picture-card"
:show-file-list="false"
:on-change="handleExcel"
accept=".xls, .xlsx"
:auto-upload="false">
<el-button type="primary">Import</el-button>
</el-upload>
</el-form-item>
</div>
</el-form>
<!-- <el-upload
class="file-uploader"
action="#"
list-type="picture-card"
:show-file-list="false"
:on-change="handleExcel"
accept=".xls, .xlsx"
:auto-upload="false"
>
<el-button type="primary" class="el-icon-upload">Import</el-button>
</el-upload> -->
</div>
<div class="table">
<el-table :data="tableData"
border
v-loading="tableLoading"
@header-click="headerCopy"
style="width: 100%">
<el-table-column align="center"
prop="id"
label="No.">
</el-table-column>
<el-table-column align="center"
prop="erbanNo"
label="MoliStar ID">
</el-table-column>
<el-table-column align="center"
prop="uid"
label="UID">
</el-table-column>
<el-table-column align="center"
prop="level"
label="SID Level">
</el-table-column>
<el-table-column align="center"
prop="nick"
label="Nickname">
</el-table-column>
<el-table-column align="center"
prop="partitionInfo"
label="Region">
</el-table-column>
<el-table-column align="center"
prop="createTime"
label="Apply time">
<template v-slot="scope">{{
convertTimestamp(scope.row.createTime)
}}</template>
</el-table-column>
<el-table-column align="center"
prop="prettyNo"
label="SID">
</el-table-column>
<el-table-column align="center"
prop="status"
label="State">
<template v-slot="scope">
<el-tag :type="applyStateTag(scope.row.status)">{{
applyStateText(scope.row.status)
}}</el-tag>
</template>
</el-table-column>
<el-table-column align="center"
prop="updateTime"
label="Review time">
<template v-slot="scope">{{
convertTimestamp(scope.row.updateTime)
}}</template>
</el-table-column>
<el-table-column align="center"
prop="operater"
label="Operator">
</el-table-column>
<el-table-column align="center"
label="Operate">
<template v-slot="scope">
<el-button type="text"
v-if="scope.row.status == 0"
@click="handlePass(scope.$index, scope.row)">
Pass
</el-button>
<el-button type="text"
v-if="scope.row.status == 0"
@click="handleReject(scope.$index, scope.row)">
Reject
</el-button>
<el-button type="text"
v-if="scope.row.status == 1"
class="red"
@click="handleDelete(scope.$index, scope.row)">
Delete
</el-button>
</template>
</el-table-column>
</el-table>
<table-pagination :pageParams="pageParams"
:pageTotal="pageTotal"
:ifShowSizes="true"
@handleSizeChange="handleSizeChange"
@handlePageChange="handlePageChange"></table-pagination>
</div>
</div>
</div>
</template>
<script>
import {
getPrettyNumberExamineList,
prettyNumberExaminePass,
prettyNumberExamineDelete,
prettyNumberExamineReject,
erbanUpload,
} from "@/api/relPrivilegeManage/relPrivilegeManage.js";
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
import TablePagination from "@/components/common/TablePagination";
import { formatDate } from "@/utils/relDate";
import { ElMessageBox, ElMessage } from "element-plus"; // 正确引入 ElM
// 混入
// import Mixin from '../../mixin/mixRegion.js';
export default {
name: "accountApplyManage",
// mixins: [Mixin],
components: { TablePagination },
data () {
return {
partitionInfoList: [],
tableLoading: false, // 表格是否加载中
tableData: [], // 接口返回的表格数据
// 搜索表单相关
searchForm: {
erbanNo: null,
uid: null,
sid: null,
partitionId: null,
},
pageTotal: 0, // 接口返回的表格总条数
pageParams: {
pageNo: 1,
pageSize: 10,
},
};
},
created () {
this.initPartition();
this.getData();
},
methods: {
getData () {
this.tableLoading = true;
let { pageParams, searchForm } = this;
searchForm = JSON.parse(JSON.stringify(searchForm));
pageParams = JSON.parse(JSON.stringify(pageParams));
Object.keys(searchForm).forEach((item) => {
if (
!searchForm[item] ||
(searchForm[item] !== undefined && searchForm[item] === "")
) {
delete searchForm[item];
}
});
Object.assign(pageParams, searchForm);
getPrettyNumberExamineList(pageParams).then((res) => {
this.tableLoading = false;
if (res.code == 200) {
let data = res.data;
console.log(data);
this.tableData = data.rows;
this.pageTotal = data.total;
}
});
},
//导入表格
handleExcel (file) {
let formData = new FormData(); //声明一个FormDate对象
formData.append("file", file.raw); //把文件信息放入对象中
console.log(file.raw);
erbanUpload(formData)
.then((res) => {
if (res.code == 200) {
this.getData();
this.$message.success("Operation successful");
}
})
.catch((err) => {
// that.$message({
// type: 'error',
// message: 'Operation failed'
// });
});
},
// 通过
handlePass (index, row) {
ElMessageBox.confirm("Are you sure you want to pass?", "Prompt", {
type: "warning",
confirmButtonText: "Sure",
cancelButtonText: "Cancel",
})
.then(() => {
prettyNumberExaminePass({ id: row.id }).then((res) => {
if (res.code == 200) {
this.getData();
ElMessage({
showClose: true,
message: "Operation successful",
type: "success",
});
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
})
.catch(() => { });
},
// 拒绝
handleReject (index, row) {
ElMessageBox.confirm("Are you sure you want to refuse?", "Prompt", {
type: "warning",
confirmButtonText: "Sure",
cancelButtonText: "Cancel",
})
.then(() => {
prettyNumberExamineReject({ id: row.id }).then((res) => {
if (res.code == 200) {
this.getData();
ElMessage({
showClose: true,
message: "Operation successful",
type: "success",
});
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
})
.catch(() => { });
},
// 删除操作
handleDelete (index, row) {
// 二次确认删除
ElMessageBox.confirm("Are you sure you want to delete?", "Prompt", {
type: "warning",
confirmButtonText: "Sure",
cancelButtonText: "Cancel",
})
.then(() => {
prettyNumberExamineDelete({ id: row.id }).then((res) => {
if (res.code == 200) {
this.getData();
ElMessage({
showClose: true,
message: "Operation successful",
type: "success",
});
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
})
.catch(() => { });
},
// 点击搜索
handSearch () {
this.$refs["searchForm"].validate((valid) => {
if (valid) {
this.pageParams.pageNo = 1;
this.getData();
}
});
},
// 重置搜索表单
resetSearchForm () {
this.$refs["searchForm"].resetFields();
this.pageParams.pageNo = 1;
this.getData();
},
// 分页导航
handleSizeChange (val) {
this.pageParams.pageNo = val;
this.getData();
},
handlePageChange (val) {
this.pageParams.pageNo = val;
this.getData();
},
headerCopy (column, e) {
this.$copy(column.label);
},
initPartition () {
getPartitionInfoList().then(res => {
let data = res.data;
this.partitionInfoList = data;
});
},
},
computed: {
applyStateTag () {
return function (val) {
let text = "";
switch (val) {
case 0:
text = "warning";
break;
case 1:
text = "success";
break;
case 2:
text = "info";
break;
case 3:
text = "danger";
break;
}
return text;
};
},
applyStateText () {
return function (val) {
let text = "";
switch (val) {
case 0:
text = "In Review";
break;
case 1:
text = "Passed";
break;
case 2:
text = "Rejected";
break;
case 3:
text = "Deleted";
break;
}
return text;
};
},
convertTimestamp () {
return function (time) {
let date = new Date(time);
return formatDate(date);
};
},
},
};
</script>
<style lang="scss">
.red {
color: rgb(241, 19, 19);
}
// ::v-deep {
// .el-upload--picture-card {
// background-color: transparent;
// border: 0;
// border-radius: 0;
// box-sizing: border-box;
// width: 0;
// height: 45px;
// line-height: 0;
// vertical-align: top;
// }
// }
.file-uploader {
display: block;
margin-left: 51px;
input {
display: none;
}
.el-upload {
background-color: transparent;
border: 0;
border-radius: 0;
box-sizing: border-box;
width: 0;
height: 45px;
line-height: 0;
vertical-align: top;
}
span {
display: block;
}
}
</style>

File diff suppressed because it is too large Load Diff

View File

@@ -655,7 +655,7 @@ export default {
field: 'type', title: '奖品类型', align: 'center', width: '5%', valign: 'middle', formatter: function (val, row, index) {
switch (val) {
case 1:
return '金币';
return '钻石';
case 2:
return '在线礼物';
@@ -757,9 +757,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -597,7 +597,7 @@ export default {
var id = $(this).data('id');
$.ajax({
type: "get",
url: "/admin/charge/activity/getById.action",
url: "/admin/charge/activity/getById",
data: { id: id },
dataType: "json",
success: function (json) {
@@ -716,7 +716,7 @@ export default {
$('#modal_packName').append('<option value="">请选择...</option>');
$.ajax({
type: "get",
url: "/admin/activity/pack/list.action",
url: "/admin/activity/pack/list",
data: {
status: 1
},
@@ -760,7 +760,7 @@ export default {
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
$.ajax({
type: 'post',
url: "/admin/charge/activity/delete.action",
url: "/admin/charge/activity/delete",
data: { id: id },
dataType: "json",
success: function (json) {
@@ -791,7 +791,7 @@ export default {
}
$.ajax({
type: "get",
url: "/admin/activity/pack/list.action",
url: "/admin/activity/pack/list",
data: {
status: 1
},
@@ -1147,9 +1147,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -617,9 +617,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -218,7 +218,7 @@ export default {
queryParamsType: "undefined",
uniqueId: 'id',
toolbar: '#toolbar',
url: '/admin/luckySea/listItemGroup.action',
url: '/admin/luckySea/listItemGroup',
onLoadSuccess: function (data) { //加载成功时执行
console.log("load success");
},
@@ -410,7 +410,7 @@ export default {
}
function getPageInfo() {
$.get('/admin/luckySea/listItem.action', {
$.get('/admin/luckySea/listItem', {
}, function (res) {
console.log(res);
const data = res;
@@ -654,9 +654,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -154,7 +154,7 @@ export default {
return param;
},
toolbar: '#toolbar',
url: '/admin/luckySea/listPlatformStat.action',
url: '/admin/luckySea/listPlatformStat',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -166,9 +166,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -14,7 +14,7 @@
<i class="glyphicon glyphicon-search"></i>查询
</button>
<div class="col-sm-12">
当前库存 <span name="stock" id="stock" />钻石
当前库存 <span name="stock" id="stock" />金币
<button id="editStock" class="btn btn-default">编辑库存</button>
</div>
</div>
@@ -58,7 +58,7 @@
<h4 class="modal-title" id="editStockModalTitle">编辑库存</h4>
</div>
<div class="modal-body">
设置库存为 <input type="text" name="editedStock" id="editedStock" class="input-sm"> 钻石
设置库存为 <input type="text" name="editedStock" id="editedStock" class="input-sm"> 金币
</div>
<div class="modal-footer">
<h4 id="editStockModalFooter"></h4>
@@ -163,7 +163,7 @@ export default {
return param;
},
toolbar: '#toolbar',
url: '/admin/luckySea/listActRecord.action',
url: '/admin/luckySea/listActRecord',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -228,7 +228,7 @@ export default {
};
return param;
},
url: '/admin/luckySea/listRoundDrawDetail.action',
url: '/admin/luckySea/listRoundDrawDetail',
onLoadSuccess: function () { //加载成功时执行
$("#roundDetailModal").modal('show');
},
@@ -247,7 +247,7 @@ export default {
function getStock() {
$.ajax({
type: 'get',
url: "/admin/luckySea/getStock.action",
url: "/admin/luckySea/getStock",
success: function (json) {
if (json.success) {
console.log('data', json.data)
@@ -268,7 +268,7 @@ export default {
$('#editStockModelBtn').on('click', function () {
$.ajax({
type: 'get',
url: "/admin/luckySea/editStock.action",
url: "/admin/luckySea/editStock",
data: {
stock: $("#editedStock").val(),
},
@@ -289,9 +289,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -83,7 +83,7 @@ export default {
return param;
},
toolbar: '#toolbar',
url: '/admin/luckySea/listUserDrawRecordList.action',
url: '/admin/luckySea/listUserDrawRecordList',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -133,9 +133,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -145,7 +145,7 @@ export default {
},
uniqueId: 'id',
toolbar: '#toolbar',
url: '/admin/act/operational/list.action',
url: '/admin/act/operational/list',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -176,7 +176,7 @@ export default {
if ($('#actForm').validationEngine('validate')) {
$.ajax({
type: "post",
url: "/admin/act/operational/save.action",
url: "/admin/act/operational/save",
data: $('#actForm').serialize(),
dataType: 'json',
success: function (json) {
@@ -197,7 +197,7 @@ export default {
var key = parseInt($(this).attr('data-id'));
$.ajax({
type: 'post',
url: '/admin/act/operational/del.action',
url: '/admin/act/operational/del',
data: { 'id': key },
dataType: 'json',
success: function (res) {
@@ -215,7 +215,7 @@ export default {
$('#uploadBtn').on('click', function () {
var options = {
type: 'post',
url: '/admin/upload/img.action',
url: '/admin/upload/img',
dataType: 'json',
success: function (json) {
if (json.path) {
@@ -256,9 +256,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -135,7 +135,7 @@ export default {
},
uniqueId: 'id',
toolbar: '#toolbar',
url: '/admin/act/static/list.action',
url: '/admin/act/static/list',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -165,7 +165,7 @@ export default {
if ($('#actForm').validationEngine('validate')) {
$.ajax({
type: "post",
url: "/admin/act/static/save.action",
url: "/admin/act/static/save",
data: $('#actForm').serialize(),
dataType: 'json',
success: function (json) {
@@ -190,7 +190,7 @@ export default {
var key = parseInt($(this).attr('data-id'));
$.ajax({
type: 'post',
url: '/admin/act/static/delete.action',
url: '/admin/act/static/delete',
data: { 'id': key },
dataType: 'json',
success: function (res) {
@@ -208,7 +208,7 @@ export default {
$('#uploadBtn').on('click', function () {
var options = {
type: 'post',
url: '/admin/upload/img.action',
url: '/admin/upload/img',
dataType: 'json',
success: function (json) {
if (json.path) {
@@ -249,9 +249,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -138,9 +138,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -166,8 +166,14 @@ export default {
field: 'charmAward', title: '魅力榜奖励', align: 'center', valign: 'middle', formatter: function (val, row, index) {
var packArr = JSON.parse(val);
var str = '';
for (var i = 0; i < packArr.length; i++) {
str += packObj[packArr[i]] + '';
for (var i = 0, len = packArr.length; i < len; i++) {
let value = packObj[packArr[i]];
if (value) {
str += value;
}
if (i != len - 1) {
str += '';
}
}
return str.substr(0, str.length - 2);
}
@@ -176,8 +182,14 @@ export default {
field: 'levelAward', title: '豪气榜奖励', align: 'center', valign: 'middle', formatter: function (val, row, index) {
var packArr = JSON.parse(val);
var str = '';
for (var i = 0; i < packArr.length; i++) {
str += packObj[packArr[i]] + '';
for (var i = 0, len = packArr.length; i < len; i++) {
let value = packObj[packArr[i]];
if (value) {
str += value;
}
if (i != len - 1) {
str += '';
}
}
return str.substr(0, str.length - 2);
}
@@ -232,7 +244,7 @@ export default {
},
uniqueId: 'id',
toolbar: '#toolbar',
url: '/admin/weekStarConfig/getWeekConfigList.action',
url: '/admin/weekStarConfig/getWeekConfigList',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -341,10 +353,15 @@ export default {
if (res.code == 200) {
var str = '';
for (var i = 0; i < res.data.length; i++) {
let item = res.data[i];
let giftName = item.giftName;
if (giftName.startsWith('{') && giftName.endsWith('}')) {
giftName = JSON.parse(giftName).zh;
}
// 存入对象
giftObj[res.data[i].giftId] = res.data[i].giftName;
giftObj[res.data[i].giftId] = giftName;
// 渲染select
str += '<option value="' + res.data[i].giftId + '">' + res.data[i].giftName + '</option>';
str += '<option value="' + res.data[i].giftId + '">' + giftName + '</option>';
}
console.log(JSON.stringify(giftObj));
// $('.giftSelect').html(str);
@@ -362,10 +379,15 @@ export default {
if (res.code == 200) {
var str = '';
for (var i = 0; i < res.data.length; i++) {
let item = res.data[i];
let giftName = item.giftName;
if (giftName.startsWith('{') && giftName.endsWith('}')) {
giftName = JSON.parse(giftName).zh;
}
// 存入对象
giftObj[res.data[i].giftId] = res.data[i].giftName;
giftObj[res.data[i].giftId] = giftName;
// 渲染select
str += '<option value="' + res.data[i].giftId + '">' + res.data[i].giftName + '</option>';
str += '<option value="' + res.data[i].giftId + '">' + giftName + '</option>';
}
console.log(JSON.stringify(giftObj));
$('.giftSelect').html(str);
@@ -409,9 +431,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -150,7 +150,7 @@ export default {
return param;
},
toolbar: '#toolbar',
url: '/admin/super/operate/record/list.action',
url: '/admin/super/operate/record/list',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -184,9 +184,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -83,7 +83,7 @@ export default {
var params = "uids=" + id;
$.ajax({
type: 'post',
url: "/admin/super/del.action",
url: "/admin/super/del",
data: params,
dataType: "json",
success: function (json) {
@@ -114,7 +114,7 @@ export default {
showLoading()
$.ajax({
type: "post",
url: "/admin/super/save.action",
url: "/admin/super/save",
data: 'erbanNo=' + erbanNo,
dataType: "json",
success: function (json) {
@@ -136,9 +136,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
@@ -182,7 +180,7 @@ function initTable() {
return param;
},
toolbar: '#toolbar',
url: '/admin/super/list.action',
url: '/admin/super/list',
onLoadSuccess: function (data) { //加载成功时执行
setTimeout(function () {
loadCreateTime(data);
@@ -207,7 +205,7 @@ function loadCreateTime(data) {
if (param != '') {
$.ajax({
type: "get",
url: "/admin/super/get/time.action",
url: "/admin/super/get/time",
data: param,
dataType: "json",
success: function (json) {

View File

@@ -221,9 +221,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -242,9 +242,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -41,8 +41,8 @@
<div class="col-sm-9">
<span>
<font color="#dd4b39">1.上传文件仅支持.xlsx格式的文件<br>
2.文件内容第一行为标题(:平台号,金币,钻石)<br>
3.第一列为用户平台号,第二列为用户要添加的金币数量,第三列为用户要添加的钻石数量
2.文件内容第一行为标题(:平台号,钻石,金币)<br>
3.第一列为用户平台号,第二列为用户要添加的钻石数量,第三列为用户要添加的金币数量
</font>
</span>
</div>
@@ -261,9 +261,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -167,7 +167,7 @@ export default {
},
toolbar: '#toolbar',
uniqueId: 'id',
url: '/admin/anchorFansTeamAudio/recordList.action',
url: '/admin/anchorFansTeamAudio/recordList',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -195,7 +195,7 @@ export default {
if (confirm("确定批量批量审核通过图片吗?")) {
$.ajax({
type: 'post',
url: '/admin/photo/batchPass.action',
url: '/admin/photo/batchPass',
data: { pid: JSON.stringify(pid) },
dataType: 'json',
success: function (res) {
@@ -221,7 +221,7 @@ export default {
// console.log(data)
$.ajax({
type: 'post',
url: '/admin/anchorFansTeamAudio/pass.action',
url: '/admin/anchorFansTeamAudio/pass',
data: { pid: dataId, status: 2 },
dataType: 'json',
success: function (res) {
@@ -260,7 +260,7 @@ export default {
if ($("#messageForm").validationEngine('validate')) {
$.ajax({
type: 'post',
url: '/admin/anchorFansTeamAudio/pass.action',
url: '/admin/anchorFansTeamAudio/pass',
data: { pid: dataId, message: message, status: 1 },
dataType: 'json',
success: function (res) {
@@ -279,9 +279,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -261,7 +261,7 @@ export default {
ajax: function (request) { //使用ajax请求
$.ajax({
type: "GET",
url: '/admin/anchorFansPrivilege/privilegeList.action',
url: '/admin/anchorFansPrivilege/privilegeList',
contentType: 'application/json;charset=utf-8',
dataType: 'json',
data: request.data,
@@ -322,7 +322,7 @@ export default {
console.log(2333)
$.ajax({
type: "post",
url: "/admin/anchorFansPrivilege/savePrivilege.action",
url: "/admin/anchorFansPrivilege/savePrivilege",
data: {
id: id,
name: name,
@@ -361,7 +361,7 @@ export default {
$.ajax({
type: "get",
url: "/admin/anchorFansPrivilege/getPrivilegeInfo.action",
url: "/admin/anchorFansPrivilege/getPrivilegeInfo",
data: { id: id },
dataType: "json",
success: function (res) {
@@ -502,9 +502,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -127,7 +127,7 @@ export default {
},
toolbar: '#toolbar',
uniqueId: 'uid',
url: '/admin/anchorFansTeam/statis/statisList.action',
url: '/admin/anchorFansTeam/statis/statisList',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -184,7 +184,7 @@ export default {
};
return param;
},
url: '/admin/anchorFansTeam/statis/team/DetailList.action',
url: '/admin/anchorFansTeam/statis/team/DetailList',
onLoadSuccess: function () { //加载成功时执行
$("#roundDetailModal").modal('show');
},
@@ -212,9 +212,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -65,8 +65,8 @@
<div class="col-sm-9">
<span>
<font color="#dd4b39">1.上传文件仅支持.xlsx格式的文件<br>
2.文件内容第一行为标题(:平台号,金币,钻石)<br>
3.第一列为用户平台号,第二列为用户要添加的金币数量,第三列为用户要添加的钻石数量
2.文件内容第一行为标题(:平台号,钻石,金币)<br>
3.第一列为用户平台号,第二列为用户要添加的钻石数量,第三列为用户要添加的金币数量
</font>
</span>
</div>
@@ -107,8 +107,8 @@ export default {
// {field: 'temp', title: 'id', align: 'center', checkbox: true, width: '5%'},
{ field: 'erbanNo', title: '平台号', align: 'center', width: '5%' },
{ field: 'nick', title: '昵称', align: 'center', width: '5%' },
{ field: 'goldNum', title: '金币数量', align: 'center', width: '5%' },
{ field: 'diamondNum', title: '钻石数量', align: 'center', width: '5%' },
{ field: 'goldNum', title: '钻石数量', align: 'center', width: '5%' },
{ field: 'diamondNum', title: '金币数量', align: 'center', width: '5%' },
{
field: 'createTime',
title: '创建时间',
@@ -234,7 +234,7 @@ export default {
if (confirm("删除的数据将不能找回,确定删除吗?")) {
$.ajax({
type: "post",
url: "/admin/sms/del.action",
url: "/admin/sms/del",
data: { recordId: id },
dataType: "json",
success: function (json) {
@@ -254,9 +254,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -415,7 +415,7 @@ export default {
ajax: function (request) { //使用ajax请求
$.ajax({
type: "GET",
url: '/admin/bottomBar/list.action',
url: '/admin/bottomBar/list',
contentType: 'application/json;charset=utf-8',
dataType: 'json',
data: request.data,
@@ -544,7 +544,7 @@ export default {
if ($("#addForm").validationEngine('validate')) {
$.ajax({
type: "post",
url: "/admin/bottomBar/saveBottomBar.action",
url: "/admin/bottomBar/saveBottomBar",
data: {
refSeq: refSeq,
configName: configName,
@@ -594,7 +594,7 @@ export default {
$.ajax({
type: "get",
url: "/admin/bottomBar/getBarByRefSeq.action",
url: "/admin/bottomBar/getBarByRefSeq",
data: { refSeq: refSeq },
dataType: "json",
success: function (res) {
@@ -671,7 +671,7 @@ export default {
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
$.ajax({
type: 'post',
url: "/admin/bottomBar/deleteByRefSeq.action",
url: "/admin/bottomBar/deleteByRefSeq",
data: { refSeq: refSeq },
dataType: "json",
success: function (json) {
@@ -1061,9 +1061,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -266,7 +266,7 @@ export default {
ajax: function (request) { //使用ajax请求
$.ajax({
type: "GET",
url: '/admin/appUpdate/list.action',
url: '/admin/appUpdate/list',
contentType: 'application/json;charset=utf-8',
dataType: 'json',
data: request.data,
@@ -310,7 +310,7 @@ export default {
if ($("#addModalForm").validationEngine('validate')) {
$.ajax({
type: "post",
url: "/admin/appUpdate/save.action",
url: "/admin/appUpdate/save",
data: {
name: $("#modal_name").val(),
forceUpdate: $("#modal_forceUpdate").val(),
@@ -347,7 +347,7 @@ export default {
if ($("#editForm").validationEngine('validate')) {
$.ajax({
type: "post",
url: "/admin/appUpdate/save.action",
url: "/admin/appUpdate/save",
data: {
id: $("#id").val(),
name: $("#name").val(),
@@ -386,7 +386,7 @@ export default {
console.log(id);
$.ajax({
type: "get",
url: "/admin/appUpdate/get.action",
url: "/admin/appUpdate/get",
data: { id: id },
dataType: "json",
success: function (ret) {
@@ -434,9 +434,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -163,7 +163,7 @@ export default {
};
},
toolbar: '#toolbar',
url: '/admin/audioCard/page.action',
url: '/admin/audioCard/page',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -221,7 +221,7 @@ export default {
showLoading();
$.ajax({
type: 'post',
url: "/admin/audioCard/verify.action",
url: "/admin/audioCard/verify",
data: {
id: id,
status: status
@@ -264,9 +264,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -382,7 +382,7 @@ export default {
return param;
},
toolbar: '#toolbar',
url: '/admin/audit/audio/list.action',
url: '/admin/audit/audio/list',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -405,7 +405,7 @@ export default {
var id = $(this).attr("data-id");
$.ajax({
type: "post",
url: "/admin/audit/audio/handle/pass.action",
url: "/admin/audit/audio/handle/pass",
data: { recordId: id },
dataType: "json",
success: function (json) {
@@ -425,7 +425,7 @@ export default {
var id = $(this).attr("data-id");
$.ajax({
type: "post",
url: "/admin/audit/audio/handle/unBlock.action",
url: "/admin/audit/audio/handle/unBlock",
data: { recordId: id },
dataType: "json",
success: function (json) {
@@ -474,7 +474,7 @@ export default {
if ($("#modalLabel").validationEngine('validate')) {
$.ajax({
type: "post",
url: "/admin/audit/audio/handle/reject.action",
url: "/admin/audit/audio/handle/reject",
data: {
recordId: recordId,
resultValue: resultValue,
@@ -508,7 +508,7 @@ export default {
if ($("#blockModalLabel").validationEngine('validate')) {
$.ajax({
type: "post",
url: "/admin/audit/audio/handle/reject.action",
url: "/admin/audit/audio/handle/reject",
data: {
recordId: recordId,
resultValue: resultValue
@@ -551,9 +551,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -92,7 +92,7 @@ export default {
function getRuleDetail() {
$.ajax({
type: "get",
url: "/admin/audit/audio/get/rule.action",
url: "/admin/audit/audio/get/rule",
dataType: "json",
success: function (json) {
if (json.code == 200) {
@@ -128,7 +128,7 @@ export default {
showLoading();
$.ajax({
type: "post",
url: "/admin/audit/audio/rule/save.action",
url: "/admin/audit/audio/rule/save",
data: {
type: type,
erbanNos: $("#erbanNos").val()
@@ -151,9 +151,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -541,9 +541,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -220,7 +220,7 @@ export default {
return param;
},
toolbar: '#toolbar',
url: '/admin/blindDate/listCap.action',
url: '/admin/blindDate/listCap',
onLoadSuccess: function (res) { //加载成功时执行
console.log("load success");
},
@@ -280,7 +280,7 @@ export default {
console.log("id", $("#e_id").val());
$.ajax({
type: "post",
url: "/admin/blindDate/addOrUpdateCap.action",
url: "/admin/blindDate/addOrUpdateCap",
data: $('#updateForm').serialize(),
dataType: "json",
success: function (json) {
@@ -288,7 +288,7 @@ export default {
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
$("#updateItemModal").modal('hide');
$("#updateCapModal").modal('hide');
} else {
$("#tipMsg").text("保存失败." + json.message);
$("#tipModal").modal('show');
@@ -305,7 +305,7 @@ export default {
if (confirm("你确认删除该帽子吗?")) {
$.ajax({
type: "get",
url: "/admin/blindDate/delCap.action",
url: "/admin/blindDate/delCap",
data: {
id: capId,
},
@@ -326,7 +326,7 @@ export default {
$("#add-cap").click(function () {
$.ajax({
type: "post",
url: "/admin/blindDate/addOrUpdateCap.action",
url: "/admin/blindDate/addOrUpdateCap",
data: $('#addForm').serialize(),
dataType: "json",
success: function (json) {
@@ -334,6 +334,7 @@ export default {
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
$("#addCapModal").modal('hide');
} else {
$("#tipMsg").text("保存失败." + json.message);
$("#tipModal").modal('show');
@@ -405,9 +406,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -256,7 +256,7 @@ export default {
return param;
},
toolbar: '#toolbar',
url: '/admin/blindDate/listJoinHand.action',
url: '/admin/blindDate/listJoinHand',
onLoadSuccess: function (res) { //加载成功时执行
console.log("load success");
},
@@ -333,7 +333,7 @@ export default {
console.log("id", $("#e_id").val());
$.ajax({
type: "post",
url: "/admin/blindDate/addOrUpdateJoinHand.action",
url: "/admin/blindDate/addOrUpdateJoinHand",
data: $('#updateForm').serialize(),
dataType: "json",
success: function (json) {
@@ -341,7 +341,7 @@ export default {
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
$("#updateItemModal").modal('hide');
$("#updateJoinHandModal").modal('hide');
} else {
$("#tipMsg").text("保存失败." + json.message);
$("#tipModal").modal('show');
@@ -358,7 +358,7 @@ export default {
if (confirm("你确认删除该场景吗?")) {
$.ajax({
type: "get",
url: "/admin/blindDate/delJoinHand.action",
url: "/admin/blindDate/delJoinHand",
data: {
id: JoinHandId,
},
@@ -379,7 +379,7 @@ export default {
$("#add-JoinHand").click(function () {
$.ajax({
type: "post",
url: "/admin/blindDate/addOrUpdateJoinHand.action",
url: "/admin/blindDate/addOrUpdateJoinHand",
data: $('#addForm').serialize(),
dataType: "json",
success: function (json) {
@@ -387,6 +387,7 @@ export default {
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
$("#addJoinHandModal").modal('hide');
} else {
$("#tipMsg").text("保存失败." + json.message);
$("#tipModal").modal('show');
@@ -517,9 +518,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

982
src/views/boom/levelSet.vue Normal file
View File

@@ -0,0 +1,982 @@
<template>
<div class="box">
<!-- 查询 -->
<div class="inquire">
<span>分区</span>
<el-select filterable v-model="inquire.partitionId" placeholder="请选择">
<el-option
v-for="item in inquire.options"
:key="item.id"
:label="item.desc"
:value="item.id"
>
</el-option>
</el-select>
</div>
<el-button class="primary but" type="primary" @click="getData()"
>查询</el-button
>
<!-- 表格 -->
<el-table
v-loading="loading"
:data="tableData"
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="levelName" align="center" label="Boom等级" />
<el-table-column prop="goldNum" align="center" label="金币任务数" />
<el-table-column prop="countDownVapUrl" align="center" label="Boom等级图">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.pic"
:zoom-rate="1.1"
:preview-src-list="[scope.row.pic]"
fit="contain"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
<el-table-column prop="x" align="center" label="Boom倒计时">
<template v-slot="scope">
<video
:key="scope.row.countDownVapUrl"
width="320"
height="240"
controls="controls"
>
<source :src="scope.row.countDownVapUrl" type="video/mp4" /></video
></template>
</el-table-column>
<el-table-column prop="x" align="center" label="Boon"
><template v-slot="scope">
<video
:key="scope.row.endVapUrl"
width="320"
height="240"
controls="controls"
>
<source :src="scope.row.endVapUrl" type="video/mp4" /></video
></template>
</el-table-column>
<el-table-column align="center" label="操作" width="300">
<template v-slot="scope">
<el-button
@click="
eidObj.level = scope.row.level;
eidObj.goldNum = scope.row.goldNum;
eidObj.imageUrl1 = scope.row.pic;
eidObj.imageUrl2 = scope.row.countDownVapUrl;
eidObj.imageUrl3 = scope.row.endVapUrl;
id = scope.row.id;
eidDialogBox = true;
"
type="text"
size="default"
>编辑</el-button
>
<el-button
@click="
member.level = scope.row.level;
member.goldNum = scope.row.goldNum;
seeList(scope.row);
"
type="text"
size="default"
>查看明细</el-button
>
<el-button
@click="
member.level = scope.row.level;
member.goldNum = scope.row.goldNum;
id = scope.row.level;
eidList(scope.row);
"
type="text"
size="default"
>编辑明细</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 等级奖励配置查看 -->
<el-dialog v-model="memberDialog" title="等级奖励配置(查看)" center>
<div class="inquire">
<span>Boom等级{{ member.level }}</span>
</div>
<div class="inquire">
<span>金币任务数量{{ member.goldNum }}</span>
</div>
<!-- 内嵌表格 -->
<el-table
:data="member.tableData"
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="seq" align="center" label="排序" />
<el-table-column prop="x" align="center" label="奖品类型">
<template v-slot="scope">
{{
scope.row.awardType == 8
? "金币"
: scope.row.awardType == 6
? "礼物"
: scope.row.awardType == 5
? "座驾"
: scope.row.awardType == 1
? "头饰"
: scope.row.awardType == 3
? "气泡"
: scope.row.awardType == 10
? "VIP"
: scope.row.awardType == 11
? "勋章"
: "铭牌"
}}
</template>
</el-table-column>
<el-table-column prop="awardNum" align="center" label="奖品天数" />
<el-table-column prop="type" align="center" label="用户身份">
<template v-slot="scope">
{{ scope.row.type == 1 ? "固定身份" : "随机身份" }}
</template>
</el-table-column>
<el-table-column
prop="awardId"
align="center"
label="奖品ID/VIP等级1"
/>
<el-table-column prop="isShow" align="center" label="是否展示">
<template v-slot="scope">
{{ scope.row.isShow == 1 ? "" : "" }}
</template>
</el-table-column>
<el-table-column prop="awardStock" align="center" label="奖品库存" />
<el-table-column prop="awardPic" align="center" label="奖励图片">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.awardPic"
:zoom-rate="1.1"
:preview-src-list="[scope.row.awardPic]"
fit="contain"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
</el-table>
<template #footer>
<span class="dialog-footer">
<el-button type="primary" @click="memberDialog = false">
关闭
</el-button>
</span>
</template>
</el-dialog>
<!-- 等级奖励配置编辑 -->
<el-dialog v-model="eidDialog" title="等级奖励配置(编辑)" center>
<div class="inquire">
<span>Boom等级{{ member.level }}</span>
</div>
<div class="inquire">
<span>金币任务数量{{ member.goldNum }}</span>
</div>
<!-- 内嵌表格 -->
<el-table
:data="eid.tableData"
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="seq" align="center" label="排序" />
<el-table-column prop="x" align="center" label="奖品类型">
<template v-slot="scope">
{{
scope.row.awardType == 8
? "金币"
: scope.row.awardType == 6
? "礼物"
: scope.row.awardType == 5
? "座驾"
: scope.row.awardType == 1
? "头饰"
: scope.row.awardType == 3
? "气泡"
: scope.row.awardType == 10
? "VIP"
: scope.row.awardType == 11
? "勋章"
: "铭牌"
}}
</template>
</el-table-column>
<el-table-column prop="awardNum" align="center" label="奖品天数" />
<el-table-column prop="type" align="center" label="用户身份">
<template v-slot="scope">
{{ scope.row.type == 1 ? "固定身份" : "随机身份" }}
</template>
</el-table-column>
<el-table-column prop="awardId" align="center" label="奖品ID/VIP等级" />
<el-table-column prop="awardPic" align="center" label="奖励图片">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.awardPic"
:zoom-rate="1.1"
:preview-src-list="[scope.row.awardPic]"
fit="contain"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
<el-table-column prop="isShow" align="center" label="是否展示">
<template v-slot="scope">
{{ scope.row.isShow == 1 ? "" : "" }}
</template>
</el-table-column>
<el-table-column prop="awardStock" align="center" label="奖品库存" />
<el-table-column prop="x" align="center" label="操作">
<template v-slot="scope">
<el-button @click="editFun(scope.row)" type="text" size="default"
>编辑</el-button
>
<el-button @click="delFun(scope.row)" type="text" size="default"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<template #footer>
<span class="dialog-footer">
<el-button type="primary" @click="addDialog = true">
增加一条
</el-button>
<el-button type="primary" @click="eidDialog = false">
关闭
</el-button>
</span>
</template>
</el-dialog>
<!-- 增加一条弹窗 -->
<el-dialog
v-model="addDialog"
title="等级奖励配置(新增)"
class="addBox"
center
width="26%"
>
<div class="inquire">
<span>奖品类型</span>
<el-select filterable v-model="addObj.giftVal" placeholder="请选择">
<el-option
v-for="item in addObj.giftType"
:key="item.id"
:label="item.desc"
:value="item.value"
>
</el-option>
</el-select>
</div>
<div class="inquire">
<span>用户身份</span>
<el-select filterable v-model="addObj.type" placeholder="请选择">
<el-option
v-for="item in addObj.typeArr"
:key="item.id"
:label="item.desc"
:value="item.value"
>
</el-option>
</el-select>
</div>
<div class="inquire">
<span>奖品ID/VIP等级:</span>
<el-input
v-model="addObj.giftId"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<span>奖励数量/天数</span>
<el-input
v-model="addObj.giftNum"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<span>库存</span>
<el-input
v-model="addObj.awardStock"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<span>顺序:</span>
<el-input v-model="addObj.sNo" placeholder="" class="input"></el-input>
</div>
<div class="inquire">
<span>是否展示</span>
<el-select filterable v-model="addObj.showVal" placeholder="请选择">
<el-option
v-for="item in addObj.show"
:key="item.id"
:label="item.desc"
:value="item.value"
>
</el-option>
</el-select>
</div>
<div class="inquire">
<span>奖励图片</span>
<el-upload
class="avatar-uploader"
action="/admin/tencent/cos/upload/file"
:show-file-list="false"
:on-success="handleAvatarSuccess4"
:before-upload="beforeAvatarUpload"
:on-error="handleAvatarError"
>
<img v-if="addObj.imageUrl" :src="addObj.imageUrl" class="avatar" />
<el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
</el-upload>
</div>
<template #footer>
<span class="dialog-footer">
<el-button type="primary" @click="addFun()"> 保存 </el-button>
<el-button type="primary" @click="addDialog = false">
取消
</el-button>
</span>
</template>
</el-dialog>
<!-- 编辑弹窗 -->
<el-dialog
v-model="editDialog"
title="等级奖励配置(编辑)"
class="addBox"
center
width="26%"
>
<div class="inquire">
<span>奖品类型</span>
<el-select filterable v-model="editObj.giftVal" placeholder="请选择">
<el-option
v-for="item in editObj.giftType"
:key="item.id"
:label="item.desc"
:value="item.value"
>
</el-option>
</el-select>
</div>
<div class="inquire">
<span>用户身份</span>
<el-select filterable v-model="editObj.type" placeholder="请选择">
<el-option
v-for="item in editObj.typeArr"
:key="item.id"
:label="item.desc"
:value="item.value"
>
</el-option>
</el-select>
</div>
<div class="inquire">
<span>奖品ID/VIP等级:</span>
<el-input
v-model="editObj.giftId"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<span>奖励数量/天数</span>
<el-input
v-model="editObj.giftNum"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<span>库存</span>
<el-input
v-model="editObj.awardStock"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<span>顺序:</span>
<el-input v-model="editObj.sNo" placeholder="" class="input"></el-input>
</div>
<div class="inquire">
<span>是否展示</span>
<el-select filterable v-model="editObj.showVal" placeholder="请选择">
<el-option
v-for="item in editObj.show"
:key="item.id"
:label="item.desc"
:value="item.value"
>
</el-option>
</el-select>
</div>
<div class="inquire">
<span>奖励图片</span>
<el-upload
class="avatar-uploader"
action="/admin/tencent/cos/upload/file"
:show-file-list="false"
:on-success="handleAvatarSuccess5"
:before-upload="beforeAvatarUpload"
:on-error="handleAvatarError"
>
<img v-if="editObj.imageUrl" :src="editObj.imageUrl" class="avatar" />
<el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
</el-upload>
</div>
<template #footer>
<span class="dialog-footer">
<el-button type="primary" @click="editSaveFun()"> 保存 </el-button>
<el-button type="primary" @click="editDialog = false">
取消
</el-button>
</span>
</template>
</el-dialog>
<!-- 编辑弹窗 -->
<el-dialog
v-model="eidDialogBox"
title="编辑"
class="addBox"
center
width="26%"
>
<div class="inquire">
<span>BOOM等级</span>
<el-input
v-model="eidObj.level"
placeholder=""
class="input"
disabled
></el-input>
</div>
<div class="inquire">
<span>金币任务数</span>
<el-input
v-model="eidObj.goldNum"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<span style="float: left">等级图</span>
<el-upload
style="float: left"
class="avatar-uploader input"
action="/admin/tencent/cos/upload/file"
:show-file-list="false"
:on-success="handleAvatarSuccess1"
:before-upload="beforeAvatarUpload"
:on-error="handleAvatarError"
>
<img v-if="eidObj.imageUrl1" :src="eidObj.imageUrl1" class="avatar" />
<el-icon v-else class="avatar-uploader-icon">
<Plus />
</el-icon>
</el-upload>
</div>
<div class="inquire">
<span style="float: left">倒计时</span>
<el-upload
style="float: left; width: 200px; height: 150px"
class="avatar-uploader input"
action="/admin/tencent/cos/upload/file"
:show-file-list="false"
:on-success="handleAvatarSuccess2"
:before-upload="beforeAvatarUpload"
:on-error="handleAvatarError"
>
<video
v-if="eidObj.imageUrl2"
:key="eidObj.imageUrl2"
autoplay
width="320"
height="240"
controls="controls"
>
<source :src="eidObj.imageUrl2" type="video/mp4" />
</video>
</el-upload>
</div>
<div class="inquire">
<span style="float: left">Boom</span>
<el-upload
style="float: left; width: 200px; height: 150px"
class="avatar-uploader input"
action="/admin/tencent/cos/upload/file"
:show-file-list="false"
:on-success="handleAvatarSuccess3"
:before-upload="beforeAvatarUpload"
:on-error="handleAvatarError"
>
<video
v-if="eidObj.imageUrl3"
:key="eidObj.imageUrl3"
autoplay
width="320"
height="240"
controls="controls"
>
<source :src="eidObj.imageUrl3" type="video/mp4" />
</video>
</el-upload>
</div>
<template #footer>
<span class="dialog-footer">
<el-button type="primary" @click="levelUpdateFun()"> 保存 </el-button>
<el-button type="primary" @click="eidDialogBox = false">
取消
</el-button>
</span>
</template>
</el-dialog>
</div>
</template>
<script>
import {
listPartitionInfo,
levelList,
levelUpdate,
awardList,
awardUpdate,
awardDel,
} from "@/api/boom/boom";
// @ts-ignore
import { dateFormat } from "@/utils/system-helper";
// @ts-ignore
import { ElMessage } from "element-plus";
export default {
name: "levelSet",
data() {
return {
id: "",
loading: false,
//查询所需条件对象
inquire: {
partitionId: 2,
options: [],
},
// 表格
tableData: [],
// 内嵌表格查看
memberDialog: false,
member: {
level: "",
goldNum: "",
tableData: [],
},
// 内嵌表格编辑
eidDialog: false,
eid: {
tableData: [],
},
// 编辑弹窗
editDialog: false,
editObj: {
imageUrl: "",
giftVal: 8,
giftType: [
{ desc: "金币", value: 8 },
{ desc: "礼物", value: 6 },
{ desc: "座驾", value: 5 },
{ desc: "头饰", value: 1 },
{ desc: "气泡", value: 3 },
{ desc: "VIP", value: 10 },
{ desc: "勋章", value: 11 },
{ desc: "铭牌", value: 2 },
],
type: "",
typeArr: [
{ desc: "固定身份", value: 1 },
{ desc: "随机身份", value: 2 },
],
giftId: "",
giftNum: "",
awardStock: "",
sNo: "",
showVal: "",
id: "",
show: [
{ desc: "是", value: 1 },
{ desc: "否", value: 0 },
],
},
// 新增弹窗
addDialog: false,
addObj: {
imageUrl: "",
giftVal: 8,
giftType: [
{ desc: "金币", value: 8 },
{ desc: "礼物", value: 6 },
{ desc: "座驾", value: 5 },
{ desc: "头饰", value: 1 },
{ desc: "气泡", value: 3 },
{ desc: "VIP", value: 10 },
{ desc: "勋章", value: 11 },
{ desc: "铭牌", value: 2 },
],
type: "",
typeArr: [
{ desc: "固定身份", value: 1 },
{ desc: "随机身份", value: 2 },
],
giftId: "",
giftNum: "",
awardStock: "",
sNo: "",
showVal: "",
show: [
{ desc: "是", value: 1 },
{ desc: "否", value: 0 },
],
},
//编辑
eidDialogBox: false,
eidObj: {
level: "",
goldNum: "",
imageUrl1: "",
imageUrl2: "",
imageUrl3: "",
},
// 分页
total: 0, //总页数
currentPage: 1, //页码
pageSize: 5, //条数
};
},
created() {
listPartitionInfo().then((res) => {
this.inquire.options = res.data;
this.inquire.partitionId = res.data[0].id;
this.getData();
});
},
methods: {
// 查询接口
getData() {
this.loading = true;
levelList({
partitionId: this.inquire.partitionId,
}).then((res) => {
if (res.code == 200) {
// this.total = res.data.total;
// this.tableData = res.data.records;
this.tableData = res.data;
this.loading = false;
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
},
// 编辑弹窗
editFun(val) {
this.editObj.giftVal = val.awardType;
this.editObj.giftNum = val.awardNum;
this.editObj.giftId = val.awardId;
this.editObj.awardStock = val.awardStock;
this.editObj.sNo = val.seq;
this.editObj.showVal = val.isShow;
this.editObj.type = val.type;
this.editObj.imageUrl = val.awardPic;
this.editObj.id = val.id;
this.editDialog = true;
},
// 确认编辑弹窗
editSaveFun() {
var level = this.id;
var obj = {
awardType: this.editObj.giftVal,
awardNum: this.editObj.giftNum,
awardId: this.editObj.giftId,
awardStock: this.editObj.awardStock,
seq: this.editObj.sNo,
isShow: this.editObj.showVal,
type: this.editObj.type,
awardPic: this.editObj.imageUrl,
id: this.editObj.id,
partitionId: this.inquire.partitionId,
level,
};
awardUpdate(obj).then((res) => {
if (res.code == 200) {
this.editDialog = false;
awardList({
level,
partitionId: this.inquire.partitionId,
}).then((res) => {
this.eid.tableData = res.data;
ElMessage({
showClose: true,
message: "成功",
type: "success",
});
});
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
},
// 新增
addFun() {
var level = this.id;
var obj = {
awardType: this.addObj.giftVal,
awardNum: this.addObj.giftNum,
awardId: this.addObj.giftId,
awardStock: this.addObj.awardStock,
seq: this.addObj.sNo,
isShow: this.addObj.showVal,
type: this.addObj.type,
awardPic: this.addObj.imageUrl,
partitionId: this.inquire.partitionId,
level,
};
awardUpdate(obj).then((res) => {
if (res.code == 200) {
this.addDialog = false;
awardList({
level,
partitionId: this.inquire.partitionId,
}).then((res) => {
this.eid.tableData = res.data;
ElMessage({
showClose: true,
message: "成功",
type: "success",
});
});
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
},
// 删除
delFun(val) {
var level = this.id;
awardDel({
id: val.id,
}).then((res) => {
if (res.code == 200) {
awardList({
level,
partitionId: this.inquire.partitionId,
}).then((res) => {
this.eid.tableData = res.data;
ElMessage({
showClose: true,
message: "成功",
type: "success",
});
});
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
},
// 查看明细
seeList(val) {
awardList({
level: val.level,
partitionId: this.inquire.partitionId,
}).then((res) => {
this.memberDialog = true;
this.member.tableData = res.data;
});
},
eidList(val) {
awardList({
level: val.level,
partitionId: this.inquire.partitionId,
}).then((res) => {
this.eidDialog = true;
this.eid.tableData = res.data;
});
},
// 编辑列表
levelUpdateFun() {
var obj = {
id: this.id,
level: this.eidObj.level,
goldNum: this.eidObj.goldNum,
pic: this.eidObj.imageUrl1,
countDownVapUrl: this.eidObj.imageUrl2,
endVapUrl: this.eidObj.imageUrl3,
partition: this.inquire.partitionId,
};
levelUpdate(obj).then((res) => {
if (res.code == 200) {
ElMessage({
showClose: true,
message: "编辑成功!",
type: "success",
});
this.eidDialogBox = false;
this.getData();
} else {
ElMessage({
showClose: true,
message: res.success,
type: "error",
});
}
});
},
beforeAvatarUpload() {
ElMessage({
showClose: true,
message: "上传中,可能较慢,请等待上穿成功的提示在操作下一步~",
type: "warning",
});
},
handleAvatarError() {
ElMessage({
showClose: true,
message: "上传失败!",
type: "error",
});
},
handleAvatarSuccess1(res, file) {
console.log(file);
// this.ediObj.imageUrl = URL.createObjectURL();
this.eidObj.imageUrl1 = res.data;
ElMessage({
showClose: true,
message: "上传成功!",
type: "success",
});
},
handleAvatarSuccess2(res, file) {
console.log(file);
// this.ediObj.imageUrl = URL.createObjectURL();
this.eidObj.imageUrl2 = res.data;
ElMessage({
showClose: true,
message: "上传成功!",
type: "success",
});
},
handleAvatarSuccess3(res, file) {
console.log(file);
// this.ediObj.imageUrl = URL.createObjectURL();
this.eidObj.imageUrl3 = res.data;
ElMessage({
showClose: true,
message: "上传成功!",
type: "success",
});
},
handleAvatarSuccess4(res, file) {
console.log(file);
// this.ediObj.imageUrl = URL.createObjectURL();
this.addObj.imageUrl = res.data;
ElMessage({
showClose: true,
message: "上传成功!",
type: "success",
});
},
handleAvatarSuccess5(res, file) {
console.log(file);
// this.ediObj.imageUrl = URL.createObjectURL();
this.editObj.imageUrl = res.data;
ElMessage({
showClose: true,
message: "上传成功!",
type: "success",
});
},
// 分页导航
handleSizeChange() {
this.getData();
},
handleCurrentChange() {
this.getData();
},
},
};
</script>
<style lang="less" scoped>
.box {
padding-top: 20px;
background: #ecf0f5;
.inquire {
display: inline-block;
margin-right: 20px;
margin-bottom: 20px;
span {
margin-right: 10px;
}
.input {
width: 180px;
margin-right: 10px;
}
}
.dialogTableVisibleBut {
display: block;
margin: 30px 0 0 830px;
}
.paginationClass {
margin: 15px 0 5px 0px;
}
}
.selectBox {
display: flex;
height: 35px;
line-height: 35px;
margin-bottom: 20px;
}
.selectBoxImg {
height: 150px;
}
.addBox {
.el-dialog__body {
.inquire {
span {
margin-right: 10px;
width: 113px;
display: inline-block;
}
.input {
width: 180px;
margin-right: 10px;
}
}
}
}
</style>

View File

@@ -0,0 +1,414 @@
<template>
<div class="box">
<!-- 查询 -->
<div class="inquire">
<span>分区</span>
<el-select filterable v-model="inquire.partitionId" placeholder="请选择">
<el-option
v-for="item in inquire.options"
:key="item.id"
:label="item.desc"
:value="item.id"
>
</el-option>
</el-select>
</div>
<div class="inquire">
<span>房间ID:</span>
<el-input
v-model="inquire.roomId"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<span>BOOM等级:</span>
<el-input
v-model="inquire.boomLevel"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<span>触发者ID</span>
<el-input
v-model="inquire.triggererId"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<div class="block">
<span class="demonstration">开始时间</span>
<el-date-picker
v-model="inquire.time[0]"
type="datetime"
placeholder="开始时间"
>
</el-date-picker>
</div>
</div>
<div class="inquire">
<div class="block">
<span class="demonstration">结束时间</span>
<el-date-picker
v-model="inquire.time[1]"
type="datetime"
placeholder="结束时间"
>
</el-date-picker>
</div>
</div>
<!-- 查询按钮 -->
<el-button class="primary but" type="primary" @click="getData()"
>查询</el-button
>
<el-button
class="primary"
type="primary"
@click="
inquire.partitionId = inquire.options[0].id;
inquire.roomId = '';
inquire.boomLevel = '';
inquire.triggererId = '';
inquire.time = [];
getData();
"
>重置查询</el-button
>
<el-button
class="primary"
type="primary"
@click="diamondStatisticsExportFun()"
>导出</el-button
>
<!-- 表格 -->
<el-table
v-loading="loading"
:data="tableData"
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="cycleDate" align="center" label="日期" />
<el-table-column prop="roomErbanNo" align="center" label="房间ID" />
<el-table-column prop="level" align="center" label="Boom等级" />
<el-table-column prop="erbanNo" align="center" label="触发者ID" />
<el-table-column prop="drawTime" align="center" label="触发时间" />
<el-table-column prop="num" align="center" label="参与用户数" />
<el-table-column prop="awardNum" align="center" label="发放奖励数" />
<el-table-column prop="ownerGold" align="center" label="获得金币数" />
<el-table-column align="center" label="操作" width="300">
<template v-slot="scope">
<el-button
@click="
memberVal = scope.row;
detailListFun();
"
type="text"
size="default"
>贡献及获奖明细</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 分页 -->
<el-pagination
style="margin-top: 10px"
class="paginationClass"
v-model:current-page="currentPage"
v-model:page-size="pageSize"
:page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 999999999]"
layout="sizes, prev, pager, next"
:total="total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
<!-- 贡献或获奖明细 -->
<el-dialog
v-loading="loading2"
v-model="memberDialog"
title="贡献或获奖明细"
center
>
<!-- 内嵌表格 -->
<el-table
:data="member.tableData"
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="roleType" align="center" label="角色">
<template v-slot="scope">
{{
scope.row.roleType == 1
? "房主"
: scope.row.roleType == 2
? "贡献榜1"
: scope.row.roleType == 3
? "贡献榜2"
: scope.row.roleType == 4
? "贡献榜3"
: scope.row.roleType == 5
? "boom触发者"
: scope.row.roleType == 6
? "房内普通用户"
: ""
}}
</template>
</el-table-column>
<el-table-column prop="erbanNo" align="center" label="用户ID" />
<el-table-column prop="nick" align="center" label="用户昵称" />
<el-table-column prop="exper" align="center" label="贡献值" />
<el-table-column prop="level" align="center" label="Boom等级" />
<el-table-column prop="awardType" align="center" label="奖品类型">
<template v-slot="scope">
{{
scope.row.awardType == 8
? "金币"
: scope.row.awardType == 6
? "礼物"
: scope.row.awardType == 5
? "座驾"
: scope.row.awardType == 1
? "头饰"
: scope.row.awardType == 3
? "气泡"
: scope.row.awardType == 10
? "VIP"
: scope.row.awardType == 11
? "勋章"
: "铭牌"
}}
</template>
</el-table-column>
<el-table-column prop="awardName" align="center" label="获得奖励" />
<el-table-column prop="awardNum" align="center" label="获得奖励数" />
<el-table-column
prop="createTime"
align="center"
label="奖励发放时间"
/>
</el-table>
<!-- 分页 -->
<el-pagination
style="margin-top: 10px"
class="paginationClass"
v-model:current-page="currentPage2"
v-model:page-size="pageSize2"
:page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 999999999]"
layout="sizes, prev, pager, next"
:total="total2"
@size-change="handleSizeChange2"
@current-change="handleCurrentChange2"
/>
<template #footer>
<span class="dialog-footer">
<el-button type="primary" @click="memberDialog = false">
关闭
</el-button>
</span>
</template>
</el-dialog>
</div>
</template>
<script>
import {
listPartitionInfo,
recordList,
detailList,
recordExport,
} from "@/api/boom/boom";
// @ts-ignore
import { dateFormat } from "@/utils/system-helper";
// @ts-ignore
import { ElMessage } from "element-plus";
export default {
name: "recordData",
data() {
return {
loading: false,
loading2: false,
//查询所需条件对象
inquire: {
partitionId: 2,
options: [],
roomId: "",
boomLevel: "",
triggererId: "",
time: [],
},
// 表格
tableData: [],
// 内嵌表格
memberDialog: false,
memberVal: null,
member: {
tableData: [],
},
// 新增弹窗
addDialog: false,
// 分页
total: 0, //总页数
currentPage: 1, //页码
pageSize: 10, //条数
// 分页
total2: 0, //总页数
currentPage2: 1, //页码
pageSize2: 10, //条数
};
},
created() {
listPartitionInfo().then((res) => {
this.inquire.options = res.data;
this.inquire.partitionId = res.data[0].id;
this.getData();
});
},
methods: {
// 查询接口
getData() {
this.loading = true;
let time = this.inquire.time;
let startTime = null;
let endTime = null;
if (time.length > 0) {
startTime = this.inquire.time[0]
? dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss")
: null;
endTime = this.inquire.time[1]
? dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss")
: null;
}
recordList({
partitionId: this.inquire.partitionId,
erbanNo: this.inquire.triggererId,
level: this.inquire.boomLevel,
roomErbanNo: this.inquire.roomId,
startTime: startTime,
endTime: endTime,
pageNo: this.currentPage,
pageSize: this.pageSize,
}).then((res) => {
if (res.code == 200) {
this.total = res.data.total;
this.tableData = res.data.records;
this.loading = false;
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
},
// 详细弹窗
detailListFun() {
this.loading2 = true;
let time = this.inquire.time;
let startTime = null;
let endTime = null;
if (time.length > 0) {
startTime = this.inquire.time[0]
? dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss")
: null;
endTime = this.inquire.time[1]
? dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss")
: null;
}
detailList({
partitionId: this.inquire.partitionId,
signId: this.memberVal.signId,
level: this.memberVal.level,
startTime: startTime,
endTime: endTime,
pageNo: this.currentPage2,
pageSize: this.pageSize2,
}).then((res) => {
if (res.code == 200) {
this.total2 = res.data.total;
this.member.tableData = res.data.records;
this.memberDialog = true;
this.loading2 = false;
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
},
diamondStatisticsExportFun() {
let time = this.inquire.time;
let startTime = "";
let endTime = "";
if (time.length > 0) {
startTime = this.inquire.time[0]
? dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss")
: "";
endTime = this.inquire.time[1]
? dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss")
: "";
}
recordExport({
partitionId: this.inquire.partitionId,
erbanNo: this.inquire.triggererId,
level: this.inquire.boomLevel,
roomErbanNo: this.inquire.roomId,
startTime: startTime,
endTime: endTime,
}).then();
},
// 分页详情导航
handleSizeChange2() {
this.detailListFun();
},
handleCurrentChange2() {
this.detailListFun();
},
// 分页导航
handleSizeChange() {
this.getData();
},
handleCurrentChange() {
this.getData();
},
},
};
</script>
<style lang="less" scoped>
.box {
padding-top: 20px;
background: #ecf0f5;
.inquire {
display: inline-block;
margin-right: 20px;
margin-bottom: 20px;
span {
margin-right: 10px;
}
.input {
width: 180px;
margin-right: 10px;
}
}
.dialogTableVisibleBut {
display: block;
margin: 30px 0 0 830px;
}
.paginationClass {
margin: 15px 0 5px 0px;
}
}
.selectBox {
display: flex;
height: 35px;
line-height: 35px;
margin-bottom: 20px;
}
.selectBoxImg {
height: 150px;
}
</style>

View File

@@ -265,7 +265,7 @@ export default {
}
function getPageInfo() {
$.get('/admin/callBattle/listItem.action', {
$.get('/admin/callBattle/listItem', {
}, function (res) {
console.log(res);
const data = res;
@@ -570,9 +570,7 @@ export default {
})
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -108,7 +108,7 @@ export default {
return param;
},
toolbar: '#toolbar',
url: '/admin/callBattle/listPlatformStat.action',
url: '/admin/callBattle/listPlatformStat',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -156,9 +156,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

View File

@@ -14,7 +14,7 @@
<i class="glyphicon glyphicon-search"></i>查询
</button>
<div class="col-sm-12">
当前库存 <span name="stock" id="stock" />金币
当前库存 <span name="stock" id="stock" />钻石
<button id="editStock" class="btn btn-default">编辑库存</button>
</div>
</div>
@@ -58,7 +58,7 @@
<h4 class="modal-title" id="editStockModalTitle">编辑库存</h4>
</div>
<div class="modal-body">
设置库存为 <input type="text" name="editedStock" id="editedStock" class="input-sm"> 金币
设置库存为 <input type="text" name="editedStock" id="editedStock" class="input-sm"> 钻石
</div>
<div class="modal-footer">
<h4 id="editStockModalFooter"></h4>
@@ -164,7 +164,7 @@ export default {
return param;
},
toolbar: '#toolbar',
url: '/admin/callBattle/listActRecord.action',
url: '/admin/callBattle/listActRecord',
onLoadSuccess: function () { //加载成功时执行
console.log("load success");
},
@@ -229,7 +229,7 @@ export default {
};
return param;
},
url: '/admin/callBattle/listRoundDrawDetail.action',
url: '/admin/callBattle/listRoundDrawDetail',
onLoadSuccess: function () { //加载成功时执行
$("#roundDetailModal").modal('show');
},
@@ -248,7 +248,7 @@ export default {
function getStock() {
$.ajax({
type: 'get',
url: "/admin/callBattle/getStock.action",
url: "/admin/callBattle/getStock",
success: function (json) {
if (json.success) {
console.log('data', json.data)
@@ -269,7 +269,7 @@ export default {
$('#editStockModelBtn').on('click', function () {
$.ajax({
type: 'get',
url: "/admin/callBattle/editStock.action",
url: "/admin/callBattle/editStock",
data: {
stock: $("#editedStock").val(),
},
@@ -290,9 +290,7 @@ export default {
});
}
},
unmounted() {
$('#table').bootstrapTable('destroy');
}
};
</script>

Some files were not shown because too many files have changed in this diff Show More