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
352a6095
Commit
352a6095
authored
Dec 10, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增教师调整
parent
03cf0e81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
teacher-form.vue
src/components/school/teacher/teacher-form.vue
+6
-3
No files found.
src/components/school/teacher/teacher-form.vue
View file @
352a6095
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.BaseHoursEnabled"
<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"
ref=
"BaseHoursEnabled"
:options=
"BaseHoursList"
label=
"是否启用基础课时"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
emit-value
map-options
/>
<q-input
v-if=
'objOption.BaseHoursEnabled==1'
filled
v-model=
"objOption.EnableTime"
mask=
"####-##"
<q-input
v-if=
'objOption.BaseHoursEnabled==1'
filled
v-model=
"objOption.EnableTime"
mask=
"####-##"
label=
"启用时间"
ref=
"EnableTime"
:rules=
"[val => !!val || '请选择启用时间']"
>
label=
"启用时间"
ref=
"EnableTime"
:rules=
"[val => !!val || '请选择启用时间']"
>
<template
v-slot:append
>
<template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
BaseStuNum
:
0
,
//带班基础人数
BaseStuNum
:
0
,
//带班基础人数
BaseHourFee
:
0
,
//基础课时费
BaseHourFee
:
0
,
//基础课时费
Specialty
:
""
,
//老师擅长
Specialty
:
""
,
//老师擅长
BaseHoursEnabled
:
1
,
//是否启用基础课时 1是
BaseHoursEnabled
:
0
,
//是否启用基础课时 1是
EnableTime
:
''
,
//启用时间 (存到月)
EnableTime
:
''
,
//启用时间 (存到月)
},
},
BaseHoursList
:
[{
BaseHoursList
:
[{
...
@@ -352,7 +352,7 @@
...
@@ -352,7 +352,7 @@
}
}
},
},
saveTeacher
()
{
saveTeacher
()
{
this
.
saveLoading
=
true
;
if
(
this
.
chooseSpecialty
&&
this
.
chooseSpecialty
.
length
>
0
)
{
if
(
this
.
chooseSpecialty
&&
this
.
chooseSpecialty
.
length
>
0
)
{
this
.
objOption
.
Specialty
=
this
.
chooseSpecialty
.
toString
();
this
.
objOption
.
Specialty
=
this
.
chooseSpecialty
.
toString
();
}
else
{
}
else
{
...
@@ -375,7 +375,10 @@
...
@@ -375,7 +375,10 @@
// }
// }
if
(
this
.
objOption
.
BaseHoursEnabled
==
1
&&
this
.
objOption
.
EnableTime
==
''
)
{
if
(
this
.
objOption
.
BaseHoursEnabled
==
1
&&
this
.
objOption
.
EnableTime
==
''
)
{
err_msg
=
"请选择日期"
err_msg
=
"请选择日期"
this
.
$refs
.
EnableTime
.
validate
()
return
}
}
this
.
saveLoading
=
true
;
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