Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopBack
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
newshop
newShopBack
Commits
0f104933
Commit
0f104933
authored
Dec 23, 2019
by
侯贺政
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图标字段
Signed-off-by:
houhezheng
<
houhezheng@romens.cn
>
parent
e08ae5c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
AuthorityNodeController.php
backend/controllers/v1/authority/AuthorityNodeController.php
+4
-4
ShopRbacNode.php
backend/models/v1/rbacuser/ShopRbacNode.php
+4
-4
No files found.
backend/controllers/v1/authority/AuthorityNodeController.php
View file @
0f104933
...
...
@@ -78,7 +78,7 @@ class AuthorityNodeController extends BaseController
* ID:节点id,
* NAME:菜单地址,
* TITLE:菜单名称,
*
LOGO
:菜单前面的图标,
*
ICON
:菜单前面的图标,
* STATUS:菜单状态 0禁用 1启用,
* IS_MENU:是否为菜单(1:是,0:不是),
* IS_TOP_MENU:是否顶部菜单 1是 0否,
...
...
@@ -128,7 +128,7 @@ class AuthorityNodeController extends BaseController
* required={"TITLE","SORT","LEVEL"},
* @OA\Property(property="NAME" ,type="string", description="菜单地址"),
* @OA\Property(property="TITLE" ,type="string", description="菜单名称"),
* @OA\Property(property="
LOGO" ,type="string",description="菜单前面的图标url
"),
* @OA\Property(property="
ICON" ,type="string",description="菜单前面的图标
"),
* @OA\Property(property="STATUS", type="int",description="菜单状态(默认1启用,0禁用)",example="1"),
* @OA\Property(property="IS_MENU", type="int",description="是否菜单(默认0否,1是)",example="0"),
* @OA\Property(property="IS_TOP_MENU", type="int",description="是否顶部菜单(默认0否,1是)",example="0"),
...
...
@@ -229,7 +229,7 @@ class AuthorityNodeController extends BaseController
* ID:节点id,
* NAME:菜单地址,
* TITLE:菜单名称,
*
LOGO:logo地址
,
*
ICON:图标
,
* STATUS:菜单状态 0禁用 1启用,
* IS_MENU:是否为菜单(1:是,0:不是),
* IS_TOP_MENU:是否顶部菜单 1是 0否,
...
...
@@ -270,7 +270,7 @@ class AuthorityNodeController extends BaseController
* @OA\Property(property="ID",type="int",description="节点ID"),
* @OA\Property(property="NAME" ,type="string", description="菜单地址"),
* @OA\Property(property="TITLE" ,type="string", description="菜单名称"),
* @OA\Property(property="
LOGO" ,type="string",description="菜单前面的图标url
"),
* @OA\Property(property="
ICON" ,type="string",description="菜单前面的图标
"),
* @OA\Property(property="STATUS", type="int",description="菜单状态(1启用,0禁用)"),
* @OA\Property(property="IS_MENU", type="int",description="是否菜单(0否,1是)"),
* @OA\Property(property="IS_TOP_MENU", type="int",description="是否顶部菜单(0否,1是)"),
...
...
backend/models/v1/rbacuser/ShopRbacNode.php
View file @
0f104933
...
...
@@ -12,7 +12,7 @@ use app\models\v1\BaseModel;
* @property string $ORG_GUID 组织机构号
* @property string $NAME 菜单地址
* @property string $TITLE 菜单名称
* @property string $
LOGO
菜单前面的图标url
* @property string $
ICON
菜单前面的图标url
* @property int $STATUS 菜单状态 0禁用 1启用
* @property int $IS_MENU 是否为菜单(1:是,0:不是)
* @property int $IS_TOP_MENU 是否顶部菜单 1是 0否
...
...
@@ -41,7 +41,7 @@ class ShopRbacNode extends BaseModel
[[
'STATUS'
,
'IS_MENU'
,
'IS_TOP_MENU'
,
'IS_DEFAULT_SHOW'
,
'SORT'
,
'LEVEL'
],
'integer'
],
[[
'ORG_GUID'
,
'TITLE'
],
'string'
,
'max'
=>
50
],
[[
'NAME'
],
'string'
,
'max'
=>
100
],
[[
'
LOGO
'
,
'REMARK'
],
'string'
,
'max'
=>
200
],
[[
'
ICON
'
,
'REMARK'
],
'string'
,
'max'
=>
200
],
[[
'PID'
],
'string'
,
'max'
=>
11
],
[[
'TITLE'
,
'SORT'
,
'LEVEL'
],
'required'
,
'on'
=>
[
'creation'
]],
[[
'IS_MENU'
,
'IS_TOP_MENU'
,
'IS_DEFAULT_SHOW'
,
'PID'
],
'default'
,
'value'
=>
0
,
'on'
=>
[
'creation'
]],
...
...
@@ -59,7 +59,7 @@ class ShopRbacNode extends BaseModel
'ORG_GUID'
=>
'组织机构号'
,
'NAME'
=>
'菜单地址'
,
'TITLE'
=>
'菜单名称'
,
'
LOGO'
=>
'Logo
'
,
'
ICON'
=>
'图标
'
,
'STATUS'
=>
'菜单状态'
,
'IS_MENU'
=>
'是否为菜单'
,
'IS_TOP_MENU'
=>
'是否顶部菜单'
,
...
...
@@ -92,7 +92,7 @@ class ShopRbacNode extends BaseModel
public
function
nodeList
(
$params
)
{
$query
=
static
::
find
()
->
select
([
'ID'
,
'NAME'
,
'TITLE'
,
'
LOGO
'
,
'STATUS'
,
'IS_MENU'
,
'IS_TOP_MENU'
,
'IS_DEFAULT_SHOW'
,
'REMARK'
,
'SORT'
,
'PID'
,
'LEVEL'
])
->
select
([
'ID'
,
'NAME'
,
'TITLE'
,
'
ICON
'
,
'STATUS'
,
'IS_MENU'
,
'IS_TOP_MENU'
,
'IS_DEFAULT_SHOW'
,
'REMARK'
,
'SORT'
,
'PID'
,
'LEVEL'
])
->
orderBy
(
"SORT ASC"
)
->
asArray
();
if
(
isset
(
$params
[
'TITLE'
]))
{
...
...
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