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 9c3236e5
authored
Aug 21, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
75718c49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
html/role/add.html
html/role/detail.html
html/role/add.html
View file @
9c3236e
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<div
class=
"sub-bg-white edit-box"
>
<div
class=
"sub-bg-white edit-box"
>
<form
class=
"layui-form add"
lay-filter=
"roleForm"
action=
""
>
<form
class=
"layui-form add"
lay-filter=
"roleForm"
action=
""
>
<div
class=
"layui-form-item edit-title"
style=
"position: relative;"
>
<div
class=
"layui-form-item edit-title"
style=
"position: relative;"
>
<div
class=
"layui-input-inline"
>
创建角色
</div>
<div
id=
"roleTitle"
class=
"layui-input-inline"
>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label required"
>
所属商户:
</label>
<label
class=
"layui-form-label required"
>
所属商户:
</label>
...
@@ -102,11 +102,13 @@
...
@@ -102,11 +102,13 @@
var
request
=
layui
.
request
var
request
=
layui
.
request
var
merchantId
=
''
var
merchantId
=
''
if
(
roleid
)
{
if
(
roleid
)
{
$
(
'#roleTitle'
).
append
(
'编辑角色'
)
getById
(
roleid
)
getById
(
roleid
)
$
(
'#merchantIdText'
).
text
(
qs
(
'merchantName'
))
$
(
'#merchantIdText'
).
text
(
qs
(
'merchantName'
))
$
(
'#merchantIdText'
).
removeClass
(
'hide'
)
$
(
'#merchantIdText'
).
removeClass
(
'hide'
)
$
(
'#merchantIdText'
).
addClass
(
'show'
)
$
(
'#merchantIdText'
).
addClass
(
'show'
)
}
else
{
}
else
{
$
(
'#roleTitle'
).
append
(
'新增角色'
)
$
(
'#draft'
).
removeClass
(
'hide'
)
$
(
'#draft'
).
removeClass
(
'hide'
)
$
(
'#draft'
).
addClass
(
'show'
)
$
(
'#draft'
).
addClass
(
'show'
)
var
str
=
'<div id="merchantSelect" class="hide"><select id="merchantName" name="merchantId" lay-filter="merchants" lay-verify="required" autocomplete="off" placeholder="请选择商户名称" required></select></div>'
var
str
=
'<div id="merchantSelect" class="hide"><select id="merchantName" name="merchantId" lay-filter="merchants" lay-verify="required" autocomplete="off" placeholder="请选择商户名称" required></select></div>'
...
@@ -407,6 +409,7 @@
...
@@ -407,6 +409,7 @@
if
(
data
.
responseList
)
{
if
(
data
.
responseList
)
{
check_arr
=
data
.
responseList
check_arr
=
data
.
responseList
}
}
merchantId
=
data
.
merchantId
console
.
log
(
check_arr
,
'jklj'
)
console
.
log
(
check_arr
,
'jklj'
)
findMenuFunTreeByMerId
(
data
.
merchantId
)
findMenuFunTreeByMerId
(
data
.
merchantId
)
form
.
val
(
'roleForm'
,
{
form
.
val
(
'roleForm'
,
{
...
@@ -508,7 +511,7 @@
...
@@ -508,7 +511,7 @@
</div>`
</div>`
</script>
</script>
<script
type=
"text/html"
id=
"treeAuth"
>
<script
type=
"text/html"
id=
"treeAuth"
>
<!--
<
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
>
</script>
</script>
...
...
html/role/detail.html
View file @
9c3236e
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<div
class=
"sub-bg-white"
>
<div
class=
"sub-bg-white"
>
<div>
<div>
<h3
class=
"content-title"
>
<h3
class=
"content-title"
>
员工
基本信息
角色
基本信息
<div
class=
"title-right"
id=
"merchantName"
></div>
<div
class=
"title-right"
id=
"merchantName"
></div>
</h3>
</h3>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
...
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