Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_welfare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
396ca238
authored
Sep 03, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
批量拒绝审核checkbox控制问题
parent
7dfcc07f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
27 deletions
public/js/web/userExchangeList.js
public/js/web/userExchangeList.js
View file @
396ca238
...
...
@@ -77,34 +77,52 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
,
id
:
'UserExchange'
,
page
:
{}
,
done
:
function
(
res
,
curr
,
count
)
{
var
i
=
0
;
$
(
".layui-table-body.layui-table-main"
).
find
(
"input[name='layTableCheckbox']"
).
each
(
function
()
{
if
(
res
.
data
[
i
].
status
!==
'待审核'
)
{
$
(
".layui-table-header"
).
find
(
"input[lay-filter='layTableAllChoose']"
).
each
(
function
()
{
$
(
this
).
attr
(
"disabled"
,
'disabled'
).
next
().
removeClass
(
"layui-form-checked"
);
});
$
(
this
).
parent
().
remove
();
form
.
render
(
'checkbox'
);
}
else
if
(
res
.
data
[
i
].
type
===
2
)
{
//还要去判断是否是微信转账类型,因为这个类型还要去判断是否满足两个好友助力
if
(
res
.
data
[
i
].
assist_count
!==
2
)
{
console
.
log
(
123
)
$
(
this
).
parent
().
remove
();
}
}
i
++
;
});
}
})
;
}
});
//头工具栏事件
table
.
on
(
'toolbar(UserExchange)'
,
function
(
obj
)
{
var
checkStatus
=
table
.
checkStatus
(
obj
.
config
.
id
);
//头工具栏事件
table
.
on
(
'toolbar(UserExchange)'
,
function
(
obj
)
{
var
checkStatus
=
table
.
checkStatus
(
obj
.
config
.
id
);
switch
(
obj
.
event
)
{
case
'batchDisableStatus'
:
changeStatus
(
checkStatus
,
-
1
,
table
);
break
;
}
});
switch
(
obj
.
event
)
{
case
'batchDisableStatus'
:
changeStatus
(
checkStatus
,
-
1
,
table
);
break
;
}
});
//监听行工具事件
table
.
on
(
'tool(UserExchange)'
,
function
(
obj
)
{
var
layEvent
=
obj
.
event
;
switch
(
layEvent
)
{
case
'audit'
:
window
.
location
=
`/user_exchanges/auditUserExchange?id=
${
obj
.
data
.
id
}
&user_id=
${
obj
.
data
.
user_id
}
`
;
break
;
case
'bills'
:
window
.
location
=
'/user_exchanges/userExchangeBillList?user_id='
+
obj
.
data
.
user_id
;
break
;
}
});
//监听行工具事件
table
.
on
(
'tool(UserExchange)'
,
function
(
obj
)
{
var
layEvent
=
obj
.
event
;
switch
(
layEvent
)
{
case
'audit'
:
window
.
location
=
`/user_exchanges/auditUserExchange?id=
${
obj
.
data
.
id
}
&user_id=
${
obj
.
data
.
user_id
}
`
;
break
;
case
'bills'
:
window
.
location
=
'/user_exchanges/userExchangeBillList?user_id='
+
obj
.
data
.
user_id
;
break
;
}
});
});
\ No newline at end of file
})
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment