Commit 7e44cc9b authored by 李静's avatar 李静

a

parent 0ac432f4
......@@ -241,6 +241,7 @@
*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 _ from 'lodash'
export default{
data() {
return {
......@@ -265,6 +266,12 @@
initTime: {
required: false
},
title: {
required: false
},
event: {
required: false
},
schedules: {
type: Array,
required: false
......@@ -473,9 +480,10 @@
},
getDailyEvent() {
const self = this
console.log(self.schema)
request(self.schema.modelUnderscorePlural).then(resp => {
console.log(resp.data, '---------')
request(self.schema.modelUnderscorePlural, {
params: {}
}).then(resp => {
console.log(resp.data)
})
}
},
......
......@@ -3,7 +3,9 @@
<hm-full-calendar
:width="width"
:schedules="schedules"
:schema="schema['CcDuty']"
:schema="schema['HmUser']"
:title="title"
:event="event"
@dateChange="datechange"
@monthChange="monthchange"
></hm-full-calendar>
......@@ -25,6 +27,8 @@
return {
show: false,
width: '300px',
title: '',
event: '',
schedules: [{ date: 1524043625000, title: '个梵蒂是的舞蹈服可接受的看似简单计算的话束带结发会计师对海口市记得回复是框架的看就好山东矿机会计师发送的甲方是看得见看见的说法开始冈地方' }, { date: 1523955299000, title: '个梵蒂冈地方' }]
}
},
......
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