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
提交
a79fbc55
提交
a79fbc55
编写于
11月 18, 2021
作者:
qian.jie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
排班设置可选时间
上级
5b5f93b2
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
11 行增加
和
5 行删除
+11
-5
diagnosis-time.vue
src/components/common/diagnosis-time.vue
+10
-4
overviewScheduling.vue
src/views/IM/diagnosis-admin/overviewScheduling.vue
+1
-1
未找到文件。
src/components/common/diagnosis-time.vue
浏览文件 @
a79fbc55
...
@@ -143,10 +143,12 @@
...
@@ -143,10 +143,12 @@
chooseTimeIndex
:
1000
,
chooseTimeIndex
:
1000
,
pickerOptionsStart
:
{
pickerOptionsStart
:
{
disabledDate
:
(
time
)
=>
{
disabledDate
:
(
time
)
=>
{
const
month
=
28
*
24
*
60
*
60
*
1000
;
// 限定一个日期范围,这里是28天
const
now
=
new
Date
();
const
day
=
now
.
getDay
();
const
oneDayTime
=
24
*
60
*
60
*
1000
;
const
SundayTime
=
((
7
-
day
)
*
oneDayTime
)
+
21
*
24
*
60
*
60
*
1000
;
return
(
return
(
time
.
getTime
()
+
1
*
24
*
60
*
60
*
1000
<
new
Date
()
||
time
.
getTime
()
+
1
*
24
*
60
*
60
*
1000
<
new
Date
()
||
time
.
getTime
()
>
new
Date
().
getTime
()
+
SundayTime
time
.
getTime
()
>
new
Date
().
getTime
()
+
month
);
);
},
},
},
},
...
@@ -177,7 +179,11 @@
...
@@ -177,7 +179,11 @@
this
.
getLeisureTime
(
this
.
chooseTime
);
this
.
getLeisureTime
(
this
.
chooseTime
);
},
},
nextChangeData
()
{
nextChangeData
()
{
const
maxDate
=
dayjs
(
new
Date
()).
add
(
27
,
'day'
).
unix
();
const
now
=
new
Date
();
const
day
=
now
.
getDay
();
const
SundayTime
=
7
-
day
;
console
.
log
(
SundayTime
,
'SundayTime'
);
const
maxDate
=
dayjs
(
new
Date
()).
add
((
SundayTime
+
20
),
'day'
).
unix
();
if
(
dayjs
(
this
.
chooseTime
).
unix
()
>
maxDate
)
{
if
(
dayjs
(
this
.
chooseTime
).
unix
()
>
maxDate
)
{
this
.
$message
({
this
.
$message
({
message
:
'时间不能超过28天'
,
message
:
'时间不能超过28天'
,
...
...
src/views/IM/diagnosis-admin/overviewScheduling.vue
浏览文件 @
a79fbc55
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
],
],
// timeZone: 'UTC',
// timeZone: 'UTC',
locale
:
'zh-cn'
,
locale
:
'zh-cn'
,
aspectRatio
:
3
,
// 设置日历单元格宽度与高度的比例。
aspectRatio
:
2.8
,
// 设置日历单元格宽度与高度的比例。
schedulerLicenseKey
:
'CC-Attribution-NonCommercial-NoDerivatives'
,
schedulerLicenseKey
:
'CC-Attribution-NonCommercial-NoDerivatives'
,
initialView
:
'resourceTimeGridDay'
,
initialView
:
'resourceTimeGridDay'
,
resources
:
[],
resources
:
[],
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录