Compare commits

...

369 Commits

Author SHA1 Message Date
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
385 changed files with 15242 additions and 4277 deletions

1
package-lock.json generated
View File

@@ -42,7 +42,6 @@
"unplugin-auto-import": "^0.16.7", "unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2", "unplugin-vue-components": "^0.25.2",
"vue": "^3.2.13", "vue": "^3.2.13",
"webpack-bundle-analyzer": "^4.9.1",
"webpack-cli": "^5.1.4" "webpack-cli": "^5.1.4"
} }
}, },

View File

@@ -3,7 +3,7 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vue-cli-service serve --mode development --report", "dev": "vue-cli-service serve --mode development",
"build": "vue-cli-service build --mode production", "build": "vue-cli-service build --mode production",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
@@ -42,7 +42,6 @@
"unplugin-auto-import": "^0.16.7", "unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2", "unplugin-vue-components": "^0.25.2",
"vue": "^3.2.13", "vue": "^3.2.13",
"webpack-bundle-analyzer": "^4.9.1",
"webpack-cli": "^5.1.4" "webpack-cli": "^5.1.4"
} }
} }

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,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,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,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,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,23 @@
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;
};

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,56 @@
import request from '@/utils/request';
import { genQueryParam } from '@/utils/maintainer';
// 邀请移除记录
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
});
};

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,9 @@
import request from '@/utils/request';
export const getPartitionInfoList = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
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,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', url: '/admin/sysConf/getList',
method: 'get' 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; fixedScroll = data.fixedScroll;
data = data[this.options.dataField]; data = data[this.options.dataField];
} else if (!$.isArray(data)) { // support fixedScroll } else if (!$.isArray(data)) { // support fixedScroll
fixedScroll = data.fixedScroll; if (data) {
data = data.data; fixedScroll = data.fixedScroll;
data = data.data;
}
} }
this.initData(data); this.initData(data);
@@ -2528,13 +2530,25 @@
}; };
BootstrapTable.prototype.destroy = function () { 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.$el.insertBefore(this.$container);
$(this.options.toolbar).insertBefore(this.$el); $(this.options.toolbar).insertBefore(this.$el);
this.$container.next().remove(); this.$container.next().remove();
this.$container.remove(); this.$container.remove();
this.$el.html(this.$el_.html()) this.$el.html(this.$el_.html())
.css('margin-top', '0') .css('margin-top', '0')
.attr('class', this.$el_.attr('class') || ''); // reset the class .attr('class', this.$el_.attr('class') || ''); // reset the class
}; };
BootstrapTable.prototype.showLoading = function () { BootstrapTable.prototype.showLoading = function () {
@@ -2776,12 +2790,17 @@
data = $this.data('bootstrap.table'), data = $this.data('bootstrap.table'),
options = $.extend({}, BootstrapTable.DEFAULTS, $this.data(), options = $.extend({}, BootstrapTable.DEFAULTS, $this.data(),
typeof option === 'object' && option); typeof option === 'object' && option);
if (typeof option === 'string') { if (typeof option === 'string') {
if ($.inArray(option, allowedMethods) < 0) { if ($.inArray(option, allowedMethods) < 0) {
throw new Error("Unknown method: " + option); throw new Error("Unknown method: " + option);
} }
if (!data && option === 'destroy') {
new BootstrapTable(this, options).destroy();
return;
}
if (!data) { if (!data) {
return; return;
} }

View File

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

View File

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

View File

@@ -99,14 +99,13 @@
</div> </div>
<div class="modal fade loading" style="background: #00000040;" tabindex="-1" role="dialog" <div class="modal fade loading" style="background: #00000040;" tabindex="-1" role="dialog"
aria-labelledby="loadingModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false"> aria-labelledby="loadingModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="loadingGif" style="position: fixed;"><img :src="loading"></div> <div class="loadingGif" style="position: fixed; left:50%; top:50%;"><img src="https://img.zcool.cn/community/0111345d94b0b8a801211d53cbd04d.gif" style="width: 10%;"></div>
</div> </div>
</template> </template>
<script> <script>
import store from '@/store'; import store from '@/store';
import { getStore } from '@/utils/store'; import { getStore } from '@/utils/store';
import loading from '@/assets/images/loading.gif';
export default { export default {
name: 'MaintainerView', name: 'MaintainerView',
@@ -131,17 +130,12 @@ export default {
}, },
methods: { methods: {
getMenu() { getMenu() {
let parentMenus = getStore({ name: 'parent_menus' }); this.parentMenus = getStore({ name: 'parent_menus' });
let childMenus = getStore({ name: 'child_menus' }); this.childMenus = getStore({ name: 'child_menus' });
if (parentMenus && childMenus && parentMenus.length > 0 && childMenus.length > 0) { store.dispatch('getMenu').then(res => {
this.parentMenus = parentMenus; this.parentMenus = res.parents;
this.childMenus = childMenus; this.childMenus = res.childs;
} else { });
store.dispatch('getMenu').then(res => {
this.parentMenus = res.parents;
this.childMenus = res.childs;
});
}
}, },
getChilds(parentId) { getChilds(parentId) {
return this.childMenus.filter(v => v.parentid == parentId); return this.childMenus.filter(v => v.parentid == parentId);
@@ -171,9 +165,7 @@ export default {
parentIds.push(v.id); parentIds.push(v.id);
}); });
} }
console.log(parentIds);
this.parentMenus = store.getters.parentMenus.filter(v1 => parentIds.filter(v2 => v1.id == v2).length > 0); 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);
} }
} }
}, },

View File

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

View File

@@ -1,7 +1,9 @@
import { createApp } from 'vue' import { createApp } from 'vue'
// @ts-ignore
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router'
import store from './store' import store from './store'
import 'jquery' import 'jquery'
import 'jquery.md5' import 'jquery.md5'
import 'bootstrap/dist/css/bootstrap.min.css' import 'bootstrap/dist/css/bootstrap.min.css'
@@ -45,10 +47,13 @@ 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/css/bootstrap-treeview.min.css'
import '@/assets/plugins/bootstrap-treeview/js/bootstrap-treeview.min.js' import '@/assets/plugins/bootstrap-treeview/js/bootstrap-treeview.min.js'
// @ts-ignore
import components from '@/utils/components.js' import components from '@/utils/components.js'
// import ElementPlus from 'element-plus' // import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css' // import 'element-plus/dist/index.css'
import '@/css/public.css' import '@/css/public.css'
createApp(App).use(store).use(router).use(components).mount('#app') const app = createApp(App)
app.config.warnHandler = () => null;
app.use(store).use(router).use(components).mount('#app')

View File

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

View File

