fix
This commit is contained in:
parent
4c2afbf5d5
commit
eb35e81936
@ -63,5 +63,18 @@ func (svc *AccountService) GetWhiteListAll(projectId int) ([]*dto.WhiteListInfo,
|
||||
if !find {
|
||||
return nil, errcode.New(errcode.ServerError, "not found project %v db data", projectId)
|
||||
}
|
||||
return svc.accountRepo.GetWhiteListAll(projectEt)
|
||||
list, err := svc.accountRepo.GetWhiteListAll(projectEt)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
banList, err := svc.accountRepo.GetBanListAll(projectEt)
|
||||
for _, ban := range banList {
|
||||
if ban.BanType == consts.BanType_AccountTrade || ban.BanType == consts.BanType_RoleTrade {
|
||||
list = append(list, &dto.WhiteListInfo{
|
||||
WType: ban.BanType,
|
||||
Value: ban.Value,
|
||||
})
|
||||
}
|
||||
}
|
||||
return list, nil
|
||||
}
|
||||
|
@ -58,5 +58,9 @@ func (svc *GameLogService) QueryEventList(projectId int, eventName []string, ser
|
||||
totalCount, fieldsDescInfo, rows = h.Trim(projectEt, eventName, totalCount, fieldsDescInfo, rows)
|
||||
}
|
||||
|
||||
if rows == nil {
|
||||
rows = make([][]any, 0)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
dto2 "admin/internal/model/dto"
|
||||
"admin/lib/httpclient"
|
||||
"admin/lib/utils"
|
||||
"admin/lib/xlog"
|
||||
"math"
|
||||
"net/url"
|
||||
"strconv"
|
||||
@ -46,7 +47,7 @@ func (hook *AccountHook) List(projectInfo *entity.Project, resource string, para
|
||||
Data []struct {
|
||||
Account string `json:"account"`
|
||||
ServerId string `json:"serverId"`
|
||||
RoleList []*Role `json:"roleList"`
|
||||
RoleList []*Role `json:"role_list"`
|
||||
} `json:"data"`
|
||||
}
|
||||
|
||||
@ -129,14 +130,15 @@ func (info *AccountDetailOrderInfo) toDto() *dto2.AccountDetailOrderInfo {
|
||||
type AccountDetailRoleInfo struct {
|
||||
Platform string `json:"platform"` // ios ad
|
||||
ServerId string `json:"serverId"`
|
||||
Name string `json:"name"`
|
||||
Name string `json:"roleName"`
|
||||
RoleId string `json:"roleId"`
|
||||
Level int `json:"level"`
|
||||
Level int `json:"roleLevel"`
|
||||
CurrencyItems []*dto2.ItemInfo `json:"item_list"`
|
||||
Ip string `json:"ip"`
|
||||
Channel string `json:"channel"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
LastLoginTime int64 `json:"last_login_time"`
|
||||
CreatedAt int64 `json:"createAt"`
|
||||
LastLoginTime int64 `json:"latestLoginAt"`
|
||||
Profession string `json:"profession"`
|
||||
OrderList []*AccountDetailOrderInfo `json:"order_list"`
|
||||
}
|
||||
|
||||
@ -163,7 +165,7 @@ func (info *AccountDetailRoleInfo) toDto() *dto2.AccountDetailRoleInfo {
|
||||
}
|
||||
|
||||
type AccountDetailInfo struct {
|
||||
AccountId string `json:"account_id"`
|
||||
AccountId string `json:"account"`
|
||||
LoginDeviceCount int `json:"login_device_count"`
|
||||
RoleList []*AccountDetailRoleInfo `json:"role_list"`
|
||||
}
|
||||
@ -193,12 +195,18 @@ func (info *AccountDetailInfo) toDto() *dto2.AccountDetailInfo {
|
||||
if lastPayAt < o.PurchaseAt {
|
||||
lastPayAt = o.PurchaseAt
|
||||
}
|
||||
totalPayAmount += o.Price
|
||||
totalPayCount += 1
|
||||
}
|
||||
}
|
||||
retInfo.TotalPayAmount = totalPayAmount
|
||||
retInfo.TotalPayTimes = totalPayCount
|
||||
retInfo.FirstPayAt = utils.ParseUnixTimestamp2LocalTime(firstPayAt).Format(time.DateTime)
|
||||
retInfo.LastPayAt = utils.ParseUnixTimestamp2LocalTime(lastPayAt).Format(time.DateTime)
|
||||
if firstPayAt != math.MaxInt64 {
|
||||
retInfo.FirstPayAt = utils.ParseUnixTimestamp2LocalTime(firstPayAt).Format(time.DateTime)
|
||||
}
|
||||
if lastPayAt != 0 {
|
||||
retInfo.LastPayAt = utils.ParseUnixTimestamp2LocalTime(lastPayAt).Format(time.DateTime)
|
||||
}
|
||||
retInfo.LastLoginTime = utils.ParseUnixTimestamp2LocalTime(lastLoginTime).Format(time.DateTime)
|
||||
if earliestRole != nil {
|
||||
retInfo.Platform = earliestRole.Platform
|
||||
@ -206,9 +214,6 @@ func (info *AccountDetailInfo) toDto() *dto2.AccountDetailInfo {
|
||||
retInfo.CreatedAt = utils.ParseUnixTimestamp2LocalTime(earliestRole.CreatedAt).Format(time.DateTime)
|
||||
retInfo.CreatedIp = earliestRole.Ip
|
||||
retInfo.Platform = earliestRole.Platform
|
||||
retInfo.Platform = earliestRole.Platform
|
||||
retInfo.Platform = earliestRole.Platform
|
||||
retInfo.Platform = earliestRole.Platform
|
||||
}
|
||||
|
||||
return retInfo
|
||||
@ -239,20 +244,21 @@ func (hook *AccountHook) GetDetail(projectInfo *entity.Project, account string)
|
||||
Msg string `json:"msg"`
|
||||
} `json:"state"`
|
||||
|
||||
Data *AccountDetailInfo `json:"data"`
|
||||
Data []*AccountDetailInfo `json:"data"`
|
||||
}
|
||||
|
||||
detailRsp := &RspData{}
|
||||
err := httpclient.Request(projectInfo.GetApiAddr()+"/rolelist", "get", params, detailRsp)
|
||||
if err != nil {
|
||||
xlog.Warnf("get error:%v", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if detailRsp.Data == nil {
|
||||
if len(detailRsp.Data) <= 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
roleList = append(roleList, detailRsp.Data.RoleList...)
|
||||
roleList = append(roleList, detailRsp.Data[0].RoleList...)
|
||||
}
|
||||
|
||||
accountDetailTotal := &AccountDetailInfo{AccountId: accountId, RoleList: roleList}
|
||||
|
@ -32,6 +32,42 @@ func (hook *BanHook) Create(projectInfo *entity.Project, resource string, dtoObj
|
||||
case consts.BanType_RoleChat:
|
||||
banApi = "banroletalk"
|
||||
default:
|
||||
if banInfo.BanType == consts.BanType_AccountTrade {
|
||||
params := &url.Values{}
|
||||
params.Add("cmd_data", "OpWhitelist")
|
||||
params.Add("type", banInfo.BanType)
|
||||
params.Add("value", banInfo.Value)
|
||||
params.Add("op", "add")
|
||||
|
||||
// 所有区服
|
||||
serverList, err := getAllRunningServers(projectInfo)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, v := range serverList {
|
||||
params.Set("server", v.ServerId)
|
||||
rsp := make(map[string]any)
|
||||
err := httpclient.Request(alisrvAddr+"/gm", "get", params, &rsp)
|
||||
if err != nil {
|
||||
return errcode.New(errcode.ServerError, "发送新增禁止账号交易白名单请求:%+v错误:%v", banInfo, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
} else if banInfo.BanType == consts.BanType_RoleTrade {
|
||||
params := &url.Values{}
|
||||
params.Add("cmd_data", "OpWhitelist")
|
||||
params.Add("type", banInfo.BanType)
|
||||
params.Add("value", banInfo.Value)
|
||||
params.Add("op", "add")
|
||||
params.Set("server", banInfo.ServerConfID)
|
||||
rsp := make(map[string]any)
|
||||
err := httpclient.Request(alisrvAddr+"/gm", "get", params, &rsp)
|
||||
if err != nil {
|
||||
return errcode.New(errcode.ServerError, "发送新增禁止角色交易白名单请求:%+v错误:%v", banInfo, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
xlog.Warnf("神魔大陆不支持此类型的封禁:%v", banInfo.BanType)
|
||||
return nil
|
||||
}
|
||||
@ -86,6 +122,42 @@ func (hook *BanHook) Edit(projectInfo *entity.Project, resource string, dtoObj d
|
||||
case consts.BanType_RoleChat:
|
||||
banApi = "banroletalk"
|
||||
default:
|
||||
if banInfo.BanType == consts.BanType_AccountTrade {
|
||||
params := &url.Values{}
|
||||
params.Add("cmd_data", "OpWhitelist")
|
||||
params.Add("type", banInfo.BanType)
|
||||
params.Add("value", banInfo.Value)
|
||||
params.Add("op", "add")
|
||||
|
||||
// 所有区服
|
||||
serverList, err := getAllRunningServers(projectInfo)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, v := range serverList {
|
||||
params.Set("server", v.ServerId)
|
||||
rsp := make(map[string]any)
|
||||
err := httpclient.Request(alisrvAddr+"/gm", "get", params, &rsp)
|
||||
if err != nil {
|
||||
return errcode.New(errcode.ServerError, "发送新增禁止账号交易白名单请求:%+v错误:%v", banInfo, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
} else if banInfo.BanType == consts.BanType_RoleTrade {
|
||||
params := &url.Values{}
|
||||
params.Add("cmd_data", "OpWhitelist")
|
||||
params.Add("type", banInfo.BanType)
|
||||
params.Add("value", banInfo.Value)
|
||||
params.Add("op", "add")
|
||||
params.Set("server", banInfo.ServerConfID)
|
||||
rsp := make(map[string]any)
|
||||
err := httpclient.Request(alisrvAddr+"/gm", "get", params, &rsp)
|
||||
if err != nil {
|
||||
return errcode.New(errcode.ServerError, "发送新增禁止角色交易白名单请求:%+v错误:%v", banInfo, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
xlog.Warnf("神魔大陆不支持此类型的封禁:%v", banInfo.BanType)
|
||||
return nil
|
||||
}
|
||||
@ -141,6 +213,41 @@ func (hook *BanHook) Delete(projectInfo *entity.Project, resource string, dtoObj
|
||||
case consts.BanType_RoleChat:
|
||||
banApi = "banroletalkdel"
|
||||
default:
|
||||
if banInfo.BanType == consts.BanType_AccountTrade {
|
||||
params := &url.Values{}
|
||||
params.Add("cmd_data", "OpWhitelist")
|
||||
params.Add("type", banInfo.BanType)
|
||||
params.Add("value", banInfo.Value)
|
||||
params.Add("op", "remove")
|
||||
|
||||
// 所有区服
|
||||
serverList, err := getAllRunningServers(projectInfo)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, v := range serverList {
|
||||
params.Set("server", v.ServerId)
|
||||
rsp := make(map[string]any)
|
||||
err := httpclient.Request(alisrvAddr+"/gm", "get", params, &rsp)
|
||||
if err != nil {
|
||||
return errcode.New(errcode.ServerError, "发送新增禁止账号交易白名单请求:%+v错误:%v", banInfo, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
} else if banInfo.BanType == consts.BanType_RoleTrade {
|
||||
params := &url.Values{}
|
||||
params.Add("cmd_data", "OpWhitelist")
|
||||
params.Add("type", banInfo.BanType)
|
||||
params.Add("value", banInfo.Value)
|
||||
params.Add("op", "remove")
|
||||
params.Set("server", banInfo.ServerConfID)
|
||||
rsp := make(map[string]any)
|
||||
err := httpclient.Request(alisrvAddr+"/gm", "get", params, &rsp)
|
||||
if err != nil {
|
||||
return errcode.New(errcode.ServerError, "发送新增禁止角色交易白名单请求:%+v错误:%v", banInfo, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
xlog.Warnf("神魔大陆不支持此类型的封禁:%v", banInfo.BanType)
|
||||
return nil
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import (
|
||||
|
||||
type IAccountRepo interface {
|
||||
GetWhiteListAll(projectEt *entity.Project) ([]*dto.WhiteListInfo, error)
|
||||
GetBanListAll(projectEt *entity.Project) ([]*model.Ban, error)
|
||||
}
|
||||
|
||||
type accountRepoImpl struct {
|
||||
@ -35,3 +36,13 @@ func (impl *accountRepoImpl) GetWhiteListAll(projectEt *entity.Project) ([]*dto.
|
||||
}
|
||||
return retAccountList, nil
|
||||
}
|
||||
|
||||
func (impl *accountRepoImpl) GetBanListAll(projectEt *entity.Project) ([]*model.Ban, error) {
|
||||
list := make([]*model.Ban, 0)
|
||||
err := impl.db.Where("project_id = ?", projectEt.Po.ID).Find(&list).Error
|
||||
if err != nil {
|
||||
return nil, errcode.New(errcode.DBError, "list project %v whitelist error:%v", projectEt.Po.ID, err)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
@ -62,6 +62,14 @@ func (m *Ban) GetBanTypeChoices(project *Project) []*dto.CommonDtoFieldChoice {
|
||||
Desc: "角色发言",
|
||||
Value: consts.BanType_RoleChat,
|
||||
},
|
||||
{
|
||||
Desc: "账号游戏内交易",
|
||||
Value: consts.BanType_AccountTrade,
|
||||
},
|
||||
{
|
||||
Desc: "角色游戏内交易",
|
||||
Value: consts.BanType_RoleTrade,
|
||||
},
|
||||
}
|
||||
}
|
||||
return []*dto.CommonDtoFieldChoice{
|
||||
|
BIN
admin/cmd/all_in_one/admin
Executable file
BIN
admin/cmd/all_in_one/admin
Executable file
Binary file not shown.
@ -46,12 +46,14 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
BanType_Account = "account"
|
||||
BanType_Role = "role"
|
||||
BanType_Ip = "ip"
|
||||
BanType_AccountChat = "account_chat"
|
||||
BanType_RoleChat = "role_chat"
|
||||
BanType_Device = "device"
|
||||
BanType_Account = "account"
|
||||
BanType_Role = "role"
|
||||
BanType_Ip = "ip"
|
||||
BanType_AccountChat = "account_chat"
|
||||
BanType_RoleChat = "role_chat"
|
||||
BanType_Device = "device"
|
||||
BanType_AccountTrade = "ban_account_trade"
|
||||
BanType_RoleTrade = "ban_role_trade"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -5,7 +5,7 @@
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Vite App</title>
|
||||
<script type="module" crossorigin src="/static/js/index-1btxRZkB.js"></script>
|
||||
<script type="module" crossorigin src="/static/js/index-CpWFkf7_.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/static/js/vendor-BRRlSJxx.js">
|
||||
<link rel="stylesheet" crossorigin href="/static/css/vendor-DnLjZ1mj.css">
|
||||
<link rel="stylesheet" crossorigin href="/static/css/index-BqAGgcXq.css">
|
||||
|
1
admin/ui/static/static/js/Login-CrzoLt2Y.js
Normal file
1
admin/ui/static/static/js/Login-CrzoLt2Y.js
Normal file
@ -0,0 +1 @@
|
||||
import{r as e,ab as a,a as s,o,d as r,b as l,w as n,a0 as t,a3 as u,ac as d,W as i,v as p,$ as c,a9 as m,I as v}from"./vendor-BRRlSJxx.js";import{_ as f,u as _,r as g}from"./index-CpWFkf7_.js";const y={class:"login-box"},h={class:m({container:!0,animate__animated:!0,animate__flipInX:!0})},w={class:"form-container sign-in-container"},b=f({__name:"Login",setup(m){e(void 0);const{proxy:f}=a(),b=e({user:"",password:""}),V={user:[{required:!0,trigger:"blur",message:"请输入您的账号"}],password:[{required:!0,trigger:"blur",message:"请输入您的密码"}]},x=e=>{e&&f.$refs.ruleFormRef.validate((e=>{if(!e)return console.log("error submit!"),!1;_().login(b.value.user,b.value.password).then((()=>{console.log("登录成功,推送首页。。"),g.push({path:"/welcome"})}),(e=>{})).catch((()=>{v.error("login response error")}))}))};return(e,a)=>{const m=u,v=t,f=i,_=c;return o(),s("div",y,[r("div",h,[r("div",w,[l(_,{ref:"ruleFormRef",model:b.value,"status-icon":"",rules:V,class:"form"},{default:n((()=>[l(v,{class:"form-item",prop:"username"},{default:n((()=>[l(m,{modelValue:b.value.user,"onUpdate:modelValue":a[0]||(a[0]=e=>b.value.user=e),placeholder:"用户名",autocomplete:"off",onKeyup:a[1]||(a[1]=d((e=>x(b.value)),["enter"]))},null,8,["modelValue"])])),_:1}),l(v,{class:"form-item",prop:"password"},{default:n((()=>[l(m,{modelValue:b.value.password,"onUpdate:modelValue":a[2]||(a[2]=e=>b.value.password=e),placeholder:"密码",type:"password",autocomplete:"off",onKeyup:a[3]||(a[3]=d((e=>x(b.value)),["enter"]))},null,8,["modelValue"])])),_:1}),l(f,{class:"theme-button",type:"primary",onClick:a[4]||(a[4]=e=>x(b.value)),onKeydown:a[5]||(a[5]=d((e=>{var a;13!==a.keyCode&&100!==a.keyCode||x(b.value)}),["enter"]))},{default:n((()=>a[6]||(a[6]=[p("登 陆 ")]))),_:1})])),_:1},8,["model"])]),a[7]||(a[7]=r("div",{class:"overlay_container"},[r("div",{class:"overlay"},[r("div",{class:"overlay_panel overlay_right_container"},[r("h2",{class:"container-title"},"hello friend!"),r("p",null,"输入您的个人信息,以便使用后台管理系统")])])],-1))])])}}},[["__scopeId","data-v-68d4afe9"]]);export{b as default};
|
1
admin/ui/static/static/js/character-DgQ7EeQU.js
Normal file
1
admin/ui/static/static/js/character-DgQ7EeQU.js
Normal file
@ -0,0 +1 @@
|
||||
import{t as e}from"./tableUser-CtuzrH5n.js";import{u as r,L as t}from"./index-CpWFkf7_.js";import{a as s,o as a,c as o,B as c}from"./vendor-BRRlSJxx.js";import"./resource-BlqMGYqI.js";import"./empty-8LIfHfVv.js";const m={__name:"character",setup(m){let u={meta:{desc:"character",resource:"character",resource_url:"/resource/character",methods:{get:!0,post:!0,put:!0,delete:!0}}};return"admin"!==r().userInfo.character&&(u.meta.methods={}),t.setCache("resource",u),(r,t)=>(a(),s("div",null,[(a(),o(c(e)))]))}};export{m as default};
|
1
admin/ui/static/static/js/empty-8LIfHfVv.js
Normal file
1
admin/ui/static/static/js/empty-8LIfHfVv.js
Normal file
@ -0,0 +1 @@
|
||||
import{c as o,o as r,ai as s}from"./vendor-BRRlSJxx.js";import{_ as n}from"./index-CpWFkf7_.js";const e=n({},[["render",function(n,e){const t=s;return r(),o(t,{description:"没有权限!请联系管理员添加权限!"})}]]);export{e};
|
1
admin/ui/static/static/js/history-DCiLuIIh.js
Normal file
1
admin/ui/static/static/js/history-DCiLuIIh.js
Normal file
@ -0,0 +1 @@
|
||||
import{r as e,T as a,a as l,o as t,c as o,u,B as n,F as s,U as p,w as r,b as d,V as i,a7 as v,a3 as m,a8 as c,W as g,v as h,C as y,d as f,X as V,Y as b,Z as x,D as w,a9 as I}from"./vendor-BRRlSJxx.js";import{_ as k,u as _,a as C}from"./index-CpWFkf7_.js";import{e as U}from"./empty-8LIfHfVv.js";const z={class:"table-content"},j={class:"table"},D={class:"pagination-container"},R=k({__name:"history",props:{rowInfo:{},disableConditionInput:!0},setup(k){const R=k;let S=!0;!1===R.disableConditionInput&&(S=!1);const T="admin"===_().userInfo.character,A=e(T),B=e(1),F=e(20),G=e(R.userId);R.rowInfo&&void 0!==R.rowInfo.ID&&(G.value=R.rowInfo.ID);const K=e(""),N=e(""),P=e(""),W=e(""),X=e(!1),Y=[20,50,100],Z=e(0),q=e([]),E=()=>{C(B.value,F.value,G.value,K.value,N.value,P.value,W.value).then((e=>{q.value=e.data.list,Z.value=e.data.totalCount,X.value=!0}),(e=>{}))};a((()=>{E()}));const H=()=>{G.value="",K.value="",N.value="",P.value="",W.value=""},J=e=>{Z.value<=0||F.value*B.value>Z.value&&q.value.length>=Z.value||E()},L=e=>{E()};return(e,a)=>{const k=m,_=g,C=v,R=i,T=b,M=V,O=x,Q=y,$=w;return t(),l("div",{class:I(u(S)?"app-content1":"app-content")},[u(A)?(t(),l(s,{key:1},[u(X)?(t(),o($,{key:0},{default:r((()=>[d(R,{style:{"margin-bottom":"10px"}},{default:r((()=>[d(C,null,{default:r((()=>[!1===u(S)?(t(),o(k,{key:0,modelValue:u(G),"onUpdate:modelValue":a[0]||(a[0]=e=>c(G)?G.value=e:null),placeholder:"用户id",style:{width:"150px","margin-right":"10px"}},null,8,["modelValue"])):p("",!0),!1===u(S)?(t(),o(k,{key:1,modelValue:u(K),"onUpdate:modelValue":a[1]||(a[1]=e=>c(K)?K.value=e:null),placeholder:"操作资源类型",style:{width:"150px","margin-right":"10px"}},null,8,["modelValue"])):p("",!0),!1===u(S)?(t(),o(k,{key:2,modelValue:u(N),"onUpdate:modelValue":a[2]||(a[2]=e=>c(N)?N.value=e:null),placeholder:"操作资源组",style:{width:"150px","margin-right":"10px"}},null,8,["modelValue"])):p("",!0),!1===u(S)?(t(),o(k,{key:3,modelValue:u(P),"onUpdate:modelValue":a[3]||(a[3]=e=>c(P)?P.value=e:null),placeholder:"操作对象",style:{width:"150px","margin-right":"10px"}},null,8,["modelValue"])):p("",!0),!1===u(S)?(t(),o(k,{key:4,modelValue:u(W),"onUpdate:modelValue":a[4]||(a[4]=e=>c(W)?W.value=e:null),placeholder:"操作方法",style:{width:"150px","margin-right":"10px"}},null,8,["modelValue"])):p("",!0),!1===u(S)?(t(),o(_,{key:5,onClick:E,type:"primary",style:{"margin-right":"10px"}},{default:r((()=>a[7]||(a[7]=[h("条件搜索 ")]))),_:1})):p("",!0),!1===u(S)?(t(),o(_,{key:6,onClick:H},{default:r((()=>a[8]||(a[8]=[h("清空条件")]))),_:1})):p("",!0)])),_:1})])),_:1}),d(Q,null,{default:r((()=>[f("div",z,[f("div",j,[d(M,{data:u(q),style:{width:"100%"},"table-layout":"auto",stripe:"","tooltip-effect":"light"},{default:r((()=>[d(T,{prop:"userId",label:"用户id"}),d(T,{prop:"userName",label:"用户名"}),d(T,{prop:"opResourceType",label:"操作资源类型"}),d(T,{prop:"opResourceGroup",label:"操作资源组"}),d(T,{prop:"opResourceKey",label:"操作对象"}),d(T,{prop:"method",label:"操作方法"}),d(T,{prop:"createdAt",label:"创建时间"}),d(T,{prop:"detailInfo",label:"详情数据","show-overflow-tooltip":""})])),_:1},8,["data"])]),f("div",D,[d(O,{"current-page":u(B),"onUpdate:currentPage":a[5]||(a[5]=e=>c(B)?B.value=e:null),"page-size":u(F),"onUpdate:pageSize":a[6]||(a[6]=e=>c(F)?F.value=e:null),"page-sizes":Y,layout:"total, sizes, prev, pager, next, jumper",total:u(Z),onSizeChange:J,onCurrentChange:L},null,8,["current-page","page-size","total"])])])])),_:1})])),_:1})):p("",!0)],64)):(t(),o(n(U),{key:0}))],2)}}},[["__scopeId","data-v-926d7759"]]);export{R as t};
|
1
admin/ui/static/static/js/history-SYXEnEDh.js
Normal file
1
admin/ui/static/static/js/history-SYXEnEDh.js
Normal file
@ -0,0 +1 @@
|
||||
import{t as s}from"./history-DCiLuIIh.js";import{c as o,o as t,B as e}from"./vendor-BRRlSJxx.js";import"./index-CpWFkf7_.js";import"./empty-8LIfHfVv.js";const i={__name:"history",setup:i=>(i,r)=>(t(),o(e(s),{disableConditionInput:false}))};export{i as default};
|
2
admin/ui/static/static/js/index-CpWFkf7_.js
Normal file
2
admin/ui/static/static/js/index-CpWFkf7_.js
Normal file
File diff suppressed because one or more lines are too long
1
admin/ui/static/static/js/project-DXqcIkMC.js
Normal file
1
admin/ui/static/static/js/project-DXqcIkMC.js
Normal file
@ -0,0 +1 @@
|
||||
import{t as e}from"./table-BVl4EXN8.js";import{L as s,u as a,c as r}from"./index-CpWFkf7_.js";import{i as t,a as o,o as m,c,B as p}from"./vendor-BRRlSJxx.js";import"./resource-BlqMGYqI.js";import"./empty-8LIfHfVv.js";const i={__name:"project",setup(i){s.setCache("project",{}),t();let n=r;return"admin"!==a().userInfo.character&&(n.meta.methods={}),s.setCache("resource",n),(s,a)=>(m(),o("div",null,[(m(),c(p(e)))]))}};export{i as default};
|
1
admin/ui/static/static/js/project_op-tvwVzXV5.js
Normal file
1
admin/ui/static/static/js/project_op-tvwVzXV5.js
Normal file
File diff suppressed because one or more lines are too long
1
admin/ui/static/static/js/resource-BlqMGYqI.js
Normal file
1
admin/ui/static/static/js/resource-BlqMGYqI.js
Normal file
@ -0,0 +1 @@
|
||||
import{s as t}from"./index-CpWFkf7_.js";function r(r,e){return t({url:r,method:"get",params:e})}function e(r,e){return t({url:r,method:"post",data:{dto:e}})}function o(r,e){return t({url:r,method:"put",data:{dto:e}})}function n(r,e){return t({url:r,method:"delete",data:e})}function u(r,e){return t({url:r+"/selection",method:"post",data:e})}function a(r){return t({url:"/project/"+r.toString()+"/items",method:"get"})}export{n as a,e as b,o as c,a as d,u as e,r};
|
1
admin/ui/static/static/js/table-BVl4EXN8.js
Normal file
1
admin/ui/static/static/js/table-BVl4EXN8.js
Normal file
File diff suppressed because one or more lines are too long
1
admin/ui/static/static/js/tableUser-CtuzrH5n.js
Normal file
1
admin/ui/static/static/js/tableUser-CtuzrH5n.js
Normal file
File diff suppressed because one or more lines are too long
1
admin/ui/static/static/js/user-CB9Ao5Sm.js
Normal file
1
admin/ui/static/static/js/user-CB9Ao5Sm.js
Normal file
@ -0,0 +1 @@
|
||||
import{t as e}from"./tableUser-CtuzrH5n.js";import{u as s,L as r}from"./index-CpWFkf7_.js";import{t}from"./history-DCiLuIIh.js";import{a as o,o as a,c,B as m}from"./vendor-BRRlSJxx.js";import"./resource-BlqMGYqI.js";import"./empty-8LIfHfVv.js";const u={__name:"user",setup(u){let n={meta:{desc:"user",resource:"user",resource_url:"/resource/user",methods:{get:!0,post:!0,put:!0,delete:!0}}};"admin"!==s().userInfo.character&&(n.meta.methods={}),r.setCache("resource",n);const p=[];return p.push({key:"user:exec:history",name:"执行记录",btn_color_type:"info",btn_type:1,btn_callback_component:t}),(s,r)=>(a(),o("div",null,[(a(),c(m(e),{rowClickDialogBtns:p}))]))}};export{u as default};
|
1
admin/ui/static/static/js/welcome-GP4XAXSr.js
Normal file
1
admin/ui/static/static/js/welcome-GP4XAXSr.js
Normal file
@ -0,0 +1 @@
|
||||
import{a as s,o as a,d as e,b as n,v as t,t as o,u as r,aa as p,F as l}from"./vendor-BRRlSJxx.js";import{u}from"./index-CpWFkf7_.js";const f={style:{"font-size":"40px"}},i={style:{color:"darkslategrey","font-size":"50px"}},m={__name:"welcome",setup(m){const c=u().userInfo;return(u,m)=>{const d=p;return a(),s(l,null,[e("span",f,[m[0]||(m[0]=t("亲爱的")),e("span",i,o(r(c).nick_name),1),m[1]||(m[1]=t("!欢迎使用本公司后台管理系统!"))]),n(d),m[2]||(m[2]=e("span",{style:{"font-size":"40px"}},"硬盘有价,数据无价,操作不规范,亲人两行泪。",-1))],64)}}};export{m as default};
|
@ -39,7 +39,6 @@ const roleIdFilters = ref([])
|
||||
|
||||
const getEventList = () => {
|
||||
let listParams = {
|
||||
"AppId": 41,
|
||||
"EventName": props.eventName,
|
||||
"ServerId": props.serverId,
|
||||
"Account": props.account,
|
||||
|
Loading…
x
Reference in New Issue
Block a user