Commit 0767217a authored by 郜超's avatar 郜超

a

parent 14854eb0
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
box-sizing:border-box; box-sizing:border-box;
width: 280px; width: 280px;
border:1px solid #ececec; border:1px solid #ececec;
display: inline-block;
} }
.datebook-root .top-panel{ .datebook-root .top-panel{
padding-top: 10px; padding-top: 10px;
...@@ -177,24 +178,25 @@ ...@@ -177,24 +178,25 @@
background: #2db7f5 ; background: #2db7f5 ;
} }
.incident{ .incident{
top: -350px; vertical-align: top;
left:270px; width: 300px;
display:inline-block; display:inline-block;
position:relative;
background-color:#202020; background-color:#202020;
width:180px; height:428px;
height:; position: relative;
padding:20px; overflow: scroll;
text-align: center;
/*padding:20px;*/
color:#CCC; color:#CCC;
text-align:center; /*text-align:center;*/
font-size:14px; /*font-size:14px;*/
font-family:微软雅黑; /*font-family:微软雅黑;*/
border-radius:10px; /*border-radius:10px;*/
margin:50px; /*margin:50px;*/
box-shadow:1px 1px 2px #202020; /*box-shadow:1px 1px 2px #202020;*/
-o-box-shadow:1px 1px 2px #202020; /*-o-box-shadow:1px 1px 2px #202020;*/
-moz-box-shadow:1px 1px 2px #202020; /*-moz-box-shadow:1px 1px 2px #202020;*/
-webkit-border-shadow:1px 1px 2px #202020; /*-webkit-border-shadow:1px 1px 2px #202020;*/
} }
.close{ .close{
position: absolute; position: absolute;
...@@ -203,20 +205,21 @@ ...@@ -203,20 +205,21 @@
right:0; right:0;
} }
.incident span { .incident span {
color: white;
font-size: 10px; font-size: 10px;
padding: 10px 20px; padding: 10px 20px;
} }
.incident:before{ .incident:before{
content:''; /*content:'';*/
position:absolute; /*position:absolute;*/
width:0; /*width:0;*/
height:0; /*height:0;*/
border:15px solid; /*border:15px solid;*/
color:transparent; /*color:transparent;*/
border-right-color:#202020; /*border-right-color:#202020;*/
left:-30px; /*left:-30px;*/
top:50%; /*top:50%;*/
margin-top:-15px; /*margin-top:-15px;*/
} }
</style> </style>
<script> <script>
...@@ -279,6 +282,9 @@ ...@@ -279,6 +282,9 @@
events: { events: {
required: false required: false
}, },
timeOrder: {
required: false
},
date: { date: {
required: false required: false
} }
...@@ -399,7 +405,7 @@ ...@@ -399,7 +405,7 @@
}, },
dateChange(dateItem) { dateChange(dateItem) {
this.show = true this.show = true
console.log(dateItem, '-=-=-=-=-=-=-=-=-') // console.log(dateItem, '-=-=-=-=-=-=-=-=-')
var dateObj = new Date(this.showTimeData) var dateObj = new Date(this.showTimeData)
var year = dateObj.getFullYear() var year = dateObj.getFullYear()
var month = dateObj.getMonth() var month = dateObj.getMonth()
...@@ -448,7 +454,7 @@ ...@@ -448,7 +454,7 @@
dateItem.active = !dateItem.active dateItem.active = !dateItem.active
} }
// 向上发送本次点击的行程数据 // 向上发送本次点击的行程数据
console.log(result, '--------------------') // console.log(result, '--------------------')
if (result.schedule) { if (result.schedule) {
const currentTime = this.timestampToTime(result.schedule.date) const currentTime = this.timestampToTime(result.schedule.date)
this.currentDate = currentTime this.currentDate = currentTime
...@@ -488,7 +494,7 @@ ...@@ -488,7 +494,7 @@
const self = this const self = this
var saveTime = '' var saveTime = ''
request(self.schema.modelUnderscorePlural, { request(self.schema.modelUnderscorePlural, {
params: { 'sortItem': 'create_time', 'pageSize': 10000 } params: { 'sortItem': self.timeOrder, 'pageSize': 10000 }
}).then(resp => { }).then(resp => {
console.log(resp.data, '=========') console.log(resp.data, '=========')
_.each(resp.data, function(item) { _.each(resp.data, function(item) {
...@@ -508,7 +514,7 @@ ...@@ -508,7 +514,7 @@
} }
}) })
}) })
console.log(self.schedules, '+++++最终+++++++++') // console.log(self.schedules, '+++++最终+++++++++')
} }
}, },
created() { created() {
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
:title="title" :title="title"
:events="events" :events="events"
:date="date" :date="date"
:timeOrder="timeOrder"
@dateChange="datechange" @dateChange="datechange"
@monthChange="monthchange" @monthChange="monthchange"
></hm-full-calendar> ></hm-full-calendar>
...@@ -30,7 +31,9 @@ ...@@ -30,7 +31,9 @@
// title为需要传入的事件名所对应的的字段名,date为时间所对应的字段,events为事件所对应的字段,都不是必传 // title为需要传入的事件名所对应的的字段名,date为时间所对应的字段,events为事件所对应的字段,都不是必传
title: 'loginid', title: 'loginid',
date: 'createTime', date: 'createTime',
events: 'email' events: 'email',
// timeOrder为所有所有事件按照数据库的哪个字段排序,为下划线格式
timeOrder: 'create_time'
} }
}, },
filters: { filters: {
......
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