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 87f96ebd
authored
Nov 28, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去除账户等级的禁用校验
1 parent
b47a93e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
html/merchant/edit.html
html/merchant/edit.html
View file @
87f96eb
...
@@ -1037,13 +1037,6 @@ function clearRoleAuthTabContent() {
...
@@ -1037,13 +1037,6 @@ function clearRoleAuthTabContent() {
// 监听账户等级下拉框的选择事件
// 监听账户等级下拉框的选择事件
form
.
on
(
'select(accountLevelFilter)'
,
function
(
data
)
{
form
.
on
(
'select(accountLevelFilter)'
,
function
(
data
)
{
if
(
data
.
value
==
1
||
data
.
value
==
4
){
$
(
'#accountLevelElTab option[value="1"]'
).
prop
(
'disabled'
,
false
)
$
(
'#accountLevelElTab option[value="2"]'
).
prop
(
'disabled'
,
false
)
$
(
'#accountLevelElTab option[value="3"]'
).
prop
(
'disabled'
,
false
)
$
(
'#accountLevelElTab option[value="4"]'
).
prop
(
'disabled'
,
false
)
}
// 如果选中的是“工厂”
// 如果选中的是“工厂”
if
(
data
.
value
==
'1'
)
{
if
(
data
.
value
==
'1'
)
{
// 隐藏上级商户的表单项
// 隐藏上级商户的表单项
...
@@ -1053,12 +1046,6 @@ function clearRoleAuthTabContent() {
...
@@ -1053,12 +1046,6 @@ function clearRoleAuthTabContent() {
$
(
'#superiorMerchantContainer'
).
show
();
$
(
'#superiorMerchantContainer'
).
show
();
}
}
_currentMerchantLevel
=
data
.
value
_currentMerchantLevel
=
data
.
value
if
(
data
.
value
==
3
)
$
(
'#accountLevelElTab option[value="2"]'
).
prop
(
'disabled'
,
true
)
if
(
data
.
value
==
2
)
$
(
'#accountLevelElTab option[value="3"]'
).
prop
(
'disabled'
,
true
)
if
(
data
.
value
==
2
&&
_subMerchantNoList
?.
length
>
0
||
data
.
value
==
3
&&
_subMerchantNoList
?.
length
>
0
){
$
(
"#accountLevelElTab"
).
attr
(
"disabled"
,
"disabled"
);
$
(
"#accountLevelElTab"
).
attr
(
"style"
,
"background-color: #EEEEEE;"
);
}
// console.log('账户等级下拉框的渲染账户类型参数',
// console.log('账户等级下拉框的渲染账户类型参数',
// '上级商户类型',_superMerchantInfo?.accountType?.split(','),
// '上级商户类型',_superMerchantInfo?.accountType?.split(','),
...
@@ -1959,12 +1946,6 @@ function uniqueNodes(nodes) {
...
@@ -1959,12 +1946,6 @@ function uniqueNodes(nodes) {
// 设置账户等级下拉框的初始值
// 设置账户等级下拉框的初始值
var
accountLevel
=
merchantForm
.
merchantAccountLevel
;
// 获取账户等级
var
accountLevel
=
merchantForm
.
merchantAccountLevel
;
// 获取账户等级
_currentMerchantLevel
=
accountLevel
_currentMerchantLevel
=
accountLevel
if
(
accountLevel
==
2
&&
merchantForm
.
subMerchantNoList
?.
length
>
0
||
accountLevel
==
3
&&
merchantForm
.
subMerchantNoList
?.
length
>
0
){
$
(
"#accountLevelElTab"
).
attr
(
"disabled"
,
"disabled"
);
$
(
"#accountLevelElTab"
).
attr
(
"style"
,
"background-color: #EEEEEE;"
);
}
if
(
accountLevel
==
3
)
$
(
'#accountLevelElTab option[value="2"]'
).
prop
(
'disabled'
,
true
)
if
(
accountLevel
==
2
)
$
(
'#accountLevelElTab option[value="3"]'
).
prop
(
'disabled'
,
true
)
$
(
'#accountLevelElTab'
).
val
(
accountLevel
);
// 设置select元素的值
$
(
'#accountLevelElTab'
).
val
(
accountLevel
);
// 设置select元素的值
// 根据账户等级决定是否显示或隐藏上级商户
// 根据账户等级决定是否显示或隐藏上级商户
...
...
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