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
602b7ad0
Commit
602b7ad0
authored
Jul 06, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
07a3694b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
teacher-form.vue
src/components/school/teacher/teacher-form.vue
+22
-1
No files found.
src/components/school/teacher/teacher-form.vue
View file @
602b7ad0
...
...
@@ -28,13 +28,28 @@
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"chooseSpecialty"
ref=
"SpecialtyList"
:options=
"SpecialtyList"
label=
"老师特长"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
@
input=
"schoolChagne"
multiple
clearable
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.BaseHoursEnabled"
ref=
"BaseHoursEnabled"
:options=
"BaseHoursList"
label=
"是否启用基础课时"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
<q-input
v-if=
'objOption.BaseHoursEnabled==1'
filled
v-model=
"objOption.EnableTime"
mask=
"####-##"
label=
"启用时间"
ref=
"EnableTime"
:rules=
"[val => !!val || '请选择启用时间']"
>
<template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-popup-proxy
ref=
"qDateProxy"
transition-show=
"scale"
transition-hide=
"scale"
>
<div
class=
"q-gutter-md row items-start"
>
<q-date
v-model=
"objOption.EnableTime"
mask=
"YYYY-MM"
></q-date>
</div>
<q-btn
v-close-popup
label=
"关闭"
color=
"primary"
flat
style=
"float:right"
/>
</q-popup-proxy>
</q-icon>
</
template
>
</q-input>
</div>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
<div
class=
"col-6 q-pr-lg q-pb-lg"
>
<q-uploader
style=
"display: inline-block;height: 320px;max-width: 100%; background-repeat:no-repeat"
:style=
"{'background-image':'url(' + objOption.TeacherHead + ')'}"
max-files=
"1"
hide-upload-btn
@rejected="onRejected" label="教师头像" :max-file-size="5*1024*1024" accept=".jpg, image/*" auto-upload
@
rejected=
"onRejected"
label=
"教师头像"
:max-file-size=
"5*1024*1024"
accept=
".jpg, image/*"
auto-upload
:factory=
"uploadFile"
no-thumbnails
@
added=
"getType(1)"
>
</q-uploader>
</div>
...
...
@@ -145,7 +160,10 @@
BaseStuNum
:
0
,
//带班基础人数
BaseHourFee
:
0
,
//基础课时费
Specialty
:
""
,
//老师擅长
BaseHoursEnabled
:
1
,
//是否启用基础课时 1是
EnableTime
:
''
,
//启用时间 (存到月)
},
BaseHoursList
:[{
Id
:
0
,
Name
:
'关闭'
},{
Id
:
1
,
Name
:
'开启'
}],
chooseSpecialty
:
[],
optionTitle
:
""
,
schoolList
:
[],
...
...
@@ -344,6 +362,9 @@
// } else if (this.objOption.TeacherHead == '') {
// err_msg = "请上传用户头像"
// }
if
(
this
.
objOption
.
BaseHoursEnabled
==
1
&&
this
.
objOption
.
EnableTime
==
''
){
err_msg
=
"请选择日期"
}
if
(
err_msg
==
""
)
{
this
.
objOption
.
TeachTag
=
JSON
.
stringify
(
this
.
tags
)
saveTeacher
(
this
.
objOption
).
then
(
res
=>
{
...
...
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