Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
introducer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
introducer
Commits
f18ed5be
Commit
f18ed5be
authored
Jan 20, 2024
by
sugar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
股权
parent
21adb855
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
application/admin/controller/users/Users.php
application/admin/controller/users/Users.php
+2
-2
application/admin/view/users/users/edit_equity.html
application/admin/view/users/users/edit_equity.html
+1
-1
public/assets/js/backend/users/usermoneylog.js
public/assets/js/backend/users/usermoneylog.js
+3
-3
No files found.
application/admin/controller/users/Users.php
View file @
f18ed5be
...
...
@@ -271,7 +271,7 @@ class Users extends Backend
$this
->
error
(
'股权余额不足!'
);
}
$info
=
$this
->
model
->
where
([
'id'
=>
$row
[
'id'
]])
->
find
();
if
(
$params
[
'equity'
]
>
0
&&
!
$params
[
'equity_code'
]){
/*
if($params['equity'] > 0 && !$params['equity_code']){
$this->error('请输入股权代码!');
}
$equity_code = $params['equity_code'];
...
...
@@ -282,7 +282,7 @@ class Users extends Backend
$params['signtime'] = strtotime($params['signtime']);
if($equity_code && $params['equity'] > 0){
$this->model->where(['id' => $row['id']])->update(['equity_code' =>$equity_code,'signtime' =>$params['signtime']]);
}
}
*/
$this
->
model
->
where
([
'id'
=>
$row
[
'id'
]])
->
setInc
(
'equity'
,
$equity
);
$data
=
[
'user_id'
=>
$row
[
'id'
],
...
...
application/admin/view/users/users/edit_equity.html
View file @
f18ed5be
...
...
@@ -15,7 +15,7 @@
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
股权代码
:
</label>
<label
class=
"control-label col-xs-12 col-sm-2"
>
备注
:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<textarea
id=
"c-Equity_code"
class=
"form-control"
name=
"row[equity_code]"
></textarea>
{:__('减少此栏请填写原因')}
...
...
public/assets/js/backend/users/usermoneylog.js
View file @
f18ed5be
...
...
@@ -40,9 +40,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
}
},
{
field
:
'
money
'
,
title
:
__
(
'
Money
'
),
operate
:
'
BETWEEN
'
},
{
field
:
'
before
'
,
title
:
__
(
'
Before
'
),
operate
:
'
BETWEEN
'
},
{
field
:
'
after
'
,
title
:
__
(
'
After
'
),
operate
:
'
BETWEEN
'
},
{
field
:
'
money
'
,
title
:
__
(
'
Money
'
),
operate
:
false
},
{
field
:
'
before
'
,
title
:
__
(
'
Before
'
),
operate
:
false
},
{
field
:
'
after
'
,
title
:
__
(
'
After
'
),
operate
:
false
},
{
field
:
'
memo
'
,
title
:
__
(
'
Memo
'
),
operate
:
'
LIKE
'
},
{
field
:
'
createtime
'
,
title
:
__
(
'
Createtime
'
),
operate
:
'
RANGE
'
,
addclass
:
'
datetimerange
'
,
autocomplete
:
false
,
formatter
:
Table
.
api
.
formatter
.
datetime
},
{
field
:
'
heatos
'
,
title
:
__
(
'
Heatos
'
),
searchList
:
{
"
1
"
:
__
(
'
Heatos 1
'
),
"
-1
"
:
__
(
'
Heatos -1
'
)},
formatter
:
Table
.
api
.
formatter
.
normal
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment