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 72011bc4
authored
Oct 27, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
9980187c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
20 deletions
html/employee/add.html
html/employee/index.html
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/edit.html
html/role/add.html
html/role/index.html
html/employee/add.html
View file @
72011bc
...
@@ -283,8 +283,12 @@
...
@@ -283,8 +283,12 @@
resetpsw
.
removeClass
(
'hide'
)
resetpsw
.
removeClass
(
'hide'
)
resetpsw
.
addClass
(
'show'
)
resetpsw
.
addClass
(
'show'
)
merchantId
=
qs
(
'merchantId'
)
merchantId
=
qs
(
'merchantId'
)
$
(
'#merchantIdText'
).
text
(
qs
(
'merchantName'
))
$
(
'#merchantIdText'
).
removeClass
(
'hide'
)
$
(
'#merchantIdText'
).
addClass
(
'show'
)
getList
(
qs
(
'merchantId'
))
getList
(
qs
(
'merchantId'
))
$
(
'#addUpdateTitle'
).
text
(
'修改员工'
)
$
(
'#addUpdateTitle'
).
text
(
'修改员工'
)
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
}
}
findAllMerchant
(
function
(
result
)
{})
findAllMerchant
(
function
(
result
)
{})
}
}
...
@@ -461,7 +465,7 @@
...
@@ -461,7 +465,7 @@
autoRow
:
true
,
autoRow
:
true
,
paging
:
result
.
data
.
length
>
20
paging
:
result
.
data
.
length
>
20
})
})
merchantNameSelect
.
setValue
([
merchantId
])
//
merchantNameSelect.setValue([merchantId])
// var list = result.data
// var list = result.data
// list.unshift('')
// list.unshift('')
// $.each(list, function (index, item) {
// $.each(list, function (index, item) {
...
...
html/employee/index.html
View file @
72011bc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
xm-select
:hover
{
xm-select
:hover
{
border
:
1px
solid
#5850ff
!important
;
border
:
1px
solid
#5850ff
!important
;
}
}
.hide
{
display
:
none
;
}
.show
{
display
:
inline-block
;
}
</style>
</style>
<body>
<body>
...
@@ -103,6 +109,9 @@
...
@@ -103,6 +109,9 @@
// }
// }
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
console
.
log
(
'accountInfo'
,
accountInfo
)
console
.
log
(
'accountInfo'
,
accountInfo
)
if
(
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
)
{
$
(
'.merchantNames'
).
addClass
(
'hide'
)
}
// 商户名称列表
// 商户名称列表
var
merchantName
=
$
(
'#merchantName'
)
var
merchantName
=
$
(
'#merchantName'
)
var
status
=
$
(
'#status'
)
var
status
=
$
(
'#status'
)
...
@@ -129,7 +138,7 @@
...
@@ -129,7 +138,7 @@
{
field
:
'entmicroName'
,
title
:
'员工企微号'
,
align
:
'center'
,
width
:
125
},
{
field
:
'entmicroName'
,
title
:
'员工企微号'
,
align
:
'center'
,
width
:
125
},
{
field
:
'roleName'
,
title
:
'角色'
,
align
:
'center'
},
{
field
:
'roleName'
,
title
:
'角色'
,
align
:
'center'
},
{
field
:
'staffPhone'
,
title
:
'登录手机号'
,
align
:
'center'
,
width
:
125
},
{
field
:
'staffPhone'
,
title
:
'登录手机号'
,
align
:
'center'
,
width
:
125
},
{
field
:
'merchantName'
,
title
:
'所属门店'
,
align
:
'center'
,
width
:
125
},
{
field
:
'merchantName'
,
title
:
'所属门店'
,
align
:
'center'
,
width
:
125
,
hide
:
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
},
{
field
:
'belongingEntmicroName'
,
title
:
'所属企微'
,
align
:
'center'
,
width
:
125
},
{
field
:
'belongingEntmicroName'
,
title
:
'所属企微'
,
align
:
'center'
,
width
:
125
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
180
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
180
},
...
...
html/merchant/add.html
View file @
72011bc
...
@@ -1454,7 +1454,7 @@
...
@@ -1454,7 +1454,7 @@
</div>
</div>
</div>
</div>
</form>
</form>
<div>请选择产品权限</div>
<div
style="margin-left: 30px;"
>请选择产品权限</div>
<div class="layui-tab layui-tree-box" lay-filter="treeTab{{d.id}}">
<div class="layui-tab layui-tree-box" lay-filter="treeTab{{d.id}}">
<ul class="layui-tab-title"></ul>
<ul class="layui-tab-title"></ul>
<div class="layui-tab-content">
<div class="layui-tab-content">
...
...
html/merchant/addSubMerchant.html
View file @
72011bc
...
@@ -1475,7 +1475,7 @@
...
@@ -1475,7 +1475,7 @@
</div>
</div>
</div>
</div>
</form>
</form>
<div>请选择产品权限</div>
<div
style="margin-left: 30px;"
>请选择产品权限</div>
<div class="layui-tab layui-tree-box" lay-filter="treeTab{{d.id}}">
<div class="layui-tab layui-tree-box" lay-filter="treeTab{{d.id}}">
<ul class="layui-tab-title"></ul>
<ul class="layui-tab-title"></ul>
<div class="layui-tab-content">
<div class="layui-tab-content">
...
...
html/merchant/edit.html
View file @
72011bc
...
@@ -1491,11 +1491,11 @@
...
@@ -1491,11 +1491,11 @@
</div>
</div>
</div>
</div>
</form>
</form>
<div>请选择产品权限</div>
<div
style="margin-left: 30px;"
>请选择产品权限</div>
<div class="layui-tab layui-tree-box" lay-filter="treeTab{{d.id}}">
<div class="layui-tab layui-tree-box" lay-filter="treeTab{{d.id}}">
<ul class="layui-tab-title"></ul>
<ul class="layui-tab-title"></ul>
<div class="layui-tab-content">
<div class="layui-tab-content">
<div class="layui-no-data
show
" id="nodata
${
id
}
">
<div class="layui-no-data
hide
" id="nodata
${
id
}
">
<div class="no-data">
<div class="no-data">
<img src="../../css/img/no-data.png" />
<img src="../../css/img/no-data.png" />
<div>请先选择产品</div>
<div>请先选择产品</div>
...
...
html/role/add.html
View file @
72011bc
...
@@ -210,6 +210,7 @@
...
@@ -210,6 +210,7 @@
$
(
'#merchantIdText'
).
text
(
qs
(
'merchantName'
))
$
(
'#merchantIdText'
).
text
(
qs
(
'merchantName'
))
$
(
'#merchantIdText'
).
removeClass
(
'hide'
)
$
(
'#merchantIdText'
).
removeClass
(
'hide'
)
$
(
'#merchantIdText'
).
addClass
(
'show'
)
$
(
'#merchantIdText'
).
addClass
(
'show'
)
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
}
else
{
}
else
{
$
(
'#roleTitle'
).
append
(
'新增角色'
)
$
(
'#roleTitle'
).
append
(
'新增角色'
)
$
(
'#draft'
).
removeClass
(
'hide'
)
$
(
'#draft'
).
removeClass
(
'hide'
)
...
@@ -267,7 +268,7 @@
...
@@ -267,7 +268,7 @@
</div>
</div>
</form>
</form>
<div
style="font-size:14px;color:#333;font-weight:500
;">请选择产品权限</div>
<div
style="font-size:14px;color:#333;font-weight:500;margin-left: 55px
;">请选择产品权限</div>
<div class="layui-tab " lay-filter="treeTab{{d.id}}">
<div class="layui-tab " lay-filter="treeTab{{d.id}}">
<ul class="layui-tab-title"></ul>
<ul class="layui-tab-title"></ul>
<div class="layui-tab-content">
<div class="layui-tab-content">
...
@@ -712,12 +713,12 @@
...
@@ -712,12 +713,12 @@
function
getAuthList
()
{
function
getAuthList
()
{
requestList
=
[]
requestList
=
[]
console
.
log
(
treeData
,
check_arr
)
console
.
log
(
treeData
,
check_arr
)
check_arr
.
forEach
(
i
=>
{
//
check_arr.forEach(i => {
for
(
var
key
in
treeData
)
{
for
(
var
key
in
treeData
)
{
var
accountObj
=
treeData
[
key
]
var
accountObj
=
treeData
[
key
]
var
productList
=
[]
var
productList
=
[]
console
.
log
(
treeData
)
console
.
log
(
treeData
)
if
(
i
.
accounttypeId
==
key
)
{
//
if (i.accounttypeId == key) {
if
(
Object
.
keys
(
accountObj
).
length
!=
0
)
{
if
(
Object
.
keys
(
accountObj
).
length
!=
0
)
{
for
(
var
i
in
accountObj
)
{
for
(
var
i
in
accountObj
)
{
var
productObj
=
accountObj
[
i
]
var
productObj
=
accountObj
[
i
]
...
@@ -781,14 +782,14 @@
...
@@ -781,14 +782,14 @@
productList
:
productList
productList
:
productList
})
})
}
}
}
else
{
//
} else {
requestList
.
push
({
//
requestList.push({
accountTypeId
:
i
.
accounttypeId
,
//
accountTypeId: i.accounttypeId,
productList
:
[]
//
productList: []
})
//
})
}
//
}
}
}
})
//
})
}
}
...
...
html/role/index.html
View file @
72011bc
...
@@ -18,6 +18,13 @@
...
@@ -18,6 +18,13 @@
xm-select
:hover
{
xm-select
:hover
{
border
:
1px
solid
#5850ff
!important
;
border
:
1px
solid
#5850ff
!important
;
}
}
.hide
{
display
:
none
;
}
.show
{
display
:
inline-block
;
}
</style>
</style>
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
...
@@ -33,7 +40,6 @@
...
@@ -33,7 +40,6 @@
<span>
创建角色
</span>
<span>
创建角色
</span>
</button>
</button>
</div>
</div>
<div
class=
"layui-inline companyName"
pane
>
<div
class=
"layui-inline companyName"
pane
>
<label
class=
"layui-form-label"
>
商户名称
</label>
<label
class=
"layui-form-label"
>
商户名称
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
...
@@ -53,7 +59,7 @@
...
@@ -53,7 +59,7 @@
<select
name=
"delFlag"
id=
"status"
lay-verify=
"required"
>
<select
name=
"delFlag"
id=
"status"
lay-verify=
"required"
>
<option
value=
""
>
全部
</option>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
草稿
</option>
<option
value=
"1"
>
草稿
</option>
<option
value=
"0"
>
启用
</option>
<option
value=
"0"
>
正常
</option>
</select>
</select>
</div>
</div>
</div>
</div>
...
@@ -91,6 +97,9 @@
...
@@ -91,6 +97,9 @@
// 商户名称列表
// 商户名称列表
var
merchantName
=
$
(
'#merchantName'
)
var
merchantName
=
$
(
'#merchantName'
)
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
if
(
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
)
{
$
(
'.companyName'
).
addClass
(
'hide'
)
}
var
cols
=
[
var
cols
=
[
//表头
//表头
{
field
:
''
,
title
:
'序号'
,
type
:
'numbers'
,
width
:
60
},
{
field
:
''
,
title
:
'序号'
,
type
:
'numbers'
,
width
:
60
},
...
@@ -110,7 +119,6 @@
...
@@ -110,7 +119,6 @@
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
},
{
fixed
:
'right'
,
title
:
'操作'
,
width
:
160
,
align
:
'center'
,
toolbar
:
'#roleBar'
}
{
fixed
:
'right'
,
title
:
'操作'
,
width
:
160
,
align
:
'center'
,
toolbar
:
'#roleBar'
}
]
]
var
gl
=
false
//创建table实例
//创建table实例
var
roleTable
=
table
.
render
({
var
roleTable
=
table
.
render
({
elem
:
'#roleTable'
,
elem
:
'#roleTable'
,
...
@@ -119,6 +127,7 @@
...
@@ -119,6 +127,7 @@
cols
:
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
?
[
colums
]
:
[
cols
]
cols
:
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
?
[
colums
]
:
[
cols
]
})
})
// 分页配置
// 分页配置
var
page
=
{
var
page
=
{
pageNum
:
1
,
pageNum
:
1
,
...
@@ -216,7 +225,7 @@
...
@@ -216,7 +225,7 @@
var
params
=
{
id
:
data
.
id
,
merchantId
:
data
.
merchantId
,
merchantName
:
data
.
merchantName
}
var
params
=
{
id
:
data
.
id
,
merchantId
:
data
.
merchantId
,
merchantName
:
data
.
merchantName
}
go
(
'role'
,
'add'
,
params
)
go
(
'role'
,
'add'
,
params
)
}
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
:
'org.ore.api.role.deleteById'
,
method
:
'org.ore.api.role.deleteById'
,
...
...
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