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
c3a1a855
Commit
c3a1a855
authored
Dec 31, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9a52fd4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
classroom-form.vue
src/components/school/classroom/classroom-form.vue
+12
-8
No files found.
src/components/school/classroom/classroom-form.vue
View file @
c3a1a855
...
...
@@ -9,7 +9,7 @@
<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"
emit-value
map-options
:rules=
"[val => !!val || '请选择所属校区']"
/>
map-options
/>
</div>
<div
class=
"row wrap"
>
<q-input
filled
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"objOption.RoomName"
ref=
"RoomName"
...
...
@@ -157,7 +157,7 @@
}
var
obj
=
{
SName
:
'不限'
,
SId
:
0
SId
:
-
1
}
tempArray
.
unshift
(
obj
);
this
.
schoolList
=
tempArray
;
...
...
@@ -184,16 +184,20 @@
})
return
}
this
.
saveLoading
=
true
this
.
$refs
.
School_Id
.
validate
()
if
(
this
.
objOption
.
School_Id
==-
1
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择所属校区`
})
return
}
this
.
$refs
.
RoomName
.
validate
()
if
(
!
this
.
$refs
.
School_Id
.
hasError
&&
!
this
.
$refs
.
RoomName
.
hasError
)
{
if
(
!
this
.
$refs
.
RoomName
.
hasError
)
{
if
(
!
Array
.
isArray
(
this
.
objOption
.
RoomPicList
))
{
this
.
objOption
.
RoomPicList
=
[
this
.
objOption
.
RoomPicList
]
}
this
.
saveLoading
=
true
saveClassRoom
(
this
.
objOption
).
then
(
res
=>
{
this
.
saveLoading
=
false
this
.
$q
.
notify
({
...
...
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