切换导航条
此项目
正在载入...
登录
何书鹏
/
anttest
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
何书鹏
4 years ago
提交
5c9b2584a759244b0ce6270d502c3f14f0d8380e
1 个父辈
5d136f34
显示提现单号
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
17 行增加
和
6 行删除
application/admin/controller/UserCommissionApply.php
application/admin/lang/zh-cn/user_commission_apply.php
application/admin/model/UserCommissionApply.php
public/assets/js/backend/user_commission_apply.js
application/admin/controller/UserCommissionApply.php
查看文件 @
5c9b258
...
...
@@ -57,7 +57,7 @@ class UserCommissionApply extends Backend
public
function
index
()
{
//当前是否为关联查询
$this
->
relationSearch
=
fals
e
;
$this
->
relationSearch
=
tru
e
;
//设置过滤方法
$this
->
request
->
filter
([
'strip_tags'
,
'trim'
]);
if
(
$this
->
request
->
isAjax
())
{
...
...
@@ -68,14 +68,16 @@ class UserCommissionApply extends Backend
list
(
$where
,
$sort
,
$order
,
$offset
,
$limit
)
=
$this
->
buildparams
();
$list
=
$this
->
model
->
with
(
'user'
)
->
where
(
$where
)
->
order
(
$sort
,
$order
)
->
paginate
(
$limit
);
foreach
(
$list
as
$row
)
{
$row
->
visible
([
'id'
,
'user_id'
,
'money'
,
'status'
,
'status_msg'
,
'createtime'
,
'updatetime'
]);
$row
->
visible
([
'id'
,
'user_id'
,
'money'
,
'status'
,
'status_msg'
,
'partner_trade_no'
,
'createtime'
,
'updatetime'
,
'user'
]);
if
(
$row
->
getRelation
(
'user'
)){
$row
->
getRelation
(
'user'
)
->
visible
([
'nickname'
,
'avatar'
]);
}
}
$result
=
array
(
"total"
=>
$list
->
total
(),
"rows"
=>
$list
->
items
());
...
...
application/admin/lang/zh-cn/user_commission_apply.php
查看文件 @
5c9b258
...
...
@@ -10,5 +10,8 @@ return [
'Status_msg'
=>
'驳回理由'
,
'Createtime'
=>
'申请时间'
,
'Updatetime'
=>
'操作时间'
,
'Deletetime'
=>
'删除时间'
'Deletetime'
=>
'删除时间'
,
'Partner_trade_no'
=>
'提现单号'
,
'User.nickname'
=>
'用户昵称'
,
'User.avatar'
=>
'用户头像'
];
...
...
application/admin/model/UserCommissionApply.php
查看文件 @
5c9b258
...
...
@@ -43,7 +43,10 @@ class UserCommissionApply extends Model
return
isset
(
$list
[
$value
])
?
$list
[
$value
]
:
''
;
}
public
function
user
()
{
return
$this
->
belongsTo
(
'User'
,
'user_id'
,
'id'
,
[],
'LEFT'
)
->
setEagerlyType
(
0
);
}
}
...
...
public/assets/js/backend/user_commission_apply.js
查看文件 @
5c9b258
...
...
@@ -27,9 +27,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{
checkbox
:
true
},
{
field
:
'id'
,
title
:
__
(
'Id'
)},
{
field
:
'user_id'
,
title
:
__
(
'User_id'
)},
{
field
:
'user.nickname'
,
title
:
__
(
'User.nickname'
),
operate
:
'LIKE'
},
{
field
:
'user.avatar'
,
title
:
__
(
'User.avatar'
),
operate
:
false
,
events
:
Table
.
api
.
events
.
image
,
formatter
:
Table
.
api
.
formatter
.
image
},
{
field
:
'money'
,
title
:
__
(
'Money'
),
operate
:
'BETWEEN'
},
{
field
:
'status'
,
title
:
__
(
'Status'
),
searchList
:
{
"0"
:
__
(
'Status 0'
),
"1"
:
__
(
'Status 1'
),
"-1"
:
__
(
'Status -1'
)},
formatter
:
Table
.
api
.
formatter
.
status
},
{
field
:
'status_msg'
,
title
:
__
(
'Status_msg'
),
operate
:
'LIKE'
},
{
field
:
'partner_trade_no'
,
title
:
__
(
'Partner_trade_no'
),
operate
:
'LIKE'
},
{
field
:
'createtime'
,
title
:
__
(
'Createtime'
),
operate
:
'RANGE'
,
addclass
:
'datetimerange'
,
autocomplete
:
false
,
formatter
:
Table
.
api
.
formatter
.
datetime
},
{
field
:
'buttons'
,
...
...
请
注册
或
登录
后发表评论