Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
dd6d1e30
Commit
dd6d1e30
authored
Mar 15, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
06cb72f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
2 deletions
+87
-2
sale.js
src/api/sale/sale.js
+11
-0
stulist.vue
src/components/school/student/stulist.vue
+76
-2
No files found.
src/api/sale/sale.js
View file @
dd6d1e30
...
...
@@ -575,6 +575,17 @@ export function GetStudentMarketYearRate(data) {
});
}
//保存批量转交
export
function
BatchForwardStudent
(
data
)
{
return
request
({
url
:
'/User/BatchForwardStudent'
,
method
:
'post'
,
data
});
}
...
...
src/components/school/student/stulist.vue
View file @
dd6d1e30
...
...
@@ -65,6 +65,8 @@
<div
class=
"col-2 q-table__title"
>
学员信息
</div>
<q-space
/>
<div
class=
"page-option"
v-if=
"!pushMode"
>
<q-btn
color=
"accent"
outline
class=
"q-mr-md"
size=
"sm"
icon=
"swap_horiz"
label=
"批量转交"
@
click=
"pushMode = true"
/>
<q-btn
color=
"accent"
outline
class=
"q-mr-md"
size=
"sm"
icon=
"swap_horiz"
label=
"推送课程顾问"
v-if=
"userInfo.IsCourseConsultant == 0"
@
click=
"pushMode = true"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"swap_horiz"
label=
"转订单"
...
...
@@ -76,6 +78,16 @@
label=
"下载"
@
click=
"downloadStudent"
/>
</div>
<div
class=
"page-option"
v-if=
"pushMode"
>
<q-btn
color=
"accent"
unelevated
class=
"q-mr-md"
size=
"sm"
icon=
"swap_horiz"
label=
"转交"
@
click=
"isShowTrans = true"
>
<q-popup-proxy
:offset=
"[10, 10]"
>
<q-banner
v-if=
"isShowTrans"
>
<q-select
style=
"margin-top:20px;"
filled
v-model=
"transMsg.CreateBy"
@
filter=
"filterEmployee"
use-input
:options=
"myEmployeeList"
option-label=
"EmployeeName"
option-value=
"Id"
emit-value
map-options
/>
<q-btn
label=
"保存"
style=
"float:right;margin-top:15px"
color=
"accent q-mb-lg"
size=
"sm"
@
click=
"saveTransForm"
/>
</q-banner>
</q-popup-proxy>
</q-btn>
<q-btn
color=
"accent"
unelevated
class=
"q-mr-md"
size=
"sm"
icon=
"swap_horiz"
label=
"立即推送"
:loading=
"pushing"
@
click=
"assistBatchHandler"
/>
<q-btn
color=
"accent"
outline
size=
"sm"
label=
"退出"
:disable=
"pushing"
@
click=
"
...
...
@@ -245,11 +257,16 @@
mapGetters
}
from
"vuex"
;
import
{
SetStudentAssistBatch
SetStudentAssistBatch
,
BatchForwardStudent
}
from
"../../../api/sale/sale"
;
import
{
EduDownLoad
}
from
"../../../api/common/common"
;
import
{
queryEmployee
}
from
"../../../api/users/user"
;
export
default
{
props
:
{
//数据列表
...
...
@@ -464,6 +481,14 @@
checkType
:
1
,
//打开右侧弹窗类型
isShowAbroad
:
false
,
//是否显示转留学就业订单弹窗
userInfo
:
{},
//当前登录人员
isShowTrans
:
false
,
transMsg
:{
StuIds
:
''
,
CreateBy
:
1
},
//员工列表
employeeList
:
[],
myEmployeeList
:
[],
};
},
watch
:
{
...
...
@@ -479,7 +504,9 @@
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
formatAssistList
();
},
mounted
()
{},
mounted
()
{
this
.
getEmployeeList
();
},
computed
:
{
...
mapGetters
([
"logo"
,
"name"
])
},
...
...
@@ -745,6 +772,53 @@
position
:
"top"
,
message
:
msg
});
},
//获取员工列表
getEmployeeList
()
{
queryEmployee
({
IsLeave
:
1
}).
then
(
res
=>
{
this
.
employeeList
=
res
.
Data
;
this
.
myEmployeeList
=
res
.
Data
;
});
},
//筛选员工
filterEmployee
(
val
,
update
,
abort
)
{
update
(()
=>
{
this
.
myEmployeeList
=
this
.
employeeList
.
filter
(
v
=>
v
.
EmployeeName
.
indexOf
(
val
)
>
-
1
);
});
},
//保存批量转交
saveTransForm
(){
console
.
log
(
this
.
transMsg
,
'transMsg'
);
if
(
this
.
selection
.
length
==
0
){
this
.
$q
.
notify
({
type
:
"negative"
,
position
:
"top"
,
message
:
'请选择推送学员'
});
}
else
{
let
newArr
=
[]
this
.
selection
.
forEach
(
x
=>
{
newArr
.
push
(
x
.
StuId
);
})
this
.
transMsg
.
StuIds
=
newArr
.
toString
();
BatchForwardStudent
(
this
.
transMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
refreshStuList
();
this
.
selection
=
[];
this
.
pushMode
=
false
;
this
.
$q
.
notify
({
type
:
"iconfont icon-chenggong"
,
position
:
"top"
,
message
:
r
.
Message
});
}
});
}
}
}
};
...
...
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