Compare commits

...

78 Commits

Author SHA1 Message Date
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
liaozetao
2c55463d35 修复上传组件 2023-11-14 16:01:12 +08:00
Dragon
b8568ce761 后台-充值明细-输入框校验修改 2023-11-14 12:17:07 +08:00
Dragon
7daf9feb39 转赠身份设置后台管理 2023-11-06 18:23:59 +08:00
liaozetao
20bccaae6a 优化菜单展示逻辑 2023-11-02 17:29:09 +08:00
liaozetao
d392cb089f 修改菜单读取逻辑 2023-11-02 17:16:37 +08:00
liaozetao
9a68bf278f 归因场次不允许跨月 2023-11-02 15:44:30 +08:00
liaozetao
f8fc444e32 新增累计字段 2023-11-01 13:08:38 +08:00
liaozetao
332edf1d0c 修复小数点问题 2023-11-01 11:50:29 +08:00
335 changed files with 2883 additions and 1372 deletions

98
package-lock.json generated
View File

@@ -26,7 +26,8 @@
"sass": "^1.67.0", "sass": "^1.67.0",
"sass-loader": "^13.3.2", "sass-loader": "^13.3.2",
"vue-router": "^4.0.3", "vue-router": "^4.0.3",
"vuex": "^4.0.0" "vuex": "^4.0.0",
"xlsx": "^0.18.5"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.16", "@babel/core": "^7.12.16",
@@ -41,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"
} }
}, },
@@ -3717,6 +3717,14 @@
"node": ">= 10.0.0" "node": ">= 10.0.0"
} }
}, },
"node_modules/adler-32": {
"version": "1.3.1",
"resolved": "https://registry.npmmirror.com/adler-32/-/adler-32-1.3.1.tgz",
"integrity": "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A==",
"engines": {
"node": ">=0.8"
}
},
"node_modules/admin-lte": { "node_modules/admin-lte": {
"version": "2.3.2", "version": "2.3.2",
"resolved": "https://registry.npmmirror.com/admin-lte/-/admin-lte-2.3.2.tgz", "resolved": "https://registry.npmmirror.com/admin-lte/-/admin-lte-2.3.2.tgz",
@@ -4440,6 +4448,18 @@
"node": ">=4" "node": ">=4"
} }
}, },
"node_modules/cfb": {
"version": "1.2.2",
"resolved": "https://registry.npmmirror.com/cfb/-/cfb-1.2.2.tgz",
"integrity": "sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==",
"dependencies": {
"adler-32": "~1.3.0",
"crc-32": "~1.2.0"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/chalk": { "node_modules/chalk": {
"version": "2.4.2", "version": "2.4.2",
"resolved": "https://registry.npmmirror.com/chalk/-/chalk-2.4.2.tgz", "resolved": "https://registry.npmmirror.com/chalk/-/chalk-2.4.2.tgz",
@@ -4692,6 +4712,14 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/codepage": {
"version": "1.15.0",
"resolved": "https://registry.npmmirror.com/codepage/-/codepage-1.15.0.tgz",
"integrity": "sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA==",
"engines": {
"node": ">=0.8"
}
},
"node_modules/color-convert": { "node_modules/color-convert": {
"version": "1.9.3", "version": "1.9.3",
"resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-1.9.3.tgz", "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-1.9.3.tgz",
@@ -4962,6 +4990,17 @@
"node": ">=10" "node": ">=10"
} }
}, },
"node_modules/crc-32": {
"version": "1.2.2",
"resolved": "https://registry.npmmirror.com/crc-32/-/crc-32-1.2.2.tgz",
"integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",
"bin": {
"crc32": "bin/crc32.njs"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/cross-spawn": { "node_modules/cross-spawn": {
"version": "6.0.5", "version": "6.0.5",
"resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-6.0.5.tgz", "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-6.0.5.tgz",
@@ -6779,6 +6818,14 @@
"node": ">= 0.6" "node": ">= 0.6"
} }
}, },
"node_modules/frac": {
"version": "1.1.2",
"resolved": "https://registry.npmmirror.com/frac/-/frac-1.1.2.tgz",
"integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA==",
"engines": {
"node": ">=0.8"
}
},
"node_modules/fraction.js": { "node_modules/fraction.js": {
"version": "4.3.6", "version": "4.3.6",
"resolved": "https://registry.npmmirror.com/fraction.js/-/fraction.js-4.3.6.tgz", "resolved": "https://registry.npmmirror.com/fraction.js/-/fraction.js-4.3.6.tgz",
@@ -11661,6 +11708,17 @@
"integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
"dev": true "dev": true
}, },
"node_modules/ssf": {
"version": "0.11.2",
"resolved": "https://registry.npmmirror.com/ssf/-/ssf-0.11.2.tgz",
"integrity": "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==",
"dependencies": {
"frac": "~1.1.2"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/ssri": { "node_modules/ssri": {
"version": "8.0.1", "version": "8.0.1",
"resolved": "https://registry.npmmirror.com/ssri/-/ssri-8.0.1.tgz", "resolved": "https://registry.npmmirror.com/ssri/-/ssri-8.0.1.tgz",
@@ -13274,6 +13332,22 @@
"integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==",
"dev": true "dev": true
}, },
"node_modules/wmf": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/wmf/-/wmf-1.0.2.tgz",
"integrity": "sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw==",
"engines": {
"node": ">=0.8"
}
},
"node_modules/word": {
"version": "0.3.0",
"resolved": "https://registry.npmmirror.com/word/-/word-0.3.0.tgz",
"integrity": "sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA==",
"engines": {
"node": ">=0.8"
}
},
"node_modules/wrap-ansi": { "node_modules/wrap-ansi": {
"version": "7.0.0", "version": "7.0.0",
"resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
@@ -13340,6 +13414,26 @@
} }
} }
}, },
"node_modules/xlsx": {
"version": "0.18.5",
"resolved": "https://registry.npmmirror.com/xlsx/-/xlsx-0.18.5.tgz",
"integrity": "sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ==",
"dependencies": {
"adler-32": "~1.3.0",
"cfb": "~1.2.1",
"codepage": "~1.15.0",
"crc-32": "~1.2.1",
"ssf": "~0.11.2",
"wmf": "~1.0.1",
"word": "~0.3.0"
},
"bin": {
"xlsx": "bin/xlsx.njs"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/y18n": { "node_modules/y18n": {
"version": "5.0.8", "version": "5.0.8",
"resolved": "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz", "resolved": "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz",

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"
}, },
@@ -26,7 +26,8 @@
"sass": "^1.67.0", "sass": "^1.67.0",
"sass-loader": "^13.3.2", "sass-loader": "^13.3.2",
"vue-router": "^4.0.3", "vue-router": "^4.0.3",
"vuex": "^4.0.0" "vuex": "^4.0.0",
"xlsx": "^0.18.5"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.16", "@babel/core": "^7.12.16",
@@ -41,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
});
};

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

