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
778f714d
Commit
778f714d
authored
Jun 25, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ccd8befb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
6 deletions
+37
-6
index.js
src/api/school/index.js
+12
-0
teacher-form.vue
src/components/school/teacher/teacher-form.vue
+25
-6
No files found.
src/api/school/index.js
View file @
778f714d
...
...
@@ -59,6 +59,18 @@ export function getTeacherPage(data) {
})
}
/**
* 获取教师分页数据
*/
export
function
queryTeacherSpecialty
(
data
)
{
return
request
({
url
:
'/user/GetTeacherSpecialty'
,
method
:
'post'
,
data
})
}
/**
* 获取讲师列表
*/
...
...
src/components/school/teacher/teacher-form.vue
View file @
778f714d
...
...
@@ -25,8 +25,9 @@
class=
"col-6 q-pb-lg q-pr-lg"
label=
"带班基础人数"
@
keyup
.
native=
"checkInteger(objOption,'BaseStuNum')"
/>
<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')"
/>
<q-input
type=
"textarea"
filled
stack-label
maxlength=
"450"
:dense=
"false"
v-model=
"objOption.Specialty"
class=
"col-12 q-pr-lg"
label=
"老师擅长"
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"chooseSpecialty"
ref=
"School_Id"
:options=
"SpecialtyList"
label=
"老师特长"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
@
input=
"schoolChagne"
multiple
clearable
/>
</div>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
...
...
@@ -93,7 +94,8 @@
<
script
>
import
{
getSchoolDropdown
,
saveTeacher
saveTeacher
,
queryTeacherSpecialty
}
from
'../../../api/school/index'
import
{
UploadSelfFile
...
...
@@ -142,8 +144,9 @@
Post_Id
:
0
,
//岗位编号
BaseStuNum
:
0
,
//带班基础人数
BaseHourFee
:
0
,
//基础课时费
Specialty
:
""
,
//老师擅长
Specialty
:
""
,
//老师擅长
},
chooseSpecialty
:
[],
optionTitle
:
""
,
schoolList
:
[],
uploadType
:
0
,
...
...
@@ -154,16 +157,24 @@
PostList
:
[],
//岗位列表
returnString
:
[],
//默认岗位
bacisClassConfig
:
{},
//班级基础配置
SpecialtyList
:
[],
//教师擅长列表
}
},
created
()
{
this
.
queryClassConfig
();
this
.
getSchool
()
this
.
getSchool
();
this
.
getTeacherSpecialty
();
},
mounted
()
{
this
.
initObj
()
},
methods
:
{
//获取老师特长
getTeacherSpecialty
()
{
queryTeacherSpecialty
({}).
then
(
res
=>
{
this
.
SpecialtyList
=
res
.
Data
;
})
},
//获取课程基础配置
queryClassConfig
()
{
GetClassConfig
({}).
then
(
res
=>
{
...
...
@@ -256,7 +267,10 @@
this
.
objOption
.
Post_Id
=
this
.
saveObj
.
Post_Id
;
this
.
objOption
.
BaseStuNum
=
this
.
saveObj
.
BaseStuNum
;
this
.
objOption
.
BaseHourFee
=
this
.
saveObj
.
BaseHourFee
;
this
.
objOption
.
Specialty
=
this
.
saveObj
.
Specialty
;
this
.
objOption
.
Specialty
=
this
.
saveObj
.
Specialty
;
if
(
this
.
saveObj
.
ChooseSpecialty
&&
this
.
saveObj
.
ChooseSpecialty
.
length
>
0
)
{
this
.
chooseSpecialty
=
this
.
saveObj
.
ChooseSpecialty
;
}
if
(
this
.
objOption
.
School_Id
)
{
this
.
queryDeptTree
();
}
...
...
@@ -310,6 +324,11 @@
},
saveTeacher
()
{
this
.
saveLoading
=
true
;
if
(
this
.
chooseSpecialty
&&
this
.
chooseSpecialty
.
length
>
0
)
{
this
.
objOption
.
Specialty
=
this
.
chooseSpecialty
.
toString
();
}
else
{
this
.
objOption
.
Specialty
=
""
;
}
if
(
this
.
objOption
.
Dept_Id
&&
this
.
objOption
.
Dept_Id
==
""
)
{
this
.
objOption
.
Dept_Id
=
0
;
}
...
...
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