|
@@ -319,7 +319,20 @@
|
319
|
319
|
|
320
|
320
|
},
|
321
|
321
|
methods: {
|
322
|
|
-
|
|
322
|
+ datachange(val){
|
|
323
|
+ if(val ==1){
|
|
324
|
+ this.start_date = this.getFirstDayOfWeek(new Date())
|
|
325
|
+ this.end_date = this.getTime(new Date())
|
|
326
|
+ }else if(val ==2){
|
|
327
|
+ this.getlastweek(new Date())
|
|
328
|
+ }else if(val ==3){
|
|
329
|
+ this.start_date = this.getFirstDayOfMonth(new Date())
|
|
330
|
+ this.end_date = this.getTime(new Date())
|
|
331
|
+ }else if(val ==4){
|
|
332
|
+ this.getLastMonthFirstDay()
|
|
333
|
+ this.getLastMonthLastDay()
|
|
334
|
+ }
|
|
335
|
+ },
|
323
|
336
|
toContentPint(){
|
324
|
337
|
this.$refs.editor.contents = this.template_content
|
325
|
338
|
this.library_dialog = false
|