Commit 2f106459 authored by youjie's avatar youjie

修复bug

parent 3dd834db
......@@ -116,16 +116,16 @@
//格式化返回显示日期
getDateList(dateStr) {
var str = dateStr.split('-');
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')];
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')];
var myDate = new Date(Date.parse(dateStr));
return str[1] + '/' + str[2] + "(" + weekDay[myDate.getDay()] + ")";
},
//获取星期几
getWeek(dateStr) {
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')];
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')];
var myDate = new Date(Date.parse(dateStr));
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