提交 1dcc4949 authored 作者: 陆's avatar

马甲号

上级 48418630
package com.platform.controller;
import com.platform.annotation.IgnoreAuth;
import com.platform.entity.TbCfUserInfoEntity;
import com.platform.entity.VirtualUserEntity;
import com.platform.service.TbCfUserInfoService;
......@@ -31,6 +32,7 @@ public class TbCfUserInfoController {
/**
* 查看列表
*/
@IgnoreAuth
@RequestMapping("/list")
@RequiresPermissions("tbcfuserinfo:list")
@ResponseBody
......@@ -49,6 +51,7 @@ public class TbCfUserInfoController {
/**
* 查看信息
*/
@IgnoreAuth
@RequestMapping("/info/{userId}")
@RequiresPermissions("tbcfuserinfo:info")
@ResponseBody
......@@ -61,6 +64,7 @@ public class TbCfUserInfoController {
/**
* 保存
*/
@IgnoreAuth
@RequestMapping("/save")
@RequiresPermissions("tbcfuserinfo:save")
@ResponseBody
......@@ -73,6 +77,7 @@ public class TbCfUserInfoController {
/**
* 修改
*/
@IgnoreAuth
@RequestMapping("/update")
@RequiresPermissions("tbcfuserinfo:update")
@ResponseBody
......@@ -85,6 +90,7 @@ public class TbCfUserInfoController {
/**
* 删除
*/
@IgnoreAuth
@RequestMapping("/delete")
@RequiresPermissions("tbcfuserinfo:delete")
@ResponseBody
......@@ -97,6 +103,7 @@ public class TbCfUserInfoController {
/**
* 查看所有列表
*/
@IgnoreAuth
@RequestMapping("/queryAll")
@ResponseBody
public R queryAll(@RequestParam Map<String, Object> params) {
......@@ -105,6 +112,7 @@ public class TbCfUserInfoController {
return R.ok().put("list", list);
}
@IgnoreAuth
@ResponseBody
@GetMapping("/queryByAccount")
public R queryByAccount(@RequestParam("account") String account) {
......@@ -116,6 +124,7 @@ public class TbCfUserInfoController {
* 统计分析:
* 1)统计每天的注册量,2)统计今天的注册量,3)统计本周注册量,4)统计本月注册量,5)统计今年的注册量
*/
@IgnoreAuth
@ResponseBody
@GetMapping("/getDailyRegistered")
public R getDailyRegistered(@RequestParam(value = "flag", required = false) String flag) {
......@@ -123,6 +132,7 @@ public class TbCfUserInfoController {
return R.ok().put("list", userList);
}
@IgnoreAuth
@ResponseBody
@GetMapping("/getDayRegistered")
public R getDayRegistered() {
......@@ -130,6 +140,7 @@ public class TbCfUserInfoController {
return R.ok().put("list", userList);
}
@IgnoreAuth
@ResponseBody
@GetMapping("/getWeekRegistered")
public R getWeekRegistered() {
......@@ -137,6 +148,7 @@ public class TbCfUserInfoController {
return R.ok().put("list", userList);
}
@IgnoreAuth
@ResponseBody
@GetMapping("/getMonthRegistered")
public R getMonthRegistered() {
......@@ -144,6 +156,7 @@ public class TbCfUserInfoController {
return R.ok().put("list", userList);
}
@IgnoreAuth
@ResponseBody
@GetMapping("/getYearRegistered")
public R getYearRegistered() {
......@@ -151,6 +164,7 @@ public class TbCfUserInfoController {
return R.ok().put("list", userList);
}
@IgnoreAuth
@ResponseBody
@GetMapping("/getRegisteredByDate")
public R getRegisteredByDate(String start, String end) {
......@@ -158,6 +172,7 @@ public class TbCfUserInfoController {
return R.ok().put("list", userList);
}
@IgnoreAuth
@ResponseBody
@GetMapping("/getDayRate")
public R getDayRate() {
......@@ -167,6 +182,7 @@ public class TbCfUserInfoController {
@IgnoreAuth
@ResponseBody
@GetMapping("/queryVirtualUser")
public R queryVirtualUser(@RequestParam Map<String, Object> params){
......
......@@ -27,6 +27,7 @@
#end
</div>
</Row>
<div id="speedp"></div>
<table id="jqGrid"></table>
</div>
......
$(function () {
$("#jqGrid").Grid({
url: '../virtualuser/list',
url: '../tbcfuserinfo/queryVirtualUser',
colModel: [
{label: 'id', name: 'id', index: 'id', key: true, hidden: true},
{label: '账号', name: 'account', index: 'account', width: 80},
{label: '昵称', name: 'nick', index: 'nick', width: 80},
{label: '头像', name: 'avatar', index: 'avatar', width: 80, formatter: imageFormat},
{label: '状态', name: 'status', index: 'status', width: 80, formatter: statusFormat},
{label: '创建时间', name: 'createTime', index: 'create_time', width: 80}]
{label: 'userId', name: 'userId', index: 'user_id', key: true, hidden: true},
{label: '账号', name: 'account', index: 'account', width: 200},
{label: '用户头像地址', name: 'avatar', index: 'avatar', width: 200, formatter: imageFormat},
{label: '用户名', name: 'nick', index: 'nick', width: 200},
{label: '创建时间', name: 'createTime', index: 'create_time', width: 200},],
shrinkToFit: true,
datatype: "json",
rowNum: 15,
rowList: [15, 30, 45],
mtype: "get",
rownumbers: true,
rownumWidth: 40,
gridview: true,
pager: '#speedp',
sortname: 'create_time',
viewrecords: true,
sortorder: "desc",
multiselect: true,
multiboxonly:true,
beforeSelectRow: true,
});
});
......@@ -49,8 +65,11 @@ let vm = new Vue({
vm.getInfo(id);
},
saveOrUpdate: function (event) {
let url = vm.virtualUser.id == null ? "../virtualuser/save" : "../virtualuser/update";
let url = vm.virtualUser.id == null ? "../tbcfuserinfo/save" : "../tbcfuserinfo/update";
vm.virtualUser.avatar = vm.uploadList[0];
if (vm.virtualUser.id == null){
vm.virtualUser.real = 0;
}
Ajax.request({
url: url,
params: JSON.stringify(vm.virtualUser),
......@@ -161,10 +180,10 @@ let vm = new Vue({
getInfo: function (id) {
vm.uploadList=[];
Ajax.request({
url: "../virtualuser/info/" + id,
url: "../tbcfuserinfo/info/" + id,
async: true,
successCallback: function (r) {
vm.virtualUser = r.virtualUser;
vm.virtualUser = r.tbCfUserInfo;
vm.uploadList.push(vm.virtualUser.avatar);
}
});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论