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
7275a305
Commit
7275a305
authored
Jan 27, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
324da8b8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
53 deletions
+54
-53
course-form.vue
src/components/course/course-form.vue
+38
-40
questionbank-form.vue
src/components/question/questionbank-form.vue
+11
-8
classroom-form.vue
src/components/school/classroom/classroom-form.vue
+3
-3
teacher-form.vue
src/components/school/teacher/teacher-form.vue
+2
-2
No files found.
src/components/course/course-form.vue
View file @
7275a305
...
...
@@ -179,11 +179,6 @@
getTeacherDropDownList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
TeacherList
=
res
.
Data
;
var
obj
=
{
TeacherName
:
'请选择'
,
TId
:
0
}
this
.
TeacherList
.
unshift
(
obj
);
}
})
},
...
...
@@ -297,6 +292,8 @@
},
//保存菜单
saveCourse
()
{
this
.
$refs
.
CourseName
.
validate
();
if
(
!
this
.
$refs
.
CourseName
.
hasError
)
{
this
.
saveCourseLoading
=
true
;
var
Teacher_Ids
=
""
;
if
(
this
.
chooseTeacher
&&
this
.
chooseTeacher
.
length
>
0
)
{
...
...
@@ -334,6 +331,7 @@
this
.
saveCourseLoading
=
false
})
}
}
},
}
...
...
src/components/question/questionbank-form.vue
View file @
7275a305
...
...
@@ -5,8 +5,8 @@
<div
class=
"text-h6"
>
{{
(
questionBankObj
&&
questionBankObj
.
BankId
>
0
)?
"修改题库"
:
"创建题库"
}}
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<q-input
filled
stack-label
:dense=
"false"
class=
"col-6 q-pb-lg"
v-model=
"msg.BankName"
label=
"请输入题库名称"
maxlength=
"20"
/>
<q-input
filled
stack-label
:dense=
"false"
class=
"col-6 q-pb-lg"
ref=
"BankName"
v-model=
"msg.BankName"
label=
"请输入题库名称"
maxlength=
"20"
:rules=
"[val => !!val || '请输入题库名称']"
/>
</q-card-section>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeQuestionForm"
/>
...
...
@@ -63,12 +63,15 @@
},
//创建
saveQuestion
()
{
this
.
$refs
.
BankName
.
validate
()
if
(
!
this
.
$refs
.
BankName
.
hasError
){
SetQuestionBank
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$emit
(
'success'
);
this
.
closeQuestionForm
();
}
});
}
},
//取消
closeQuestionForm
()
{
...
...
src/components/school/classroom/classroom-form.vue
View file @
7275a305
...
...
@@ -2,18 +2,18 @@
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 500px;max-width:600px;"
>
<q-card-section>
<div
class=
"text-h6"
>
{{
objOption
.
T
Id
==
0
?
'新增教室信息'
:
'修改教室信息'
}}
</div>
<div
class=
"text-h6"
>
{{
objOption
.
Room
Id
==
0
?
'新增教室信息'
:
'修改教室信息'
}}
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
>
教室信息
</div>
<div
class=
"row wrap"
>
<q-select
filled
stack-label
option-value=
"SId"
option-label=
"SName"
v-model=
"objOption.School_Id"
ref=
"School_Id"
:options=
"schoolList"
label=
"所属校区"
:dense=
"false"
class=
"col-12 q-pb-lg
q-pr-lg
"
emit-value
ref=
"School_Id"
:options=
"schoolList"
label=
"所属校区"
:dense=
"false"
class=
"col-12 q-pb-lg"
emit-value
map-options
:rules=
"[val => !!val || '请选择所属校区']"
/>
</div>
<div
class=
"row wrap"
>
<q-input
filled
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"objOption.RoomName"
ref=
"RoomName"
class=
"col-12
q-pr-lg
"
label=
"教室名称"
:rules=
"[val => !!val || '请填写教室名称']"
/>
class=
"col-12"
label=
"教室名称"
:rules=
"[val => !!val || '请填写教室名称']"
/>
</div>
</q-card-section>
<q-separator
/>
...
...
src/components/school/teacher/teacher-form.vue
View file @
7275a305
...
...
@@ -23,9 +23,9 @@
ref=
"Post_Id"
:options=
"PostList"
label=
"岗位"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseStuNum"
ref=
"BaseStuNum"
class=
"col-6 q-p
r-lg q-p
b-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"
class=
"col-6 q-pb-lg"
label=
"基础课时费"
@
keyup
.
native=
"checkPrice(objOption,'BaseHourFee')"
/>
class=
"col-6 q-p
r-lg q-p
b-lg"
label=
"基础课时费"
@
keyup
.
native=
"checkPrice(objOption,'BaseHourFee')"
/>
</div>
<div
class=
"row wrap"
>
<div
class=
"col-6 q-pr-lg q-pb-lg"
>
...
...
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