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 b3493b99
authored
Aug 13, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
804d9cfa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
html/employee/index.html
html/merchant/detail.html
html/role/detail.html
html/role/index.html
html/employee/index.html
View file @
b3493b9
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<div
class=
"layui-inline"
pane
>
<div
class=
"layui-inline"
pane
>
<label
class=
"layui-form-label"
>
状态
</label>
<label
class=
"layui-form-label"
>
状态
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<select
name=
"status"
id=
"status"
lay-verify=
"required"
>
<select
name=
"status"
id=
"status"
lay-verify=
"required"
placeholder=
"请选择状态"
>
<!-- <option value="">全部</option>
<!-- <option value="">全部</option>
<option value="0">存草稿</option>
<option value="0">存草稿</option>
<option value="1">启用</option>
<option value="1">启用</option>
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
</div>
</div>
<div
class=
"layui-inline"
pane
>
<div
class=
"layui-inline"
pane
>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<select
name=
"type"
lay-verify=
"required"
>
<select
name=
"type"
lay-verify=
"required"
placeholder=
"员工姓名/手机号"
>
<option
value=
""
></option>
<option
value=
""
></option>
<option
value=
"0"
>
员工姓名
</option>
<option
value=
"0"
>
员工姓名
</option>
<option
value=
"1"
>
手机号
</option>
<option
value=
"1"
>
手机号
</option>
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
}
else
if
(
layEvent
===
'edit'
)
{
}
else
if
(
layEvent
===
'edit'
)
{
go
(
'employee'
,
'add'
,
{
id
:
data
.
id
,
merchantId
:
data
.
merchantId
})
go
(
'employee'
,
'add'
,
{
id
:
data
.
id
,
merchantId
:
data
.
merchantId
})
}
else
if
(
layEvent
===
'del'
)
{
}
else
if
(
layEvent
===
'del'
)
{
layer
.
confirm
(
'
真的删除行么
'
,
function
(
index
)
{
layer
.
confirm
(
'
是否确认删除该员工?
'
,
function
(
index
)
{
// obj.del() //删除对应行(tr)的DOM结构,并更新缓存
// obj.del() //删除对应行(tr)的DOM结构,并更新缓存
var
params
=
{
var
params
=
{
method
:
'cn.com.glsx.merchants.staff.deleteStaff'
,
method
:
'cn.com.glsx.merchants.staff.deleteStaff'
,
...
...
html/merchant/detail.html
View file @
b3493b9
...
@@ -437,17 +437,17 @@
...
@@ -437,17 +437,17 @@
width
:
120
width
:
120
},
},
{
{
field
:
'
merchantNam
e'
,
field
:
'
staffPhon
e'
,
title
:
'登录账户'
,
title
:
'登录账户'
,
width
:
120
width
:
120
},
},
// {
// field: 'statusName',
// title: '登录密码',
// width: 120
// },
{
{
field
:
'statusName'
,
field
:
'createdAccount'
,
title
:
'登录密码'
,
width
:
120
},
{
field
:
'createdAccount '
,
title
:
'创建者'
,
title
:
'创建者'
,
width
:
100
width
:
100
},
},
...
...
html/role/detail.html
View file @
b3493b9
...
@@ -24,13 +24,13 @@
...
@@ -24,13 +24,13 @@
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
角色号:
</label>
<label
class=
"layui-form-label"
>
角色号:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"
id
"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"
roleCode
"
></div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
角色说明:
</label>
<label
class=
"layui-form-label"
>
角色说明:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"roleDescription
"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"roleDescription"
></div>
</div>
</div>
</div>
</div>
<h3
class=
"content-title layui-form"
>
角色权限
<h3
class=
"content-title layui-form"
>
角色权限
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
var
$
=
layui
.
$
var
$
=
layui
.
$
var
roleid
=
qs
(
'id'
)
var
roleid
=
qs
(
'id'
)
var
merchantId
=
qs
(
'merchantId'
)
var
merchantId
=
qs
(
'merchantId'
)
var
basicArr
=
[
'roleName'
,
'
id
'
,
'roleDescription'
]
var
basicArr
=
[
'roleName'
,
'
roleCode
'
,
'roleDescription'
]
var
roleData
=
{}
var
roleData
=
{}
var
menuFunTreeData
=
[]
var
menuFunTreeData
=
[]
var
templateData
=
{}
var
templateData
=
{}
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
console
.
log
(
roleData
)
console
.
log
(
roleData
)
roleData
=
helper
.
clone
(
true
,
res
.
data
)
roleData
=
helper
.
clone
(
true
,
res
.
data
)
for
(
var
i
in
basicArr
)
{
for
(
var
i
in
basicArr
)
{
$
(
'#'
+
[
basicArr
[
i
]]).
text
(
roleData
[
basicArr
[
i
]])
$
(
'#'
+
[
basicArr
[
i
]]).
text
(
roleData
[
basicArr
[
i
]]
||
''
)
}
}
callback
(
roleData
.
responseList
)
callback
(
roleData
.
responseList
)
}
}
...
...
html/role/index.html
View file @
b3493b9
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
{
field
:
'roleCode'
,
title
:
'角色号'
,
align
:
'center'
},
{
field
:
'roleCode'
,
title
:
'角色号'
,
align
:
'center'
},
{
field
:
'merchantName'
,
title
:
'所属商户名'
,
align
:
'center'
},
{
field
:
'merchantName'
,
title
:
'所属商户名'
,
align
:
'center'
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'
cre
atedTime'
,
title
:
'更新时间'
,
align
:
'center'
},
{
field
:
'
upd
atedTime'
,
title
:
'更新时间'
,
align
:
'center'
},
{
fixed
:
'right'
,
title
:
'操作'
,
width
:
160
,
align
:
'center'
,
toolbar
:
'#roleBar'
}
{
fixed
:
'right'
,
title
:
'操作'
,
width
:
160
,
align
:
'center'
,
toolbar
:
'#roleBar'
}
]
]
]
]
...
...
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