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 e6f783e7
authored
Aug 13, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
合并修改
2 parents
41c56dd9
7aae89d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
5 deletions
html/merchant/edit.html
html/merchant/edit.html
View file @
e6f783e
...
@@ -95,6 +95,16 @@
...
@@ -95,6 +95,16 @@
color
:
#999
;
color
:
#999
;
margin-left
:
160px
;
margin-left
:
160px
;
}
}
.edit-box
#accountTypeEl
.layui-form-checked
span
,
#accountTypeEl
.layui-form-checked
:hover
span
{
background-color
:
#1989FA
!important
;
}
.edit-box
#accountTypeEl
.layui-form-checked
i
,
#accountTypeEl
.layui-form-checked
:hover
i
{
color
:
#1989FA
!important
;
}
</style>
</style>
<title>
商户编辑
</title>
<title>
商户编辑
</title>
</head>
</head>
...
@@ -358,6 +368,7 @@
...
@@ -358,6 +368,7 @@
var
step
=
1
var
step
=
1
var
merchantId
=
null
var
merchantId
=
null
var
parentMerchantId
=
null
var
parentMerchantId
=
null
var
accountTypeVisible
=
false
// 是否工厂
// 是否工厂
var
isFactory
=
true
var
isFactory
=
true
var
parentInfo
=
{}
var
parentInfo
=
{}
...
@@ -419,7 +430,6 @@
...
@@ -419,7 +430,6 @@
lay
(
'#endDate'
).
html
(
value
)
lay
(
'#endDate'
).
html
(
value
)
}
}
})
})
init
()
init
()
// helper.store.set('merchantMapObj', {
// helper.store.set('merchantMapObj', {
...
@@ -494,6 +504,13 @@
...
@@ -494,6 +504,13 @@
}
}
}
}
})
})
if
(
!
params
.
accounttypeId
)
{
layer
.
msg
(
'账户类型不能为空'
,
{
icon
:
5
,
anim
:
6
})
return
false
}
var
elList
=
$
(
'.business-scope-cust'
)
var
elList
=
$
(
'.business-scope-cust'
)
var
tempList
=
[]
var
tempList
=
[]
$
.
each
(
elList
,
function
(
index
,
item
)
{
$
.
each
(
elList
,
function
(
index
,
item
)
{
...
@@ -528,9 +545,6 @@
...
@@ -528,9 +545,6 @@
}
}
console
.
log
(
editLevel
)
console
.
log
(
editLevel
)
console
.
log
(
params
)
console
.
log
(
params
)
layer
.
msg
(
'操作成功'
,
{
icon
:
1
})
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
console
.
log
(
res
)
console
.
log
(
res
)
// authorityTree
// authorityTree
...
@@ -732,6 +746,8 @@
...
@@ -732,6 +746,8 @@
$
(
'#preStep'
).
remove
()
$
(
'#preStep'
).
remove
()
if
(
editLevel
==
3
)
{
if
(
editLevel
==
3
)
{
$
(
'#firstBtn'
).
text
(
'确定'
)
$
(
'#firstBtn'
).
text
(
'确定'
)
$
(
'#validPeriodEl'
).
attr
(
'disabled'
,
true
)
accountTypeVisible
=
true
$
(
'#accountLevelEl'
).
attr
(
'disabled'
,
true
)
$
(
'#accountLevelEl'
).
attr
(
'disabled'
,
true
)
}
else
{
}
else
{
getBusiScope
()
getBusiScope
()
...
@@ -1001,7 +1017,11 @@
...
@@ -1001,7 +1017,11 @@
if
(
item
.
dictValue
==
parseInt
(
parentLevelList
[
k
]))
{
if
(
item
.
dictValue
==
parseInt
(
parentLevelList
[
k
]))
{
var
optionEl
=
$
(
'<input type="checkbox" class="accounttypeId" name="accountType['
+
item
var
optionEl
=
$
(
'<input type="checkbox" class="accounttypeId" name="accountType['
+
item
.
dictValue
+
']" title='
+
.
dictValue
+
']" title='
+
item
.
dictLabel
+
' value="'
+
item
.
dictValue
+
'">'
)
item
.
dictLabel
+
' value="'
+
item
.
dictValue
+
'">'
)
if
(
accountTypeVisible
)
{
optionEl
.
attr
(
'disabled'
,
true
)
}
// 修改-回显
// 修改-回显
if
(
editLevel
==
3
)
{
if
(
editLevel
==
3
)
{
for
(
var
i
=
0
;
i
<=
checkedList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<=
checkedList
.
length
;
i
++
)
{
...
@@ -1020,6 +1040,9 @@
...
@@ -1020,6 +1040,9 @@
var
optionEl
=
$
(
'<input type="checkbox" class="accounttypeId" name="accountType['
+
item
var
optionEl
=
$
(
'<input type="checkbox" class="accounttypeId" name="accountType['
+
item
.
dictValue
+
']" title='
+
.
dictValue
+
']" title='
+
item
.
dictLabel
+
' value="'
+
item
.
dictValue
+
'">'
)
item
.
dictLabel
+
' value="'
+
item
.
dictValue
+
'">'
)
if
(
accountTypeVisible
)
{
optionEl
.
attr
(
'disabled'
,
true
)
}
// 修改-回显
// 修改-回显
if
(
editLevel
==
3
)
{
if
(
editLevel
==
3
)
{
for
(
var
i
=
0
;
i
<=
checkedList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<=
checkedList
.
length
;
i
++
)
{
...
@@ -1392,6 +1415,7 @@
...
@@ -1392,6 +1415,7 @@
$
(
'#preStep'
).
on
(
'click'
,
function
()
{
$
(
'#preStep'
).
on
(
'click'
,
function
()
{
step
=
1
step
=
1
// editLevel = 3
init
()
init
()
})
})
...
...
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