@@ -47,4 +47,13 @@ export function apiResult(json) {
$("#tipMsg").text("请求失败,错误信息:" + json.message); $("#tipMsg").text("请求失败,错误信息:" + json.message);
$("#tipModal").modal('show'); $("#tipModal").modal('show');
return false; 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); console.log(window.Notification.permission);
if (window.Notification) { if (window.Notification) {
$.ajax({ $.ajax({
url: "/admin/dynamic/verify/notifySwitch.action", url: "/admin/dynamic/verify/notifySwitch",
success: function (json) { success: function (json) {
if (json == 'true') { if (json == 'true') {
notifyInterval = setInterval(notify, 50000); notifyInterval = setInterval(notify, 50000);
@@ -17,7 +17,7 @@ export const notifyNotice = () => {
function notify() { function notify() {
$.ajax({ $.ajax({
url: "/admin/dynamic/verify/notify.action", url: "/admin/dynamic/verify/notify",
success: function (json) { success: function (json) {
if (json != null && json != "" && json != undefined && json != 'undefined') { if (json != null && json != "" && json != undefined && json != 'undefined') {
var dynamicCount = json.dynamic; var dynamicCount = json.dynamic;

View File

@@ -1,6 +1,54 @@
//获取url中的参数 //获取url中的参数
function getUrlParam(name) { export function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg); //匹配目标参数 var r = window.location.search.substr(1).match(reg); //匹配目标参数
if (r != null) return unescape(r[2]); return null; //返回参数值 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) {
return;
}
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

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

View File

@@ -62,7 +62,7 @@ export default {
} }
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "/admin/qiniu/uploadPatch.action", url: "/admin/qiniu/uploadPatch",
data: data, data: data,
cache: false, cache: false,
contentType: 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

@@ -10,7 +10,7 @@
<div id="toolbar"> <div id="toolbar">
奖品类别<select name="prizeType" id="prizeType" class="input-m"> 奖品类别<select name="prizeType" id="prizeType" class="input-m">
<option value="0">--全部--</option> <option value="0">--全部--</option>
<option value="1">金币</option> <option value="1">钻石</option>
<option value="2">线上礼物</option> <option value="2">线上礼物</option>
<option value="3">座驾</option> <option value="3">座驾</option>
<option value="4">头饰</option> <option value="4">头饰</option>
@@ -45,7 +45,7 @@
<div class="col-sm-8" style="padding-top:7px;"> <div class="col-sm-8" style="padding-top:7px;">
<select name="addType" id="addType" data-btn-class="btn btn-warning"> <select name="addType" id="addType" data-btn-class="btn btn-warning">
<option value="1">金币</option> <option value="1">钻石</option>
<option value="2">线上礼物</option> <option value="2">线上礼物</option>
<option value="3">座驾</option> <option value="3">座驾</option>
<option value="4">头饰</option> <option value="4">头饰</option>
@@ -179,7 +179,7 @@ export default {
field: 'prizeType', title: '奖品类别', align: 'center', valign: 'middle', width: '20%', formatter: function (val, row, index) { field: 'prizeType', title: '奖品类别', align: 'center', valign: 'middle', width: '20%', formatter: function (val, row, index) {
switch (val) { switch (val) {
case 1: case 1:
return '金币'; return '钻石';
case 2: case 2:
return '在线礼物'; return '在线礼物';
@@ -290,7 +290,7 @@ export default {
}, },
uniqueId: 'id', uniqueId: 'id',
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/activityAward/list.action', url: '/admin/activityAward/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -529,7 +529,7 @@ export default {
$('#carChoose').combobox(); $('#carChoose').combobox();
}) })
$.get('/admin/nameplate//total/list', {}, function (res) { $.get('/admin/nameplate/total/list', {}, function (res) {
if (res.code == 200) { if (res.code == 200) {
for (var i = 0; i < res.data.length; i++) { for (var i = 0; i < res.data.length; i++) {
// car.push(res.data[i]); // car.push(res.data[i]);
@@ -590,9 +590,7 @@ export default {
}) })
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -168,7 +168,7 @@ export default {
return param; return param;
}, },
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/car/getUserCarPort.action', url: '/admin/car/getUserCarPort',
onLoadSuccess: function (data) { //加载成功时执行 onLoadSuccess: function (data) { //加载成功时执行
if (data.users) { if (data.users) {
var $user = $('#userMessage'); var $user = $('#userMessage');
@@ -267,9 +267,7 @@ export default {
}) })
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -33,7 +33,12 @@
</select> </select>
</div> </div>
</div> </div>
<div class="col-sm-12">
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
<div class="col-sm-3">
<select name="partitionId" id="partitionId" class="form-control"></select>
</div>
</div>
<div class="col-sm-12"> <div class="col-sm-12">
<button id="car-goods-refresh" class="btn btn-default"> <button id="car-goods-refresh" class="btn btn-default">
<i class="glyphicon glyphicon-search"></i>查询 <i class="glyphicon glyphicon-search"></i>查询
@@ -59,6 +64,14 @@
<div class="modal-body"> <div class="modal-body">
<form class="form-horizontal" id="carGoodsForm"> <form class="form-horizontal" id="carGoodsForm">
<input type="hidden" name="id" id="id" /> <input type="hidden" name="id" id="id" />
<div class="form-group">
<label for="partitionFlag" class="col-sm-4 control-label">选择分区</label>
<div class="col-sm-6">
<input type="checkbox" name="partitionFlag" value="1"/>英语区<br>
<input type="checkbox" name="partitionFlag" value="2"/>阿拉伯语区<br>
<input type="checkbox" name="partitionFlag" value="4"/>华语区<br>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="carGoodsType" class="col-sm-3 control-label">座驾类型:</label> <label for="carGoodsType" class="col-sm-3 control-label">座驾类型:</label>
<div class="col-sm-9"> <div class="col-sm-9">
@@ -76,6 +89,18 @@
<input type="text" class="form-control validate[required]" name="name" id="name"> <input type="text" class="form-control validate[required]" name="name" id="name">
</div> </div>
</div> </div>
<div class="form-group">
<label for="ar_name" class="col-sm-3 control-label">阿语座驾名称</label>
<div class="col-sm-9">
<input type="text" class="form-control validate[required]" name="name" id="ar_name">
</div>
</div>
<div class="form-group">
<label for="en_name" class="col-sm-3 control-label">英语座驾名称</label>
<div class="col-sm-9">
<input type="text" class="form-control validate[required]" name="name" id="en_name">
</div>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">使用萝卜购买</label> <label class="col-sm-3 control-label">使用萝卜购买</label>
@@ -111,7 +136,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">使用金币购买</label> <label class="col-sm-3 control-label">使用钻石购买</label>
<div class="col-sm-9"> <div class="col-sm-9">
<label class="radio-inline"><input type="radio" name="goldSale" value="0"></label> <label class="radio-inline"><input type="radio" name="goldSale" value="0"></label>
<label class="radio-inline"><input type="radio" name="goldSale" value="1" checked></label> <label class="radio-inline"><input type="radio" name="goldSale" value="1" checked></label>
@@ -122,7 +147,7 @@
<div class="col-sm-6"> <div class="col-sm-6">
<input type="text" class="form-control" name="price" id="price"> <input type="text" class="form-control" name="price" id="price">
</div> </div>
<span class="col-sm-3">金币</span> <span class="col-sm-3">钻石</span>
</div> </div>
<div class="form-group"> <div class="form-group">
@@ -130,7 +155,7 @@
<div class="col-sm-6"> <div class="col-sm-6">
<input type="text" class="form-control" name="renewPrice" id="renewPrice"> <input type="text" class="form-control" name="renewPrice" id="renewPrice">
</div> </div>
<span class="col-sm-3">金币</span> <span class="col-sm-3">钻石</span>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="originalPrice" class="col-sm-3 control-label">原价:</label> <label for="originalPrice" class="col-sm-3 control-label">原价:</label>
@@ -138,7 +163,7 @@
<input type="number" class="form-control" placeholder="没有填0" value="0" name="originalPrice" <input type="number" class="form-control" placeholder="没有填0" value="0" name="originalPrice"
id="originalPrice"> id="originalPrice">
</div> </div>
<span class="col-sm-3">金币</span> <span class="col-sm-3">钻石</span>
</div> </div>
<div class="form-group"> <div class="form-group">
@@ -374,6 +399,8 @@
<script> <script>
import TableHelper from '@/utils/bootstrap-table-helper'; import TableHelper from '@/utils/bootstrap-table-helper';
import ComboboxHelper from '@/assets/plugins/bootstrap-combobox/js/bootstrap-combobox-helper'; import ComboboxHelper from '@/assets/plugins/bootstrap-combobox/js/bootstrap-combobox-helper';
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
import { buildSelectOption } from '@/utils/system-helper';
export default { export default {
name: "CarGoodsAdminView", name: "CarGoodsAdminView",
@@ -382,6 +409,7 @@ export default {
}, },
created() { created() {
this.$nextTick(function () { this.$nextTick(function () {
this.initPartition();
this.initData(); this.initData();
}); });
}, },
@@ -407,7 +435,28 @@ export default {
columns: [ columns: [
{ field: 'tmp', title: 'id', align: 'center', checkbox: true, width: '5%' }, { field: 'tmp', title: 'id', align: 'center', checkbox: true, width: '5%' },
{ field: 'id', title: '座驾ID', align: 'center', width: '5%' }, { field: 'id', title: '座驾ID', align: 'center', width: '5%' },
{ field: 'name', title: '座驾名称', align: 'center', width: '20%' }, {field: 'name.zh', title: '座驾名称', align: 'center', width: '20%'},
{field: 'name.ar', title: '阿语座驾名称', align: 'center', width: '20%'},
{field: 'name.en', title: '英语座驾名称', align: 'center', width: '20%'},
{
field: 'partitionFlag',
title: '地区',
align: 'center',
width: '10%',
formatter: function (val, row, index) {
let value = '';
if ((val & 1) != 0) {
value += '英语区<br>';
}
if ((val & 2) != 0) {
value += '阿拉伯语区<br>';
}
if ((val & 4) != 0) {
value += '华语区<br>';
}
return value;
}
},
{ {
field: 'carGoodsType', title: '座驾类型', align: 'center', width: '20%', field: 'carGoodsType', title: '座驾类型', align: 'center', width: '20%',
formatter: function (val) { formatter: function (val) {
@@ -420,7 +469,7 @@ export default {
}, },
{ {
field: 'goldSale', field: 'goldSale',
title: '金币购买', title: '钻石购买',
align: 'center', align: 'center',
width: '3%', width: '3%',
formatter: function (val, row, index) { formatter: function (val, row, index) {
@@ -448,9 +497,9 @@ export default {
} }
} }
}, },
{ field: 'originalPrice', title: '原价(金币', align: 'center', width: '5%' }, { field: 'originalPrice', title: '原价(钻石', align: 'center', width: '5%' },
{ field: 'price', title: '购买价格(金币', align: 'center', width: '5%' }, { field: 'price', title: '购买价格(钻石', align: 'center', width: '5%' },
{ field: 'renewPrice', title: '续费价格(金币', align: 'center', width: '5%' }, { field: 'renewPrice', title: '续费价格(钻石', align: 'center', width: '5%' },
{ field: 'radishOriginalPrice', title: '原价(萝卜)', align: 'center', width: '5%' }, { field: 'radishOriginalPrice', title: '原价(萝卜)', align: 'center', width: '5%' },
{ field: 'radishPrice', title: '购买价格(萝卜)', align: 'center', width: '5%' }, { field: 'radishPrice', title: '购买价格(萝卜)', align: 'center', width: '5%' },
{ field: 'radishRenewPrice', title: '续费价格(萝卜)', align: 'center', width: '5%' }, { field: 'radishRenewPrice', title: '续费价格(萝卜)', align: 'center', width: '5%' },
@@ -523,12 +572,43 @@ export default {
searchText: params.searchText, searchText: params.searchText,
carGoodsName: $("#query_carGoodsName").val(), carGoodsName: $("#query_carGoodsName").val(),
carGoodsType: $("#query_carGoodsType").val(), carGoodsType: $("#query_carGoodsType").val(),
enable: $("condition_type").val() enable: $("condition_type").val(),
partitionId: $('#partitionId').val(),
}; };
return param; return param;
}, },
ajax:function(request){ //使用ajax请求
$.ajax({
type:"GET",
url:'/admin/car/goods?enable=' + ComboboxHelper.getSelected("#condition_type"),
contentType:'application/json;charset=utf-8',
dataType:'json',
data: request.data,
success:function (res) {
console.log(res);
request.success({
"rows": res.rows.map(i=>{
let value = i.name;
if (value.startsWith('{') && value.endsWith('}')) {
i.name = JSON.parse(value);
} else {
i.name = {
zh: value,
ar: value,
en: value,
};
}
return i;
}),
"total": res.total
});
},
error:function(error){
console.log(error);
}
})
},
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/car/goods.action',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -547,7 +627,7 @@ export default {
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) { if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/car/goods/deletion.action", url: "/admin/car/goods/deletion",
data: {'ids': JSON.stringify([id])}, data: {'ids': JSON.stringify([id])},
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -581,7 +661,12 @@ export default {
$("#viewFileInfo").html(''); $("#viewFileInfo").html('');
$("#id").val(''); $("#id").val('');
$('#name').val('');
$('#ar_name').val('');
$('#en_name').val('');
$("#name").attr('readonly', false); $("#name").attr('readonly', false);
$("#ar_name").attr('readonly', false);
$("#en_name").attr('readonly', false);
// $("#price").attr('readonly', false); // $("#price").attr('readonly', false);
// $("#renewPrice").attr('readonly', false); // $("#renewPrice").attr('readonly', false);
$("#seq").val(''); $("#seq").val('');
@@ -602,7 +687,10 @@ export default {
$("input:radio[name='isMonsterLimit']")[0].checked = true; $("input:radio[name='isMonsterLimit']")[0].checked = true;
$("input:radio[name='isWeekStarLimit']")[0].checked = true; $("input:radio[name='isWeekStarLimit']")[0].checked = true;
$("input:radio[name='isActivityLimit']")[0].checked = true; $("input:radio[name='isActivityLimit']")[0].checked = true;
$('input[name="partitionFlag"]').each(function() {
$(this).checked = false;
});
$("#nobleId").btComboBox('disable'); $("#nobleId").btComboBox('disable');
ComboboxHelper.setDef("#nobleId", '0'); ComboboxHelper.setDef("#nobleId", '0');
@@ -620,7 +708,7 @@ export default {
}) })
$("#car-goods-refresh").click(function () { $("#car-goods-refresh").click(function () {
$("#table").bootstrapTable('refresh', { url: '/admin/car/goods.action' }); $("#table").bootstrapTable('refresh', { url: '/admin/car/goods' });
}) })
/*$("#car-goods-multiDel").click(function () { /*$("#car-goods-multiDel").click(function () {
@@ -639,7 +727,7 @@ export default {
if (confirm("你确认批量删除该记录吗?" + "\r\n删除后再也不能找回请谨慎操作")) { if (confirm("你确认批量删除该记录吗?" + "\r\n删除后再也不能找回请谨慎操作")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/car/goods/deletion.action", url: "/admin/car/goods/deletion",
data: {'ids': JSON.stringify(idArr)}, data: {'ids': JSON.stringify(idArr)},
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -756,7 +844,7 @@ export default {
var id = $(this).attr("data-id"); var id = $(this).attr("data-id");
$.ajax({ $.ajax({
type: "get", type: "get",
url: "/admin/car/goods/" + id + ".action", url: "/admin/car/goods/" + id + "",
data: { id: id }, data: { id: id },
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -770,7 +858,18 @@ export default {
// $("#price").val(json.entity.price); // $("#price").val(json.entity.price);
// $("#renewPrice").val(json.entity.renewPrice); // $("#renewPrice").val(json.entity.renewPrice);
$("#days").val(json.entity.days); $("#days").val(json.entity.days);
$("#name").val(json.entity.name); console.log(json.entity.name)
let name = json.entity.name;
if (name.startsWith('{') && name.endsWith('}')) {
var jsonName = JSON.parse(json.entity.name);
$("#name").val(jsonName.zh);
$("#ar_name").val(jsonName.ar);
$("#en_name").val(jsonName.en);
} else {
$("#name").val(name);
$("#ar_name").val(name);
$("#en_name").val(name);
}
$("#price").val(json.entity.price); $("#price").val(json.entity.price);
$("#renewPrice").val(json.entity.renewPrice); $("#renewPrice").val(json.entity.renewPrice);
$("#seq").val(json.entity.seq); $("#seq").val(json.entity.seq);
@@ -881,6 +980,24 @@ export default {
$("#viewFileInfo").html('未上传'); $("#viewFileInfo").html('未上传');
} }
//分区
let partitionFlag = json.entity.partitionFlag;
if ((partitionFlag & 1) != 0) {
$("input:checkbox[name='partitionFlag']")[0].checked = true;
} else {
$("input:checkbox[name='partitionFlag']")[0].checked = false;
}
if ((partitionFlag & 2) != 0) {
$("input:checkbox[name='partitionFlag']")[1].checked = true;
} else {
$("input:checkbox[name='partitionFlag']")[1].checked = false;
}
if ((partitionFlag & 4) != 0) {
$("input:checkbox[name='partitionFlag']")[2].checked = true;
} else {
$("input:checkbox[name='partitionFlag']")[2].checked = false;
}
// 打开编辑弹窗 // 打开编辑弹窗
$("#cardGoodsModal").modal('show'); $("#cardGoodsModal").modal('show');
} else { } else {
@@ -916,7 +1033,7 @@ export default {
return; return;
} }
if (goldSale == 1 && (!price || !renewPrice || !originalPrice)) { if (goldSale == 1 && (!price || !renewPrice || !originalPrice)) {
$("#tipMsg").text("请填写完整金币价格"); $("#tipMsg").text("请填写完整钻石价格");
$("#tipModal").modal('show'); $("#tipModal").modal('show');
return; return;
} else if (radishSale == 1 && (!radishPrice || !radishRenewPrice || !radishOriginalPrice)) { } else if (radishSale == 1 && (!radishPrice || !radishRenewPrice || !radishOriginalPrice)) {
@@ -949,18 +1066,46 @@ export default {
$("#tipModal").modal('show'); $("#tipModal").modal('show');
return; return;
} }
// 获取序列化字符串并转换为对象
let formData = $('#carGoodsForm').serializeArray().reduce(function(obj, item) {
obj[item.name] = item.value;
return obj;
}, {});
var name = $("#name").val();
// 阿语名称
var ar_name = $("#ar_name").val();
// 英语名称
var en_name = $("#en_name").val();
// 国际化字段
var jsonName = {"zh":name,"ar":ar_name,"en":en_name}
const nameValue = JSON.stringify(jsonName);
// 修改属性值
formData.name = nameValue; // 将giftName修改为"newGiftName"
//分区
const partitionFlagArray = $("input:checkbox[name='partitionFlag']:checked").serializeArray();
let partitionFlag = 0;
for (let i = 0, len = partitionFlagArray.length; i < len; i++) {
console.log(partitionFlagArray[i]);
partitionFlag |= partitionFlagArray[i].value;
}
formData.partitionFlag = partitionFlag;
// 将修改后的对象转换回序列化字符串
let newSerializeStr = $.param(formData);
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/car/goods.action", url: "/admin/car/goods",
data: $('#carGoodsForm').serialize(), data: newSerializeStr,
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
if (json.success == 'true') { if (json.code == 200) {
$("#carGoodsModal").modal('hide'); $("#carGoodsModal").modal('hide');
$("#tipMsg").text("保存成功"); $("#tipMsg").text("保存成功");
$("#tipModal").modal('show'); $("#tipModal").modal('show');
TableHelper.doRefresh("#table"); setTimeout(function() {
$("#cardGoodsModal").modal('hide'); TableHelper.doRefresh("#table");
$("#cardGoodsModal").modal('hide');
}, 1000);
} else { } else {
$("#tipMsg").text("保存失败." + json.msg); $("#tipMsg").text("保存失败." + json.msg);
$("#tipModal").modal('show'); $("#tipModal").modal('show');
@@ -1033,11 +1178,26 @@ export default {
}) })
}); });
} },
initPartition() {
getPartitionInfoList().then(res => {
let data = res.data;
buildSelectOption(
"#partitionId",
null,
[{
value: '',
text: '全部',
}].concat(data.map((v) => {
return {
value: v.id,
text: v.desc,
};
}))
);
});
},
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -81,7 +81,7 @@ export default {
ajax: function (request) { //使用ajax请求 ajax: function (request) { //使用ajax请求
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: '/admin/carRecord/list.action', url: '/admin/carRecord/list',
contentType: 'application/json;charset=utf-8', contentType: 'application/json;charset=utf-8',
dataType: 'json', dataType: 'json',
data: request.data, data: request.data,
@@ -114,9 +114,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -59,7 +59,7 @@ export default {
{ field: 'createTime', title: '日期', align: 'center', width: '5%' }, { field: 'createTime', title: '日期', align: 'center', width: '5%' },
{ field: 'carId', title: '座驾ID', align: 'center', width: '5%' }, { field: 'carId', title: '座驾ID', align: 'center', width: '5%' },
{ field: 'carName', title: '座驾名称', align: 'center', width: '5%' }, { field: 'carName', title: '座驾名称', align: 'center', width: '5%' },
{ field: 'carPrice', title: '座驾金额(金币)', align: 'center', width: '5%' }, { field: 'carPrice', title: '座驾金额(钻石)', align: 'center', width: '5%' },
{ field: 'carRadishPrice', title: '座驾金额(萝卜)', align: 'center', width: '5%' }, { field: 'carRadishPrice', title: '座驾金额(萝卜)', align: 'center', width: '5%' },
{ field: 'carStatus', title: '座驾状态', align: 'center', width: '5%' }, { field: 'carStatus', title: '座驾状态', align: 'center', width: '5%' },
{ field: 'receivedCarNum', title: '用户收到数量', align: 'center', width: '5%' }, { field: 'receivedCarNum', title: '用户收到数量', align: 'center', width: '5%' },
@@ -85,7 +85,7 @@ export default {
return param; return param;
}, },
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/car/statisticsCar.action', url: '/admin/car/statisticsCar',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -125,9 +125,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -230,7 +230,7 @@ export default {
}, },
uniqueId: 'id', uniqueId: 'id',
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/channel/content/queryList.action', url: '/admin/channel/content/queryList',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -367,7 +367,7 @@ export default {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/channel/content/saveChannelContent.action", url: "/admin/channel/content/saveChannelContent",
data: { data: {
id: id, id: id,
channel: channel, channel: channel,
@@ -409,7 +409,7 @@ export default {
var id = $(this).data('id'); var id = $(this).data('id');
$.ajax({ $.ajax({
type: "get", type: "get",
url: "/admin/channel/content/getChannelContent.action", url: "/admin/channel/content/getChannelContent",
data: { id: id }, data: { id: id },
dataType: "json", dataType: "json",
success: function (ret) { success: function (ret) {
@@ -450,7 +450,7 @@ export default {
var status = $(this).data('status'); var status = $(this).data('status');
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/channel/content/toggleState.action", url: "/admin/channel/content/toggleState",
data: { id: id, status: status }, data: { id: id, status: status },
dataType: "json", dataType: "json",
success: function (ret) { success: function (ret) {
@@ -489,9 +489,7 @@ export default {
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -307,7 +307,24 @@ export default {
$('#channelTable').bootstrapTable('destroy'); $('#channelTable').bootstrapTable('destroy');
$('#channelTable').bootstrapTable({ $('#channelTable').bootstrapTable({
columns: [ columns: [
{ field: 'desc', title: '渠道名称', align: 'center', width: '5%' }, { field: 'payChannel', title: '合作方', align: 'center', width: '5%' },
{
field: 'desc',
title: '渠道名称',
align: 'center',
width: '5%',
formatter: function (val, row, index) {
let color = 'black';
if (val == 'MyCard點數卡' || val == 'MyCard會員點數' || val == 'MyCard Paypal' || val == '信用卡' || val == '悠遊付' || val == 'ezPay 簡單付' || val == '台灣Pay' || val == 'icash Pay' || val == 'Pi 拍錢包' || val == '全支付' || val == 'LINE Pay') {
color = 'green';
} else if (val == '電子支付' || val == '銀行轉賬') {
color = 'blue';
} else if (val == '市內電話帳單' || val == '行動電話帳單' || val == '電信數據ADSL帳單') {
color = 'orange';
}
return '<span style="color:' + color + ';">' + val + '</span>';
}
},
{ {
field: 'logo', field: 'logo',
title: '图标', title: '图标',
@@ -355,7 +372,7 @@ export default {
if (row.chargeProds) { if (row.chargeProds) {
for (let i = 0, len = row.chargeProds.length; i < len; i++) { for (let i = 0, len = row.chargeProds.length; i < len; i++) {
var chargeProd = row.chargeProds[i]; var chargeProd = row.chargeProds[i];
value += currency + ':' + (chargeProd.money / 100) + '手续费 ' + chargeProd.handlingRate + '% 到账钻石:' + chargeProd.chargeGoldNum + '<br/>'; value += currency + ':' + (chargeProd.money / 100) + '手续费 ' + chargeProd.handlingRate + '% 到账金币:' + chargeProd.chargeGoldNum + '<br/>';
} }
} }
return value; return value;
@@ -532,9 +549,9 @@ export default {
$select.append($option); $select.append($option);
} }
$div.append($select); $div.append($select);
$div.append(' 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" value="' + handlingRate + '" style="width:41px;"/>% 到账钻石<span id="chargeGoldNum' + i + '">' + chargeGoldNum + '</span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>'); $div.append(' 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" value="' + handlingRate + '" style="width:41px;"/>% 到账金币<span id="chargeGoldNum' + i + '">' + chargeGoldNum + '</span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
} else { } else {
$div.html(currency + ' <input type="text" data-index="' + i + '" id="amount' + i + '" oninput="calc(this)" value="' + amount + '" style="width:41px;"/> 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" value="' + handlingRate + '" style="width:41px;"/>% 到账钻石<span id="chargeGoldNum' + i + '">' + chargeGoldNum + '</span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>'); $div.html(currency + ' <input type="text" data-index="' + i + '" id="amount' + i + '" oninput="calc(this)" value="' + amount + '" style="width:41px;"/> 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" value="' + handlingRate + '" style="width:41px;"/>% 到账金币<span id="chargeGoldNum' + i + '">' + chargeGoldNum + '</span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
} }
$formGroup.append($div); $formGroup.append($div);
$form.append($formGroup); $form.append($formGroup);
@@ -569,9 +586,9 @@ export default {
$select.append($option); $select.append($option);
} }
$div.append($select); $div.append($select);
$div.append(' 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" style="width:41px;"/>% 到账钻石<span id="chargeGoldNum' + i + '"></span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>'); $div.append(' 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" style="width:41px;"/>% 到账金币<span id="chargeGoldNum' + i + '"></span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
} else { } else {
$div.html(currency + ' <input type="text" data-index="' + i + '" id="amount' + i + '" oninput="calc(this)" style="width:41px;"/> 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" style="width:41px;"/>% 到账钻石<span id="chargeGoldNum' + i + '"></span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>'); $div.html(currency + ' <input type="text" data-index="' + i + '" id="amount' + i + '" oninput="calc(this)" style="width:41px;"/> 手续费 <input type="text" data-index="' + i + '" id="handlingRate' + i + '" oninput="calc(this)" style="width:41px;"/>% 到账金币<span id="chargeGoldNum' + i + '"></span> <button class="btn btn-sm btn-default opt-del" data-index="' + i + '">删除</button>');
} }
$formGroup.append($div); $formGroup.append($div);
$form.append($formGroup); $form.append($formGroup);

View File

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

View File

@@ -73,7 +73,7 @@
<option value="2">铭牌</option> <option value="2">铭牌</option>
<option value="3">座驾</option> <option value="3">座驾</option>
<option value="4">头饰</option> <option value="4">头饰</option>
<option value="5">额外钻石</option> <option value="5">额外金币</option>
</select> </select>
</div> </div>
</div> </div>
@@ -97,7 +97,7 @@
<label for="modal_rewardNum" class="col-sm-3 control-label">奖励个数</label> <label for="modal_rewardNum" class="col-sm-3 control-label">奖励个数</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input type="text" class="form-control validate[required,custom[integer]]" name="rewardNum" <input type="text" class="form-control validate[required,custom[integer]]" name="rewardNum"
id="modal_rewardNum" placeholder="礼物、额外钻石输入个数"> id="modal_rewardNum" placeholder="礼物、额外金币输入个数">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
@@ -260,7 +260,7 @@ export default {
}, },
uniqueId: 'id', uniqueId: 'id',
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/first/charge/reward/list.action', url: '/admin/first/charge/reward/list',
onLoadSuccess: function (res) { onLoadSuccess: function (res) {
console.log(res) console.log(res)
$('.giveShowPrice').text(res.giveShowPrice); $('.giveShowPrice').text(res.giveShowPrice);
@@ -290,7 +290,7 @@ export default {
var id = $(this).data('id'); var id = $(this).data('id');
$.ajax({ $.ajax({
type: "get", type: "get",
url: "/admin/first/charge/reward/getId.action", url: "/admin/first/charge/reward/getId",
data: { id: id }, data: { id: id },
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -321,7 +321,7 @@ export default {
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) { if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/first/charge/reward/delete.action", url: "/admin/first/charge/reward/delete",
data: { id: id }, data: { id: id },
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -482,9 +482,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -114,7 +114,7 @@ export default {
return param; return param;
}, },
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/first/charge/reward/statistics.action', url: '/admin/first/charge/reward/statistics',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -196,7 +196,7 @@ export default {
}; };
return param; return param;
}, },
url: '/admin/first/charge/reward/record.action', url: '/admin/first/charge/reward/record',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
$("#roundDetailModal").modal('show'); $("#roundDetailModal").modal('show');
}, },
@@ -215,7 +215,7 @@ export default {
function getStock() { function getStock() {
$.ajax({ $.ajax({
type: 'get', type: 'get',
url: "/admin/luckySea/getStock.action", url: "/admin/luckySea/getStock",
success: function (json) { success: function (json) {
if (json.success) { if (json.success) {
console.log('data', json.data) console.log('data', json.data)
@@ -236,7 +236,7 @@ export default {
$('#editStockModelBtn').on('click', function () { $('#editStockModelBtn').on('click', function () {
$.ajax({ $.ajax({
type: 'get', type: 'get',
url: "/admin/luckySea/editStock.action", url: "/admin/luckySea/editStock",
data: { data: {
stock: $("#editedStock").val(), stock: $("#editedStock").val(),
}, },
@@ -257,9 +257,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -41,7 +41,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="amount" class="col-sm-3 control-label">金币大小:</label> <label for="amount" class="col-sm-3 control-label">钻石大小:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input type="text" class="form-control validate[required]" name="amount" <input type="text" class="form-control validate[required]" name="amount"
id="amount" value=10> id="amount" value=10>
@@ -92,7 +92,7 @@ export default {
{ {
field: 'amount', title: '金额', align: 'center', width: '10%', field: 'amount', title: '金额', align: 'center', width: '10%',
formatter: function (val, row, index) { formatter: function (val, row, index) {
return val + "金币"; return val + "钻石";
} }
}, },
{ {
@@ -154,7 +154,7 @@ export default {
}, },
uniqueId: 'code', uniqueId: 'code',
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/redeemcode/getlist.action', url: '/admin/redeemcode/getlist',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -176,7 +176,7 @@ export default {
if ($("#roleForm").validationEngine('validate')) { if ($("#roleForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/redeemcode/gener.action", url: "/admin/redeemcode/gener",
data: $('#roleForm').serialize(), data: $('#roleForm').serialize(),
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -197,9 +197,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -0,0 +1,156 @@
<template>
<section class="content">
<div class="box box-danger">
<div class="box-body">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1 id="itemTitle"></h1>
</section>
<!-- .content -->
<section class="content">
<div id="table"></div>
<div id="toolbar">
<div class="col-sm-12">
<label for="erbanNo" class="col-sm-1 control-label">ID:</label>
<div class="col-sm-2">
<input type="text" class="form-control" name="erbanNo" id="erbanNo">
</div>
<label for="startTime" class="col-sm-1 control-label">付费日期:</label>
<div class="col-sm-2">
<input type="text" name="startTime" id="timeBegin" class="input-sm form-control" placeholder="起始时间">
</div>
<label for="endTime" class="col-sm-1 control-label">-</label>
<div class="col-sm-2">
<input type="text" name="endTime" id="timeEnd" class="input-sm form-control" placeholder="结束时间">
</div>
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
<div class="col-sm-2">
<select name="partitionId" id="partitionId" class="form-control"></select>
</div>
</div>
<div class="col-sm-12">
<button id="btnSearch" class="btn btn-default">
<i class="glyphicon glyphicon-search"></i>查询
</button>
</div>
</div>
</section><!-- .content -->
</div>
</div>
</section>
</template>
<script>
import TableHelper from '@/utils/bootstrap-table-helper';
import { getPublicChatTopRecordPage } from '@/api/chat/publicChatTopRecord';
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
import { buildSelectOption } from '@/utils/system-helper';
export default {
name: 'PublicChatTopRecordView',
data() {
return {
columns: [
{ field: 'erbanNo', title: '用户ID', align: 'center', width: '5%' },
{ field: 'nick', title: '用户昵称', align: 'center', width: '15%' },
{ field: 'partitionDesc', title: '所属地区', align: 'center', width: '15%' },
{ field: 'payMoneyNum', title: '付费金额(金币)', align: 'center', width: '15%' },
{ field: 'createTime', title: '付费日期', align: 'center', width: '15%' },
],
};
},
created() {
this.initPartition();
this.init();
},
methods: {
init() {
this.$nextTick(function () {
let $this = this;
var picker1 = $("#timeBegin").datetimepicker({
format: 'yyyy-mm-dd hh:ii:00',
todayBtn: true,
autoclose: true,
});
var picker2 = $("#timeEnd").datetimepicker({
format: 'yyyy-mm-dd hh:ii:00',
todayBtn: true,
autoclose: true
});
picker1.on('changeDate', function () {
var date = $('#timeBegin').datetimepicker('getDate');
picker2.datetimepicker('setStartDate', date);
});
picker2.on('changeDate', function () {
var date = $('#timeEnd').datetimepicker('getDate');
picker1.datetimepicker('setEndDate', date);
});
$this.initTable();
$('#btnSearch').click(function () {
$this.search();
});
});
},
initTable() {
let $this = this;
TableHelper.destroy('#table');
$('#table').bootstrapTable({
columns: $this.columns,
cache: false,
striped: true,
showRefresh: false,
pageSize: 10,
pagination: true,
pageList: [1, 10, 20, 30, 50],
search: false,
sidePagination: 'server',
queryParamsType: 'undefined',
queryParams: function queryParams(params) {
var param = {
erbanNo: $('#erbanNo').val(),
startTime: $('#timeBegin').val(),
endTime: $('#timeEnd').val(),
partitionId: $('#partitionId').val(),
pageNum: params.pageNumber,
pageSize: params.pageSize,
};
return param;
},
ajax: function(request) {
getPublicChatTopRecordPage(request.data).then(res => {
let data = res.data;
request.success({
'rows': data.records,
'total': data.total
});
});
},
toolbar: '#toolbar',
});
},
search() {
TableHelper.doRefresh('#table');
},
initPartition() {
getPartitionInfoList().then(res => {
let data = res.data;
buildSelectOption(
"#partitionId",
null,
[{
value: '',
text: '全部',
}].concat(data.map((v) => {
return {
value: v.id,
text: v.desc,
};
}))
);
});
},
},
}
</script>
<style scoped></style>

View File

@@ -23,7 +23,11 @@
<label for="name" class="col-sm-1 control-label">气泡名称:</label> <label for="name" class="col-sm-1 control-label">气泡名称:</label>
<div class="col-sm-2"><input type="text" class="form-control" name="name" id="name"></div> <div class="col-sm-2"><input type="text" class="form-control" name="name" id="name"></div>
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
<div class="col-sm-2">
<select name="partitionId" id="partitionId" class="form-control"></select>
</div>
</div> </div>
</form> </form>
@@ -53,6 +57,14 @@
<div class="modal-body"> <div class="modal-body">
<form class="form-horizontal" id="addForm"> <form class="form-horizontal" id="addForm">
<input type="hidden" name="id" id="modal_id" /> <input type="hidden" name="id" id="modal_id" />
<div class="form-group">
<label for="partitionFlag" class="col-sm-4 control-label">选择分区</label>
<div class="col-sm-6">
<input type="checkbox" name="partitionFlag" value="1"/>英语区<br>
<input type="checkbox" name="partitionFlag" value="2"/>阿拉伯语区<br>
<input type="checkbox" name="partitionFlag" value="4"/>华语区<br>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="modal_type" class="col-sm-4 control-label">装扮类型:</label> <label for="modal_type" class="col-sm-4 control-label">装扮类型:</label>
<div class="col-sm-6"> <div class="col-sm-6">
@@ -69,6 +81,18 @@
placeholder="请输入气泡名称"> placeholder="请输入气泡名称">
</div> </div>
</div> </div>
<div class="form-group">
<label for="ar_modal_name" class="col-sm-4 control-label">阿语装扮名称:</label>
<div class="col-sm-6">
<input type="text" class="form-control validate[required]" name="name" id="ar_modal_name" placeholder="请输入气泡名称">
</div>
</div>
<div class="form-group">
<label for="en_modal_name" class="col-sm-4 control-label">英语装扮名称:</label>
<div class="col-sm-6">
<input type="text" class="form-control validate[required]" name="name" id="en_modal_name" placeholder="请输入气泡名称">
</div>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">安卓图片:</label> <label class="col-sm-4 control-label">安卓图片:</label>
<div class="col-sm-6"> <div class="col-sm-6">
@@ -155,6 +179,8 @@
<script> <script>
import TableHelper from '@/utils/bootstrap-table-helper'; import TableHelper from '@/utils/bootstrap-table-helper';
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
import { buildSelectOption } from '@/utils/system-helper';
export default { export default {
name: "ChatbubbleManageView", name: "ChatbubbleManageView",
@@ -163,6 +189,7 @@ export default {
}, },
created() { created() {
this.$nextTick(function () { this.$nextTick(function () {
this.initPartition();
this.initData(); this.initData();
}); });
}, },
@@ -173,7 +200,28 @@ export default {
$('#table').bootstrapTable({ $('#table').bootstrapTable({
columns: [ columns: [
{ field: 'id', title: '装扮id', align: 'middle', width: '5%' }, { field: 'id', title: '装扮id', align: 'middle', width: '5%' },
{ field: 'name', title: '装扮名称', align: 'middle', width: '5%' }, {
field: 'partitionFlag',
title: '地区',
align: 'center',
width: '10%',
formatter: function (val, row, index) {
let value = '';
if ((val & 1) != 0) {
value += '英语区<br>';
}
if ((val & 2) != 0) {
value += '阿拉伯语区<br>';
}
if ((val & 4) != 0) {
value += '华语区<br>';
}
return value;
}
},
{field: 'name.zh', title: '装扮名称', align: 'middle', width: '5%'},
{field: 'name.ar', title: '阿语装扮名称', align: 'middle', width: '5%'},
{field: 'name.en', title: '英语装扮名称', align: 'middle', width: '5%'},
{ {
field: 'iosUrl', field: 'iosUrl',
title: '装扮图片', title: '装扮图片',
@@ -261,11 +309,43 @@ export default {
type: $('#type').val(), type: $('#type').val(),
name: $('#name').val(), name: $('#name').val(),
id: $('#id').val(), id: $('#id').val(),
partitionId: $('#partitionId').val(),
}; };
return param; return param;
}, },
ajax:function(request){ //使用ajax请求
$.ajax({
type:"GET",
url:'/admin/chatbubble/listByPage',
contentType:'application/json;charset=utf-8',
dataType:'json',
data: request.data,
success:function (res) {
console.log(res);
request.success({
"rows": res.rows.map(i=>{
let value = i.name;
if (value.startsWith('{') && value.endsWith('}')) {
i.name = JSON.parse(value);
} else {
i.name = {
zh: value,
ar: value,
en: value,
};
}
return i;
}),
"total": res.total
});
},
error:function(error){
console.log(error);
}
})
},
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/chatbubble/listByPage', // url: '/admin/chatbubble/listByPage',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -286,12 +366,43 @@ export default {
// 赋值 // 赋值
$("#addForm #modal_id").val(row.id); $("#addForm #modal_id").val(row.id);
$("#addForm #modal_type").val(row.type); $("#addForm #modal_type").val(row.type);
$("#addForm #modal_name").val(row.name); console.log(row.name)
let name = row.name;
if (Object.prototype.hasOwnProperty.call(name, 'zh') || Object.prototype.hasOwnProperty.call(name, 'ar') || Object.prototype.hasOwnProperty.call(name, 'en')) {
$("#modal_name").val(row.name.zh);
// 阿语名称
$("#ar_modal_name").val(row.name.ar);
// 英语名称
$("#en_modal_name").val(row.name.en);
} else {
$("#modal_name").val(name);
// 阿语名称
$("#ar_modal_name").val(name);
// 英语名称
$("#en_modal_name").val(name);
}
$('#addAndroidIconPicUrl').attr("src", row.androidUrl); $('#addAndroidIconPicUrl').attr("src", row.androidUrl);
$("#addForm #androidUrl").val(row.androidUrl); $("#addForm #androidUrl").val(row.androidUrl);
$('#addIosIconPicUrl').attr("src", row.iosUrl); $('#addIosIconPicUrl').attr("src", row.iosUrl);
$("#addForm #iosUrl").val(row.iosUrl); $("#addForm #iosUrl").val(row.iosUrl);
$("#addForm #status").val(row.status); $("#addForm #status").val(row.status);
//分区
let partitionFlag = row.partitionFlag;
if ((partitionFlag & 1) != 0) {
$("input:checkbox[name='partitionFlag']")[0].checked = true;
} else {
$("input:checkbox[name='partitionFlag']")[0].checked = false;
}
if ((partitionFlag & 2) != 0) {
$("input:checkbox[name='partitionFlag']")[1].checked = true;
} else {
$("input:checkbox[name='partitionFlag']")[1].checked = false;
}
if ((partitionFlag & 4) != 0) {
$("input:checkbox[name='partitionFlag']")[2].checked = true;
} else {
$("input:checkbox[name='partitionFlag']")[2].checked = false;
}
$("#addModal").modal('show'); $("#addModal").modal('show');
}); });
@@ -332,13 +443,48 @@ export default {
$('#button-save').on('click', function () { $('#button-save').on('click', function () {
var androidUrl = $('#androidUrl').val(); var androidUrl = $('#androidUrl').val();
var iosUrl = $('#iosUrl').val(); var iosUrl = $('#iosUrl').val();
var name = $('#modal_name').val(); // 获取序列化字符串并转换为对象
let formData = $('#addForm').serializeArray().reduce(function(obj, item) {
obj[item.name] = item.value;
return obj;
}, {});
var name = $("#modal_name").val();
// 阿语名称
var ar_name = $("#ar_modal_name").val();
// 英语名称
var en_name = $("#en_modal_name").val();
// 国际化字段
var jsonName = {"zh":name,"ar":ar_name,"en":en_name}
const nameValue = JSON.stringify(jsonName);
// 修改属性值
formData.name = nameValue; // 将giftName修改为"newGiftName"
//分区
const partitionFlagArray = $("input:checkbox[name='partitionFlag']:checked").serializeArray();
let partitionFlag = 0;
for (let i = 0, len = partitionFlagArray.length; i < len; i++) {
console.log(partitionFlagArray[i]);
partitionFlag |= partitionFlagArray[i].value;
}
formData.partitionFlag = partitionFlag;
// 将修改后的对象转换回序列化字符串
let newSerializeStr = $.param(formData);
//做下数据校验 //做下数据校验
if (isEmpty(name)) { if (isEmpty(name)) {
$("#tipMsg").text("装扮名字不能为空"); $("#tipMsg").text("装扮名字不能为空");
$("#tipModal").modal('show'); $("#tipModal").modal('show');
return; return;
} }
if (isEmpty(ar_name)) {
$("#tipMsg").text("阿语装扮名字不能为空");
$("#tipModal").modal('show');
return;
}
if (isEmpty(en_name)) {
$("#tipMsg").text("英语装扮名字不能为空");
$("#tipModal").modal('show');
return;
}
if (isEmpty(androidUrl) || isEmpty(iosUrl)) { if (isEmpty(androidUrl) || isEmpty(iosUrl)) {
$("#tipMsg").text("图片不能为空"); $("#tipMsg").text("图片不能为空");
$("#tipModal").modal('show'); $("#tipModal").modal('show');
@@ -349,14 +495,16 @@ export default {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/chatbubble/saveOrUpdate", url: "/admin/chatbubble/saveOrUpdate",
data: $("#addForm").serialize(), data: newSerializeStr,
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
if (json.code === 200) { if (json.code === 200) {
$("#tipMsg").text("保存成功"); $("#tipMsg").text("保存成功");
$("#tipModal").modal('show'); $("#tipModal").modal('show');
TableHelper.doRefresh("#table"); setTimeout(function() {
$("#addModal").modal('hide'); TableHelper.doRefresh("#table");
$("#addModal").modal('hide');
}, 1000);
} else { } else {
$("#tipMsg").text("保存失败,错误信息:" + json.message); $("#tipMsg").text("保存失败,错误信息:" + json.message);
$("#tipModal").modal('show'); $("#tipModal").modal('show');
@@ -378,6 +526,11 @@ export default {
$('#status').val(''); $('#status').val('');
$('#modal_type').val(''); $('#modal_type').val('');
$('#modal_name').val(''); $('#modal_name').val('');
$('#ar_modal_name').val('');
$('#en_modal_name').val('');
$('input[name="partitionFlag"]').each(function() {
$(this).checked = false;
});
} }
//判断空值 //判断空值
function isEmpty(data) { function isEmpty(data) {
@@ -405,7 +558,7 @@ export default {
var id = $(this).attr("data-id"); var id = $(this).attr("data-id");
$.ajax({ $.ajax({
type: "get", type: "get",
url: "/admin/nameplate/sync.action", url: "/admin/nameplate/sync",
data: { data: {
id: id id: id
}, },
@@ -469,11 +622,26 @@ export default {
} }
}); });
}); });
} },
}, initPartition() {
unmounted() { getPartitionInfoList().then(res => {
$('#table').bootstrapTable('destroy'); let data = res.data;
} buildSelectOption(
"#partitionId",
null,
[{
value: '',
text: '全部',
}].concat(data.map((v) => {
return {
value: v.id,
text: v.desc,
};
}))
);
});
},
},
}; };
</script> </script>

View File

@@ -51,7 +51,19 @@ export default {
columns: [ columns: [
{ field: 'id', title: 'id', visible: false, align: 'center', width: '5%' }, { field: 'id', title: 'id', visible: false, align: 'center', width: '5%' },
{ field: 'bubbleId', title: '装扮ID', align: 'center', width: '5%' }, { field: 'bubbleId', title: '装扮ID', align: 'center', width: '5%' },
{ field: 'bubbleName', title: '装扮名称', align: 'center', width: '5%' }, {
field: 'bubbleName',
title: '装扮名称',
align: 'center',
width: '5%',
formatter: function (val) {
let value = val;
if (val && val.startsWith('{') && val.endsWith('}')) {
value = JSON.parse(val).zh;
}
return value;
}
},
{ field: 'erbanNo', title: '获得用户ID', align: 'center', width: '5%' }, { field: 'erbanNo', title: '获得用户ID', align: 'center', width: '5%' },
{ field: 'nick', title: '用户昵称', align: 'center', width: '5%' }, { field: 'nick', title: '用户昵称', align: 'center', width: '5%' },
{ {
@@ -200,9 +212,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -381,7 +381,7 @@ export default {
if ($("#discoveryForm").validationEngine('validate')) { if ($("#discoveryForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/discovery/saveOrUpdate.action', url: '/admin/discovery/saveOrUpdate',
data: { data: {
id: id, id: id,
name: name, name: name,
@@ -428,7 +428,7 @@ export default {
var id = $(this).attr("data-id"); var id = $(this).attr("data-id");
$.ajax({ $.ajax({
type: "get", type: "get",
url: "/admin/discovery/getById.action", url: "/admin/discovery/getById",
data: { id: id }, data: { id: id },
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -527,7 +527,7 @@ export default {
"\r\n删除后再也不能找回请谨慎操作")) { "\r\n删除后再也不能找回请谨慎操作")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/discovery/saveOrUpdate.action", url: "/admin/discovery/saveOrUpdate",
data: { data: {
'id': id, 'id': id,
'status': '0' 'status': '0'
@@ -548,9 +548,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
function clearForm(formId) { function clearForm(formId) {
@@ -566,7 +564,7 @@ function clearForm(formId) {
function getGame() { function getGame() {
$.ajax({ $.ajax({
type: 'get', type: 'get',
url: '/admin/discovery/queryGame.action', url: '/admin/discovery/queryGame',
data: {}, data: {},
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
@@ -757,7 +755,7 @@ function initTable() {
return param; return param;
}, },
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/discovery/list.action', url: '/admin/discovery/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' }); $(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
console.log("load success"); console.log("load success");

View File

@@ -119,7 +119,9 @@ export default {
columns: [ columns: [
{ field: 'id', title: 'ID', align: 'center', valign: 'middle', width: '10%' }, { field: 'id', title: 'ID', align: 'center', valign: 'middle', width: '10%' },
{ field: 'dressId', title: '装扮id', align: 'center', valign: 'middle', width: '10%' }, { field: 'dressId', title: '装扮id', align: 'center', valign: 'middle', width: '10%' },
{ field: 'name', title: '装扮名称', align: 'left', valign: 'middle', width: '10%' }, {field: 'name.zh', title: '装扮名称', align: 'left', valign: 'middle', width: '10%'},
{field: 'name.ar', title: '阿语装扮名称', align: 'left', valign: 'middle', width: '10%'},
{field: 'name.en', title: '英语装扮名称', align: 'left', valign: 'middle', width: '10%'},
{ {
field: 'pic', title: '装扮图片', align: 'left', valign: 'middle', width: '10%', field: 'pic', title: '装扮图片', align: 'left', valign: 'middle', width: '10%',
formatter: function (val, row, index) { formatter: function (val, row, index) {
@@ -206,15 +208,28 @@ export default {
ajax: function (request) { //使用ajax请求 ajax: function (request) { //使用ajax请求
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: '/admin/dress/shop/list.action', url: '/admin/dress/shop/list',
contentType: 'application/json;charset=utf-8', contentType: 'application/json;charset=utf-8',
dataType: 'json', dataType: 'json',
data: request.data, data: request.data,
success: function (res) { success: function (res) {
apiResult(res); apiResult(res);
console.log(res)
request.success({ request.success({
rows: res.data.rows, "rows": res.data.rows.map(i=>{
total: res.data.total, let value = i.name;
if (value.startsWith('{') && value.endsWith('}')) {
i.name = JSON.parse(i.name);
} else {
i.name = {
zh: i.name,
ar: i.name,
en: i.name,
};
}
return i;
}),
"total": res.total
}); });
}, },
error: function (req) { error: function (req) {
@@ -256,7 +271,7 @@ export default {
if ($("#addForm").validationEngine('validate')) { if ($("#addForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/dress/shop/saveOrUpdate.action", url: "/admin/dress/shop/saveOrUpdate",
data: { data: {
id: id, id: id,
dressId: dressId, dressId: dressId,
@@ -291,7 +306,7 @@ export default {
$.ajax({ $.ajax({
type: "get", type: "get",
url: "/admin/dress/shop/getById.action", url: "/admin/dress/shop/getById",
data: { id: id }, data: { id: id },
dataType: "json", dataType: "json",
success: function (res) { success: function (res) {
@@ -407,9 +422,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -296,7 +296,7 @@ export default {
} }
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "/admin/faceJson/updateImg.action", url: "/admin/faceJson/updateImg",
data: data, data: data,
cache: false, cache: false,
contentType: false, //不可缺 contentType: false, //不可缺
@@ -311,7 +311,7 @@ export default {
for (var j = 0; j <= json.length - 1; j++) { for (var j = 0; j <= json.length - 1; j++) {
$("#tipMsg").text("上传成功"); $("#tipMsg").text("上传成功");
$("#tipModal").modal('show'); $("#tipModal").modal('show');
var path = '/admin/faceJson/getPicInputStream.action?type=1&picName=' + json[j]; var path = '/admin/faceJson/getPicInputStream?type=1&picName=' + json[j];
var info = json[j].split('.'); var info = json[j].split('.');
var name = info[0]; var name = info[0];
var nameSuffix = info[1]; var nameSuffix = info[1];
@@ -340,7 +340,7 @@ export default {
function deleteImg(val, valRes) { function deleteImg(val, valRes) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/faceJson/deleteFile.action", url: "/admin/faceJson/deleteFile",
data: { data: {
picName: val + '.' + valRes, picName: val + '.' + valRes,
type: 1, type: 1,
@@ -390,7 +390,7 @@ export default {
formatter: function (val, row, index) { formatter: function (val, row, index) {
var info = val.split('.'); var info = val.split('.');
if (info.length > 1) { if (info.length > 1) {
var a = '/admin/faceJson/getPicInputStream.action?picName=' + val; var a = '/admin/faceJson/getPicInputStream?picName=' + val;
return "<img src='" + a + "' width='40' height='40'>"; return "<img src='" + a + "' width='40' height='40'>";
} }
@@ -461,7 +461,7 @@ export default {
return param; return param;
}, },
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/faceJson/list.action', url: '/admin/faceJson/list',
onLoadSuccess: function (json) { //加载成功时执行 onLoadSuccess: function (json) { //加载成功时执行
if (json.code != 200) { if (json.code != 200) {
console.log(json.msg); console.log(json.msg);
@@ -502,7 +502,7 @@ export default {
"\r\n删除后再也不能找回请谨慎操作")) { "\r\n删除后再也不能找回请谨慎操作")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/faceJson/deletePatch.action", url: "/admin/faceJson/deletePatch",
data: { data: {
ids: JSON.stringify(idArr), ids: JSON.stringify(idArr),
}, },
@@ -526,7 +526,7 @@ export default {
$("#tipModal").modal('show'); $("#tipModal").modal('show');
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/faceJson/updateFaceInfo.action", url: "/admin/faceJson/updateFaceInfo",
data: {}, data: {},
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -548,7 +548,7 @@ export default {
$("#tipModal").modal('show'); $("#tipModal").modal('show');
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/faceJson/restoreFaceInfo.action", url: "/admin/faceJson/restoreFaceInfo",
data: {}, data: {},
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -587,7 +587,7 @@ export default {
var id = $(this).attr("data-id"); var id = $(this).attr("data-id");
var info = id.split('.'); var info = id.split('.');
if (info.length > 1) { if (info.length > 1) {
var path = '/admin/faceJson/getPicInputStream.action?picName=' + id; var path = '/admin/faceJson/getPicInputStream?picName=' + id;
$("#img").attr("src", path); $("#img").attr("src", path);
$("#beforeImgName").val(id); $("#beforeImgName").val(id);
$("#afterImgName").val(""); $("#afterImgName").val("");
@@ -596,7 +596,7 @@ export default {
else { else {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/faceJson/getFaceJsonItem.action", url: "/admin/faceJson/getFaceJsonItem",
data: { data: {
picName: id, picName: id,
}, },
@@ -657,7 +657,7 @@ export default {
if (confirm("确认删除表情图片吗?")) { if (confirm("确认删除表情图片吗?")) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/faceJson/deleteFile.action", url: "/admin/faceJson/deleteFile",
data: { data: {
picName: id, picName: id,
type: 2, type: 2,
@@ -680,7 +680,7 @@ export default {
if (confirm("确认删除表情json吗(相应表情图片也将删除)?")) { if (confirm("确认删除表情json吗(相应表情图片也将删除)?")) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/faceJson/deleteFaceJsonItem.action", url: "/admin/faceJson/deleteFaceJsonItem",
data: { data: {
picName: id, picName: id,
}, },
@@ -704,7 +704,7 @@ export default {
$("#addImg").click(function () { $("#addImg").click(function () {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/faceJson/addImg.action", url: "/admin/faceJson/addImg",
data: {}, data: {},
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -726,7 +726,7 @@ export default {
var afterImgName = $("#afterImgName").val(); var afterImgName = $("#afterImgName").val();
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/faceJson/renameImg.action", url: "/admin/faceJson/renameImg",
data: { data: {
beforeImgName: beforeImgName, beforeImgName: beforeImgName,
afterImgName: afterImgName, afterImgName: afterImgName,
@@ -773,7 +773,7 @@ export default {
if ($("#addForm").validationEngine('validate')) { if ($("#addForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/faceJson/configFaceJsonSingle.action?jsonConfigType=" + jsonConfigType, url: "/admin/faceJson/configFaceJsonSingle?jsonConfigType=" + jsonConfigType,
data: { data: {
id: addFaceId, id: addFaceId,
name: addFaceName, name: addFaceName,
@@ -815,9 +815,7 @@ export default {
}) })
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -387,7 +387,7 @@ export default {
if ($("#addFamilyForm").validationEngine('validate')) { if ($("#addFamilyForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/family/saveOrUpdate.action', url: '/admin/family/saveOrUpdate',
data: { data: {
name: familyName, name: familyName,
leader: leaderId, leader: leaderId,
@@ -518,7 +518,7 @@ export default {
return param; return param;
}, },
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/family/list.action', url: '/admin/family/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' }); $(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
console.log("load success"); console.log("load success");
@@ -534,7 +534,7 @@ export default {
var id = $(this).attr("data-id"); var id = $(this).attr("data-id");
$.ajax({ $.ajax({
type: "get", type: "get",
url: "/admin/family/getById.action", url: "/admin/family/getById",
data: { familyId: id }, data: { familyId: id },
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -601,7 +601,7 @@ export default {
if ($("#editFamilyForm").validationEngine('validate')) { if ($("#editFamilyForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/family/saveOrUpdate.action', url: '/admin/family/saveOrUpdate',
data: { data: {
id: familyId, id: familyId,
name: familyName, name: familyName,
@@ -647,7 +647,7 @@ export default {
if ($("#forbFamilyForm").validationEngine('validate')) { if ($("#forbFamilyForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/family/saveOrUpdate.action', url: '/admin/family/saveOrUpdate',
data: { data: {
id: familyId, id: familyId,
status: 2, status: 2,
@@ -687,7 +687,7 @@ export default {
if ($("#recoverFamilyForm").validationEngine('validate')) { if ($("#recoverFamilyForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/family/saveOrUpdate.action', url: '/admin/family/saveOrUpdate',
data: { data: {
id: familyId, id: familyId,
status: 1, status: 1,
@@ -729,7 +729,7 @@ export default {
if ($("#dissFamilyForm").validationEngine('validate')) { if ($("#dissFamilyForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/family/remove.action', url: '/admin/family/remove',
data: { data: {
familyId: familyId familyId: familyId
}, },
@@ -773,9 +773,7 @@ export default {
}) })
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -94,7 +94,7 @@ export default {
"\r\n删除后再也不能找回请谨慎操作")) { "\r\n删除后再也不能找回请谨慎操作")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/family/member/del.action", url: "/admin/family/member/del",
data: { data: {
'ids': JSON.stringify(idArr), 'ids': JSON.stringify(idArr),
'familyIds': JSON.stringify(familyIdArr) 'familyIds': JSON.stringify(familyIdArr)
@@ -183,7 +183,7 @@ export default {
return param; return param;
}, },
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/family/member/list.action', url: '/admin/family/member/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
//复选框居中 //复选框居中
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' }); $(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
@@ -201,9 +201,7 @@ export default {
}) })
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -222,7 +222,7 @@ export default {
//TODO 权限密码校验目前没做 //TODO 权限密码校验目前没做
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/family/money/update.action', url: '/admin/family/money/update',
data: { data: {
familyId: familyId, familyId: familyId,
targetId: targetId, targetId: targetId,
@@ -277,7 +277,7 @@ export default {
//TODO 权限密码校验目前没做 //TODO 权限密码校验目前没做
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/family/money/update.action', url: '/admin/family/money/update',
data: { data: {
familyId: familyId, familyId: familyId,
targetId: targetId, targetId: targetId,
@@ -317,7 +317,7 @@ export default {
//TODO 权限教研暂时没做 //TODO 权限教研暂时没做
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/family/saveOrUpdate.action', url: '/admin/family/saveOrUpdate',
data: { data: {
id: familyId, id: familyId,
openMoney: 0, openMoney: 0,
@@ -354,7 +354,7 @@ export default {
//TODO 权限教研暂时没做 //TODO 权限教研暂时没做
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/family/saveOrUpdate.action', url: '/admin/family/saveOrUpdate',
data: { data: {
id: familyId, id: familyId,
openMoney: 1, openMoney: 1,
@@ -448,7 +448,7 @@ export default {
return param; return param;
}, },
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/family/money/list.action', url: '/admin/family/money/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
//复选框居中 //复选框居中
$(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' }); $(".bs-checkbox").css({ 'text-align': 'center', 'vertical-align': 'middle' });
@@ -472,9 +472,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

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

View File

@@ -79,12 +79,12 @@ export default {
} }
} }
}, },
{ field: 'goldIncreaseNum', title: '金币增加', align: 'center', width: '5%' }, { field: 'goldIncreaseNum', title: '钻石增加', align: 'center', width: '5%' },
{ field: 'goldDecreaseNum', title: '金币减少', align: 'center', width: '5%' }, { field: 'goldDecreaseNum', title: '钻石减少', align: 'center', width: '5%' },
{ field: 'goldNum', title: '金币余额', align: 'center', width: '5%' }, { field: 'goldNum', title: '钻石余额', align: 'center', width: '5%' },
{ field: 'diamondIncreaseNum', title: '钻石增加', align: 'center', width: '5%' }, { field: 'diamondIncreaseNum', title: '金币增加', align: 'center', width: '5%' },
{ field: 'diamondDecreaseNum', title: '钻石减少', align: 'center', width: '5%' }, { field: 'diamondDecreaseNum', title: '金币减少', align: 'center', width: '5%' },
{ field: 'diamondNum', title: '钻石余额', align: 'center', width: '5%' }, { field: 'diamondNum', title: '金币余额', align: 'center', width: '5%' },
{ field: 'totalNum', title: '总额', align: 'center', width: '5%' }, { field: 'totalNum', title: '总额', align: 'center', width: '5%' },
], ],
cache: false, cache: false,
@@ -107,7 +107,7 @@ export default {
return param; return param;
}, },
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/finance/statistics.action', url: '/admin/finance/statistics',
onLoadSuccess: function (json) { //加载成功时执行 onLoadSuccess: function (json) { //加载成功时执行
var updateTime = json.updateTime; var updateTime = json.updateTime;
$("#version").html('财务数据' + '&nbsp;&nbsp;&nbsp;&nbsp;' + updateTime + '&nbsp;&nbsp;&nbsp;&nbsp;更新'); $("#version").html('财务数据' + '&nbsp;&nbsp;&nbsp;&nbsp;' + updateTime + '&nbsp;&nbsp;&nbsp;&nbsp;更新');
@@ -185,9 +185,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -36,7 +36,7 @@
<span id="countNum"></span> <span id="countNum"></span>
</p> </p>
<p> <p>
<span>用户投入钻石总数</span> <span>用户投入金币总数</span>
<span id="userInputDiamonds"></span> <span id="userInputDiamonds"></span>
</p> </p>
<p> <p>
@@ -193,7 +193,7 @@ export default {
{ field: 'date', title: '日期', align: 'center', valign: 'middle', width: '20%' }, { field: 'date', title: '日期', align: 'center', valign: 'middle', width: '20%' },
{ field: 'peopleNum', title: '抽奖人数', align: 'center', valign: 'middle', width: '10%' }, { field: 'peopleNum', title: '抽奖人数', align: 'center', valign: 'middle', width: '10%' },
{ field: 'countNum', title: '抽奖记录数', align: 'center', valign: 'middle', width: '10%' }, { field: 'countNum', title: '抽奖记录数', align: 'center', valign: 'middle', width: '10%' },
{ field: 'userInputDiamonds', title: '用户投入钻石数', align: 'center', valign: 'middle', width: '10%' }, { field: 'userInputDiamonds', title: '用户投入金币数', align: 'center', valign: 'middle', width: '10%' },
{ field: 'giftOutputDiamonds', title: '平台产出价值数', align: 'center', valign: 'middle', width: '10%' } { field: 'giftOutputDiamonds', title: '平台产出价值数', align: 'center', valign: 'middle', width: '10%' }
], ],
cache: false, cache: false,
@@ -228,9 +228,7 @@ export default {
}) })
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -627,9 +627,14 @@ export default {
if (res.code == 200) { if (res.code == 200) {
//console.log(res); //console.log(res);
for (var i = 0; i < res.data.length; i++) { for (var i = 0; i < res.data.length; i++) {
let item = res.data[i];
let giftName = item.giftName;
if (giftName.startsWith('{') && giftName.endsWith('}')) {
item.giftName = JSON.parse(giftName).zh;
}
// id对象存储 // id对象存储
var id = '' + res.data[i].giftId; var id = '' + item.giftId;
giftMap[id] = res.data[i]; giftMap[id] = item;
} }
renderAwardOption() renderAwardOption()
} }
@@ -823,9 +828,7 @@ export default {
}) })
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -10,7 +10,7 @@
<div id="toolbar"> <div id="toolbar">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="pull-left"> <div class="pull-left">
<form action="/admin/findLove/data/export.action" id="searchForm"> <form action="/admin/findLove/data/export" id="searchForm">
平台号<input type="text" id="msNo" name="msNo" class="input-sm" placeholder="请输入平台号"> 平台号<input type="text" id="msNo" name="msNo" class="input-sm" placeholder="请输入平台号">
奖品名称<input type="text" id="prizeName" name="prizeName" class="input-sm" 奖品名称<input type="text" id="prizeName" name="prizeName" class="input-sm"
@@ -100,7 +100,7 @@ export default {
} }
}, },
{ field: 'level', title: '礼物等级', align: 'center', valign: 'middle', width: '10%' }, { field: 'level', title: '礼物等级', align: 'center', valign: 'middle', width: '10%' },
{ field: 'diamonds', title: '钻石单价', align: 'center', valign: 'middle', width: '10%' }, { field: 'diamonds', title: '金币单价', align: 'center', valign: 'middle', width: '10%' },
{ {
field: 'poolType', title: '礼物组类型', align: 'center', valign: 'middle', width: '10%', formatter: function (val, row, index) { field: 'poolType', title: '礼物组类型', align: 'center', valign: 'middle', width: '10%', formatter: function (val, row, index) {
switch (row.poolType) { switch (row.poolType) {
@@ -147,9 +147,7 @@ export default {
}) })
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -8,24 +8,47 @@
<section class="content"> <section class="content">
<div id="table"></div> <div id="table"></div>
<div id="toolbar"> <div id="toolbar">
跳转类型: <select name="skipType" id="skipType" class="input-m"> <div class="col-sm-12">
<option value="0">--全部--</option> <label for="skipType" class="col-sm-1 control-label">跳转类型: </label>
<option value="1">跳转app内部</option> <div class="col-sm-2">
<option value="2">跳转房间</option> <select name="skipType" id="skipType" class="input-m form-control">
<option value="3">跳转H5页面</option> <option value="0">--全部--</option>
</select> <option value="1">跳转app内部</option>
状态: <select name="status" id="status" class="input-m"> <option value="2">跳转房间</option>
<option value="0">--全部--</option> <option value="3">跳转H5页面</option>
<option value="1">激活启用中</option> </select>
<option value="2">未激活</option> </div>
</select> <label for="status" class="col-sm-1 control-label">状态:</label>
app: <select name="app" id="app" class="input-m"> <div class="col-sm-2">
<option value="">--全部--</option> <select name="status" id="status" class="input-m form-control">
</select> <option value="0">--全部--</option>
&nbsp;&nbsp;&nbsp; <option value="1">激活启用中</option>
开始日期:&nbsp;&nbsp;<input type="text" name="timeBegin" id="beginTime" class="input-sm" value=""> <option value="2">未激活</option>
&nbsp;&nbsp;&nbsp;&nbsp; </select>
结束日期:&nbsp;&nbsp;<input type="text" name="timeEnd" id="endTime" class="input-sm" value=""> </div>
<label for="app" class="col-sm-1 control-label">app:</label>
<div class="col-sm-2">
<select name="app" id="app" class="input-m form-control">
<option value="">--全部--</option>
</select>
</div>
</div>
<div class="col-sm-12">
<label for="beginTime" class="col-sm-1 control-label">开始日期:&nbsp;&nbsp;</label>
<div class="col-sm-2">
<input type="text" name="timeBegin" id="beginTime" class="input-sm form-control" value="">
</div>
<label for="endTime" class="col-sm-1 control-label">结束日期:&nbsp;&nbsp;</label>
<div class="col-sm-2">
<input type="text" name="timeEnd" id="endTime" class="input-sm form-control" value="">
</div>
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
<div class="col-sm-2">
<select name="partitionId" id="partitionId" class="form-control"></select>
</div>
</div>
<button id="btnSearch" class="btn btn-sm btn-primary">查询</button> <button id="btnSearch" class="btn btn-sm btn-primary">查询</button>
<button id="add" class="btn btn-default"> <button id="add" class="btn btn-default">
@@ -50,6 +73,14 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form class="form-horizontal" id="bannerForm"> <form class="form-horizontal" id="bannerForm">
<div id="bannerPartitionDiv">
<div class="form-group">
<label name="partition" class="col-sm-3 control-label">选择地区*:</label>
<div class="form-check" id = "partitionCheck">
<!-- 分区展示-->
</div>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="name" class="col-sm-3 control-label">Banner名字:</label> <label for="name" class="col-sm-3 control-label">Banner名字:</label>
<div class="col-sm-8"> <div class="col-sm-8">
@@ -205,6 +236,14 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form id="addBannerForm" class="form-horizontal"> <form id="addBannerForm" class="form-horizontal">
<div id="bannerAddPartitionDiv">
<div class="form-group">
<label name="partition" class="col-sm-3 control-label">选择地区*:</label>
<div class="form-check" id = "partitionAddCheck">
<!-- 分区展示-->
</div>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="addName" class="col-sm-3 control-label">Banner名字:</label> <label for="addName" class="col-sm-3 control-label">Banner名字:</label>
<div class="col-sm-8"> <div class="col-sm-8">
@@ -354,6 +393,8 @@
<script> <script>
import TableHelper from '@/utils/bootstrap-table-helper'; import TableHelper from '@/utils/bootstrap-table-helper';
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
import { buildSelectOption } from '@/utils/system-helper';
var app = {}; var app = {};
var validApp = {}; var validApp = {};
@@ -393,6 +434,7 @@ export default {
}, },
created() { created() {
this.$nextTick(function () { this.$nextTick(function () {
this.initPartition();
this.initData(); this.initData();
}); });
}, },
@@ -437,6 +479,7 @@ export default {
$('#table').bootstrapTable({ $('#table').bootstrapTable({
columns: [ columns: [
{ field: 'sel', title: 'ID', align: 'center', valign: 'middle', checkbox: true, width: '1%' }, { field: 'sel', title: 'ID', align: 'center', valign: 'middle', checkbox: true, width: '1%' },
{field: 'partitionDesc', title: '地区', align: 'center', valign: 'middle', width: '5%'},
{ field: 'bannerId', title: 'bannerID', align: 'center', valign: 'middle', width: '5%' }, { field: 'bannerId', title: 'bannerID', align: 'center', valign: 'middle', width: '5%' },
{ field: 'bannerName', title: '名称', align: 'center', valign: 'middle', width: '10%' }, { field: 'bannerName', title: '名称', align: 'center', valign: 'middle', width: '10%' },
{ {
@@ -618,14 +661,14 @@ export default {
bannerStatus: parseInt($('#status').val()), bannerStatus: parseInt($('#status').val()),
skipType: parseInt($('#skipType').val()), skipType: parseInt($('#skipType').val()),
bannerType: 9, bannerType: 9,
// appId: ($('#app').val()) ? $('#app').val() : null partitionId: $('#partitionId').val(),
}; };
// console.log(param); // console.log(param);
return param; return param;
}, },
uniqueId: 'code', uniqueId: 'code',
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/banner/list.action', url: '/admin/banner/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -646,39 +689,66 @@ export default {
$('.titleListDev').addClass("hidden"); $('.titleListDev').addClass("hidden");
var bannerId = parseInt($(this).data('id')); var bannerId = parseInt($(this).data('id'));
isEdit = true; isEdit = true;
debugger
$.ajax({ $.ajax({
type: "get", type: 'get',
url: "/admin/banner/get.action", url: '/partition/listPartitionInfo',
data: { bannerId: bannerId }, dataType: 'json',
dataType: "json",
success: function (json) { success: function (json) {
if (json.code == 200) { if (json.code == 200) {
var date = json.data.endTime ? new Date(json.data.endTime).format("yyyy-MM-dd hh:mm:ss") : ''; var length = json.data.length;
var startDate = json.data.startTime ? new Date(json.data.startTime).format("yyyy-MM-dd hh:mm:ss") : ''; var partitionCheck = $("#partitionCheck");
$('#name').val(json.data.bannerName); partitionCheck.empty();
$('#imgUrl').attr('src', json.data.bannerPic); // 分区
$('#bannerPic').val(json.data.bannerPic); for (var i = 0; i < length; i++) {
$('#skipUrlSort').val(json.data.skipType); var checkbox = $("<input>", {type: "checkbox", id: "checkbox" + json.data[i].id, name: "partitionIds", value: json.data[i].id});
$('#skipUrlContent').val(json.data.skipUri); var label = $("<label>", {class: "partition-checkbox-label", text: json.data[i].desc});
$("#bannerType").val(json.data.bannerType);
$('#seqNo').val(json.data.seqNo); partitionCheck.append(checkbox,label);
//$("#appId").val(json.data.appId); }
$('#iosVersion').val(json.data.iosVersion); $.ajax({
$('#androidVersion').val(json.data.androidVersion); type: "get",
$('#noShowChannels').val(json.data.noShowChannels); url: "/admin/banner/get",
$('#bannerStatus').val(json.data.bannerStatus); data: { bannerId: bannerId },
$('#startDate').val(startDate); dataType: "json",
$('#endDate').val(date); success: function (json) {
$('#bannerId').val(json.data.bannerId); if (json.code == 200) {
$('#platform').val(json.data.platform); var date = json.data.endTime ? new Date(json.data.endTime).format("yyyy-MM-dd hh:mm:ss") : '';
$('#limitLevelExper').val(json.data.limitLevelExper); var startDate = json.data.startTime ? new Date(json.data.startTime).format("yyyy-MM-dd hh:mm:ss") : '';
$('#showType').val(json.data.showType); $('#name').val(json.data.bannerName);
$('#showRule').val(json.data.showRule); $('#imgUrl').attr('src', json.data.bannerPic);
window.selectOnChange(json.data.bannerType, json.data.titleId); $('#bannerPic').val(json.data.bannerPic);
$('#titleList').val(json.data.titleId); $('#skipUrlSort').val(json.data.skipType);
$('#bannerModal').modal('show'); $('#skipUrlContent').val(json.data.skipUri);
// picker1.datetimepicker('setStartDate', startDate); $("#bannerType").val(json.data.bannerType);
$('#seqNo').val(json.data.seqNo);
//$("#appId").val(json.data.appId);
$('#iosVersion').val(json.data.iosVersion);
$('#androidVersion').val(json.data.androidVersion);
$('#noShowChannels').val(json.data.noShowChannels);
$('#bannerStatus').val(json.data.bannerStatus);
$('#startDate').val(startDate);
$('#endDate').val(date);
$('#bannerId').val(json.data.bannerId);
$('#platform').val(json.data.platform);
$('#limitLevelExper').val(json.data.limitLevelExper);
$('#showType').val(json.data.showType);
$('#showRule').val(json.data.showRule);
window.selectOnChange(json.data.bannerType, json.data.titleId);
$('#titleList').val(json.data.titleId);
// 分区信息
var partitionIds = json.data.partitionIds;
var length = partitionIds.length;
for (var i = 0; i < length; i++) {
$("#checkbox" + partitionIds[i]).prop('checked', true);
}
$('#bannerModal').modal('show');
// picker1.datetimepicker('setStartDate', startDate);
} else {
$("#tipMsg").text("获取信息出错");
$("#tipModal").modal('show');
}
}
});
} else { } else {
$("#tipMsg").text("获取信息出错"); $("#tipMsg").text("获取信息出错");
$("#tipModal").modal('show'); $("#tipModal").modal('show');
@@ -732,7 +802,7 @@ export default {
if ($('#bannerForm').validationEngine('validate')) { if ($('#bannerForm').validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/banner/save.action?startTimeString=" + $('#startDate').val() url: "/admin/banner/save?startTimeString=" + $('#startDate').val()
+ "&endTimeString=" + $('#endDate').val(), + "&endTimeString=" + $('#endDate').val(),
data: $('#bannerForm').serialize(), data: $('#bannerForm').serialize(),
dataType: 'json', dataType: 'json',
@@ -756,6 +826,32 @@ export default {
$('#addStartDate').val(''); $('#addStartDate').val('');
$('#addEndDate').val(''); $('#addEndDate').val('');
// 分区处理
$.ajax({
type: 'get',
url: '/partition/listPartitionInfo',
dataType: 'json',
success: function (json) {
if (json.code == 200) {
var length = json.data.length;
var partitionCheck = $("#partitionAddCheck");
partitionCheck.empty();
// 创建3个checkbox元素并添加到myDiv元素上
for (var i = 0; i < length; i++) {
var checkbox = $("<input>", {
type: "checkbox",
id: "checkbox" + json.data[i].id,
name: "partitionIds",
value: json.data[i].id
});
var label = $("<label>", {class: "partition-checkbox-label", text: json.data[i].desc});
partitionCheck.append(checkbox, label);
}
}
}
});
// 处理appId // 处理appId
// $('#addAppId').empty(); // $('#addAppId').empty();
// $('#addAppId').append('<option value="">请选择</option>'); // $('#addAppId').append('<option value="">请选择</option>');
@@ -780,7 +876,7 @@ export default {
if ($('#addBannerForm').validationEngine('validate')) { if ($('#addBannerForm').validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/banner/save.action?startTimeString=" + $('#addStartDate').val() url: "/admin/banner/save?startTimeString=" + $('#addStartDate').val()
+ "&endTimeString=" + $('#addEndDate').val(), + "&endTimeString=" + $('#addEndDate').val(),
data: $('#addBannerForm').serialize(), data: $('#addBannerForm').serialize(),
dataType: 'json', dataType: 'json',
@@ -835,7 +931,7 @@ export default {
$('#uploadBtn').on('click', function () { $('#uploadBtn').on('click', function () {
var options = { var options = {
type: 'post', type: 'post',
url: '/admin/banner/upload.action', url: '/admin/banner/upload',
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
if (json.code == 200) { if (json.code == 200) {
@@ -852,7 +948,7 @@ export default {
$('#addUploadBtn').on('click', function () { $('#addUploadBtn').on('click', function () {
var options = { var options = {
type: 'post', type: 'post',
url: '/admin/banner/upload.action', url: '/admin/banner/upload',
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
if (json.code == 200) { if (json.code == 200) {
@@ -911,7 +1007,7 @@ export default {
if (confirm("你确认删除选中Banner吗?")) { if (confirm("你确认删除选中Banner吗?")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/banner/delete.action", url: "/admin/banner/delete",
data: { data: {
'ids': JSON.stringify(idArr) 'ids': JSON.stringify(idArr)
}, },
@@ -938,7 +1034,7 @@ export default {
if (confirm("你确认删除Banner吗?")) { if (confirm("你确认删除Banner吗?")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/banner/delete.action", url: "/admin/banner/delete",
data: { data: {
'ids': JSON.stringify(idArr) 'ids': JSON.stringify(idArr)
}, },
@@ -957,11 +1053,27 @@ export default {
} }
}) })
}); });
} },
initPartition() {
getPartitionInfoList().then(res => {
let data = res.data;
buildSelectOption(
"#partitionId",
null,
[{
value: '',
text: '全部',
}].concat(data.map((v) => {
return {
value: v.id,
text: v.desc,
};
}))
);
});
},
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -8,31 +8,56 @@
<section class="content"> <section class="content">
<div id="table"></div> <div id="table"></div>
<div id="toolbar"> <div id="toolbar">
跳转类型: <select name="skipType" id="skipType" class="input-m"> <div class="col-sm-12">
<option value="0">--全部--</option> <label for="skipType" class="col-sm-1 control-label">跳转类型: </label>
<option value="1">跳转app内部</option> <div class="col-sm-2">
<option value="2">跳转房间</option> <select name="skipType" id="skipType" class="input-m form-control">
<option value="3">跳转H5页面</option> <option value="0">--全部--</option>
</select> <option value="1">跳转app内部</option>
状态: <select name="status" id="status" class="input-m"> <option value="2">跳转房间</option>
<option value="0">--全部--</option> <option value="3">跳转H5页面</option>
<option value="1">激活启用中</option> </select>
<option value="2">未激活</option> </div>
</select> <label for="status" class="col-sm-1 control-label">状态:</label>
app: <select name="app" id="app" class="input-m"> <div class="col-sm-2">
<option value="">--全部--</option> <select name="status" id="status" class="input-m form-control">
</select> <option value="0">--全部--</option>
banner位置: <select name="bannerType" id="searchBannerType" class="input-m"> <option value="1">激活启用中</option>
<option value="">--全部--</option> <option value="2">未激活</option>
<option value="1">首页</option> </select>
<option value="2">房间内</option> </div>
<option value="3">我的装扮</option> <label for="app" class="col-sm-1 control-label">app:</label>
<option value="10">个人中心</option> <div class="col-sm-2">
</select> <select name="app" id="app" class="input-m form-control">
&nbsp;&nbsp;&nbsp; <option value="">--全部--</option>
开始日期:&nbsp;&nbsp;<input type="text" name="timeBegin" id="beginTime" class="input-sm" value=""> </select>
&nbsp;&nbsp;&nbsp;&nbsp; </div>
结束日期:&nbsp;&nbsp;<input type="text" name="timeEnd" id="endTime" class="input-sm" value=""> </div>
<div class="col-sm-12">
<label for="bannerType" class="col-sm-1 control-label">banner位置:</label>
<div class="col-sm-2">
<select name="bannerType" id="searchBannerType" class="input-m form-control">
<option value="">--全部--</option>
<option value="1">首页</option>
<option value="2">房间内</option>
<option value="3">我的装扮</option>
<option value="10">个人中心</option>
</select>
</div>
<label for="beginTime" class="col-sm-1 control-label">开始日期:&nbsp;&nbsp;</label>
<div class="col-sm-2">
<input type="text" name="timeBegin" id="beginTime" class="input-sm form-control" value="">
</div>
<label for="endTime" class="col-sm-1 control-label">结束日期:&nbsp;&nbsp;</label>
<div class="col-sm-2">
<input type="text" name="timeEnd" id="endTime" class="input-sm form-control" value="">
</div>
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
<div class="col-sm-2">
<select name="partitionId" id="partitionId" class="form-control"></select>
</div>
</div>
<button id="btnSearch" class="btn btn-sm btn-primary">查询</button> <button id="btnSearch" class="btn btn-sm btn-primary">查询</button>
<button id="add" class="btn btn-default"> <button id="add" class="btn btn-default">
@@ -57,6 +82,14 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form class="form-horizontal" id="bannerForm"> <form class="form-horizontal" id="bannerForm">
<div id="bannerPartitionDiv">
<div class="form-group">
<label name="partition" class="col-sm-3 control-label">选择地区*:</label>
<div class="form-check" id = "partitionCheck">
<!-- 分区展示-->
</div>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="name" class="col-sm-3 control-label">Banner名字:</label> <label for="name" class="col-sm-3 control-label">Banner名字:</label>
<div class="col-sm-8"> <div class="col-sm-8">
@@ -215,6 +248,14 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form id="addBannerForm" class="form-horizontal"> <form id="addBannerForm" class="form-horizontal">
<div id="bannerAddPartitionDiv">
<div class="form-group">
<label name="partition" class="col-sm-3 control-label">选择地区*:</label>
<div class="form-check" id = "partitionAddCheck">
<!-- 分区展示-->
</div>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="addName" class="col-sm-3 control-label">Banner名字:</label> <label for="addName" class="col-sm-3 control-label">Banner名字:</label>
<div class="col-sm-8"> <div class="col-sm-8">
@@ -367,6 +408,8 @@
<script> <script>
import TableHelper from '@/utils/bootstrap-table-helper'; import TableHelper from '@/utils/bootstrap-table-helper';
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
import { buildSelectOption } from '@/utils/system-helper';
var app = {}; var app = {};
var validApp = {}; var validApp = {};
@@ -407,6 +450,7 @@ export default {
}, },
created() { created() {
this.$nextTick(function () { this.$nextTick(function () {
this.initPartition();
this.initData(); this.initData();
}); });
}, },
@@ -453,6 +497,7 @@ export default {
columns: [ columns: [
{ field: 'sel', title: 'ID', align: 'center', valign: 'middle', checkbox: true, width: '1%' }, { field: 'sel', title: 'ID', align: 'center', valign: 'middle', checkbox: true, width: '1%' },
{ field: 'bannerId', title: 'bannerID', align: 'center', valign: 'middle', width: '5%' }, { field: 'bannerId', title: 'bannerID', align: 'center', valign: 'middle', width: '5%' },
{field: 'partitionDesc', title: '地区', align: 'center', valign: 'middle', width: '5%'},
{ field: 'bannerName', title: '名称', align: 'center', valign: 'middle', width: '10%' }, { field: 'bannerName', title: '名称', align: 'center', valign: 'middle', width: '10%' },
{ {
field: 'bannerType', title: 'banner位置', align: 'center', valign: 'middle', width: '10%', field: 'bannerType', title: 'banner位置', align: 'center', valign: 'middle', width: '10%',
@@ -632,6 +677,7 @@ export default {
bannerStatus: parseInt($('#status').val()), bannerStatus: parseInt($('#status').val()),
skipType: parseInt($('#skipType').val()), skipType: parseInt($('#skipType').val()),
bannerType: $('#searchBannerType').val(), bannerType: $('#searchBannerType').val(),
partitionId: $('#partitionId').val(),
// appId: ($('#app').val()) ? $('#app').val() : null // appId: ($('#app').val()) ? $('#app').val() : null
}; };
// console.log(param); // console.log(param);
@@ -639,7 +685,7 @@ export default {
}, },
uniqueId: 'code', uniqueId: 'code',
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/banner/list.action', url: '/admin/banner/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -665,36 +711,64 @@ export default {
// } // }
$.ajax({ $.ajax({
type: 'get', type: 'get',
url: '/admin/banner/get.action', url: '/partition/listPartitionInfo',
data: { 'bannerId': id },
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
if (json.code == 200) { if (json.code == 200) {
var date = json.data.endTime ? new Date(json.data.endTime).format("yyyy-MM-dd hh:mm:ss") : ''; var length = json.data.length;
var startDate = json.data.startTime ? new Date(json.data.startTime).format("yyyy-MM-dd hh:mm:ss") : ''; var partitionCheck = $("#partitionCheck");
$('#name').val(json.data.bannerName); partitionCheck.empty();
$('#imgUrl').attr('src', json.data.bannerPic); // 分区
$('#bannerPic').val(json.data.bannerPic); for (var i = 0; i < length; i++) {
$('#skipUrlSort').val(json.data.skipType); var checkbox = $("<input>", {type: "checkbox", id: "checkbox" + json.data[i].id, name: "partitionIds", value: json.data[i].id});
$('#skipUrlContent').val(json.data.skipUri); var label = $("<label>", {class: "partition-checkbox-label", text: json.data[i].desc});
$("#bannerType").val(json.data.bannerType);
$('#seqNo').val(json.data.seqNo); partitionCheck.append(checkbox,label);
//$("#appId").val(json.data.appId); }
$('#iosVersion').val(json.data.iosVersion); $.ajax({
$('#androidVersion').val(json.data.androidVersion); type: 'get',
$('#noShowChannels').val(json.data.noShowChannels); url: '/admin/banner/get',
$('#bannerStatus').val(json.data.bannerStatus); data: {'bannerId': id},
$('#startDate').val(startDate); dataType: 'json',
$('#endDate').val(date); success: function (json) {
$('#bannerId').val(json.data.bannerId); if (json.code == 200) {
$('#platform').val(json.data.platform); var date = json.data.endTime ? new Date(json.data.endTime).format("yyyy-MM-dd hh:mm:ss") : '';
$('#limitLevelExper').val(json.data.limitLevelExper); var startDate = json.data.startTime ? new Date(json.data.startTime).format("yyyy-MM-dd hh:mm:ss") : '';
$('#showType').val(json.data.showType); $('#name').val(json.data.bannerName);
$('#showRule').val(json.data.showRule); $('#imgUrl').attr('src', json.data.bannerPic);
window.selectOnChange(json.data.bannerType, json.data.titleId); $('#bannerPic').val(json.data.bannerPic);
$('#titleList').val(json.data.titleId); $('#skipUrlSort').val(json.data.skipType);
$('#bannerModal').modal('show'); $('#skipUrlContent').val(json.data.skipUri);
// picker1.datetimepicker('setStartDate', startDate); $("#bannerType").val(json.data.bannerType);
$('#seqNo').val(json.data.seqNo);
//$("#appId").val(json.data.appId);
$('#iosVersion').val(json.data.iosVersion);
$('#androidVersion').val(json.data.androidVersion);
$('#noShowChannels').val(json.data.noShowChannels);
$('#bannerStatus').val(json.data.bannerStatus);
$('#startDate').val(startDate);
$('#endDate').val(date);
$('#bannerId').val(json.data.bannerId);
$('#platform').val(json.data.platform);
$('#limitLevelExper').val(json.data.limitLevelExper);
$('#showType').val(json.data.showType);
$('#showRule').val(json.data.showRule);
window.selectOnChange(json.data.bannerType, json.data.titleId);
$('#titleList').val(json.data.titleId);
// 分区信息
var partitionIds = json.data.partitionIds;
var length = partitionIds.length;
for (var i = 0; i < length; i++) {
$("#checkbox" + partitionIds[i]).prop('checked', true);
}
$('#bannerModal').modal('show');
// picker1.datetimepicker('setStartDate', startDate);
} else {
$("#tipMsg").text("获取信息出错");
$("#tipModal").modal('show');
}
}
})
} else { } else {
$("#tipMsg").text("获取信息出错"); $("#tipMsg").text("获取信息出错");
$("#tipModal").modal('show'); $("#tipModal").modal('show');
@@ -746,7 +820,7 @@ export default {
if ($('#bannerForm').validationEngine('validate')) { if ($('#bannerForm').validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/banner/save.action?startTimeString=" + $('#startDate').val() url: "/admin/banner/save?startTimeString=" + $('#startDate').val()
+ "&endTimeString=" + $('#endDate').val(), + "&endTimeString=" + $('#endDate').val(),
data: $('#bannerForm').serialize(), data: $('#bannerForm').serialize(),
dataType: 'json', dataType: 'json',
@@ -770,6 +844,32 @@ export default {
$('#addStartDate').val(''); $('#addStartDate').val('');
$('#addEndDate').val(''); $('#addEndDate').val('');
// 分区处理
$.ajax({
type: 'get',
url: '/partition/listPartitionInfo',
dataType: 'json',
success: function (json) {
if (json.code == 200) {
var length = json.data.length;
var partitionCheck = $("#partitionAddCheck");
partitionCheck.empty();
// 创建3个checkbox元素并添加到myDiv元素上
for (var i = 0; i < length; i++) {
var checkbox = $("<input>", {
type: "checkbox",
id: "checkbox" + json.data[i].id,
name: "partitionIds",
value: json.data[i].id
});
var label = $("<label>", {class: "partition-checkbox-label", text: json.data[i].desc});
partitionCheck.append(checkbox, label);
}
}
}
})
// 处理appId // 处理appId
// $('#addAppId').empty(); // $('#addAppId').empty();
// $('#addAppId').append('<option value="">请选择</option>'); // $('#addAppId').append('<option value="">请选择</option>');
@@ -798,7 +898,7 @@ export default {
if ($('#addBannerForm').validationEngine('validate')) { if ($('#addBannerForm').validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/banner/save.action?startTimeString=" + $('#addStartDate').val() url: "/admin/banner/save?startTimeString=" + $('#addStartDate').val()
+ "&endTimeString=" + $('#addEndDate').val(), + "&endTimeString=" + $('#addEndDate').val(),
data: $('#addBannerForm').serialize(), data: $('#addBannerForm').serialize(),
dataType: 'json', dataType: 'json',
@@ -853,7 +953,7 @@ export default {
$('#uploadBtn').on('click', function () { $('#uploadBtn').on('click', function () {
var options = { var options = {
type: 'post', type: 'post',
url: '/admin/banner/upload.action', url: '/admin/banner/upload',
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
if (json.code == 200) { if (json.code == 200) {
@@ -870,7 +970,7 @@ export default {
$('#addUploadBtn').on('click', function () { $('#addUploadBtn').on('click', function () {
var options = { var options = {
type: 'post', type: 'post',
url: '/admin/banner/upload.action', url: '/admin/banner/upload',
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
if (json.code == 200) { if (json.code == 200) {
@@ -929,7 +1029,7 @@ export default {
if (confirm("你确认删除选中Banner吗?")) { if (confirm("你确认删除选中Banner吗?")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/banner/delete.action", url: "/admin/banner/delete",
data: { data: {
'ids': JSON.stringify(idArr) 'ids': JSON.stringify(idArr)
}, },
@@ -956,7 +1056,7 @@ export default {
if (confirm("你确认删除Banner吗?")) { if (confirm("你确认删除Banner吗?")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/banner/delete.action", url: "/admin/banner/delete",
data: { data: {
'ids': JSON.stringify(idArr) 'ids': JSON.stringify(idArr)
}, },
@@ -975,11 +1075,27 @@ export default {
} }
}) })
}); });
} },
initPartition() {
getPartitionInfoList().then(res => {
let data = res.data;
buildSelectOption(
"#partitionId",
null,
[{
value: '',
text: '全部',
}].concat(data.map((v) => {
return {
value: v.id,
text: v.desc,
};
}))
);
});
},
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>
@@ -1029,4 +1145,10 @@ export default {
height: 100%; height: 100%;
vertical-align: top; vertical-align: top;
} }
.partition-checkbox-label {
margin-right: 10px;
margin-left: 5px;
}
</style> </style>

View File

@@ -148,7 +148,7 @@ export default {
if ($('#actForm').validationEngine('validate')) { if ($('#actForm').validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/firstpageopt/add.action", url: "/admin/firstpageopt/add",
data: $('#actForm').serialize(), data: $('#actForm').serialize(),
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
@@ -169,7 +169,7 @@ export default {
if ($('#editForm').validationEngine('validate')) { if ($('#editForm').validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/firstpageopt/update.action", url: "/admin/firstpageopt/update",
data: $('#editForm').serialize(), data: $('#editForm').serialize(),
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
@@ -196,7 +196,7 @@ export default {
if (confirm("你确认删除吗?")) { if (confirm("你确认删除吗?")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/firstpageopt/delete.action', url: '/admin/firstpageopt/delete',
data: { 'id': id }, data: { 'id': id },
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
@@ -330,7 +330,7 @@ export default {
}, },
uniqueId: 'name', uniqueId: 'name',
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/firstpageopt/list.action', url: '/admin/firstpageopt/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -342,9 +342,7 @@ export default {
}) })
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -235,7 +235,7 @@ export default {
}, },
uniqueId: 'id', uniqueId: 'id',
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/firstpagetabroom/list.action', url: '/admin/firstpagetabroom/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -335,7 +335,7 @@ export default {
if (confirm("你确认删除吗?")) { if (confirm("你确认删除吗?")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/firstpagetabroom/delete.action', url: '/admin/firstpagetabroom/delete',
data: { 'id': id }, data: { 'id': id },
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
@@ -379,7 +379,7 @@ export default {
var status = (data.status == false) ? 1 : 0; var status = (data.status == false) ? 1 : 0;
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/firstpagetabroom/changeRoomStatus.action', url: '/admin/firstpagetabroom/changeRoomStatus',
data: { data: {
status: status, status: status,
id: id id: id
@@ -421,7 +421,7 @@ export default {
if ($('#editTab').validationEngine('validate')) { if ($('#editTab').validationEngine('validate')) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/firstpagetabroom/update.action', url: '/admin/firstpagetabroom/update',
dataType: 'json', dataType: 'json',
data: { data: {
id: $('#id').val(), id: $('#id').val(),
@@ -457,7 +457,7 @@ export default {
if ($('#addTabRoom').validationEngine('validate')) { if ($('#addTabRoom').validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/firstpagetabroom/add.action?tabId=" + $('#tabName').val() url: "/admin/firstpagetabroom/add?tabId=" + $('#tabName').val()
+ "&tabName=" + $("#tabName").find("option:selected").text(), + "&tabName=" + $("#tabName").find("option:selected").text(),
dataType: 'json', dataType: 'json',
data: $('#addTabRoom').serialize(), data: $('#addTabRoom').serialize(),
@@ -479,7 +479,7 @@ export default {
$('#addUploadBtn').on('click', function () { $('#addUploadBtn').on('click', function () {
var options = { var options = {
type: 'post', type: 'post',
url: '/admin/firstpagebanner/headimg.action', url: '/admin/firstpagebanner/headimg',
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
if (json.path) { if (json.path) {
@@ -497,7 +497,7 @@ export default {
$('#uploadBtn').on('click', function () { $('#uploadBtn').on('click', function () {
var options = { var options = {
type: 'post', type: 'post',
url: '/admin/firstpagebanner/headimg.action', url: '/admin/firstpagebanner/headimg',
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
if (json.path) { if (json.path) {
@@ -548,7 +548,7 @@ export default {
if (confirm("你确认删除选中房间吗?")) { if (confirm("你确认删除选中房间吗?")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/firstpagetabroom/delete.action", url: "/admin/firstpagetabroom/delete",
data: { data: {
'ids': JSON.stringify(idArr), 'ids': JSON.stringify(idArr),
'moduleIds': moduleIdArr, 'moduleIds': moduleIdArr,
@@ -571,9 +571,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -269,7 +269,7 @@ export default {
if ($('#actForm').validationEngine('validate')) { if ($('#actForm').validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/firstpagetab/add.action", url: "/admin/firstpagetab/add",
data: $('#actForm').serialize(), data: $('#actForm').serialize(),
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
@@ -295,7 +295,7 @@ export default {
if ($('#editForm').validationEngine('validate')) { if ($('#editForm').validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/firstpagetab/update.action", url: "/admin/firstpagetab/update",
data: $('#editForm').serialize(), data: $('#editForm').serialize(),
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
@@ -322,7 +322,7 @@ export default {
if (confirm("你确认删除吗?")) { if (confirm("你确认删除吗?")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/admin/firstpagetab/delete.action', url: '/admin/firstpagetab/delete',
data: { 'tabId': tabId }, data: { 'tabId': tabId },
dataType: 'json', dataType: 'json',
success: function (json) { success: function (json) {
@@ -464,7 +464,7 @@ export default {
}, },
uniqueId: 'tabId', uniqueId: 'tabId',
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/firstpagetab/list.action', url: '/admin/firstpagetab/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -476,9 +476,7 @@ export default {
}) })
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -34,6 +34,16 @@
<div class="modal-body"> <div class="modal-body">
<form class="form-horizontal" id="addForm"> <form class="form-horizontal" id="addForm">
<input type="hidden" name="id" id="id" /> <input type="hidden" name="id" id="id" />
<div class="form-group">
<label for="partitionId" class="col-sm-3 control-label">选择地区</label>
<div class="col-sm-9">
<select name="partitionId" id="partitionId" class="col-sm-3 form-control">
<option value="1">英语区</option>
<option value="2">阿拉伯语区</option>
<option value="4">华语区</option>
</select>
</div>
</div>
<!--A策略--> <!--A策略-->
<div class="form-group"> <div class="form-group">
<label for="resourceA" class="col-sm-3 control-label">A策略<font color="red">*</font></label> <label for="resourceA" class="col-sm-3 control-label">A策略<font color="red">*</font></label>
@@ -169,6 +179,25 @@ export default {
$('#table').bootstrapTable({ $('#table').bootstrapTable({
columns: [ columns: [
{ field: 'id', title: '序号', align: 'center', width: '5%' }, { field: 'id', title: '序号', align: 'center', width: '5%' },
{
field: 'partitionId',
title: '地区',
align: 'center',
width: '10%',
formatter: function (val, row, index) {
let value = '';
if ((val & 1) != 0) {
value += '英语区<br>';
}
if ((val & 2) != 0) {
value += '阿拉伯语区<br>';
}
if ((val & 4) != 0) {
value += '华语区<br>';
}
return value;
}
},
{ {
field: 'resourceA', field: 'resourceA',
title: 'A', title: 'A',
@@ -216,10 +245,10 @@ export default {
width: '10%', width: '10%',
formatter: function (val, row, index) { formatter: function (val, row, index) {
if (row.isDefault) return ''; if (row.isDefault) return '';
return '<button id="btnEdit" name="btnEdit" class="btn btn-sm btn-success opt-edit" data-id=' + val + '>' + return '<button id="btnEdit" name="btnEdit" class="btn btn-sm btn-success opt-edit" data-id="' + val + '" data-index="' + index + '">' +
'<i class="glyphicon glyphicon-edit"></i> 编辑</button>' + '<i class="glyphicon glyphicon-edit"></i> 编辑</button>' +
'&nbsp;&nbsp;<button class="btn btn-sm btn-danger opt-remove" data-id=' + val + '&nbsp;&nbsp;<button class="btn btn-sm btn-danger opt-remove" data-id="' + val +
'><i class="glyphicon glyphicon-remove"></i>删除</button>'; '" data-index="' + index + '"><i class="glyphicon glyphicon-remove"></i>删除</button>';
} }
} }
], ],
@@ -243,7 +272,7 @@ export default {
ajax: function (request) { //使用ajax请求 ajax: function (request) { //使用ajax请求
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: '/admin/home/resource/list.action', url: '/admin/home/resource/list',
contentType: 'application/json;charset=utf-8', contentType: 'application/json;charset=utf-8',
dataType: 'json', dataType: 'json',
data: request.data, data: request.data,
@@ -295,6 +324,7 @@ export default {
var beginTime = $("#beginTime").val(); var beginTime = $("#beginTime").val();
var endTime = $("#endTime").val(); var endTime = $("#endTime").val();
var partitionId = $('#partitionId').val();
if (iconA == null || iconA == '') { if (iconA == null || iconA == '') {
$("#tipMsg").text("保存失败,请先上传图片!"); $("#tipMsg").text("保存失败,请先上传图片!");
@@ -311,7 +341,7 @@ export default {
if ($("#addForm").validationEngine('validate')) { if ($("#addForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/home/resource/saveResource.action", url: "/admin/home/resource/saveResource",
data: { data: {
strategySeq: strategySeq, strategySeq: strategySeq,
resourceA: resourceA, resourceA: resourceA,
@@ -321,7 +351,8 @@ export default {
contentA: contentA, contentA: contentA,
contentB: contentB, contentB: contentB,
beginTime: beginTime, beginTime: beginTime,
endTime: endTime endTime: endTime,
partitionId: partitionId,
}, },
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -343,13 +374,18 @@ export default {
}); });
$("#table").on("click", '.opt-edit', function () { $("#table").on("click", '.opt-edit', function () {
const currentData = $('#table').bootstrapTable('getData')[$(this).data('index')];
let partitionId = currentData.partitionId;
var seq = $(this).attr("data-id"); var seq = $(this).attr("data-id");
clearModal(); clearModal();
$.ajax({ $.ajax({
type: "get", type: "get",
url: "/admin/home/resource/getResourceByStrategySeq.action", url: "/admin/home/resource/getResourceByStrategySeq",
data: { seq: seq }, data: {
seq: seq,
partitionId: partitionId,
},
dataType: "json", dataType: "json",
success: function (res) { success: function (res) {
var json = res.data; var json = res.data;
@@ -383,6 +419,8 @@ export default {
$('#iconUrlB').val(json.iconB); $('#iconUrlB').val(json.iconB);
$('#iconImgUrlB').attr('src', json.iconB); $('#iconImgUrlB').attr('src', json.iconB);
$('#partitionId').val(json.partitionId);
// 打开编辑弹窗 // 打开编辑弹窗
$("#roomTagModal").modal('show'); $("#roomTagModal").modal('show');
$("#modalLabel").text("编辑房间标签"); $("#modalLabel").text("编辑房间标签");
@@ -395,6 +433,8 @@ export default {
}); });
$("#table").on("click", '.opt-remove', function () { $("#table").on("click", '.opt-remove', function () {
const currentData = $('#table').bootstrapTable('getData')[$(this).data('index')];
let partitionId = currentData.partitionId;
var seq = $(this).attr("data-id"); var seq = $(this).attr("data-id");
if (seq == 'undefined') { if (seq == 'undefined') {
$("#tipMsg").text("id参数有误"); $("#tipMsg").text("id参数有误");
@@ -404,8 +444,11 @@ export default {
if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) { if (confirm("你确认删除该记录吗? \r\n 删除后再也不能找回,请谨慎操作!")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/home/resource/deleteByStrategySeq.action", url: "/admin/home/resource/deleteByStrategySeq",
data: { seq: seq }, data: {
seq: seq,
partitionId: partitionId,
},
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
if (json.code == 200) { if (json.code == 200) {
@@ -575,9 +618,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -216,7 +216,7 @@ export default {
return param; return param;
}, },
toolbar: '#toolbar', toolbar: '#toolbar',
url: '/admin/firstpage/room/recommend/list.action', url: '/admin/firstpage/room/recommend/list',
onLoadSuccess: function () { //加载成功时执行 onLoadSuccess: function () { //加载成功时执行
console.log("load success"); console.log("load success");
}, },
@@ -272,7 +272,7 @@ export default {
if ($("#addForm").validationEngine('validate')) { if ($("#addForm").validationEngine('validate')) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "/admin/firstpage/room/recommend/add.action", url: "/admin/firstpage/room/recommend/add",
data: { data: {
erbanNo: erbanNo, erbanNo: erbanNo,
seqNo: seqNo, seqNo: seqNo,
@@ -309,7 +309,7 @@ export default {
if (confirm("你确认下线该房间吗?")) { if (confirm("你确认下线该房间吗?")) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: "/admin/firstpage/room/recommend/offline.action", url: "/admin/firstpage/room/recommend/offline",
data: { id: id }, data: { id: id },
dataType: "json", dataType: "json",
success: function (json) { success: function (json) {
@@ -329,9 +329,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

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

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