|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <basic-block title="">
|
|
|
|
|
|
+ <!-- <basic-block title=""> -->
|
|
<!--
|
|
<!--
|
|
<div class="tag-tip">
|
|
<div class="tag-tip">
|
|
<el-tag size="small" color="#f08f00">审核中</el-tag>
|
|
<el-tag size="small" color="#f08f00">审核中</el-tag>
|
|
@@ -20,13 +20,14 @@
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
-->
|
|
-->
|
|
- <el-col :span="19">
|
|
|
|
|
|
+ <el-col :span="24">
|
|
<div class="calendar-box">
|
|
<div class="calendar-box">
|
|
<!-- 日历菜单栏 -->
|
|
<!-- 日历菜单栏 -->
|
|
<full-calendar
|
|
<full-calendar
|
|
ref="fullCalendar"
|
|
ref="fullCalendar"
|
|
style="height: 100%"
|
|
style="height: 100%"
|
|
:options="calendarOptions"
|
|
:options="calendarOptions"
|
|
|
|
+ id="calendar"
|
|
alt=""
|
|
alt=""
|
|
>
|
|
>
|
|
</full-calendar>
|
|
</full-calendar>
|
|
@@ -228,7 +229,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!--日程新增弹窗end-->
|
|
<!--日程新增弹窗end-->
|
|
- </basic-block>
|
|
|
|
|
|
+ <!-- </basic-block> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -331,9 +332,9 @@ export default {
|
|
height: 700,
|
|
height: 700,
|
|
plugins: [dayGridPlugin, interactionPlugin],
|
|
plugins: [dayGridPlugin, interactionPlugin],
|
|
headerToolbar: {
|
|
headerToolbar: {
|
|
- left: "prev,next today",
|
|
|
|
- center: "title",
|
|
|
|
- right: "dayGridMonth,dayGridWeek,dayGrid",
|
|
|
|
|
|
+ left: "title",
|
|
|
|
+ center: "",
|
|
|
|
+ right: "today prev dayGridMonth,dayGridWeek,dayGrid next",
|
|
// right: 'agendaWeek,dayGridWeek,dayGrid'
|
|
// right: 'agendaWeek,dayGridWeek,dayGrid'
|
|
},
|
|
},
|
|
buttonText: {
|
|
buttonText: {
|
|
@@ -352,6 +353,7 @@ export default {
|
|
dateClick: this.handleDateClick, //点击日历
|
|
dateClick: this.handleDateClick, //点击日历
|
|
eventClick: this.handleEventClick, //日历日程点击
|
|
eventClick: this.handleEventClick, //日历日程点击
|
|
eventsSet: this.handleEvents,
|
|
eventsSet: this.handleEvents,
|
|
|
|
+
|
|
select: this.handleDateSelect,
|
|
select: this.handleDateSelect,
|
|
eventMouseEnter: this.eventmouseover, //鼠标滑过
|
|
eventMouseEnter: this.eventmouseover, //鼠标滑过
|
|
eventMouseLeave: this.eventmouseout, //鼠标离开
|
|
eventMouseLeave: this.eventmouseout, //鼠标离开
|
|
@@ -473,7 +475,7 @@ export default {
|
|
},
|
|
},
|
|
data: { isFile: "0" },
|
|
data: { isFile: "0" },
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- console.log("res", res);
|
|
|
|
|
|
+ // console.log("res", res);
|
|
if (res.data && res.data.length > 0) {
|
|
if (res.data && res.data.length > 0) {
|
|
this.array = res.data;
|
|
this.array = res.data;
|
|
// this.getReservationList(this.array.scheduleList0);
|
|
// this.getReservationList(this.array.scheduleList0);
|
|
@@ -491,7 +493,7 @@ export default {
|
|
},
|
|
},
|
|
data: { isFile: "0" },
|
|
data: { isFile: "0" },
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
// console.log('res====', typeof res.data)
|
|
// console.log('res====', typeof res.data)
|
|
// console.log(res.data)
|
|
// console.log(res.data)
|
|
this.auth = res.data;
|
|
this.auth = res.data;
|
|
@@ -499,7 +501,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getReservationList(arrayData) {
|
|
getReservationList(arrayData) {
|
|
- console.log(arrayData);
|
|
|
|
|
|
+ // console.log(arrayData);
|
|
let newArr = [];
|
|
let newArr = [];
|
|
this.subList = arrayData;
|
|
this.subList = arrayData;
|
|
// let year = new Date(new Date()).getFullYear();
|
|
// let year = new Date(new Date()).getFullYear();
|
|
@@ -587,7 +589,7 @@ export default {
|
|
// });
|
|
// });
|
|
// });
|
|
// });
|
|
arrayData.forEach((item) => {
|
|
arrayData.forEach((item) => {
|
|
- console.log("item", item);
|
|
|
|
|
|
+ // console.log("item", item);
|
|
newArr.push({
|
|
newArr.push({
|
|
newBeginTime: item.begindate.split(" ")[1].substr(0, 5),
|
|
newBeginTime: item.begindate.split(" ")[1].substr(0, 5),
|
|
newEndTime: item.enddate.split(" ")[1].substr(0, 5),
|
|
newEndTime: item.enddate.split(" ")[1].substr(0, 5),
|
|
@@ -603,7 +605,7 @@ export default {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
this.calendarOptions.events = newArr;
|
|
this.calendarOptions.events = newArr;
|
|
- console.log(this.calendarOptions.events);
|
|
|
|
|
|
+ // console.log(this.calendarOptions.events);
|
|
|
|
|
|
// debugger
|
|
// debugger
|
|
},
|
|
},
|
|
@@ -646,7 +648,7 @@ export default {
|
|
this.form.startTime = this.getHoursMin(beginDate);
|
|
this.form.startTime = this.getHoursMin(beginDate);
|
|
this.form.enddate = this.dealWithTime(endDate);
|
|
this.form.enddate = this.dealWithTime(endDate);
|
|
this.form.endTime = this.getHoursMin(endDate);
|
|
this.form.endTime = this.getHoursMin(endDate);
|
|
- console.log(this.form);
|
|
|
|
|
|
+ // console.log(this.form);
|
|
// this.$forceUpdate()
|
|
// this.$forceUpdate()
|
|
this.form = { ...this.form };
|
|
this.form = { ...this.form };
|
|
},
|
|
},
|
|
@@ -700,7 +702,7 @@ export default {
|
|
},
|
|
},
|
|
//鼠标滑过事件
|
|
//鼠标滑过事件
|
|
eventmouseover(calEvent, event) {
|
|
eventmouseover(calEvent, event) {
|
|
- console.log(123);
|
|
|
|
|
|
+ // console.log(123);
|
|
this.xuanchuang(calEvent, event);
|
|
this.xuanchuang(calEvent, event);
|
|
},
|
|
},
|
|
eventmouseout() {
|
|
eventmouseout() {
|
|
@@ -728,9 +730,9 @@ export default {
|
|
},
|
|
},
|
|
//悬停窗体删除按钮
|
|
//悬停窗体删除按钮
|
|
delxuan() {
|
|
delxuan() {
|
|
- if (!this.auth) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ if (!this.auth) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.delStatus = true;
|
|
this.delStatus = true;
|
|
},
|
|
},
|
|
// 点击日历
|
|
// 点击日历
|
|
@@ -796,10 +798,10 @@ export default {
|
|
// }
|
|
// }
|
|
// },
|
|
// },
|
|
handleEvents(events) {
|
|
handleEvents(events) {
|
|
- console.log(events, "事件3");
|
|
|
|
|
|
+ // console.log(events, "事件3");
|
|
},
|
|
},
|
|
handleDateSelect(selectInfo) {
|
|
handleDateSelect(selectInfo) {
|
|
- console.log(selectInfo, "限制");
|
|
|
|
|
|
+ // console.log(selectInfo, "限制");
|
|
},
|
|
},
|
|
// 切换上一个按钮
|
|
// 切换上一个按钮
|
|
prev() {
|
|
prev() {
|
|
@@ -825,7 +827,7 @@ export default {
|
|
id: this.idx,
|
|
id: this.idx,
|
|
},
|
|
},
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
location.reload();
|
|
location.reload();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -835,7 +837,7 @@ export default {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.form.begindate = `${this.form.begindate} ${this.form.startTime}`;
|
|
this.form.begindate = `${this.form.begindate} ${this.form.startTime}`;
|
|
this.form.enddate = `${this.form.enddate} ${this.form.endTime}`;
|
|
this.form.enddate = `${this.form.enddate} ${this.form.endTime}`;
|
|
- console.log(this.form, "数据");
|
|
|
|
|
|
+ // console.log(this.form, "数据");
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
if (this.form.id === "") {
|
|
if (this.form.id === "") {
|
|
this.form === "";
|
|
this.form === "";
|
|
@@ -857,7 +859,7 @@ export default {
|
|
},
|
|
},
|
|
data: this.form,
|
|
data: this.form,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
this.loadinged = false;
|
|
this.loadinged = false;
|
|
if (res.data.result === 1) {
|
|
if (res.data.result === 1) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -874,7 +876,7 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- console.log("error submit!!");
|
|
|
|
|
|
+ // console.log("error submit!!");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -889,7 +891,7 @@ export default {
|
|
this.$refs["form"].resetFields();
|
|
this.$refs["form"].resetFields();
|
|
},
|
|
},
|
|
onStartTime(val) {
|
|
onStartTime(val) {
|
|
- console.log("val", val);
|
|
|
|
|
|
+ // console.log("val", val);
|
|
this.form.startTime = val;
|
|
this.form.startTime = val;
|
|
},
|
|
},
|
|
//开始时间 option显示/隐藏
|
|
//开始时间 option显示/隐藏
|
|
@@ -908,7 +910,7 @@ export default {
|
|
return result;
|
|
return result;
|
|
});
|
|
});
|
|
// 第二次过滤,过滤掉后端返回的数据
|
|
// 第二次过滤,过滤掉后端返回的数据
|
|
- console.log(this.newfrom);
|
|
|
|
|
|
+ // console.log(this.newfrom);
|
|
this.newfrom.map((_item) => {
|
|
this.newfrom.map((_item) => {
|
|
this.timeOptions = this.timeOptions.map((_timeOptionItem) => {
|
|
this.timeOptions = this.timeOptions.map((_timeOptionItem) => {
|
|
// debugger
|
|
// debugger
|
|
@@ -1030,9 +1032,20 @@ export default {
|
|
border: none !important;
|
|
border: none !important;
|
|
background-color: #fff !important;
|
|
background-color: #fff !important;
|
|
}
|
|
}
|
|
-::v-deep .el-select__tags{
|
|
|
|
|
|
+::v-deep .el-select__tags {
|
|
flex-flow: inherit;
|
|
flex-flow: inherit;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
flex-wrap: inherit;
|
|
flex-wrap: inherit;
|
|
}
|
|
}
|
|
|
|
+.calendar-box {
|
|
|
|
+ margin: 10px;
|
|
|
|
+}
|
|
|
|
+::v-deep .fc-col-header-cell-cushion {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ line-height: 50px;
|
|
|
|
+}
|
|
|
|
+::v-deep .fc .fc-daygrid-day-top {
|
|
|
|
+ justify-content: center;
|
|
|
|
+ margin-top: 5px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|