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
5766d7a0
Commit
5766d7a0
authored
Jun 28, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
6ecb82f4
ddcef4e5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
7 deletions
+28
-7
appoint-form.vue
src/components/schedul/appoint-form.vue
+22
-1
teacher-form.vue
src/components/school/teacher/teacher-form.vue
+6
-6
No files found.
src/components/schedul/appoint-form.vue
View file @
5766d7a0
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
</
template
>
</
template
>
</q-field>
</q-field>
</div>
</div>
<q-select
filled
stack-label
option-value=
"Name"
option-label=
"Name"
v-model=
"addMsg.ClassContent"
<q-select
filled
stack-label
option-value=
"Name"
option-label=
"Name"
@
input=
"getTeacherChoose(addMsg.ClassContent)"
v-model=
"addMsg.ClassContent"
ref=
"ClassContent"
:options=
"ContentList"
:rules=
"[val => !!val || '请选择主讲内容']"
label=
"主讲内容"
:dense=
"false"
ref=
"ClassContent"
:options=
"ContentList"
:rules=
"[val => !!val || '请选择主讲内容']"
label=
"主讲内容"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"addMsg.TeacherId"
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"addMsg.TeacherId"
...
@@ -114,6 +114,7 @@
...
@@ -114,6 +114,7 @@
ClassContent
:
""
,
//主讲内容
ClassContent
:
""
,
//主讲内容
},
},
TeacherList
:
[],
//教师
TeacherList
:
[],
//教师
AllTeacherList
:
[],
ClassRoomList
:
[],
//教室
ClassRoomList
:
[],
//教室
saveAppointLoading
:
false
,
saveAppointLoading
:
false
,
isShowTeacher
:
false
,
//显示选择框
isShowTeacher
:
false
,
//显示选择框
...
@@ -152,11 +153,13 @@
...
@@ -152,11 +153,13 @@
getTeacherDropDownList
({}).
then
(
res
=>
{
getTeacherDropDownList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
TeacherList
=
res
.
Data
;
this
.
TeacherList
=
res
.
Data
;
this
.
AllTeacherList
=
res
.
Data
;
var
obj
=
{
var
obj
=
{
TeacherName
:
'请选择'
,
TeacherName
:
'请选择'
,
TId
:
0
TId
:
0
}
}
this
.
TeacherList
.
unshift
(
obj
);
this
.
TeacherList
.
unshift
(
obj
);
this
.
AllTeacherList
.
unshift
(
obj
);
}
}
});
});
},
},
...
@@ -232,6 +235,24 @@
...
@@ -232,6 +235,24 @@
this
.
addMsg
.
EndTime
=
obj
.
EndTime
;
this
.
addMsg
.
EndTime
=
obj
.
EndTime
;
this
.
addMsg
.
ClassContent
=
obj
.
ClassContent
;
this
.
addMsg
.
ClassContent
=
obj
.
ClassContent
;
}
}
},
//选择主讲内容赋值选择教师
getTeacherChoose
(
content
){
var
TList
=
[];
this
.
addMsg
.
TeacherId
=
''
;
this
.
TeacherList
=
this
.
AllTeacherList
;
this
.
TeacherList
.
forEach
(
x
=>
{
this
.
ContentList
.
forEach
(
y
=>
{
if
(
y
.
Name
==
content
){
if
(
x
.
TId
>
0
){
if
(
x
.
ChooseSpecialty
.
indexOf
(
y
.
Id
)
>-
1
){
TList
.
push
(
x
);
}
}
}
})
})
this
.
TeacherList
=
TList
;
}
}
}
}
}
}
...
...
src/components/school/teacher/teacher-form.vue
View file @
5766d7a0
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<q-select
filled
stack-label
option-value=
"PostId"
option-label=
"PostName"
v-model=
"objOption.Post_Id"
<q-select
filled
stack-label
option-value=
"PostId"
option-label=
"PostName"
v-model=
"objOption.Post_Id"
ref=
"Post_Id"
:options=
"PostList"
label=
"岗位"
:dense=
"false"
class=
"col-6 q-pr-lg"
emit-value
map-options
/>
ref=
"Post_Id"
:options=
"PostList"
label=
"岗位"
:dense=
"false"
class=
"col-6 q-pr-lg"
emit-value
map-options
/>
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseStuNum"
ref=
"BaseStuNum"
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseStuNum"
ref=
"BaseStuNum"
class=
"col-6 q-pb-lg
q-pr-lg
"
label=
"带班基础人数"
@
keyup
.
native=
"checkInteger(objOption,'BaseStuNum')"
/>
class=
"col-6 q-pb-lg"
label=
"带班基础人数"
@
keyup
.
native=
"checkInteger(objOption,'BaseStuNum')"
/>
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseHourFee"
ref=
"BaseHourFee"
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseHourFee"
ref=
"BaseHourFee"
class=
"col-6 q-pr-lg"
label=
"基础课时费"
@
keyup
.
native=
"checkPrice(objOption,'BaseHourFee')"
/>
class=
"col-6 q-pr-lg"
label=
"基础课时费"
@
keyup
.
native=
"checkPrice(objOption,'BaseHourFee')"
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"chooseSpecialty"
ref=
"School_Id"
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"chooseSpecialty"
ref=
"School_Id"
...
@@ -341,11 +341,11 @@
...
@@ -341,11 +341,11 @@
!
this
.
$refs
.
TeacherTel
.
hasError
!
this
.
$refs
.
TeacherTel
.
hasError
)
{
)
{
let
err_msg
=
""
let
err_msg
=
""
if
(
this
.
objOption
.
TeacherIcon
==
''
)
{
//
if (this.objOption.TeacherIcon == '') {
err_msg
=
"请上传教师形象照"
//
err_msg = "请上传教师形象照"
}
else
if
(
this
.
objOption
.
TeacherHead
==
''
)
{
//
} else if (this.objOption.TeacherHead == '') {
err_msg
=
"请上传用户头像"
//
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