Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
xiao-op-frontend-mirror
legacy-xh-eduboss-web-fe-mirror
Commits
b53180f4
Commit
b53180f4
authored
1 month ago
by
林期斌
Browse files
Options
Download
Email Patches
Plain Diff
feat: 批量激活传参
parent
d81834e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
webapp/js/student/student.js
webapp/js/student/student.js
+13
-2
No files found.
webapp/js/student/student.js
View file @
b53180f4
...
...
@@ -1409,6 +1409,7 @@ var allowBatchActivatings = ['Y', 'S'];
var
xinghuoSym
=
{
isXingHuoSym
:
Index
.
getLoginUser
().
institution
===
'
xinghuo
'
,
canBatchActivating
:
false
,
batchRegStatus
:
''
,
init
:
function
()
{
if
(
this
.
isXingHuoSym
)
{
Array
.
prototype
.
forEach
.
call
(
document
.
querySelectorAll
(
'
.xinghuoSym-inline-block
'
),
function
(
ele
)
{
...
...
@@ -1423,19 +1424,29 @@ var xinghuoSym = {
// }, false);
},
checkBatchActivating
:
function
()
{
this
.
canBatchActivating
=
allowBatchActivatings
.
includes
(
document
.
querySelector
(
'
#batchRegStatus
'
).
value
);
this
.
batchRegStatus
=
document
.
querySelector
(
'
#batchRegStatus
'
).
value
;
this
.
canBatchActivating
=
allowBatchActivatings
.
includes
(
this
.
batchRegStatus
);
},
afterSelectStudent
:
function
()
{
var
$btn
=
$
(
'
#studentBatchRegBtn
'
);
if
(
this
.
isXingHuoSym
&&
this
.
canBatchActivating
)
{
var
studentIdList
=
$jqgridCached
.
jqGrid
(
'
getGridParam
'
,
'
selarrrow
'
);
var
selectedList
=
studentIdList
.
map
(
function
(
rowId
)
{
const
item
=
$jqgridCached
.
jqGrid
(
'
getRowData
'
,
rowId
);
return
{
cusId
:
$jqgridCached
.
jqGrid
(
'
getRowData
'
,
rowId
)
.
latestCustomerId
,
cusId
:
item
.
latestCustomerId
,
studentId
:
rowId
,
blCampusId
:
item
.
blCampusId
};
});
$btn
.
data
(
'
customerStudents
'
,
JSON
.
stringify
(
selectedList
));
$btn
.
data
(
'
batchActivatingParams
'
,
{
selectedList
,
batchRegStatus
:
this
.
batchRegStatus
,
cbToRefresh
:
()
=>
{
$jqgridCached
.
trigger
(
'
reloadGrid
'
);
}
});
if
(
studentIdList
.
length
>
0
)
{
$btn
.
removeAttrs
(
'
disabled
'
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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