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
6d1ad692
Commit
6d1ad692
authored
Dec 10, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
67f6d5fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
9 deletions
+70
-9
customerstudent.js
src/api/customerstudent/customerstudent.js
+12
-0
student-left.vue
src/components/school/student/student-left.vue
+1
-1
studentRight-form.vue
src/components/school/student/studentRight-form.vue
+57
-8
No files found.
src/api/customerstudent/customerstudent.js
View file @
6d1ad692
...
...
@@ -182,4 +182,16 @@ export function queryStuContractPage(data) {
method
:
'post'
,
data
})
}
/**
* 转交学员
* @param {JSON参数} data
*/
export
function
ForwardStudent
(
data
)
{
return
request
({
url
:
'/User/ForwardStudent'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/components/school/student/student-left.vue
View file @
6d1ad692
...
...
@@ -119,7 +119,7 @@
<div
class=
"info_item"
>
<div
class=
"item_label"
>
创建人
</div>
<div
class=
"item_value"
>
<q-select
filled
v-model=
"customObj.CreateBy"
@
filter=
"filterEmployee"
use-input
:options=
"myEmployeeList"
option-label=
"EmployeeName"
<q-select
filled
v-model=
"customObj.CreateBy"
disable
@
filter=
"filterEmployee"
use-input
:options=
"myEmployeeList"
option-label=
"EmployeeName"
option-value=
"Id"
emit-value
map-options
/>
</div>
</div>
...
...
src/components/school/student/studentRight-form.vue
View file @
6d1ad692
...
...
@@ -17,7 +17,15 @@
</div>
</div>
<div
class=
"custom_HRight"
>
<q-btn
color=
"primary"
size=
"sm"
label=
"创建待办"
/>
<q-btn
color=
"primary"
size=
"sm"
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>
</div>
</div>
<div
class=
"custom_Bottom"
>
...
...
@@ -73,6 +81,13 @@
</template>
<
script
>
import
{
queryEmployee
}
from
'../../../api/users/user'
import
{
ForwardStudent
}
from
'../../../api/customerstudent/customerstudent'
import
studentLeft
from
'../student/student-left'
;
import
studentRecord
from
'../student/student-record'
;
import
studentVisit
from
'../student/student-visit'
;
...
...
@@ -123,12 +138,21 @@
msg
:
{
},
baseObj
:{},
baseObj
:{},
transMsg
:{
StuId
:
1
,
CreateBy
:
''
},
//员工列表
employeeList
:
[],
myEmployeeList
:[],
isShowTrans
:
false
}
},
mounted
()
{
console
.
log
(
this
.
saveObj
,
'saveObj'
);
this
.
baseObj
=
this
.
saveObj
;
this
.
getEmployeeList
();
},
methods
:
{
closeCutomer
()
{
...
...
@@ -138,13 +162,38 @@
getckedType
(
obj
){
this
.
secondType
=
obj
.
Id
;
},
//保存到访
saveVisit
(){
//获取员工列表
getEmployeeList
()
{
queryEmployee
({
IsLeave
:
1
}).
then
(
res
=>
{
this
.
employeeList
=
res
.
Data
;
this
.
myEmployeeList
=
res
.
Data
;
})
},
//保存约访
saveYuefang
(){
//筛选员工
filterEmployee
(
val
,
update
,
abort
){
update
(()
=>
{
this
.
myEmployeeList
=
this
.
employeeList
.
filter
(
v
=>
v
.
EmployeeName
.
indexOf
(
val
)
>
-
1
);
});
},
//保存转交
saveTransForm
(){
this
.
transMsg
.
StuId
=
this
.
baseObj
.
StuId
;
ForwardStudent
(
this
.
transMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'转交成功'
,
position
:
'top'
})
}
this
.
isShowTrans
=
false
;
})
}
},
}
...
...
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