File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 34
34
<editing-screen
35
35
:value =" editPageValue"
36
36
:expanded =" !isExpandedButton"
37
- @closeExpand =" handler "
37
+ @closeExpand =" closeToReset "
38
38
/>
39
39
</div >
40
40
</template >
@@ -106,6 +106,35 @@ export default Vue.extend({
106
106
handler(): void {
107
107
this .isExpandedButton = ! this .isExpandedButton
108
108
},
109
+ closeToReset(): void {
110
+ this .handler ()
111
+ this .editPageValue = {
112
+ isHidden: false ,
113
+ lessonId: ' ' ,
114
+ firstPageData: {
115
+ date: ' ' ,
116
+ startTime: ' ' ,
117
+ endTime: ' ' ,
118
+ title: ' ' ,
119
+ subjectName: ' ' ,
120
+ subjectColor: ' #BAC8FF'
121
+ },
122
+ secondPageData: {
123
+ goal: ' ' ,
124
+ description: ' '
125
+ },
126
+ thirdPageData: {
127
+ videoUrl: ' ' ,
128
+ videoTitle: ' ' ,
129
+ videoThumbnailUrl: ' '
130
+ },
131
+ fourthPageData: {
132
+ pages: ' ' ,
133
+ materialsTitle: ' ' ,
134
+ materialsUrl: ' '
135
+ }
136
+ }
137
+ },
109
138
doEdit(value : classData .LessonWithId ): void {
110
139
const videoUrl = value .videos .length === 0 ? ' ' : value .videos [0 ].url
111
140
const videoTitle = value .videos .length === 0 ? ' ' : value .videos [0 ].title
You can’t perform that action at this time.
0 commit comments