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
Show 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,6 +28,21 @@
...
@@ -28,6 +28,21 @@
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"chooseSpecialty"
ref=
"SpecialtyList"
<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
:options=
"SpecialtyList"
label=
"老师特长"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
@
input=
"schoolChagne"
multiple
clearable
/>
@
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>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
...
@@ -145,7 +160,10 @@
...
@@ -145,7 +160,10 @@
BaseStuNum
:
0
,
//带班基础人数
BaseStuNum
:
0
,
//带班基础人数
BaseHourFee
:
0
,
//基础课时费
BaseHourFee
:
0
,
//基础课时费
Specialty
:
""
,
//老师擅长
Specialty
:
""
,
//老师擅长
BaseHoursEnabled
:
1
,
//是否启用基础课时 1是
EnableTime
:
''
,
//启用时间 (存到月)
},
},
BaseHoursList
:[{
Id
:
0
,
Name
:
'关闭'
},{
Id
:
1
,
Name
:
'开启'
}],
chooseSpecialty
:
[],
chooseSpecialty
:
[],
optionTitle
:
""
,
optionTitle
:
""
,
schoolList
:
[],
schoolList
:
[],
...
@@ -344,6 +362,9 @@
...
@@ -344,6 +362,9 @@
// } else if (this.objOption.TeacherHead == '') {
// } else if (this.objOption.TeacherHead == '') {
// err_msg = "请上传用户头像"
// err_msg = "请上传用户头像"
// }
// }
if
(
this
.
objOption
.
BaseHoursEnabled
==
1
&&
this
.
objOption
.
EnableTime
==
''
){
err_msg
=
"请选择日期"
}
if
(
err_msg
==
""
)
{
if
(
err_msg
==
""
)
{
this
.
objOption
.
TeachTag
=
JSON
.
stringify
(
this
.
tags
)
this
.
objOption
.
TeachTag
=
JSON
.
stringify
(
this
.
tags
)
saveTeacher
(
this
.
objOption
).
then
(
res
=>
{
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