Commit e1b65e8c authored by 高宇's avatar 高宇

a

parent 20c5307b
......@@ -145,12 +145,11 @@
end: info.end.valueOf() / 1000
}
}).then(res => {
res.event.forEach(item => {
res.forEach(item => {
item.allDay = false
})
console.log(res.event)
successCallback(res.event)
this.defaultDate = res.defaultDate
successCallback(res)
// this.defaultDate = res.defaultDate
}).catch(_ => {
}).finally(() => {
$('[data-toggle="tooltip"]').tooltip()
......
......@@ -157,7 +157,7 @@
},
addItem (info, type) {
this.operationPage = 'addCalendar'
this.operationTitle = '添加日程'
this.operationTitle = '新建日程'
// this.$router.push({name: 'editProject', params: {id: row.id}})
this.$nextTick(() => {
this.$refs.sidePopup.show(this.$refs[this.operationPage].init(info, type))
......
......@@ -5,9 +5,8 @@
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="pager.thispage"
:page-sizes="[2, 10, 20, 40, 60, 80, 100]"
:page-size="pager.pagesize"
layout="total, sizes, prev, pager, next, jumper"
layout="total, prev, pager, next, jumper"
:total="total">
</el-pagination>
</section>
......
......@@ -2,10 +2,8 @@
<section class="pull-right page-footer">
<el-pagination v-if="total > pager.pagesize" class=""
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="pager.page"
:page-sizes="[10, 20, 40, 60, 80, 100]"
:page-size="pager.pagesize"
layout="total, prev, pager, next, jumper"
:total="total">
......@@ -36,13 +34,6 @@ export default {
// this.$emit('update:pager', this.pager)
},
methods: {
handleSizeChange (val) {
this.pager.page = 1
this.pager.pagesize = val
// this.totalcount = this.total
this.$emit('update:pager', this.pager)
// this.$parent.loadList()
},
handleCurrentChange (val) {
this.pager.page = val
// this.totalcount = this.total
......
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