Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
722e3680
authored
Dec 05, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://git.ichunt.net/semour/semour_admin
parents
a79f92d8
7c2c6e55
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
3 deletions
app/Admin/Forms/User/EditUserHandle.php
app/Admin/Forms/UserAddress/SaveUserAddressHandle.php
app/Admin/Renderable/CreateUser.php
app/Admin/Service/UserAddressService.php
app/Console/Commands/updateDepartmentNum.php
app/Admin/Forms/User/EditUserHandle.php
View file @
722e3680
...
...
@@ -58,11 +58,11 @@ class EditUserHandle extends Form implements LazyRenderable
});
$this
->
row
(
function
(
Row
$form
)
{
$form
->
width
(
5
)
->
text
(
'first_name'
)
->
required
();
$form
->
width
(
5
)
->
text
(
'last_name'
);
$form
->
width
(
5
)
->
text
(
'last_name'
)
->
required
()
;
});
$this
->
row
(
function
(
Row
$form
)
{
$form
->
width
(
5
)
->
mobile
(
'phone'
)
->
required
();
$form
->
width
(
5
)
->
email
(
'email'
);
$form
->
width
(
5
)
->
email
(
'email'
)
->
required
()
;
});
$this
->
row
(
function
(
Row
$form
)
{
$form
->
width
(
5
)
->
select
(
'account_properties'
)
->
options
(
admin_trans
(
'user.options.account_properties'
))
->
required
();
...
...
app/Admin/Forms/UserAddress/SaveUserAddressHandle.php
View file @
722e3680
...
...
@@ -98,6 +98,8 @@ class SaveUserAddressHandle extends Form implements LazyRenderable
$this
->
row
(
function
(
Row
$row
)
{
$row
->
width
(
3
)
->
select
(
'country'
)
->
options
(
Country
::
getCountryMap
())
->
required
();
$row
->
width
(
3
)
->
text
(
'province'
)
->
default
(
''
);
});
$this
->
row
(
function
(
Row
$row
)
{
$row
->
width
(
3
)
->
text
(
'city'
)
->
required
();
$row
->
width
(
2
)
->
number
(
'post_code'
)
->
required
();
});
...
...
app/Admin/Renderable/CreateUser.php
View file @
722e3680
...
...
@@ -63,6 +63,8 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
(
Country
::
getCountryMap
())
->
required
();
$table
->
width
(
3
)
->
text
(
'province'
)
->
label
(
trans
(
"user-address.fields.province"
));
});
$table
->
row
(
function
(
Form\Row
$table
)
{
$table
->
width
(
3
)
->
text
(
'city'
)
->
label
(
trans
(
"user-address.fields.city"
))
->
required
();
$table
->
width
(
2
)
->
number
(
'post_code'
)
->
label
(
trans
(
"user-address.fields.post_code"
))
->
required
();
});
...
...
app/Admin/Service/UserAddressService.php
View file @
722e3680
...
...
@@ -16,7 +16,7 @@ class UserAddressService
$grid
->
column
(
'address_id'
);
$grid
->
column
(
'consignee'
);
$grid
->
email
(
'email'
);
$grid
->
mobile
(
'phone'
);
$grid
->
column
(
'phone'
);
$grid
->
column
(
'detail_address'
);
$grid
->
column
(
'city'
);
$grid
->
column
(
'address_type'
)
->
using
(
admin_trans
(
'user-address.options.address_type'
));
...
...
app/Console/Commands/updateDepartmentNum.php
0 → 100644
View file @
722e3680
<?php
namespace
App\Console\Commands
;
use
App\Admin\Service\AutoAssignCustomerService
;
use
Illuminate\Console\Command
;
class
updateDepartmentNum
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'command:updateDepartmentNum'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'Command description'
;
/**
* Create a new command instance.
*
* @return void
*/
public
function
__construct
()
{
parent
::
__construct
();
}
/**
* Execute the console command.
*
* @return int
*/
public
function
handle
()
{
echo
date
(
"Y-m-d H:i:s"
)
.
"更新部门数量开始"
.
PHP_EOL
;
AutoAssignCustomerService
::
updateDepartmentNum
();
echo
date
(
"Y-m-d H:i:s"
)
.
"更新部门数量结束"
.
PHP_EOL
;
return
0
;
}
}
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