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
7d947a57
Commit
7d947a57
authored
May 12, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6f0a6329
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
4 deletions
+50
-4
transfer-order.vue
src/components/school/student/transfer-order.vue
+1
-1
order-form.vue
src/components/school/student/transfer-order/order-form.vue
+18
-2
yueke.vue
src/components/school/student/transfer-order/yueke.vue
+31
-1
No files found.
src/components/school/student/transfer-order.vue
View file @
7d947a57
...
...
@@ -73,7 +73,7 @@
</q-step>
<q-step
:name=
"3"
title=
"确认"
icon=
"settings"
:done=
"step > 3"
>
<orderForm
ref=
"orderForm"
:mode=
"mode"
:schoolList=
"schoolList"
:save-obj=
"saveObj"
:stuData=
"stuData"
:modityOrderType=
"1"
@
success=
"$emit('close')"
@
cancelloading=
"cancelloading"
></orderForm>
:modityOrderType=
"1"
:defaultCourse=
"defaultCourse"
@
success=
"$emit('close')"
@
cancelloading=
"cancelloading"
></orderForm>
</q-step>
</q-stepper>
</q-card-section>
...
...
src/components/school/student/transfer-order/order-form.vue
View file @
7d947a57
...
...
@@ -5,6 +5,13 @@
<span
class=
"text-primary"
v-if=
"mode === 1"
>
班级:
</span>
<span
v-if=
"mode === 1"
>
{{
saveObj
.
ClassName
}}
</span>
<span
class=
"q-ml-md text-primary"
>
课程:
</span>
{{
saveObj
.
CourseName
}}
<!--
<span></span>
-->
<!--
<span
v-else
>
<span
class=
"yueke-CourseName"
v-for=
"(item,index) in defaultCourse"
>
<span>
{{
index
+
1
}}
、
</span>
{{
item
.
CourseName
}}
</span>
</span>
-->
</div>
<div
class=
"row q-mb-md"
>
<div
class=
"col-10 flex"
>
...
...
@@ -325,13 +332,13 @@
label=
"市场人员"
/>
<q-input
v-if=
"
stuData.StuList[0].STTeach
erId>0"
v-if=
"
OrderMsg.HelpEnt
erId>0"
filled
stack-label
disable
:dense=
"false"
maxlength=
"10"
v-model=
"
stuData.StuList[0].STTeacher
Name"
v-model=
"
Assist
Name"
class=
"col-6 q-py-sm"
label=
"协助老师"
/>
...
...
@@ -416,10 +423,16 @@ export default {
schoolList
:
{
type
:
Array
,
default
:
()
=>
[]
},
// 已选的多选课程
defaultCourse
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
AssistName
:
""
,
//协助老师名称
IsShowEditOrder
:
true
,
OrderMsg
:
{
...
...
@@ -488,12 +501,14 @@ export default {
if
(
this
.
stuData
.
StuList
[
0
].
IsRenewGuest
!=
1
){
this
.
OrderMsg
.
HelpEnterId
=
this
.
stuData
.
StuList
[
0
].
STTeacherId
;
this
.
AssistName
=
this
.
stuData
.
StuList
[
0
].
STTeacherName
}
this
.
getOrderSEList
();
this
.
getEmployee
(
0
);
this
.
getEmployee
(
2
);
this
.
initConfig
();
this
.
getSelectClass
();
// console.log(this.defaultCourse,'defaultCoursedefaultCourse')
},
mounted
()
{
this
.
newSchoolList
=
[];
...
...
@@ -517,6 +532,7 @@ export default {
if
(
e
.
AssistType
==
4
)
{
if
(
this
.
stuData
.
StuList
[
0
].
IsRenewGuest
==
1
){
this
.
OrderMsg
.
HelpEnterId
=
e
.
AssistId
;
this
.
AssistName
=
e
.
AssistName
}
this
.
HelpEnterDisable
=
true
;
}
...
...
src/components/school/student/transfer-order/yueke.vue
View file @
7d947a57
...
...
@@ -39,11 +39,21 @@
clearable
/>
</div>
<div
class=
"col-4"
>
<p
class=
"yueke-title"
>
已选:
</p>
<p
class=
"yueke-CourseName"
v-for=
"(item,index) in selection"
>
<span>
{{
index
+
1
}}
、
</span>
{{
item
.
CourseName
}}
</p>
</div>
</div>
</div>
<!-- @update:selected="emitSel" single
:selected-rows-label="getSelectedString"
-->
<q-table
:pagination=
"msg"
selection=
"
sing
le"
selection=
"
multip
le"
:selected
.
sync=
"selection"
no-data-label=
"暂无相关数据"
flat
...
...
@@ -53,6 +63,7 @@
:columns=
"columns"
row-key=
"ClassId"
@
update:selected=
"emitSel"
:selected-rows-label=
"getSelectedString"
table-class=
"table"
>
<template
v-slot:body-cell-CourseName=
"props"
>
...
...
@@ -174,6 +185,10 @@ export default {
// this.getCategorytree();
},
methods
:
{
// 多选
getSelectedString
()
{
return
this
.
selection
.
length
===
0
?
''
:
`
${
this
.
selection
.
length
}
record
${
this
.
selection
.
length
>
1
?
's'
:
''
}
selected of
${
this
.
dataList
.
length
}
`
},
emitSel
(
val
)
{
this
.
$emit
(
"select"
,
val
);
},
...
...
@@ -267,4 +282,19 @@ export default {
.table
::-webkit-scrollbar-corner
{
background
:
#204754
;
}
.yueke-title
{
margin-top
:
0
;
margin-bottom
:
0
;
}
.yueke-CourseName
{
margin-right
:
5px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
margin-top
:
5px
;
margin-bottom
:
0
;
}
.yueke-CourseName
span
{
color
:
#2961fe
;
}
</
style
>
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