Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jingqi.liu
pica-admin-consultation
提交
da9d1d71
提交
da9d1d71
编写于
11月 01, 2021
作者:
qian.jie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新页面添加
上级
35474710
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
38 行增加
和
111 行删除
+38
-111
overviewScheduling.vue
src/views/IM/diagnosis-admin/overviewScheduling.vue
+38
-111
未找到文件。
src/views/IM/diagnosis-admin/overviewScheduling.vue
浏览文件 @
da9d1d71
...
@@ -39,11 +39,21 @@
...
@@ -39,11 +39,21 @@
查询
查询
</el-button>
</el-button>
</div>
</div>
<FullCalendar
<div
ref=
"fullCalendar"
class=
"fullCalendar-show"
:options=
"calendarOptions"
>
class=
"FullCalendar"
<FullCalendar
/>
ref=
"fullCalendar"
:options=
"calendarOptions"
class=
"FullCalendar"
/>
</div>
<!--
<div
v-else
class=
"fullCalendar-nothing"
>
<img
src=
"../../../assets/image/nothingData.png"
alt=
""
>
</div>
-->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -96,20 +106,10 @@
...
@@ -96,20 +106,10 @@
timeZone
:
'UTC'
,
timeZone
:
'UTC'
,
schedulerLicenseKey
:
'CC-Attribution-NonCommercial-NoDerivatives'
,
schedulerLicenseKey
:
'CC-Attribution-NonCommercial-NoDerivatives'
,
initialView
:
'resourceTimeGridDay'
,
initialView
:
'resourceTimeGridDay'
,
resources
:
[
resources
:
[],
// { id: 'a', title: 'Room A' },
// { id: 'b', title: 'Room B'},
// { id: 'c', title: 'Room C' },
// { id: 'd', title: 'Room D' }
],
eventColor
:
'#fff'
,
eventColor
:
'#fff'
,
eventBackgroundColor
:
'#fff'
,
eventBackgroundColor
:
'#fff'
,
events
:
[
events
:
[],
// { id: '1', resourceId: 'a', start: '2021-11-01 14:30:00', end: '2021-11-01 15:30:00', color:'#aaccee' },
// { id: '2', resourceId: 'b', start: '2021-10-30 14:30:00', end: '2021-10-30 15:30:00', color:'#aaccee' },
// { id: '3', resourceId: 'c', start: '2021-10-30 14:30:00', end: '2021-10-30 15:30:00', color:'#aaccee' },
// { id: '4', resourceId: 'd', start: '2021-10-30 14:30:00', end: '2021-10-30 15:30:00', color:'#aaccee' },
],
allDaySlot
:
false
,
// 周,日视图时,all-day 不显示
allDaySlot
:
false
,
// 周,日视图时,all-day 不显示
slotDuration
:
'00:05:00'
,
slotDuration
:
'00:05:00'
,
slotMinTime
:
'09:00'
,
slotMinTime
:
'09:00'
,
...
@@ -123,7 +123,6 @@
...
@@ -123,7 +123,6 @@
meridiem
:
'short'
,
meridiem
:
'short'
,
hour12
:
false
,
// 设置时间为24小时
hour12
:
false
,
// 设置时间为24小时
},
},
gotoDate
:
this
.
gotoDate
},
},
workingTicketVisible
:
false
,
// 工作表票详情页面
workingTicketVisible
:
false
,
// 工作表票详情页面
scrollerHeight
:
0
,
scrollerHeight
:
0
,
...
@@ -137,38 +136,6 @@
...
@@ -137,38 +136,6 @@
this
.
getFirstLevelLable
();
this
.
getFirstLevelLable
();
},
},
mounted
()
{
mounted
()
{
// this.calendarOptions.events = [
// {
// end: '2021-10-30 10:15:00',
// start: '2021-10-30 10:00:00',
// color:'green',
// resourceId: 1007393527,
// },
// {
// end: '2021-10-30 12:30:00',
// start: '2021-10-30 11:30:00',
// color:'green',
// resourceId: 1007393527,
// },
// {
// end: '2021-10-30 10:15:00',
// start: '2021-10-30 10:00:00',
// color:'green',
// resourceId: 1007393588,
// },
// {
// end: '2021-10-30 10:15:00',
// start: '2021-10-30 10:00:00',
// color:'green',
// resourceId: 1000005462,
// },
// {
// end: '2021-10-30 10:15:00',
// start: '2021-10-30 10:00:00',
// color:'green',
// resourceId: 100925427,
// },
// ];
},
},
methods
:
{
methods
:
{
// 通过监听expand-change事件(当展开节点发生变化时触发)获取第二层数据,组装interfaceOptions数据
// 通过监听expand-change事件(当展开节点发生变化时触发)获取第二层数据,组装interfaceOptions数据
...
@@ -212,11 +179,9 @@
...
@@ -212,11 +179,9 @@
this
.
departmentId
=
value
[
1
];
this
.
departmentId
=
value
[
1
];
},
},
getNowDate
(
value
)
{
getNowDate
(
value
)
{
console
.
log
(
value
,
'value'
);
this
.
dateTime
=
value
;
this
.
dateTime
=
value
;
},
},
search
()
{
search
()
{
// this.calendarOptions.gotoDate(this.dateTime);
const
params
=
{
const
params
=
{
dateTime
:
this
.
dateTime
||
null
,
dateTime
:
this
.
dateTime
||
null
,
departmentId
:
this
.
departmentId
||
null
,
departmentId
:
this
.
departmentId
||
null
,
...
@@ -238,74 +203,18 @@
...
@@ -238,74 +203,18 @@
resourceId
:
item
.
doctorId
,
resourceId
:
item
.
doctorId
,
end
:
item
.
endTime
,
end
:
item
.
endTime
,
start
:
item
.
startTime
,
start
:
item
.
startTime
,
color
:
'
#0d9078
'
,
color
:
'
#FFEDE9
'
,
};
};
}
}
);
);
// this.calendarOptions.events = [
// {
// end: '2021-10-30 10:15:00',
// start: '2021-10-30 10:00:00',
// color:'green',
// resourceId: 1007393527,
// },
// {
// end: '2021-10-30 12:30:00',
// start: '2021-10-30 11:30:00',
// color:'green',
// resourceId: 1007393527,
// },
// {
// end: '2021-10-30 10:15:00',
// start: '2021-10-30 10:00:00',
// color:'green',
// resourceId: 1007393588,
// },
// {
// end: '2021-10-30 10:15:00',
// start: '2021-10-30 10:00:00',
// color:'green',
// resourceId: 1000005462,
// },
// {
// end: '2021-10-30 10:15:00',
// start: '2021-10-30 10:00:00',
// color:'green',
// resourceId: 100925427,
// },
// ];
const
calendarApi
=
this
.
$refs
.
fullCalendar
.
getApi
();
const
calendarApi
=
this
.
$refs
.
fullCalendar
.
getApi
();
calendarApi
.
gotoDate
(
'2021-11-01'
);
calendarApi
.
gotoDate
(
this
.
dateTime
);
// this.initialDate = '2021-10-30';
console
.
log
(
this
.
calendarOptions
.
resources
);
console
.
log
(
this
.
calendarOptions
.
resources
);
console
.
log
(
this
.
calendarOptions
.
events
);
console
.
log
(
this
.
calendarOptions
.
events
);
// this.handleInitData(res.data.dutyWorkList);
}
}
});
});
},
},
/**
* 点击日历日程事件
*
* info: 事件信息
* event是日程(事件)对象
* jsEvent是个javascript事件
* view是当前视图对象。
*/
handleInitData
(
data
)
{
var
newDate
=
[];
newDate
=
data
;
newDate
.
forEach
((
item
)
=>
{
const
dataObj
=
{};
dataObj
[
'resourceId'
]
=
item
.
doctorId
;
dataObj
[
'end'
]
=
item
.
endTime
;
dataObj
[
'start'
]
=
item
.
startTime
;
dataObj
[
'color'
]
=
'green'
;
this
.
calendarOptions
.
events
.
push
(
dataObj
);
// debugger;
});
console
.
log
(
this
.
calendarOptions
.
events
,
'this.calendarOptions.events'
);
},
},
},
};
};
</
script
>
</
script
>
...
@@ -343,12 +252,27 @@
...
@@ -343,12 +252,27 @@
align-items
:
center
;
align-items
:
center
;
}
}
}
}
.fullCalendar-show
{
// max-width: 300px !important;
overflow-x
:scroll
;
}
.FullCalendar
{
.FullCalendar
{
background
:
#fff
;
background
:
#fff
;
padding
:
20px
;
padding
:
20px
;
}
}
.fullCalendar-nothing
{
background
:
#fff
;
padding
:
20px
;
display
:
flex
;
justify-content
:
center
;
img
{
display
:
flex
;
}
}
}
}
/
deep
/
.fc-col-header-cell
{
max-width
:
80px
!
important
;
}
.w2
{
.w2
{
/
deep
/
.fc-prev-button
{
/
deep
/
.fc-prev-button
{
background
:
#f4f4f5
;
background
:
#f4f4f5
;
...
@@ -356,6 +280,9 @@
...
@@ -356,6 +280,9 @@
border
:
1px
solid
#d9d9d9
;
border
:
1px
solid
#d9d9d9
;
}
}
}
}
/
deep
/
.fc-timegrid-col-frame
{
background
:
#fff
!
important
;
}
.w3
{
.w3
{
/
deep
/
.fc-next-button
{
/
deep
/
.fc-next-button
{
background
:
#f4f4f5
;
background
:
#f4f4f5
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录