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

a

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