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
提交
ed6d6d84
提交
ed6d6d84
编写于
11月 04, 2021
作者:
dmx_mac
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:服务排班表宽度
上级
189ccc8f
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
79 行增加
和
40 行删除
+79
-40
overviewScheduling.vue
src/views/IM/diagnosis-admin/overviewScheduling.vue
+79
-40
未找到文件。
src/views/IM/diagnosis-admin/overviewScheduling.vue
浏览文件 @
ed6d6d84
<
template
>
<div
v-loading=
"loading"
style=
"width: 100%; position: relative; justifycontent: space-between"
style=
"width: 100%; position: relative; justifycontent: space-between"
>
<div
class=
"header"
>
<el-breadcrumb
separator=
"/"
>
...
...
@@ -10,8 +10,8 @@
</el-breadcrumb>
</div>
<div
class=
"agment-box"
>
<div
ref=
"agmentSelect"
<div
ref=
"agmentSelect"
class=
"serviceSchedule_select"
>
<el-cascader
...
...
@@ -20,7 +20,7 @@
filterable
clearable
:options=
"interfaceOptions"
:props=
"props"
:props=
"props"
placeholder=
"选择科室"
:show-all-levels=
"false"
@
expand-change=
"handleItemChange"
...
...
@@ -42,15 +42,15 @@
查询
</el-button>
</div>
<div
class=
"fullCalendar-show"
style=
"width:100%"
<div
class=
"fullCalendar-show"
style=
"width:
100%"
>
<div
class=
"fullCalendar-show-out"
:style=
"
{
width:getWidth
}"
<div
class=
"fullCalendar-show-out"
:style=
"
{
minWidth: getWidth, maxWidth: getMaxWidth
}"
>
<FullCalendar
<FullCalendar
ref=
"fullCalendar"
:options=
"calendarOptions"
class=
"FullCalendar"
...
...
@@ -113,8 +113,8 @@
eventColor
:
'#fff'
,
eventBackgroundColor
:
'#fff'
,
events
:
[],
slotMinWidth
:
50
,
resourceAreaWidth
:
'5%'
,
slotMinWidth
:
50
,
resourceAreaWidth
:
'5%'
,
allDaySlot
:
false
,
// 周,日视图时,all-day 不显示
slotDuration
:
'00:05:00'
,
slotMinTime
:
'09:00'
,
...
...
@@ -134,15 +134,15 @@
loading
:
false
,
doctorList
:
[],
index
:
0
,
getWidth
:
'100%'
getWidth
:
'100%'
,
getMaxWidth
:
'100%'
,
};
},
watch
:
{},
created
()
{
this
.
getFirstLevelLable
();
},
mounted
()
{
},
mounted
()
{},
methods
:
{
// 通过监听expand-change事件(当展开节点发生变化时触发)获取第二层数据,组装interfaceOptions数据
handleItemChange
(
val
)
{
...
...
@@ -188,10 +188,10 @@
this
.
dateTime
=
value
;
},
search
()
{
if
(
!
this
.
dateTime
||
!
this
.
departmentId
)
{
if
(
!
this
.
dateTime
||
!
this
.
departmentId
)
{
return
this
.
$message
({
message
:
'科室和时间都需要选择哦!'
,
type
:
'warning'
type
:
'warning'
,
});
}
const
params
=
{
...
...
@@ -219,21 +219,57 @@
};
}
);
const
dutyWorkList
=
res
.
data
.
dutyWorkList
.
map
(
(
item
,
index
)
=>
{
return
{
id
:
index
,
resourceId
:
item
.
doctorId
,
end
:
item
.
endTime
,
start
:
item
.
startTime
,
color
:
'#E7F4F5'
,
};
}
);
const
dutyWorkList
=
res
.
data
.
dutyWorkList
.
map
((
item
,
index
)
=>
{
return
{
id
:
index
,
resourceId
:
item
.
doctorId
,
end
:
item
.
endTime
,
start
:
item
.
startTime
,
color
:
'#E7F4F5'
,
};
});
// this.getWidth = this.$refs.agmentSelect.scrollWidth + 'px';
this
.
getWidth
=
3000
+
'px'
;
this
.
calendarOptions
.
events
=
[].
concat
(
dutyRosterPreList
,
dutyWorkList
);
this
.
calendarOptions
.
events
=
[].
concat
(
dutyRosterPreList
,
dutyWorkList
);
// this.calendarOptions.resources.push(
// {id: 1000105468, title: '吴明豪1'},
// {id: 1000205468, title: '吴明豪2'},
// {id: 1000305468, title: '吴明豪3'},
// {id: 1000405468, title: '吴明豪4'},
// {id: 1000505468, title: '吴明豪5'},
// {id: 1000605468, title: '吴明豪5'},
// {id: 1000705468, title: '吴明豪5'},
// {id: 1000805468, title: '吴明豪5'},
// {id: 1000905468, title: '吴明豪5'},
// {id: 1001505468, title: '吴明豪5'},
// {id: 1002505468, title: '吴明豪5'},
// {id: 1003505468, title: '吴明豪5'},
// {id: 1004505468, title: '吴明豪5'},
// {id: 1005505468, title: '吴明豪5'},
// {id: 1006505468, title: '吴明豪5'},
// {id: 1007505468, title: '吴明豪5'},
// {id: 1008505468, title: '吴明豪5'},
// {id: 1009505468, title: '吴明豪5'},
// {id: 1017505468, title: '吴明豪5'},
// {id: 1027505468, title: '吴明豪5'},
// {id: 1037505468, title: '吴明豪5'},
// {id: 1047505468, title: '吴明豪5'},
// {id: 1057505468, title: '吴明豪5'},
// {id: 1067505468, title: '吴明豪5'},
// {id: 1077505468, title: '吴明豪5'},
// {id: 1087505468, title: '吴明豪5'},
// {id: 1097505468, title: '吴明豪5'},
// {id: 1018505468, title: '吴明豪5'},
// {id: 1009505468, title: '吴明豪5'},);
// this.calendarOptions.resources = [{id: 1000105468, title: '吴明豪1'}, {id: 1000205468, title: '吴明豪2'}, {id: 1008505468, title: '吴明豪5'}, {id: 1008505461, title: '吴明豪5'}];
const
calendarApi
=
this
.
$refs
.
fullCalendar
.
getApi
();
this
.
getWidth
=
`
${
this
.
calendarOptions
.
resources
.
length
*
150
}
px`
;
this
.
getMaxWidth
=
`
${
this
.
calendarOptions
.
resources
.
length
*
150
+
100
}
px`
;
calendarApi
.
gotoDate
(
this
.
dateTime
);
console
.
log
(
this
.
calendarOptions
.
resources
);
...
...
@@ -256,7 +292,7 @@
border-radius
:
6px
;
flex
:
3
.8
;
width
:
100%
;
overflow
:hidden
;
overflow
:
hidden
;
.serviceSchedule_select
{
width
:
100%
;
background
:
#fff
;
...
...
@@ -279,7 +315,7 @@
align-items
:
center
;
}
}
.fullCalendar-show
{
.fullCalendar-show
{
width
:
100%
;
overflow
:
scroll
;
// /deep/ .fc-resource{
...
...
@@ -290,12 +326,12 @@
background
:
#fff
;
padding
:
20px
;
}
.fullCalendar-nothing
{
.fullCalendar-nothing
{
background
:
#fff
;
padding
:
20px
;
display
:
flex
;
justify-content
:
center
;
img
{
justify-content
:
center
;
img
{
display
:
flex
;
}
}
...
...
@@ -309,7 +345,7 @@
// width: 100px !important;
// }
}
.w2
{
/
deep
/
.fc-prev-button
{
background
:
#f4f4f5
;
...
...
@@ -317,10 +353,10 @@
border
:
1px
solid
#d9d9d9
;
}
}
/
deep
/
.fc-timegrid-col-frame
{
// width: 100px !important;
background
:
#fff
!
important
;
}
/
deep
/
.fc-timegrid-col-frame
{
// width: 100px !important;
background
:
#fff
!
important
;
}
.w3
{
/
deep
/
.fc-next-button
{
background
:
#f4f4f5
;
...
...
@@ -332,6 +368,9 @@
// position: absolute !important;
left
:
0
!
important
;
}
/
deep
/
.fc-resource
{
width
:
150px
;
}
.agment-box-left
{
flex
:
1
;
height
:
100%
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录