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
b3284510
Commit
b3284510
authored
Sep 29, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
期数添加班级bug
parent
679acb14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
16 deletions
+26
-16
index.vue
src/components/periods/index.vue
+5
-1
newDialog.vue
src/components/periods/newDialog.vue
+21
-14
index.vue
src/components/weChat/index.vue
+0
-1
No files found.
src/components/periods/index.vue
View file @
b3284510
...
...
@@ -121,7 +121,7 @@
</el-table-column>
</el-table>
<page
:nowPage=
"nowPage"
:total=
"total"
:limit=
"limit"
@
pageChange=
"onPageChange"
/>
<new-dialog
v-if=
"newDialog.show"
:dialogObj=
"newDialog"
@
reflash=
"onSave"
></new-dialog>
<new-dialog
v-if=
"newDialog.show"
:dialogObj=
"newDialog"
@
reflash=
"onSave"
@
changeShow=
"changeShow"
></new-dialog>
</div>
</template>
...
...
@@ -207,6 +207,9 @@
this
.
total
=
res
.
total
});
},
changeShow
(
data
){
this
.
newDialog
.
show
=
data
},
onAdd
(){
this
.
newDialog
.
form
.
id
=
''
;
this
.
newDialog
.
form
.
startNum
=
''
;
...
...
@@ -216,6 +219,7 @@
this
.
newDialog
.
form
.
rest_week_day
=
[];
this
.
newDialog
.
form
.
teacher_ids
=
[];
this
.
newDialog
.
form
.
teacherList
=
[];
this
.
newDialog
.
form
.
viewTeacher
=
''
;
this
.
newDialog
.
title
=
'添加期数'
;
this
.
newDialog
.
show
=
true
;
},
...
...
src/components/periods/newDialog.vue
View file @
b3284510
...
...
@@ -4,14 +4,14 @@
:title=
"dialogObj.title"
center
append-to-body
:visible
.
sync=
"
dialogObj.
show"
:visible
.
sync=
"show"
width=
"800px"
>
<div
v-loading=
"loading"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
:rules=
"rules"
>
<el-row>
<el-col
:span=
"10"
>
<el-form-item
label=
"商品名称"
prop=
"goods_id"
>
<el-select
v-model=
"form.goods_id"
placeholder=
"请选择"
clearable
@
change=
"onOptionChange"
:disabled=
"form.id ? true : false"
>
<el-select
v-model=
"form.goods_id"
placeholder=
"请选择"
@
change=
"onOptionChange"
:disabled=
"form.id ? true : false"
>
<el-option
v-for=
"(data,index) in goodList"
:key=
"index"
...
...
@@ -77,7 +77,7 @@
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"
dialogObj.
show = false"
>
取 消
</el-button>
<el-button
@
click=
"show = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"sub"
>
确 定
</el-button>
</span>
</div>
...
...
@@ -97,7 +97,7 @@
return
{
loading
:
false
,
form
:
{},
teacherList
:
[]
,
show
:
false
,
viewTeacher
:
''
,
pickerOptions1
:
{
disabledDate
(
time
)
{
...
...
@@ -170,6 +170,11 @@
components
:{
goodDialog
},
watch
:{
show
(
value
){
this
.
$emit
(
"changeShow"
,
value
);
}
},
filters
:
{
isOrNot
(
value
){
return
ISORNOT
[
value
]
...
...
@@ -254,15 +259,13 @@
}
},
onOptionChange
(
id
){
console
.
log
(
'onOptionChange'
,
id
)
this
.
form
.
goods_id
=
id
;
let
index
=
this
.
goodList
.
findIndex
((
val
)
=>
{
return
val
.
id
=
id
});
let
index
=
this
.
goodList
.
findIndex
((
val
)
=>
{
return
val
.
id
===
id
});
if
(
index
>-
1
){
this
.
getLessonDetail
(
this
.
goodList
[
index
].
course_id
);
}
delete
this
.
form
.
startNum
},
getLessonDetail
(
id
){
this
.
form
.
start_num
=
''
getLessonDetailApi
(
id
,{}).
then
((
res
)
=>
{
this
.
itemOptions
=
res
.
detail
[
res
.
type
]
})
...
...
@@ -274,18 +277,22 @@
};
getGoodsListApi
(
json
).
then
(
res
=>
{
this
.
goodList
=
res
.
list
;
if
(
this
.
dialogObj
.
form
.
id
){
this
.
form
=
this
.
dialogObj
.
form
;
}
else
{
this
.
form
=
{};
}
if
(
this
.
dialogObj
.
form
.
course_id
){
this
.
getLessonDetail
(
this
.
dialogObj
.
form
.
course_id
);
}
this
.
show
=
this
.
dialogObj
.
show
})
}
},
mounted
(){
// this.initPage()
this
.
form
=
this
.
dialogObj
.
form
;
this
.
getTeachers
();
this
.
getGoodsOption
();
if
(
this
.
dialogObj
.
form
.
course_id
){
this
.
getLessonDetail
(
this
.
dialogObj
.
form
.
course_id
);
}
this
.
teacherList
=
this
.
dialogObj
.
form
.
teacher_ids
;
this
.
getTeachers
();
}
}
</
script
>
...
...
src/components/weChat/index.vue
View file @
b3284510
...
...
@@ -1022,7 +1022,6 @@
this
.
$forceUpdate
();
},
deleteSubMedia
(){
console
.
log
(
'deleteSubMedia'
)
let
selectedIndex
=
this
.
selectedIndex
;
let
selectedChildIndex
=
this
.
selectedChildIndex
;
let
_type
=
this
.
buttonList
[
selectedIndex
].
sub_button
[
selectedChildIndex
].
media_info
.
type
;
...
...
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