File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ type DataType = {
148
148
classData: typeof vxm .classData
149
149
editingMode: boolean
150
150
editingVisibilityMode: boolean
151
- editPageValue: object
151
+ editPageValue: editPageValueType
152
152
editVisibilityDialogValue: object
153
153
}
154
154
@@ -158,6 +158,25 @@ type Computed = {
158
158
lessonsGroupByPeriod: LessonsGroupedBy
159
159
}
160
160
161
+ type editPageValueType = {
162
+ isHidden: boolean
163
+ lessonId: string
164
+ date: string
165
+ startTime: string
166
+ endTime: string
167
+ title: string
168
+ subjectName: string
169
+ subjectColor: string
170
+ goal: string
171
+ description: string
172
+ videoUrl: string
173
+ videoTitle: string
174
+ videoThumbnailUrl: string
175
+ pages: string
176
+ materialsTitle: string
177
+ materialsUrl: string
178
+ }
179
+
161
180
const editPageValueDefault = {
162
181
isHidden: false ,
163
182
lessonId: ' ' ,
@@ -218,6 +237,13 @@ export default Vue.extend({
218
237
this .resetEditLessonScreen ()
219
238
},
220
239
toggleScreen(): void {
240
+ const date =
241
+ this .editPageValue .date !== ' '
242
+ ? this .editPageValue .date
243
+ : dayjs (vxm .app .currentDate ).format (' YYYY-MM-DD' )
244
+ this .editPageValue = Object .assign ({}, this .editPageValue , {
245
+ date ,
246
+ })
221
247
this .editingMode = ! this .editingMode
222
248
},
223
249
closeModal(): void {
You can’t perform that action at this time.
0 commit comments