提交 ba1a558f 编写于 作者: zhongyao.qiao's avatar zhongyao.qiao

feat 问诊排版时间调整

上级 6f01af85
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
expandRows: true, expandRows: true,
slotMinWidth: 50, slotMinWidth: 50,
slotDuration: '01:00:00', slotDuration: '01:00:00',
slotMinTime: '06:00', slotMinTime: '01:00',
slotMaxTime: '23:00', slotMaxTime: '23:00',
slotLabelInterval: '', slotLabelInterval: '',
scrollTime: false, scrollTime: false,
...@@ -335,7 +335,7 @@ export default { ...@@ -335,7 +335,7 @@ export default {
const day = dayjs(date).day(); const day = dayjs(date).day();
const dayDate = dayjs(date).date(); const dayDate = dayjs(date).date();
const dayFormat = dayjs(date).format('YYYY-MM-DD'); const dayFormat = dayjs(date).format('YYYY-MM-DD');
let selectDate = dayFormat + ' ' + '06:00:00'; let selectDate = dayFormat + ' ' + '01:00:00';
selectDate = dayjs(selectDate).unix(); selectDate = dayjs(selectDate).unix();
const nowDate = dayjs(new Date()).unix(); const nowDate = dayjs(new Date()).unix();
let isAddAllDay = true; let isAddAllDay = true;
...@@ -357,7 +357,7 @@ export default { ...@@ -357,7 +357,7 @@ export default {
} }
if (isAddAllDay) { if (isAddAllDay) {
// 添加日期 // 添加日期
const selectAllDay = [{ startTime: '06:00:00', endTime: '23:00:00' }]; const selectAllDay = [{ startTime: '01:00:00', endTime: '23:00:00' }];
selectAllDay.forEach((item) => { selectAllDay.forEach((item) => {
const allDayData = {}; const allDayData = {};
allDayData.id = allDayData.id =
......
...@@ -106,18 +106,18 @@ ...@@ -106,18 +106,18 @@
</div> </div>
</template> </template>
<script> <script>
import { departmentAll } from '@/api/diagnosis'; import { departmentAll } from '@/api/diagnosis';
import { import {
getPlatformUpper, getPlatformUpper,
previewWork, previewWork,
setPlatformUpper, setPlatformUpper,
} from '@/api/serviceSchedule'; } from '@/api/serviceSchedule';
import dayGridPlugin from '@fullcalendar/daygrid'; import dayGridPlugin from '@fullcalendar/daygrid';
import interactionPlugin from '@fullcalendar/interaction'; import interactionPlugin from '@fullcalendar/interaction';
import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid'; import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid';
import timeGridPlugin from '@fullcalendar/timegrid'; import timeGridPlugin from '@fullcalendar/timegrid';
import FullCalendar from '@fullcalendar/vue'; import FullCalendar from '@fullcalendar/vue';
export default { export default {
name: 'Index', name: 'Index',
components: { components: {
FullCalendar, FullCalendar,
...@@ -164,7 +164,7 @@ import FullCalendar from '@fullcalendar/vue'; ...@@ -164,7 +164,7 @@ import FullCalendar from '@fullcalendar/vue';
resourceAreaWidth: '5%', resourceAreaWidth: '5%',
allDaySlot: false, // 周,日视图时,all-day 不显示 allDaySlot: false, // 周,日视图时,all-day 不显示
slotDuration: '01:00:00', slotDuration: '01:00:00',
slotMinTime: '06:00', slotMinTime: '01:00',
slotMaxTime: '23:00', slotMaxTime: '23:00',
slotLabelInterval: '', slotLabelInterval: '',
scrollTime: false, scrollTime: false,
...@@ -343,7 +343,7 @@ import FullCalendar from '@fullcalendar/vue'; ...@@ -343,7 +343,7 @@ import FullCalendar from '@fullcalendar/vue';
}); });
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册