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 1ffcdf4f
authored
Aug 17, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
36786c88
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
20 deletions
html/employee/add.html
html/merchant/index.html
html/role/add.html
html/employee/add.html
View file @
1ffcdf4
...
@@ -215,7 +215,6 @@
...
@@ -215,7 +215,6 @@
getById
(
function
(
checkedList
)
{
getById
(
function
(
checkedList
)
{
visibleMerchant
=
tree
.
create
(
'visibleInferiorMerTree'
,
res
.
data
,
{
checkedList
:
checkedList
})
visibleMerchant
=
tree
.
create
(
'visibleInferiorMerTree'
,
res
.
data
,
{
checkedList
:
checkedList
})
})
})
console
.
log
(
'---'
)
all_nodes
=
visibleMerchant
.
getNodes
()
all_nodes
=
visibleMerchant
.
getNodes
()
bindEvent
()
bindEvent
()
}
else
{
}
else
{
...
@@ -299,7 +298,6 @@
...
@@ -299,7 +298,6 @@
// 提交表单
// 提交表单
form
.
on
(
'submit(employeeSubmit)'
,
function
(
data
)
{
form
.
on
(
'submit(employeeSubmit)'
,
function
(
data
)
{
console
.
log
(
data
,
'llll'
)
var
visibleInferiorMer
=
visibleMerchant
.
getCheckedNodes
(
true
).
map
(
function
(
i
)
{
var
visibleInferiorMer
=
visibleMerchant
.
getCheckedNodes
(
true
).
map
(
function
(
i
)
{
return
i
.
id
return
i
.
id
}).
join
(
','
)
}).
join
(
','
)
...
@@ -312,23 +310,21 @@
...
@@ -312,23 +310,21 @@
otherParams
.
merchantFileRequest
=
JSON
.
stringify
(
merchantFileRequest
)
otherParams
.
merchantFileRequest
=
JSON
.
stringify
(
merchantFileRequest
)
}
}
if
(
id
)
{
if
(
id
)
{
console
.
log
(
id
)
otherParams
.
id
=
id
otherParams
.
id
=
id
otherParams
.
method
=
'cn.com.glsx.merchants.staff.updateStaff'
otherParams
.
method
=
'cn.com.glsx.merchants.staff.updateStaff'
}
else
{
}
else
{
otherParams
.
method
=
'cn.com.glsx.merchants.staff.saveStaff'
otherParams
.
method
=
'cn.com.glsx.merchants.staff.saveStaff'
}
x
}
var
params
=
helper
.
clone
(
true
,
data
.
field
,
otherParams
)
var
params
=
helper
.
clone
(
true
,
data
.
field
,
otherParams
)
delete
params
.
merhcnatImg
delete
params
.
merhcnatImg
console
.
log
(
params
)
request
(
params
,
function
(
result
)
{
// request(params, function (result) {
if
(
result
.
code
==
'0'
)
{
// if (result.code == '0') {
window
.
history
.
back
()
// window.history.back()
layer
.
msg
(
'操作成功'
,
{
// layer.msg('操作成功', {
icon
:
1
// icon: 1
})
// })
}
// }
})
// })
return
false
return
false
})
})
...
@@ -361,13 +357,10 @@
...
@@ -361,13 +357,10 @@
function
bindEvent
()
{
function
bindEvent
()
{
$
(
'#searchMerchant'
).
on
(
'input'
,
helper
.
debounce
(
function
()
{
$
(
'#searchMerchant'
).
on
(
'input'
,
helper
.
debounce
(
function
()
{
var
txt
=
$
(
this
).
val
()
var
txt
=
$
(
this
).
val
()
console
.
log
(
txt
)
if
(
!
txt
)
{
if
(
!
txt
)
{
console
.
log
(
all_nodes
,
' ----1111111111'
)
visibleMerchant
.
showNodes
(
all_nodes
)
visibleMerchant
.
showNodes
(
all_nodes
)
}
else
{
}
else
{
var
show_nodes
=
visibleMerchant
.
getNodesByParamFuzzy
(
'label'
,
txt
)
var
show_nodes
=
visibleMerchant
.
getNodesByParamFuzzy
(
'label'
,
txt
)
console
.
log
(
show_nodes
,
all_nodes
)
visibleMerchant
.
hideNodes
(
all_nodes
)
visibleMerchant
.
hideNodes
(
all_nodes
)
visibleMerchant
.
showNodes
(
show_nodes
)
visibleMerchant
.
showNodes
(
show_nodes
)
}
}
...
...
html/merchant/index.html
View file @
1ffcdf4
...
@@ -264,7 +264,6 @@
...
@@ -264,7 +264,6 @@
// console.log(obj)
// console.log(obj)
var
eventName
=
obj
.
event
var
eventName
=
obj
.
event
var
row
=
obj
.
data
var
row
=
obj
.
data
// console.log(row)
switch
(
eventName
)
{
switch
(
eventName
)
{
// 查看
// 查看
case
'handleDetail'
:
case
'handleDetail'
:
...
@@ -311,7 +310,8 @@
...
@@ -311,7 +310,8 @@
// 创建员工
// 创建员工
case
'handleAddStaff'
:
case
'handleAddStaff'
:
go
(
'employee'
,
'add'
,
{
go
(
'employee'
,
'add'
,
{
merchantId
:
row
.
id
merchantId
:
row
.
id
,
merchantName
:
row
.
merchantName
})
})
break
break
// 修改账户有效期
// 修改账户有效期
...
...
html/role/add.html
View file @
1ffcdf4
...
@@ -444,8 +444,8 @@
...
@@ -444,8 +444,8 @@
$
.
each
(
functionIdLists
,
function
(
idx
,
m
)
{
$
.
each
(
functionIdLists
,
function
(
idx
,
m
)
{
// console.log(m)
// console.log(m)
functionIdList
.
push
({
functionIdList
.
push
({
functionI
d
:
m
.
parentId
,
i
d
:
m
.
parentId
,
men
d
Id
:
m
.
superParentId
men
u
Id
:
m
.
superParentId
})
})
})
})
productList
.
push
({
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