|
@@ -75,8 +75,6 @@
|
|
name: "schedule",
|
|
name: "schedule",
|
|
components: {
|
|
components: {
|
|
FullCalendar
|
|
FullCalendar
|
|
-
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
data(){
|
|
data(){
|
|
return {
|
|
return {
|
|
@@ -155,7 +153,7 @@
|
|
created() {
|
|
created() {
|
|
this.toList();
|
|
this.toList();
|
|
},
|
|
},
|
|
- methods:{
|
|
|
|
|
|
+ methods:{
|
|
toList (){
|
|
toList (){
|
|
selectList(this.formData).then(response => {
|
|
selectList(this.formData).then(response => {
|
|
console.log(response.rows)
|
|
console.log(response.rows)
|
|
@@ -184,9 +182,19 @@
|
|
// this.dialogVisible = false;
|
|
// this.dialogVisible = false;
|
|
// },
|
|
// },
|
|
handleDateClick(arg) {
|
|
handleDateClick(arg) {
|
|
- if (confirm('您是否要在' + arg.dateStr + '添加一个新的事件?')) {
|
|
|
|
|
|
+
|
|
|
|
+ this.$confirm('是否要添加一个新的日程?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
this.schedule = true;
|
|
this.schedule = true;
|
|
- }
|
|
|
|
|
|
+ this.formData.start = new Date();
|
|
|
|
+ }).catch(() => {});
|
|
|
|
+
|
|
|
|
+ // if (confirm('您是否要在' + arg.dateStr + '添加一个新的事件?')) {
|
|
|
|
+ // this.schedule = true;
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
handleEventClick(info) {
|
|
handleEventClick(info) {
|
|
// alert('日程安排为:' + info.event.title);
|
|
// alert('日程安排为:' + info.event.title);
|