Commit f8f58738 authored by gaochao's avatar gaochao

a

parent 14ea3982
<template> <template>
<div class="calender"> <div class="calender">
<i class="el-icon-date" @click="dialogTableVisible = true"></i>
<el-dialog title="日历" :visible.sync="dialogTableVisible">
<full-calendar :events="fcEvents" locale="en"></full-calendar> <full-calendar :events="fcEvents" locale="en"></full-calendar>
</el-dialog>
</div> </div>
</template> </template>
...@@ -29,7 +33,8 @@ ...@@ -29,7 +33,8 @@
}, },
data() { data() {
return { return {
fcEvents: [] fcEvents: [],
dialogTableVisible: false
} }
}, },
computed: { computed: {
...@@ -44,7 +49,7 @@ ...@@ -44,7 +49,7 @@
const self = this const self = this
console.log(self.schema) console.log(self.schema)
request(self.schema.modelUnderscorePlural).then(resp => { request(self.schema.modelUnderscorePlural).then(resp => {
// console.log(resp.data) console.log(resp.data)
_.each(resp.data, function(item, index) { _.each(resp.data, function(item, index) {
const test = _.cloneDeep(self.demoEvents) const test = _.cloneDeep(self.demoEvents)
test.title = item[self.demoEvents.title] test.title = item[self.demoEvents.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