Commit 2f106459 authored by youjie's avatar youjie

修复bug

parent 3dd834db
...@@ -116,16 +116,16 @@ ...@@ -116,16 +116,16 @@
//格式化返回显示日期 //格式化返回显示日期
getDateList(dateStr) { getDateList(dateStr) {
var str = dateStr.split('-'); var str = dateStr.split('-');
var weekDay = [this.$t('objFill.Sunday'), this.$t('objFill.Monday'), this.$t('objFill.Tuesday'), this.$t( var weekDay = [this.$t('objFill.sunday'), this.$t('objFill.monday'), this.$t('objFill.tuesday'), this.$t(
'objFill.Wednesday'), this.$t('objFill.Thursday'), this.$t('objFill.Friday'), this.$t('objFill.Saturday')]; 'objFill.wednesday'), this.$t('objFill.thursday'), this.$t('objFill.friday'), this.$t('objFill.saturday')];
var myDate = new Date(Date.parse(dateStr)); var myDate = new Date(Date.parse(dateStr));
return str[1] + '/' + str[2] + "(" + weekDay[myDate.getDay()] + ")"; return str[1] + '/' + str[2] + "(" + weekDay[myDate.getDay()] + ")";
}, },
//获取星期几 //获取星期几
getWeek(dateStr) { getWeek(dateStr) {
var weekDay = [this.$t('objFill.Sunday'), this.$t('objFill.Monday'), this.$t('objFill.Tuesday'), this.$t( var weekDay = [this.$t('objFill.sunday'), this.$t('objFill.monday'), this.$t('objFill.Tuesday'), this.$t(
'objFill.Wednesday'), this.$t('objFill.Thursday'), this.$t('objFill.Friday'), this.$t('objFill.Saturday')]; 'objFill.wednesday'), this.$t('objFill.thursday'), this.$t('objFill.friday'), this.$t('objFill.saturday')];
var myDate = new Date(Date.parse(dateStr)); var myDate = new Date(Date.parse(dateStr));
return weekDay[myDate.getDay()] return weekDay[myDate.getDay()]
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment