Commit 4fbcc3ac authored by 李静's avatar 李静

a

parent 7e44cc9b
...@@ -241,7 +241,8 @@ ...@@ -241,7 +241,8 @@
*monthChange事件,切换月份时触发,刷新日历显示,并传回当前月份的数组,包含该月第一天的0:0:0 和 该月最后一天的23:59:59 的时间戳,例如,7月,返回 [1498838400000,1501516799000] ,对应:Sat Jul 01 2017 00:00:00 GMT+0800 (中国标准时间) 和 Mon Jul 31 2017 23:59:59 GMT+0800 (中国标准时间) *monthChange事件,切换月份时触发,刷新日历显示,并传回当前月份的数组,包含该月第一天的0:0:0 和 该月最后一天的23:59:59 的时间戳,例如,7月,返回 [1498838400000,1501516799000] ,对应:Sat Jul 01 2017 00:00:00 GMT+0800 (中国标准时间) 和 Mon Jul 31 2017 23:59:59 GMT+0800 (中国标准时间)
*/ */
import request from '@/utils/request' import request from '@/utils/request'
// import _ from 'lodash' import _ from 'lodash'
import moment from 'moment'
export default{ export default{
data() { data() {
return { return {
...@@ -251,7 +252,8 @@ ...@@ -251,7 +252,8 @@
dialogTableVisible: false, dialogTableVisible: false,
show: false, show: false,
currentDate: '', currentDate: '',
event: '' event: '',
schedules1: []
} }
}, },
props: { props: {
...@@ -483,7 +485,14 @@ ...@@ -483,7 +485,14 @@
request(self.schema.modelUnderscorePlural, { request(self.schema.modelUnderscorePlural, {
params: {} params: {}
}).then(resp => { }).then(resp => {
console.log(resp.data) console.log(resp.data, '=========')
_.each(resp.data, function(item) {
const event = {}
event.date = moment(item.createTime).format('X') * 1000
event.title = item.username
self.schedules1.push(event)
})
console.log(self.schedules1)
}) })
} }
}, },
......
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