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
e08ae5c8
Commit
e08ae5c8
authored
Dec 23, 2019
by
侯贺政
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限节点列表,增加输出LOGO字段。
Signed-off-by:
houhezheng
<
houhezheng@romens.cn
>
parent
42e6e734
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
19 deletions
+3
-19
AuthorityNodeController.php
backend/controllers/v1/authority/AuthorityNodeController.php
+1
-0
ShopRbacNode.php
backend/models/v1/rbacuser/ShopRbacNode.php
+2
-2
ShopGoodsDetailSetting.php
backend/models/v1/shopgoods/ShopGoodsDetailSetting.php
+0
-17
No files found.
backend/controllers/v1/authority/AuthorityNodeController.php
View file @
e08ae5c8
...
...
@@ -78,6 +78,7 @@ class AuthorityNodeController extends BaseController
* ID:节点id,
* NAME:菜单地址,
* TITLE:菜单名称,
* LOGO:菜单前面的图标,
* STATUS:菜单状态 0禁用 1启用,
* IS_MENU:是否为菜单(1:是,0:不是),
* IS_TOP_MENU:是否顶部菜单 1是 0否,
...
...
backend/models/v1/rbacuser/ShopRbacNode.php
View file @
e08ae5c8
...
...
@@ -92,7 +92,7 @@ class ShopRbacNode extends BaseModel
public
function
nodeList
(
$params
)
{
$query
=
static
::
find
()
->
select
([
'ID'
,
'NAME'
,
'TITLE'
,
'STATUS'
,
'IS_MENU'
,
'IS_TOP_MENU'
,
'IS_DEFAULT_SHOW'
,
'REMARK'
,
'SORT'
,
'PID'
,
'LEVEL'
])
->
select
([
'ID'
,
'NAME'
,
'TITLE'
,
'
LOGO'
,
'
STATUS'
,
'IS_MENU'
,
'IS_TOP_MENU'
,
'IS_DEFAULT_SHOW'
,
'REMARK'
,
'SORT'
,
'PID'
,
'LEVEL'
])
->
orderBy
(
"SORT ASC"
)
->
asArray
();
if
(
isset
(
$params
[
'TITLE'
]))
{
...
...
backend/models/v1/shopgoods/ShopGoodsDetailSetting.php
View file @
e08ae5c8
...
...
@@ -151,21 +151,4 @@ class ShopGoodsDetailSetting extends \app\models\v1\BaseModel
$dataProvider
->
setModels
(
$list
);
return
$dataProvider
;
}
/**
* 模板详情
* @param string $guid 模板GUID
* @return array|null
*/
public
function
details
(
$guid
)
{
$query
=
static
::
find
()
->
alias
(
'sgds'
)
->
select
(
'sgds.GUID,sgds.NAME,sgds.STATUS,sgds.START_TIME,sgds.END_TIME,count(sg.GUID) as NUM,sgds.HEAD_PIC_URL,sgds.FOOT_PIC_URL'
)
->
leftJoin
(
'shop_goods sg'
,
'sg.DETAIL_SETTING_GUID=sgds.GUID'
)
->
groupBy
(
'sgds.GUID'
)
->
where
([
'sgds.GUID'
=>
$guid
])
->
one
();
$query
->
toArray
([],
[
'NUM'
]);
return
$query
;
}
}
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