Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 90ecc4a6
authored
Oct 26, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改权限树
1 parent
1b651913
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
167 additions
and
27 deletions
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/edit.html
html/role/add.html
html/merchant/add.html
View file @
90ecc4a
...
@@ -1487,7 +1487,33 @@
...
@@ -1487,7 +1487,33 @@
},
},
// tab Change
// tab Change
tabChange
:
function
(
name
,
id
)
{
tabChange
:
function
(
name
,
id
)
{
console
.
log
(
name
,
id
)
element
.
tabChange
(
name
,
id
)
element
.
tabChange
(
name
,
id
)
if
(
name
==
'roleAuth'
)
{
$
(
`#nomenu
${
id
}
`
).
html
(
'请选择产品'
)
}
else
{
const
accounttypeId
=
id
.
split
(
'_'
)[
1
]
const
productId
=
id
.
split
(
'_'
)[
2
]
$
(
`#nodata
${
accounttypeId
}
`
).
removeClass
(
'show'
)
$
(
`#nodata
${
accounttypeId
}
`
).
addClass
(
'hide'
)
$
(
`#nomenu
${
accounttypeId
}
`
).
html
(
'暂无可选择的菜单功能'
)
console
.
log
(
menuFunTreeData
)
menuFunTreeData
.
forEach
(
item
=>
{
if
(
item
.
accounttypeId
==
accounttypeId
)
{
item
.
products
.
forEach
(
i
=>
{
if
(
i
.
productId
==
productId
)
{
if
(
i
.
merchantProTreeResponses
.
length
==
0
)
{
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
removeClass
(
'hide'
)
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
addClass
(
'show'
)
}
else
{
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
removeClass
(
'show'
)
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
addClass
(
'hide'
)
}
}
})
}
})
}
},
},
/**
/**
* 第二级选项卡
* 第二级选项卡
...
@@ -1520,11 +1546,6 @@
...
@@ -1520,11 +1546,6 @@
if
(
treeListData
&&
treeListData
.
length
!=
0
)
{
if
(
treeListData
&&
treeListData
.
length
!=
0
)
{
treeData
[
id
][
item
.
value
].
treeObj
=
tree
.
create
(
treedom
,
treeListData
)
treeData
[
id
][
item
.
value
].
treeObj
=
tree
.
create
(
treedom
,
treeListData
)
treeData
[
id
][
item
.
value
].
treeObj
.
checkAllNodes
(
true
)
treeData
[
id
][
item
.
value
].
treeObj
.
checkAllNodes
(
true
)
$
(
`#nodata
${
id
}
`
).
removeClass
(
'show'
)
$
(
`#nodata
${
id
}
`
).
addClass
(
'hide'
)
}
else
{
$
(
`#nodata
${
id
}
`
).
removeClass
(
'hide'
)
$
(
`#nodata
${
id
}
`
).
addClass
(
'show'
)
}
}
}
}
}
}
...
@@ -1664,12 +1685,15 @@
...
@@ -1664,12 +1685,15 @@
for
(
var
key
in
treeData
)
{
for
(
var
key
in
treeData
)
{
var
accountObj
=
treeData
[
key
]
var
accountObj
=
treeData
[
key
]
var
productList
=
[]
var
productList
=
[]
console
.
log
(
accountObj
)
if
(
Object
.
keys
(
accountObj
).
length
!=
0
)
{
for
(
var
i
in
accountObj
)
{
for
(
var
i
in
accountObj
)
{
var
productObj
=
accountObj
[
i
]
var
productObj
=
accountObj
[
i
]
var
menuIds
=
[]
var
menuIds
=
[]
var
functionIds
=
[]
var
functionIds
=
[]
var
functionIdLists
=
[]
var
functionIdLists
=
[]
var
functionValueIdLists
=
[]
var
functionValueIdLists
=
[]
if
(
productObj
.
treeObj
)
{
var
nodes
=
productObj
.
treeObj
.
getCheckedNodes
(
true
)
var
nodes
=
productObj
.
treeObj
.
getCheckedNodes
(
true
)
$
.
each
(
nodes
,
function
(
index
,
item
)
{
$
.
each
(
nodes
,
function
(
index
,
item
)
{
if
(
item
.
logo
==
'function'
)
{
if
(
item
.
logo
==
'function'
)
{
...
@@ -1710,6 +1734,13 @@
...
@@ -1710,6 +1734,13 @@
functionIds
:
functionIds
,
functionIds
:
functionIds
,
menuIds
:
menuIds
menuIds
:
menuIds
})
})
}
else
{
productList
.
push
({
productId
:
productObj
.
productId
,
functionIdList
:
[],
menuIdList
:
[]
})
}
}
}
requestList
.
push
({
requestList
.
push
({
accountTypeId
:
key
,
accountTypeId
:
key
,
...
@@ -1717,16 +1748,21 @@
...
@@ -1717,16 +1748,21 @@
})
})
}
}
}
}
}
$
(
'#draft'
).
on
(
'click'
,
function
()
{
$
(
'#draft'
).
on
(
'click'
,
function
()
{
getAuthList
()
getAuthList
()
if
(
requestList
.
length
!=
0
)
{
var
params
=
{
var
params
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountTypes
:
JSON
.
stringify
(
requestList
),
//
accountTypes: JSON.stringify(requestList),
method
:
'cn.com.glsx.merchants.merchant.updatePermissions'
,
method
:
'cn.com.glsx.merchants.merchant.updatePermissions'
,
status
:
merchantForm
.
status
status
:
merchantForm
.
status
}
}
if
(
requestList
.
length
!=
0
)
{
params
.
accountTypes
=
JSON
.
stringify
(
requestList
)
}
else
{
params
.
accountTypes
=
JSON
.
stringify
([])
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
layer
.
msg
(
'操作成功'
,
{
layer
.
msg
(
'操作成功'
,
{
...
@@ -1735,11 +1771,9 @@
...
@@ -1735,11 +1771,9 @@
go
(
'merchant'
,
'index'
)
go
(
'merchant'
,
'index'
)
}
}
})
})
}
else
{
// layer.msg('请选择产品', {
layer
.
msg
(
'请选择产品'
,
{
// icon: 5
icon
:
5
// })
})
}
return
false
return
false
})
})
...
@@ -1784,6 +1818,12 @@
...
@@ -1784,6 +1818,12 @@
<!--
<
button
class
=
"layui-btn"
data
-
type
=
"d.id"
id
=
"checkedAll"
>
全选
<
/button
>
<!--
<
button
class
=
"layui-btn"
data
-
type
=
"d.id"
id
=
"checkedAll"
>
全选
<
/button
>
<
button
class
=
"layui-btn"
id
=
"cancelCheckedAll"
>
取消全选
<
/button> --
>
<
button
class
=
"layui-btn"
id
=
"cancelCheckedAll"
>
取消全选
<
/button> --
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
div
class
=
"layui-no-data show"
id
=
"nomenu{{d.id}}"
>
<
div
class
=
"no-data"
>
<
img
src
=
"../../css/img/no-data.png"
/>
<
div
>
暂无可选择的菜单功能
<
/div
>
<
/div
>
<
/div
>
</script>
</script>
</body>
</body>
</html>
</html>
html/merchant/addSubMerchant.html
View file @
90ecc4a
...
@@ -737,8 +737,8 @@
...
@@ -737,8 +737,8 @@
'merchantLoginPassword'
,
'merchantLoginPassword'
,
'merchantAccountLevel'
,
'merchantAccountLevel'
,
'effectiveTime'
,
'effectiveTime'
,
'effectiveStarttime'
,
//
'effectiveStarttime',
'expireDate'
//
'expireDate'
]
]
if
(
formData
.
isloginName
==
'on'
)
{
if
(
formData
.
isloginName
==
'on'
)
{
params
.
isloginName
=
1
params
.
isloginName
=
1
...
@@ -760,8 +760,8 @@
...
@@ -760,8 +760,8 @@
merchantForm
[
item
]
=
formData
[
item
]
||
''
merchantForm
[
item
]
=
formData
[
item
]
||
''
params
[
item
]
=
formData
[
item
]
||
''
params
[
item
]
=
formData
[
item
]
||
''
})
})
params
.
effectiveStarttime
=
new
Date
(
params
.
effectiveStarttime
)
if
(
formData
.
effectiveStarttime
)
params
.
effectiveStarttime
=
new
Date
(
params
.
effectiveStarttime
)
params
.
expireDate
=
new
Date
(
params
.
expireDate
)
if
(
formData
.
expireDate
)
params
.
expireDate
=
new
Date
(
params
.
expireDate
)
if
(
merchantId
)
{
if
(
merchantId
)
{
params
.
effectiveTime
=
merchantForm
.
effectiveTime
params
.
effectiveTime
=
merchantForm
.
effectiveTime
}
}
...
@@ -1501,7 +1501,33 @@
...
@@ -1501,7 +1501,33 @@
},
},
// tab Change
// tab Change
tabChange
:
function
(
name
,
id
)
{
tabChange
:
function
(
name
,
id
)
{
console
.
log
(
name
,
id
)
element
.
tabChange
(
name
,
id
)
element
.
tabChange
(
name
,
id
)
if
(
name
==
'roleAuth'
)
{
$
(
`#nomenu
${
id
}
`
).
html
(
'请选择产品'
)
}
else
{
const
accounttypeId
=
id
.
split
(
'_'
)[
1
]
const
productId
=
id
.
split
(
'_'
)[
2
]
$
(
`#nodata
${
accounttypeId
}
`
).
removeClass
(
'show'
)
$
(
`#nodata
${
accounttypeId
}
`
).
addClass
(
'hide'
)
$
(
`#nomenu
${
accounttypeId
}
`
).
html
(
'暂无可选择的菜单功能'
)
console
.
log
(
menuFunTreeData
)
menuFunTreeData
.
forEach
(
item
=>
{
if
(
item
.
accounttypeId
==
accounttypeId
)
{
item
.
products
.
forEach
(
i
=>
{
if
(
i
.
productId
==
productId
)
{
if
(
i
.
merchantProTreeResponses
.
length
==
0
)
{
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
removeClass
(
'hide'
)
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
addClass
(
'show'
)
}
else
{
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
removeClass
(
'show'
)
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
addClass
(
'hide'
)
}
}
})
}
})
}
},
},
/**
/**
* 第二级选项卡
* 第二级选项卡
...
@@ -1534,11 +1560,6 @@
...
@@ -1534,11 +1560,6 @@
if
(
treeListData
&&
treeListData
.
length
!=
0
)
{
if
(
treeListData
&&
treeListData
.
length
!=
0
)
{
treeData
[
id
][
item
.
value
].
treeObj
=
tree
.
create
(
treedom
,
treeListData
)
treeData
[
id
][
item
.
value
].
treeObj
=
tree
.
create
(
treedom
,
treeListData
)
treeData
[
id
][
item
.
value
].
treeObj
.
checkAllNodes
(
true
)
treeData
[
id
][
item
.
value
].
treeObj
.
checkAllNodes
(
true
)
$
(
`#nodata
${
id
}
`
).
removeClass
(
'show'
)
$
(
`#nodata
${
id
}
`
).
addClass
(
'hide'
)
}
else
{
$
(
`#nodata
${
id
}
`
).
removeClass
(
'hide'
)
$
(
`#nodata
${
id
}
`
).
addClass
(
'show'
)
}
}
}
}
}
}
...
@@ -1678,12 +1699,14 @@
...
@@ -1678,12 +1699,14 @@
for
(
var
key
in
treeData
)
{
for
(
var
key
in
treeData
)
{
var
accountObj
=
treeData
[
key
]
var
accountObj
=
treeData
[
key
]
var
productList
=
[]
var
productList
=
[]
if
(
Object
.
keys
(
accountObj
).
length
!=
0
)
{
for
(
var
i
in
accountObj
)
{
for
(
var
i
in
accountObj
)
{
var
productObj
=
accountObj
[
i
]
var
productObj
=
accountObj
[
i
]
var
menuIds
=
[]
var
menuIds
=
[]
var
functionIds
=
[]
var
functionIds
=
[]
var
functionIdLists
=
[]
var
functionIdLists
=
[]
var
functionValueIdLists
=
[]
var
functionValueIdLists
=
[]
if
(
productObj
.
treeObj
)
{
var
nodes
=
productObj
.
treeObj
.
getCheckedNodes
(
true
)
var
nodes
=
productObj
.
treeObj
.
getCheckedNodes
(
true
)
$
.
each
(
nodes
,
function
(
index
,
item
)
{
$
.
each
(
nodes
,
function
(
index
,
item
)
{
if
(
item
.
logo
==
'function'
)
{
if
(
item
.
logo
==
'function'
)
{
...
@@ -1724,6 +1747,13 @@
...
@@ -1724,6 +1747,13 @@
functionIds
:
functionIds
,
functionIds
:
functionIds
,
menuIds
:
menuIds
menuIds
:
menuIds
})
})
}
else
{
productList
.
push
({
productId
:
productObj
.
productId
,
functionIdList
:
[],
menuIdList
:
[]
})
}
}
}
requestList
.
push
({
requestList
.
push
({
accountTypeId
:
key
,
accountTypeId
:
key
,
...
@@ -1731,15 +1761,21 @@
...
@@ -1731,15 +1761,21 @@
})
})
}
}
}
}
}
$
(
'#draft'
).
on
(
'click'
,
function
()
{
$
(
'#draft'
).
on
(
'click'
,
function
()
{
getAuthList
()
getAuthList
()
var
params
=
{
var
params
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountTypes
:
JSON
.
stringify
(
requestList
),
//
accountTypes: JSON.stringify(requestList),
method
:
'cn.com.glsx.merchants.merchant.updatePermissions'
,
method
:
'cn.com.glsx.merchants.merchant.updatePermissions'
,
status
:
merchantForm
.
status
status
:
merchantForm
.
status
}
}
if
(
requestList
.
length
!=
0
)
{
params
.
accountTypes
=
JSON
.
stringify
(
requestList
)
}
else
{
params
.
accountTypes
=
JSON
.
stringify
([])
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
layer
.
msg
(
'操作成功'
,
{
layer
.
msg
(
'操作成功'
,
{
...
@@ -1758,6 +1794,7 @@
...
@@ -1758,6 +1794,7 @@
$
(
'#confirm'
).
on
(
'click'
,
function
()
{
$
(
'#confirm'
).
on
(
'click'
,
function
()
{
getAuthList
()
getAuthList
()
if
(
requestList
.
length
!=
0
)
{
var
params
=
{
var
params
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountTypes
:
JSON
.
stringify
(
requestList
)
accountTypes
:
JSON
.
stringify
(
requestList
)
...
@@ -1777,6 +1814,11 @@
...
@@ -1777,6 +1814,11 @@
go
(
'merchant'
,
'index'
)
go
(
'merchant'
,
'index'
)
}
}
})
})
}
else
{
layer
.
msg
(
'请选择产品'
,
{
icon
:
5
})
}
return
false
return
false
})
})
})
})
...
@@ -1785,6 +1827,12 @@
...
@@ -1785,6 +1827,12 @@
<!--
<
button
class
=
"layui-btn"
data
-
type
=
"d.id"
id
=
"checkedAll"
>
全选
<
/button
>
<!--
<
button
class
=
"layui-btn"
data
-
type
=
"d.id"
id
=
"checkedAll"
>
全选
<
/button
>
<
button
class
=
"layui-btn"
id
=
"cancelCheckedAll"
>
取消全选
<
/button> --
>
<
button
class
=
"layui-btn"
id
=
"cancelCheckedAll"
>
取消全选
<
/button> --
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
div
class
=
"layui-no-data show"
id
=
"nomenu{{d.id}}"
>
<
div
class
=
"no-data"
>
<
img
src
=
"../../css/img/no-data.png"
/>
<
div
>
暂无可选择的菜单功能
<
/div
>
<
/div
>
<
/div
>
</script>
</script>
</body>
</body>
</html>
</html>
html/merchant/edit.html
View file @
90ecc4a
...
@@ -1457,7 +1457,33 @@
...
@@ -1457,7 +1457,33 @@
},
},
// tab Change
// tab Change
tabChange
:
function
(
name
,
id
)
{
tabChange
:
function
(
name
,
id
)
{
console
.
log
(
name
,
id
)
element
.
tabChange
(
name
,
id
)
element
.
tabChange
(
name
,
id
)
if
(
name
==
'roleAuth'
)
{
$
(
`#nomenu
${
id
}
`
).
html
(
'请选择产品'
)
}
else
{
const
accounttypeId
=
id
.
split
(
'_'
)[
1
]
const
productId
=
id
.
split
(
'_'
)[
2
]
$
(
`#nodata
${
accounttypeId
}
`
).
removeClass
(
'show'
)
$
(
`#nodata
${
accounttypeId
}
`
).
addClass
(
'hide'
)
$
(
`#nomenu
${
accounttypeId
}
`
).
html
(
'暂无可选择的菜单功能'
)
console
.
log
(
menuFunTreeData
,
accounttypeId
,
productId
)
menuFunTreeData
.
forEach
(
item
=>
{
if
(
item
.
accounttypeId
==
accounttypeId
)
{
item
.
products
.
forEach
(
i
=>
{
if
(
i
.
productId
==
productId
)
{
if
(
i
.
merchantProTreeResponses
.
length
==
0
)
{
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
removeClass
(
'hide'
)
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
addClass
(
'show'
)
}
else
{
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
removeClass
(
'show'
)
$
(
`#nomenutab_
${
accounttypeId
}
_
${
productId
}
`
).
addClass
(
'hide'
)
}
}
})
}
})
}
},
},
/**
/**
* 第二级选项卡
* 第二级选项卡
...
@@ -1499,11 +1525,6 @@
...
@@ -1499,11 +1525,6 @@
}
else
{
}
else
{
treeData
[
id
][
item
.
value
].
treeObj
.
checkAllNodes
(
true
)
treeData
[
id
][
item
.
value
].
treeObj
.
checkAllNodes
(
true
)
}
}
$
(
`#nodata
${
id
}
`
).
removeClass
(
'show'
)
$
(
`#nodata
${
id
}
`
).
addClass
(
'hide'
)
}
else
{
$
(
`#nodata
${
id
}
`
).
removeClass
(
'hide'
)
$
(
`#nodata
${
id
}
`
).
addClass
(
'show'
)
}
}
// }
// }
}
}
...
@@ -1600,6 +1621,13 @@
...
@@ -1600,6 +1621,13 @@
products
.
merchantProTreeResponses
,
products
.
merchantProTreeResponses
,
j
.
menuIds
j
.
menuIds
)
)
if
(
products
.
merchantProTreeResponses
.
length
==
0
)
{
$
(
`#nomenutab_
${
id
}
_
${
j
.
productId
}
`
).
removeClass
(
'hide'
)
$
(
`#nomenutab_
${
id
}
_
${
j
.
productId
}
`
).
addClass
(
'show'
)
}
else
{
$
(
`#nomenutab_
${
id
}
_
${
j
.
productId
}
`
).
removeClass
(
'show'
)
$
(
`#nomenutab_
${
id
}
_
${
j
.
productId
}
`
).
addClass
(
'hide'
)
}
})
})
var
filterName
=
'treeTab'
+
item
.
accounttypeId
var
filterName
=
'treeTab'
+
item
.
accounttypeId
var
productId
=
'tab_'
+
item
.
accounttypeId
+
'_'
+
productData
.
products
[
0
].
productId
var
productId
=
'tab_'
+
item
.
accounttypeId
+
'_'
+
productData
.
products
[
0
].
productId
...
@@ -1642,15 +1670,19 @@
...
@@ -1642,15 +1670,19 @@
// 获取角色权限数据requestList
// 获取角色权限数据requestList
function
getAuthList
()
{
function
getAuthList
()
{
requestList
=
[]
requestList
=
[]
console
.
log
(
treeData
)
for
(
var
key
in
treeData
)
{
for
(
var
key
in
treeData
)
{
var
accountObj
=
treeData
[
key
]
var
accountObj
=
treeData
[
key
]
var
productList
=
[]
var
productList
=
[]
console
.
log
(
accountObj
)
// 判断是否为空
if
(
Object
.
keys
(
accountObj
).
length
!=
0
)
{
for
(
var
i
in
accountObj
)
{
for
(
var
i
in
accountObj
)
{
var
productObj
=
accountObj
[
i
]
var
productObj
=
accountObj
[
i
]
var
menuIds
=
[]
var
menuIds
=
[]
var
functionIds
=
[]
var
functionIds
=
[]
var
functionIdLists
=
[]
var
functionIdLists
=
[]
var
functionValueIdLists
=
[]
var
functionValueIdLists
=
[]
if
(
productObj
.
treeObj
)
{
var
nodes
=
productObj
.
treeObj
.
getCheckedNodes
(
true
)
var
nodes
=
productObj
.
treeObj
.
getCheckedNodes
(
true
)
$
.
each
(
nodes
,
function
(
index
,
item
)
{
$
.
each
(
nodes
,
function
(
index
,
item
)
{
if
(
item
.
logo
==
'function'
)
{
if
(
item
.
logo
==
'function'
)
{
...
@@ -1691,6 +1723,13 @@
...
@@ -1691,6 +1723,13 @@
functionIds
:
functionIds
,
functionIds
:
functionIds
,
menuIds
:
menuIds
menuIds
:
menuIds
})
})
}
else
{
productList
.
push
({
productId
:
productObj
.
productId
,
functionIdList
:
[],
menuIdList
:
[]
})
}
}
}
requestList
.
push
({
requestList
.
push
({
accountTypeId
:
key
,
accountTypeId
:
key
,
...
@@ -1698,9 +1737,11 @@
...
@@ -1698,9 +1737,11 @@
})
})
}
}
}
}
}
$
(
'#draft'
).
on
(
'click'
,
function
()
{
$
(
'#draft'
).
on
(
'click'
,
function
()
{
getAuthList
()
getAuthList
()
if
(
requestList
.
length
!=
0
)
{
var
params
=
{
var
params
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountTypes
:
JSON
.
stringify
(
requestList
),
accountTypes
:
JSON
.
stringify
(
requestList
),
...
@@ -1715,6 +1756,11 @@
...
@@ -1715,6 +1756,11 @@
go
(
'merchant'
,
'index'
)
go
(
'merchant'
,
'index'
)
}
}
})
})
}
else
{
layer
.
msg
(
'请选择产品'
,
{
icon
:
2
})
}
return
false
return
false
})
})
...
@@ -1764,6 +1810,12 @@
...
@@ -1764,6 +1810,12 @@
</script>
</script>
<script
type=
"text/html"
id=
"treeAuth"
>
<script
type=
"text/html"
id=
"treeAuth"
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
div
class
=
"layui-no-data show"
id
=
"nomenu{{d.id}}"
>
<
div
class
=
"no-data"
>
<
img
src
=
"../../css/img/no-data.png"
/>
<
div
>
暂无可选择的菜单功能
<
/div
>
<
/div
>
<
/div
>
</script>
</script>
</body>
</body>
</html>
</html>
html/role/add.html
View file @
90ecc4a
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment