Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
476a361a
Commit
476a361a
authored
Sep 12, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
期数列表bug
parent
196c84f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
index.vue
src/components/periods/index.vue
+2
-0
newDialog.vue
src/components/periods/newDialog.vue
+9
-8
No files found.
src/components/periods/index.vue
View file @
476a361a
...
...
@@ -184,6 +184,7 @@
this
.
newDialog
.
form
.
id
=
''
;
this
.
newDialog
.
start_num
=
''
;
this
.
newDialog
.
form
.
goods_id
=
''
;
this
.
newDialog
.
form
.
course_id
=
''
;
this
.
newDialog
.
form
.
title
=
''
;
this
.
newDialog
.
form
.
start_at
=
''
;
this
.
newDialog
.
form
.
rest_week_day
=
[];
...
...
@@ -197,6 +198,7 @@
this
.
newDialog
.
form
.
start_at
=
row
.
start_at
;
this
.
newDialog
.
form
.
title
=
row
.
title
;
this
.
newDialog
.
form
.
goods_id
=
row
.
goods_id
;
this
.
newDialog
.
form
.
course_id
=
row
.
course_id
;
console
.
log
(
'row'
,
row
)
let
weekList
=
[];
if
(
row
.
rest_week_day
){
...
...
src/components/periods/newDialog.vue
View file @
476a361a
...
...
@@ -11,7 +11,7 @@
<el-row>
<el-col
:span=
"10"
>
<el-form-item
label=
"商品名称"
prop=
"goods_id"
>
<el-select
v-model=
"form.goods_id"
placeholder=
"请选择"
clearable
@
change=
"
getLessonDetail
"
>
<el-select
v-model=
"form.goods_id"
placeholder=
"请选择"
clearable
@
change=
"
onOptionChange
"
>
<el-option
v-for=
"(data,index) in goodList"
:key=
"index"
...
...
@@ -204,16 +204,17 @@
}
});
},
// getChooseGood(val){
// this.form.goods_id = val.id;
// this.getLessonDetail(val.course_id);
// this.goodDialogObj.show = false;
// },
getTeachers
(){
getTeacherListApi
().
then
((
res
)
=>
{
this
.
teacherOptions
=
res
.
list
;
})
},
onOptionChange
(
id
){
let
index
=
this
.
goodList
.
findIndex
((
val
)
=>
{
return
val
.
id
=
id
});
if
(
index
>-
1
){
this
.
getLessonDetail
(
this
.
goodList
[
index
].
course_id
);
}
},
getLessonDetail
(
id
){
console
.
log
(
'getLessonDetail'
,
id
);
this
.
form
.
start_num
=
''
...
...
@@ -235,8 +236,8 @@
// this.initPage()
this
.
getTeachers
();
this
.
getGoodsOption
();
if
(
this
.
dialogObj
.
form
.
goods
_id
){
this
.
getLessonDetail
(
this
.
dialogObj
.
form
.
goods
_id
);
if
(
this
.
dialogObj
.
form
.
course
_id
){
this
.
getLessonDetail
(
this
.
dialogObj
.
form
.
course
_id
);
}
this
.
form
=
this
.
dialogObj
.
form
;
this
.
teacherList
=
this
.
dialogObj
.
form
.
teacher_ids
;
...
...
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