@@ -0,0 +1,23 @@
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);
}
});
});
};

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

@@ -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,27 @@
import request from '@/utils/request';
import qs from 'qs';
// 获取列表
export const userPage = query => {
return request({
url: '/admin/give/user/page',
method: 'get',
params: query
});
};
// 新增
export const userSave = query => {
return request({
url: '/admin/give/user/save',
method: 'post',
params: query
});
};
// 删除
export const batchDel = query => {
return request({
url: '/admin/give/user/batchDel',
method: 'get',
params: query
});
};

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

@@ -105,6 +105,7 @@
<script> <script>
import store from '@/store'; import store from '@/store';
import { getStore } from '@/utils/store';
import loading from '@/assets/images/loading.gif'; import loading from '@/assets/images/loading.gif';
export default { export default {
@@ -130,6 +131,8 @@ export default {
}, },
methods: { methods: {
getMenu() { getMenu() {
this.parentMenus = getStore({ name: 'parent_menus' });
this.childMenus = getStore({ name: 'child_menus' });
store.dispatch('getMenu').then(res => { store.dispatch('getMenu').then(res => {
this.parentMenus = res.parents; this.parentMenus = res.parents;
this.childMenus = res.childs; this.childMenus = res.childs;
@@ -163,9 +166,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

@@ -2,39 +2,69 @@
/*鼠标点击后移开,恢复本身样式*/ /*鼠标点击后移开,恢复本身样式*/
.primary, .primary,
.primary:focus:not(.primary:hover) { .primary:focus:not(.primary:hover) {
color: white;
background: #409eff;
}
/*鼠标悬浮,没有按下;鼠标按下后抬起,没有移开*/
/* 更改背景和字體顏色 */
.primary:focus, .primary:hover{
color: white; color: white;
background: #409eff; background: #409eff;
} }
/*鼠标悬浮,没有按下;鼠标按下后抬起,没有移开*/
/* 更改背景和字體顏色 */
.primary:focus,
.primary:hover {
color: white;
background: #409eff;
}
/*鼠标按下,没有抬起*/ /*鼠标按下,没有抬起*/
/* 更改邊框顏色 */ /* 更改邊框顏色 */
.primary:active { .primary:active {
color: white; color: white;
background: #337ecc; background: #337ecc;
} }
/*鼠标点击后移开,恢复本身样式*/ /*鼠标点击后移开,恢复本身样式*/
.danger, .danger,
.danger:focus:not(.danger:hover) { .danger:focus:not(.danger:hover) {
color: white;
background: #f56c6c;
}
/* 危险的按钮样式 */
/*鼠标悬浮,没有按下;鼠标按下后抬起,没有移开*/
/* 更改背景和字體顏色 */
.danger:focus, .danger:hover{
color: white; color: white;
background: #f56c6c; background: #f56c6c;
} }
/* 危险的按钮样式 */
/*鼠标悬浮,没有按下;鼠标按下后抬起,没有移开*/
/* 更改背景和字體顏色 */
.danger:focus,
.danger:hover {
color: white;
background: #f56c6c;
}
/*鼠标按下,没有抬起*/ /*鼠标按下,没有抬起*/
/* 更改邊框顏色 */ /* 更改邊框顏色 */
.danger:active { .danger:active {
color: white; color: white;
background: #c45656; background: #c45656;
}
/*鼠标点击后移开,恢复本身样式*/
.success,
.success:focus:not(.success:hover) {
color: white;
background: #67c23a;
}
/* 危险的按钮样式 */
/*鼠标悬浮,没有按下;鼠标按下后抬起,没有移开*/
/* 更改背景和字體顏色 */
.success:focus,
.success:hover {
color: white;
background: #b3e19d;
}
/*鼠标按下,没有抬起*/
/* 更改邊框顏色 */
.danger:active {
color: white;
background: #529b2e;
} }

View File

@@ -4,7 +4,6 @@ jQuery.extend({
if (s.error) { if (s.error) {
s.error.call(s.context || s, xhr, status, e); s.error.call(s.context || s, xhr, status, e);
} }
// Fire the global callback // Fire the global callback
if (s.global) { if (s.global) {
(s.context ? jQuery(s.context) : jQuery.event).trigger("ajaxError", [xhr, s, e]); (s.context ? jQuery(s.context) : jQuery.event).trigger("ajaxError", [xhr, s, e]);
@@ -13,17 +12,14 @@ jQuery.extend({
createUploadIframe: function (id, uri) { createUploadIframe: function (id, uri) {
//create frame //create frame
var frameId = 'jUploadFrame' + id; var frameId = 'jUploadFrame' + id;
if (window.ActiveXObject) { if (window.ActiveXObject) {
var io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />'); var io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />');
if (typeof uri == 'boolean') { if (typeof uri == 'boolean') {
io.src = 'javascript:false'; io.src = 'javascript:false';
} } else if (typeof uri == 'string') {
else if (typeof uri == 'string') {
io.src = uri; io.src = uri;
} }
} } else {
else {
io = document.createElement('iframe'); io = document.createElement('iframe');
io.id = frameId; io.id = frameId;
io.name = frameId; io.name = frameId;
@@ -31,18 +27,21 @@ jQuery.extend({
io.style.position = 'absolute'; io.style.position = 'absolute';
io.style.top = '-1000px'; io.style.top = '-1000px';
io.style.left = '-1000px'; io.style.left = '-1000px';
document.body.appendChild(io); document.body.appendChild(io);
return io;
return io
}, },
createUploadForm: function (id, fileElementId) { createUploadForm: function (id, fileElementId) {
//create form //create form
var formId = 'jUploadForm' + id; var formId = 'jUploadForm' + id;
var fileId = 'jUploadFile' + id; var fileId = 'jUploadFile' + id;
var form = $('<form action="" method="POST" name="' + formId + '" id="' + formId + '" enctype="multipart/form-data"></form>'); var form = $('#' + formId);
if (form && form.length > 0) {
form.remove();
}
form = $('<form action="" method="POST" name="' + formId + '" id="' + formId + '" enctype="multipart/form-data"></form>');
var oldElement = $('#' + fileElementId); var oldElement = $('#' + fileElementId);
var newElement = $(oldElement).clone(); var newElement = $(oldElement).clone(true).val("");
//须要复制元素的全部事件处理。
$(oldElement).attr('id', fileId); $(oldElement).attr('id', fileId);
$(oldElement).before(newElement); $(oldElement).before(newElement);
$(oldElement).appendTo(form); $(oldElement).appendTo(form);
@@ -53,7 +52,6 @@ jQuery.extend({
$(form).appendTo('body'); $(form).appendTo('body');
return form; return form;
}, },
ajaxFileUpload: function (s) { ajaxFileUpload: function (s) {
// TODO introduce global settings, allowing the client to modify them for all requests, not only timeout // TODO introduce global settings, allowing the client to modify them for all requests, not only timeout
s = jQuery.extend({}, jQuery.ajaxSettings, s); s = jQuery.extend({}, jQuery.ajaxSettings, s);
@@ -68,7 +66,7 @@ jQuery.extend({
} }
var requestDone = false; var requestDone = false;
// Create the request object // Create the request object
var xml = {} var xml = {};
if (s.global) if (s.global)
jQuery.event.trigger("ajaxSend", [xml, s]); jQuery.event.trigger("ajaxSend", [xml, s]);
// Wait for a response to come back // Wait for a response to come back
@@ -98,7 +96,6 @@ jQuery.extend({
// If a local callback was specified, fire it and pass it the data // If a local callback was specified, fire it and pass it the data
if (s.success) if (s.success)
s.success(data, status); s.success(data, status);
// Fire the global callback // Fire the global callback
if (s.global) if (s.global)
jQuery.event.trigger("ajaxSuccess", [xml, s]); jQuery.event.trigger("ajaxSuccess", [xml, s]);
@@ -112,30 +109,22 @@ jQuery.extend({
// The request was completed // The request was completed
if (s.global) if (s.global)
jQuery.event.trigger("ajaxComplete", [xml, s]); jQuery.event.trigger("ajaxComplete", [xml, s]);
// Handle the global AJAX counter // Handle the global AJAX counter
if (s.global && ! --jQuery.active) if (s.global && ! --jQuery.active)
jQuery.event.trigger("ajaxStop"); jQuery.event.trigger("ajaxStop");
// Process result // Process result
if (s.complete) if (s.complete)
s.complete(xml, status); s.complete(xml, status);
jQuery(io).unbind();
jQuery(io).unbind()
setTimeout(function () { setTimeout(function () {
try { try {
$(io).remove(); $(io).remove();
$(form).remove(); $(form).remove();
} catch (e) { } catch (e) {
jQuery.handleError(s, xml, null, e); jQuery.handleError(s, xml, null, e);
} }
}, 100);
}, 100) xml = null;
xml = null
} }
} }
// Timeout checker // Timeout checker
@@ -153,12 +142,23 @@ jQuery.extend({
$(form).attr('target', frameId); $(form).attr('target', frameId);
if (form.encoding) { if (form.encoding) {
form.encoding = 'multipart/form-data'; form.encoding = 'multipart/form-data';
} } else {
else {
form.enctype = 'multipart/form-data'; form.enctype = 'multipart/form-data';
} }
$(form).submit(); let submitType = s.submitType;
let $form = $(form);
if (!submitType || submitType == 'form') {
$form.submit();
} else if (submitType == 'ajax') {
$form.ajaxSubmit({
success: function (data, status) {
s.success(data, status);
},
error: function (err) {
jQuery.handleError(s, xml, null, err);
}
});
}
} catch (e) { } catch (e) {
jQuery.handleError(s, xml, null, e); jQuery.handleError(s, xml, null, e);
} }
@@ -169,9 +169,7 @@ jQuery.extend({
document.getElementById(frameId).addEventListener('load', uploadCallback, false); document.getElementById(frameId).addEventListener('load', uploadCallback, false);
} }
return { abort: function () { } }; return { abort: function () { } };
}, },
uploadHttpData: function (r, type) { uploadHttpData: function (r, type) {
var data = !type; var data = !type;
data = type == "xml" || data ? r.responseXML : r.responseText; data = type == "xml" || data ? r.responseXML : r.responseText;

26
src/utils/excelUtils.js Normal file
View File

@@ -0,0 +1,26 @@
import * as XLSX from 'xlsx';
const exportToExcel = (row, fileName, list, sheetNames) => {//调用方式 exportToExcel(接口返回的表格列表, "文件名", 定义的表头和字段[{ piko号: "erbanNo" }{ piko号: "erbanNo" }],, ["Sheet1"]);
var data = [];
var headerTitle = [];
row.forEach((res, i) => {
var arr = [];
for (let index = 0; index < list.length; index++) {
for (let key in list[index]) {
headerTitle[index] = key;
arr[index] = res[list[index][key]];
}
}
data[i] = arr;
});
let smallArr = Array.from(data);
let bigArr = [];
smallArr = smallArr.map((item) => {
bigArr.push(Object.values(item));
});
const ws = XLSX.utils.aoa_to_sheet([...[headerTitle], ...bigArr]); // tableName为表头tableData为数据
const wb = XLSX.utils.book_new();
// 将工作表放入工作簿中
XLSX.utils.book_append_sheet(wb, ws, sheetNames);
XLSX.writeFile(wb, fileName + ".xlsx");
}
export default exportToExcel

View File

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

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,354 @@
<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 align="center" label="操作" width="400">
<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

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

View File

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

View File

@@ -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

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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

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

View File

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

View File

@@ -136,9 +136,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };

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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -438,6 +438,11 @@ export default {
let id = $('#id').val(); let id = $('#id').val();
let startTime = $('#startTime').val(); let startTime = $('#startTime').val();
let endTime = $('#endTime').val(); let endTime = $('#endTime').val();
if (getDate(endTime).getMonth() != getDate(startTime).getMonth()) {
$("#tipMsg").text("归因场次不允许跨月.");
$("#tipModal").modal('show');
return;
}
if ((getDate(endTime).getTime() - getDate(startTime).getTime()) > (36 * 60 * 60 * 1000)) { if ((getDate(endTime).getTime() - getDate(startTime).getTime()) > (36 * 60 * 60 * 1000)) {
$("#tipMsg").text("时间间隔不能超过36h."); $("#tipMsg").text("时间间隔不能超过36h.");
$("#tipModal").modal('show'); $("#tipModal").modal('show');
@@ -536,9 +541,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -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');
@@ -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

@@ -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');
@@ -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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -548,9 +548,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
function clearForm(formId) { function clearForm(formId) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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>

View File

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

View File

@@ -256,6 +256,21 @@ export default {
return date.format('yyyy-MM-dd hh:mm:ss'); return date.format('yyyy-MM-dd hh:mm:ss');
} }
}, },
{
field: 'source',
title: '邀请码填写类型',
align: 'center',
width: '5%',
formatter: function (val) {
let value = '';
if (val == 0) {
value = '自填';
} else if (val == 1) {
value = '补填';
}
return value;
}
},
{ {
field: 'memberId', field: 'memberId',
title: '操作', title: '操作',
@@ -382,9 +397,7 @@ export default {
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
// 初始化团队选择器 // 初始化团队选择器

View File

@@ -454,9 +454,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };

View File

@@ -206,8 +206,11 @@ export default {
{ field: 'totalChargeAmount', title: '累计充值(美元)', align: 'center', width: '5%', }, { field: 'totalChargeAmount', title: '累计充值(美元)', align: 'center', width: '5%', },
{ field: 'totalChargeUserNum', title: '累计充值人数', align: 'center', width: '5%', }, { field: 'totalChargeUserNum', title: '累计充值人数', align: 'center', width: '5%', },
{ field: 'totalChargeNum', title: '累计充值次数', align: 'center', width: '5%', }, { field: 'totalChargeNum', title: '累计充值次数', align: 'center', width: '5%', },
{ field: 'totalGiveNum', title: '累计收到转赠次数', align: 'center', width: '5%', }, { field: 'newUserGiveAmount', title: '当月新增转赠', align: 'center', width: '10%', valign: 'center' },
{ field: 'totalGiveAmount', title: '累计收到转赠金额', align: 'center', width: '5%', }, { field: 'totalGiveAmount', title: '累计转赠(美元)', align: 'center', width: '5%', },
{ field: 'totalGiveUserNum', title: '累计转赠人数', align: 'center', width: '5%', },
{ field: 'totalGiveNum', title: '累计转赠次数', align: 'center', width: '5%', },
{ {
field: 'month', field: 'month',
title: '操作', title: '操作',
@@ -352,9 +355,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

@@ -477,7 +477,7 @@ export default {
groupData.tchargeMoney = tchargeMoney; groupData.tchargeMoney = tchargeMoney;
groupData.tsendGiftMony = tsendGiftMony; groupData.tsendGiftMony = tsendGiftMony;
groupData.tgiveCount = tgiveCount; groupData.tgiveCount = tgiveCount;
groupData.tgiveMoney = tgiveMoney; groupData.tgiveMoney = tgiveMoney.toFixed(0);
groupData.tarpu = (tchargeMoney / tnewUserCount).toFixed(2); groupData.tarpu = (tchargeMoney / tnewUserCount).toFixed(2);
groupDataList.push(groupData); groupDataList.push(groupData);
} }
@@ -793,9 +793,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
</script> </script>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -785,9 +785,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
function cleanModal(obj) { function cleanModal(obj) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1207,9 +1207,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
function clearModal() { function clearModal() {

View File

@@ -1304,9 +1304,7 @@ export default {
}); });
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
function clearModal() { function clearModal() {

View File

@@ -297,9 +297,7 @@ export default {
} }
}, },
unmounted() {
$('#table').bootstrapTable('destroy');
}
}; };
// 根据type获取路径名称 // 根据type获取路径名称

View File

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

View File

@@ -579,9 +579,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