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
0d216a41
Commit
0d216a41
authored
Jun 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0eb6eff4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
44 deletions
+60
-44
studentList.vue
src/pages/sale/studentList.vue
+60
-44
No files found.
src/pages/sale/studentList.vue
View file @
0d216a41
...
...
@@ -16,6 +16,15 @@
<span>
{{
props
.
row
.
Sex
==
1
?
'男'
:
'女'
}}
</span>
</q-td>
</
template
>
<
template
v-slot:body-cell-CourseName=
"props"
>
<q-td
:props=
"props"
>
<span>
{{
props
.
row
.
CourseName
}}
<template
v-if=
"props.row.IsChaBan==1"
>
<br/>
插班报入:起始课时
{{
props
.
row
.
StartClassHours
}}
</
template
>
</span>
</q-td>
</template>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
...
...
@@ -38,16 +47,16 @@
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
>
基础信息
</div>
<q-card-section
class=
"q-pt-none"
v-if=
"msg.ClassId>0"
>
<div
class=
"row wrap"
>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.GuestName"
ref=
"GuestName"
label=
"姓名"
:rules=
"[val => !!val || '姓名']"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.GuestName"
ref=
"GuestName"
label=
"姓名"
:rules=
"[val => !!val || '姓名']"
/>
<div
class=
"col-6 q-pb-lg q-pr-lg"
>
<q-radio
v-model=
"addMsg.Sex"
val=
"1"
label=
"男"
/>
<q-radio
v-model=
"addMsg.Sex"
val=
"2"
label=
"女"
/>
</div>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.Profession"
label=
"职业"
:rules=
"[val => !!val || '职业']"
/>
<q-input
filled
v-model=
"addMsg.BirthDate"
:rules=
"[val => !!val || '请选择出生日期']"
class=
"col-6 q-pb-lg"
ref=
"BirthDate"
mask=
"date"
label=
"出生日期"
>
<q-input
filled
v-model=
"addMsg.BirthDate"
:rules=
"[val => !!val || '请选择出生日期']"
class=
"col-6 q-pb-lg"
ref=
"BirthDate"
mask=
"date"
label=
"出生日期"
>
<
template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-popup-proxy
ref=
"qDateProxy3"
transition-show=
"scale"
transition-hide=
"scale"
>
...
...
@@ -57,11 +66,10 @@
</
template
>
</q-input>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
maxlength=
"5"
v-model=
"addMsg.TotalHours"
label=
"总课时"
:rules=
"[val => !!val || 'TotalHours']"
@
keyup
.
native=
"checkInteger(addMsg,'TotalHours')"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
ref=
"Mobile"
maxlength=
"20"
v-model=
"addMsg.Mobile"
label=
"电话"
:rules=
"[val => !!val || '电话']"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
maxlength=
"5"
v-model=
"addMsg.TotalHours"
label=
"总课时"
:rules=
"[val => !!val || 'TotalHours']"
@
keyup
.
native=
"checkInteger(addMsg,'TotalHours')"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
ref=
"Mobile"
maxlength=
"20"
v-model=
"addMsg.Mobile"
label=
"电话"
:rules=
"[val => !!val || '电话']"
/>
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
option-value=
"Name"
ref=
"Basics"
standout=
"bg-primary text-white"
option-label=
"Name"
v-model=
"addMsg.Basics"
:options=
"GBList"
emit-value
map-options
label=
"语言基础"
use-input
new-value-mode=
"add-unique"
hint=
"自己输入语言基础的话,输入之后按回车!"
/>
...
...
@@ -74,7 +82,8 @@
v-model=
"addMsg.GuestSource"
:options=
"OFList"
emit-value
map-options
label=
"客人来源"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.ContactAddress"
label=
"现居住地址"
/>
<div
class=
"col-6 q-pr-lg q-pb-lg"
>
<q-uploader
style=
"min-height:268px;max-width: 300px; background-repeat:no-repeat;background-position: 50% 50%;background-size: cover;"
<q-uploader
style=
"min-height:268px;max-width: 300px; background-repeat:no-repeat;background-position: 50% 50%;background-size: cover;"
:style=
"{'background-image':'url(' + addMsg.StuIcon + ')'}"
max-files=
"1"
hide-upload-btn
@
rejected=
"onRejected"
label=
"学生头像"
:max-file-size=
"5*1024*1024"
accept=
".jpg, image/*"
auto-upload
:factory=
"uploadFile"
no-thumbnails
>
...
...
@@ -84,14 +93,14 @@
</q-card-section>
<q-card-section
class=
"q-pt-none"
v-if=
"msg.SourceId>0"
>
<div
class=
"row wrap"
>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.GuestName"
ref=
"GuestName"
label=
"姓名
"
:rules=
"[val => !!val || '姓名']"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.GuestName"
ref=
"GuestName
"
label=
"姓名"
:rules=
"[val => !!val || '姓名']"
/>
<div
class=
"col-6 q-pb-lg"
>
<q-radio
v-model=
"addMsg.Sex"
val=
"1"
label=
"男"
/>
<q-radio
v-model=
"addMsg.Sex"
val=
"2"
label=
"女"
/>
</div>
<q-input
filled
v-model=
"addMsg.BirthDate"
:rules=
"[val => !!val || '请选择出生日期']"
class=
"col-6 q-pb-lg q-pr-lg"
ref=
"BirthDate"
mask=
"date"
label=
"出生日期"
>
<q-input
filled
v-model=
"addMsg.BirthDate"
:rules=
"[val => !!val || '请选择出生日期']"
class=
"col-6 q-pb-lg q-pr-lg"
ref=
"BirthDate"
mask=
"date"
label=
"出生日期"
>
<
template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-popup-proxy
ref=
"qDateProxy3"
transition-show=
"scale"
transition-hide=
"scale"
>
...
...
@@ -100,12 +109,12 @@
</q-icon>
</
template
>
</q-input>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
maxlength=
"20"
v-model=
"addMsg.Mobile"
ref=
"Mobile"
label=
"电话"
:rules=
"[val => !!val || '电话']"
/>
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
option-value=
"Name"
filled
:rules=
"[val => !!val || '请选择日语水平']"
ref=
"Basics"
standout=
"bg-primary text-white
"
option-label=
"Name"
v-model=
"addMsg.Basics"
:options=
"GBList"
emit-value
map-options
label=
"日语水平
"
use-input
new-value-mode=
"add-unique"
hint=
"自己输入日语水平的话,输入之后按回车!"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
maxlength=
"20"
v-model=
"addMsg.Mobile"
ref=
"Mobile"
label=
"电话"
:rules=
"[val => !!val || '电话']"
/>
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
option-value=
"Name"
filled
:rules=
"[val => !!val || '请选择日语水平']"
ref=
"Basics"
standout=
"bg-primary text-white"
option-label=
"Name"
v-model=
"addMsg.Basics
"
:options=
"GBList"
emit-value
map-options
label=
"日语水平"
use-input
new-value-mode=
"add-unique
"
hint=
"自己输入日语水平的话,输入之后按回车!"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
v-model=
"addMsg.GraduatedSchool"
label=
"毕业院校"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
v-model=
"addMsg.GraduatedMajor"
label=
"毕业专业"
/>
<q-input
clearable
filled
class=
"col-6 q-pb-lg"
v-model=
"addMsg.VolunteerMajor"
label=
"志愿专业"
/>
...
...
@@ -187,6 +196,12 @@
field
:
'BirthDate'
,
align
:
'left'
},
{
name
:
'CourseName'
,
label
:
'课程名称'
,
field
:
'CourseName'
,
align
:
'left'
},
{
name
:
'TotalHours'
,
label
:
'总课时'
,
...
...
@@ -298,7 +313,7 @@
StudyRemark
:
""
,
//留学就业备注
BirthDate
:
""
,
//出生日期
TotalHours
:
0
,
//总课时
StuIcon
:
''
//头像
StuIcon
:
''
//头像
},
GBList
:
[],
//日语基础列表
GEList
:
[],
//学历列表
...
...
@@ -330,7 +345,7 @@
}
if
(
this
.
msg
.
ClassId
>
0
)
{
this
.
visibleColumns
=
[
'GuestName'
,
'Profession'
,
'Sex'
,
'BirthDate'
,
'Mobile'
,
'Basics'
,
'GuestSourceName'
,
'LearningGoalsName'
,
'Contact'
,
'ContactMobile'
,
'TotalHours'
'LearningGoalsName'
,
'Contact'
,
'ContactMobile'
,
'TotalHours'
,
'StartClassHours'
,
'CourseName'
,
'IsChaBan'
];
}
if
(
this
.
msg
.
SourceId
>
0
)
{
...
...
@@ -417,8 +432,9 @@
this
.
$refs
.
Basics
.
validate
();
this
.
$refs
.
BirthDate
.
validate
();
this
.
$refs
.
Mobile
.
validate
();
if
(
!
this
.
$refs
.
GuestName
.
hasError
&&
!
this
.
$refs
.
Basics
.
hasError
&&
!
this
.
$refs
.
BirthDate
.
hasError
&&
!
this
.
$refs
.
Mobile
.
hasError
){
if
(
!
this
.
$refs
.
GuestName
.
hasError
&&
!
this
.
$refs
.
Basics
.
hasError
&&
!
this
.
$refs
.
BirthDate
.
hasError
&&
!
this
.
$refs
.
Mobile
.
hasError
)
{
if
(
this
.
msg
.
ClassId
>
0
)
{
if
(
this
.
addMsg
.
Education
==
''
)
{
this
.
$q
.
notify
({
...
...
@@ -505,7 +521,7 @@
this
.
addMsg
.
VolunteerMajor
=
item
.
VolunteerMajor
;
this
.
addMsg
.
Price
=
item
.
Price
;
this
.
addMsg
.
StudyRemark
=
item
.
StudyRemark
;
if
(
item
.
BirthDate
)
{
if
(
item
.
BirthDate
)
{
this
.
addMsg
.
BirthDate
=
item
.
BirthDate
;
}
this
.
addMsg
.
TotalHours
=
item
.
TotalHours
;
...
...
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