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 b53108c7
authored
Aug 17, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/h5/account
2 parents
b65c928a
1ffcdf4f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
20 deletions
css/employee.css
html/employee/add.html
html/merchant/index.html
html/role/add.html
css/employee.css
View file @
b53108c
...
...
@@ -74,4 +74,9 @@
right
:
20px
;
top
:
50%
;
transform
:
translateY
(
-50%
);
font-size
:
14px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
}
\ No newline at end of file
html/employee/add.html
View file @
b53108c
...
...
@@ -215,7 +215,6 @@
getById
(
function
(
checkedList
)
{
visibleMerchant
=
tree
.
create
(
'visibleInferiorMerTree'
,
res
.
data
,
{
checkedList
:
checkedList
})
})
console
.
log
(
'---'
)
all_nodes
=
visibleMerchant
.
getNodes
()
bindEvent
()
}
else
{
...
...
@@ -299,7 +298,6 @@
// 提交表单
form
.
on
(
'submit(employeeSubmit)'
,
function
(
data
)
{
console
.
log
(
data
,
'llll'
)
var
visibleInferiorMer
=
visibleMerchant
.
getCheckedNodes
(
true
).
map
(
function
(
i
)
{
return
i
.
id
}).
join
(
','
)
...
...
@@ -312,23 +310,21 @@
otherParams
.
merchantFileRequest
=
JSON
.
stringify
(
merchantFileRequest
)
}
if
(
id
)
{
console
.
log
(
id
)
otherParams
.
id
=
id
otherParams
.
method
=
'cn.com.glsx.merchants.staff.updateStaff'
}
else
{
otherParams
.
method
=
'cn.com.glsx.merchants.staff.saveStaff'
}
x
}
var
params
=
helper
.
clone
(
true
,
data
.
field
,
otherParams
)
delete
params
.
merhcnatImg
console
.
log
(
params
)
// request(params, function (result) {
// if (result.code == '0') {
// window.history.back()
// layer.msg('操作成功', {
// icon: 1
// })
// }
// })
request
(
params
,
function
(
result
)
{
if
(
result
.
code
==
'0'
)
{
window
.
history
.
back
()
layer
.
msg
(
'操作成功'
,
{
icon
:
1
})
}
})
return
false
})
...
...
@@ -361,13 +357,10 @@
function
bindEvent
()
{
$
(
'#searchMerchant'
).
on
(
'input'
,
helper
.
debounce
(
function
()
{
var
txt
=
$
(
this
).
val
()
console
.
log
(
txt
)
if
(
!
txt
)
{
console
.
log
(
all_nodes
,
' ----1111111111'
)
visibleMerchant
.
showNodes
(
all_nodes
)
}
else
{
var
show_nodes
=
visibleMerchant
.
getNodesByParamFuzzy
(
'label'
,
txt
)
console
.
log
(
show_nodes
,
all_nodes
)
visibleMerchant
.
hideNodes
(
all_nodes
)
visibleMerchant
.
showNodes
(
show_nodes
)
}
...
...
html/merchant/index.html
View file @
b53108c
...
...
@@ -264,7 +264,6 @@
// console.log(obj)
var
eventName
=
obj
.
event
var
row
=
obj
.
data
// console.log(row)
switch
(
eventName
)
{
// 查看
case
'handleDetail'
:
...
...
@@ -311,7 +310,8 @@
// 创建员工
case
'handleAddStaff'
:
go
(
'employee'
,
'add'
,
{
merchantId
:
row
.
id
merchantId
:
row
.
id
,
merchantName
:
row
.
merchantName
})
break
// 修改账户有效期
...
...
html/role/add.html
View file @
b53108c
...
...
@@ -444,8 +444,8 @@
$
.
each
(
functionIdLists
,
function
(
idx
,
m
)
{
// console.log(m)
functionIdList
.
push
({
functionI
d
:
m
.
parentId
,
men
d
Id
:
m
.
superParentId
i
d
:
m
.
parentId
,
men
u
Id
:
m
.
superParentId
})
})
productList
.
push
({
...
...
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