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 75718c49
authored
Aug 20, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交角色、员工
1 parent
6068177f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
css/employee.css
html/employee/add.html
html/role/add.html
css/employee.css
View file @
75718c4
...
...
@@ -35,7 +35,7 @@
}
.detail
.wrapper-tree
{
width
:
230px
;
/* width:230px; */
overflow
:
auto
;
margin-left
:
50px
;
}
...
...
html/employee/add.html
View file @
75718c4
...
...
@@ -290,15 +290,12 @@
})
.
join
(
','
)
var
otherParams
=
{
visibleInferiorMer
:
visibleInferiorMer
//
merchantId: merchantId
visibleInferiorMer
:
visibleInferiorMer
,
merchantId
:
merchantId
}
if
(
merchantFileRequest
.
fileName
)
{
otherParams
.
merchantFileRequest
=
JSON
.
stringify
(
merchantFileRequest
)
}
if
(
qs
(
'channel'
))
{
otherParams
.
merchantId
=
merchantId
}
if
(
id
)
{
otherParams
.
id
=
id
otherParams
.
method
=
'cn.com.glsx.merchants.staff.updateStaff'
...
...
@@ -312,7 +309,7 @@
layer
.
msg
(
'操作成功'
,
{
icon
:
1
})
window
.
history
.
back
()
//
window.history.back()
}
})
return
false
...
...
@@ -326,7 +323,7 @@
// select 选择触发
form
.
on
(
'select(merchants)'
,
function
(
data
)
{
console
.
log
(
data
.
value
)
var
merchantId
=
data
.
value
merchantId
=
data
.
value
getList
(
merchantId
)
})
...
...
html/role/add.html
View file @
75718c4
...
...
@@ -117,7 +117,6 @@
// findMenuFunTreeByMerId()
}
var
merchantName
=
$
(
'#merchantName'
)
findAllMerchant
()
// start
var
laytpl
=
layui
.
laytpl
var
xmSelect
=
layui
.
xmSelect
...
...
@@ -313,7 +312,7 @@
// 调用新增接口
function
insert
(
delFlag
,
formVal
)
{
var
otherParams
=
{
//
merchantId: merchantId,
merchantId
:
merchantId
,
delFlag
:
delFlag
}
if
(
requestList
.
length
!=
0
)
{
...
...
@@ -327,7 +326,7 @@
}
else
{
otherParams
.
method
=
'org.ore.api.role.insert'
}
var
params
=
helper
.
clone
(
true
,
otherParams
,
formVal
)
var
params
=
helper
.
clone
(
true
,
formVal
,
otherParams
)
delete
params
.
select
console
.
log
(
params
)
request
(
params
,
function
(
res
)
{
...
...
@@ -351,6 +350,7 @@
// callback(res.data)
menuFunTreeData
=
res
.
data
var
accountType
=
$
(
'#accountType'
)
accountType
.
empty
()
$
.
each
(
menuFunTreeData
,
function
(
index
,
item
)
{
console
.
log
(
item
)
var
str
=
$
(
'<input lay-filter="switch" type="checkbox" name="accounttypeId" value="'
+
item
.
accounttypeId
+
'" title="'
+
item
.
accounttypeName
+
'" />'
)
...
...
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