Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
日
日程管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
日程管理
提交
b705da5f
提交
b705da5f
编写于
9月 03, 2024
作者:
钟一霄
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
系统设置→值班配置→编辑Modal的时间配置新增当日/次日开关
上级
e2c228e2
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
384 行增加
和
24181 行删除
+384
-24181
package-lock.json
package-lock.json
+351
-24176
CEditModal.vue
src/components/common/CEditModal.vue
+5
-1
index.vue
src/pages/dutyConfig/index.vue
+28
-4
未找到文件。
package-lock.json
浏览文件 @
b705da5f
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
src/components/common/CEditModal.vue
浏览文件 @
b705da5f
...
@@ -140,6 +140,7 @@
...
@@ -140,6 +140,7 @@
<div
style=
"width: 100%;height: 50%;display: flex;align-items: center;line-height: 18px"
>
<div
style=
"width: 100%;height: 50%;display: flex;align-items: center;line-height: 18px"
>
<Icon
style=
"margin-right: 8px"
type=
"ios-alarm-outline"
/>
<Icon
style=
"margin-right: 8px"
type=
"ios-alarm-outline"
/>
{{
item
.
begin
+
'
~
'
+
item
.
end
}}
{{
item
.
begin
+
'
~
'
+
item
.
end
}}
<Tag
v-if=
"item.morrow == 1"
class=
"ivu-ml-8"
color=
"primary"
>
次日
</Tag>
</div>
</div>
</div>
</div>
<div
<div
...
@@ -163,6 +164,7 @@
...
@@ -163,6 +164,7 @@
<div
style=
"width: 100%;height: 50%;display: flex;align-items: center;line-height: 18px"
>
<div
style=
"width: 100%;height: 50%;display: flex;align-items: center;line-height: 18px"
>
<Icon
style=
"margin-right: 8px"
type=
"ios-alarm-outline"
/>
<Icon
style=
"margin-right: 8px"
type=
"ios-alarm-outline"
/>
{{
item
.
begin
+
'
~
'
+
item
.
end
}}
{{
item
.
begin
+
'
~
'
+
item
.
end
}}
<Tag
v-if=
"item.morrow == 1"
class=
"ivu-ml-8"
color=
"primary"
>
次日
</Tag>
</div>
</div>
</div>
</div>
<div
<div
...
@@ -229,15 +231,17 @@
...
@@ -229,15 +231,17 @@
>
>
<div
style=
"width: 100%;height: 50%;display: flex;align-items: center;line-height: 18px"
>
<div
style=
"width: 100%;height: 50%;display: flex;align-items: center;line-height: 18px"
>
<Icon
style=
"margin-right: 8px"
type=
"ios-alarm-outline"
/>
{{
item
.
begin
+
'
~
'
+
item
.
end
}}
<Icon
style=
"margin-right: 8px"
type=
"ios-alarm-outline"
/>
{{
item
.
begin
+
'
~
'
+
item
.
end
}}
<Tag
v-if=
"item.morrow == 1"
class=
"ivu-ml-8"
color=
"primary"
>
次日
</Tag>
</div>
</div>
</div>
</div>
</span>
</span>
<span
v-if=
"item.type == 'areaTime2'"
>
<span
v-if=
"item.type == 'areaTime2'"
>
<div
v-for=
"(item,index) in formData['sign_
daytime']"
v-if=
"formData['sign_day
time'].length >0"
<div
v-for=
"(item,index) in formData['sign_
night_time']"
v-if=
"formData['sign_night_
time'].length >0"
:key=
"index"
:key=
"index"
>
>
<div
style=
"width: 100%;height: 50%;display: flex;align-items: center;line-height: 18px"
>
<div
style=
"width: 100%;height: 50%;display: flex;align-items: center;line-height: 18px"
>
<Icon
style=
"margin-right: 8px"
type=
"ios-alarm-outline"
/>
{{
item
.
begin
+
'
~
'
+
item
.
end
}}
<Icon
style=
"margin-right: 8px"
type=
"ios-alarm-outline"
/>
{{
item
.
begin
+
'
~
'
+
item
.
end
}}
<Tag
v-if=
"item.morrow == 1"
class=
"ivu-ml-8"
color=
"primary"
>
次日
</Tag>
</div>
</div>
</div>
</div>
</span>
</span>
...
...
src/pages/dutyConfig/index.vue
浏览文件 @
b705da5f
...
@@ -8,14 +8,22 @@
...
@@ -8,14 +8,22 @@
format=
"HH:mm"
format=
"HH:mm"
placeholder=
"请选择时间"
placeholder=
"请选择时间"
placement=
"bottom-end"
placement=
"bottom-end"
style=
"width:
100%
;"
style=
"width:
calc(100% - 70px)
;"
type=
"timerange"
type=
"timerange"
/>
/>
<i-switch
class=
"ivu-ml-8"
v-model=
"daylightHours.morrow"
size=
"large"
:true-value=
"1"
:false-value=
"0"
>
<template
#open
>
<span>
次日
</span>
</
template
>
<
template
#close
>
<span>
当日
</span>
</
template
>
</i-switch>
<
template
#footer
>
<
template
#footer
>
<Button
@
click=
"()=>daylightHours.show = false"
>
取消
</Button>
<Button
@
click=
"()=>daylightHours.show = false"
>
取消
</Button>
<Button
:disabled=
"!daylightHours.value.length >0"
type=
"primary"
@
click=
"()=>
{
<Button
:disabled=
"!daylightHours.value.length >0"
type=
"primary"
@
click=
"()=>
{
// defaultFormData.sign_daytime.push({begin:daylightHours.value[0],end:daylightHours.value[1]})
// defaultFormData.sign_daytime.push({begin:daylightHours.value[0],end:daylightHours.value[1]})
$refs.ceditmodal.formData.sign_daytime.push({begin:daylightHours.value[0],end:daylightHours.value[1]}) //子组件同步坐标
$refs.ceditmodal.formData.sign_daytime.push({begin:daylightHours.value[0],end:daylightHours.value[1]
,morrow:daylightHours.morrow
}) //子组件同步坐标
daylightHours.show = false
daylightHours.show = false
$refs.ceditmodal.$refs.form.validate()
$refs.ceditmodal.$refs.form.validate()
}">确定
}">确定
...
@@ -29,14 +37,22 @@
...
@@ -29,14 +37,22 @@
format=
"HH:mm"
format=
"HH:mm"
placeholder=
"请选择时间"
placeholder=
"请选择时间"
placement=
"bottom-end"
placement=
"bottom-end"
style=
"width:
100%
;"
style=
"width:
calc(100% - 70px)
;"
type=
"timerange"
type=
"timerange"
/>
/>
<i-switch
class=
"ivu-ml-8"
v-model=
"eveningTime.morrow"
size=
"large"
:true-value=
"1"
:false-value=
"0"
>
<
template
#open
>
<span>
次日
</span>
</
template
>
<
template
#close
>
<span>
当日
</span>
</
template
>
</i-switch>
<
template
#footer
>
<
template
#footer
>
<Button
@
click=
"()=>eveningTime.show = false"
>
取消
</Button>
<Button
@
click=
"()=>eveningTime.show = false"
>
取消
</Button>
<Button
:disabled=
"!eveningTime.value.length > 0"
type=
"primary"
@
click=
"()=>
{
<Button
:disabled=
"!eveningTime.value.length > 0"
type=
"primary"
@
click=
"()=>
{
// defaultFormData.sign_night_time.push({begin:eveningTime.value[0],end:eveningTime.value[1]})
// defaultFormData.sign_night_time.push({begin:eveningTime.value[0],end:eveningTime.value[1]})
$refs.ceditmodal.formData.sign_night_time.push({begin:eveningTime.value[0],end:eveningTime.value[1]}) //子组件同步坐标
$refs.ceditmodal.formData.sign_night_time.push({begin:eveningTime.value[0],end:eveningTime.value[1]
,morrow:eveningTime.morrow
}) //子组件同步坐标
eveningTime.show = false
eveningTime.show = false
$refs.ceditmodal.$refs.form.validate()
$refs.ceditmodal.$refs.form.validate()
}">确定
}">确定
...
@@ -182,10 +198,12 @@ export default {
...
@@ -182,10 +198,12 @@ export default {
return
{
return
{
daylightHours
:
{
daylightHours
:
{
show
:
false
,
show
:
false
,
morrow
:
0
,
value
:
[]
value
:
[]
},
},
eveningTime
:
{
eveningTime
:
{
show
:
false
,
show
:
false
,
morrow
:
0
,
value
:
[]
value
:
[]
},
},
isEdit
:
false
,
isEdit
:
false
,
...
@@ -400,11 +418,13 @@ export default {
...
@@ -400,11 +418,13 @@ export default {
setTime2
()
{
setTime2
()
{
//触发晚上签到时间
//触发晚上签到时间
this
.
eveningTime
.
show
=
true
this
.
eveningTime
.
show
=
true
this
.
eveningTime
.
morrow
=
0
this
.
eveningTime
.
value
=
[]
this
.
eveningTime
.
value
=
[]
},
},
setTime1
()
{
setTime1
()
{
//触发白天签到时间
//触发白天签到时间
this
.
daylightHours
.
show
=
true
this
.
daylightHours
.
show
=
true
this
.
daylightHours
.
morrow
=
0
this
.
daylightHours
.
value
=
[]
this
.
daylightHours
.
value
=
[]
},
},
setMap
()
{
setMap
()
{
...
@@ -505,12 +525,14 @@ export default {
...
@@ -505,12 +525,14 @@ export default {
return
{
return
{
begin
:
cur
.
Begin
,
begin
:
cur
.
Begin
,
end
:
cur
.
End
,
end
:
cur
.
End
,
morrow
:
cur
.
Morrow
}
}
}),
}),
sign_night_time
:
JSON
.
parse
(
res
.
sign_night_time
).
map
(
cur
=>
{
sign_night_time
:
JSON
.
parse
(
res
.
sign_night_time
).
map
(
cur
=>
{
return
{
return
{
begin
:
cur
.
Begin
,
begin
:
cur
.
Begin
,
end
:
cur
.
End
,
end
:
cur
.
End
,
morrow
:
cur
.
Morrow
}
}
}),
}),
attandence_area
:
JSON
.
parse
(
res
.
attendance_area
),
attandence_area
:
JSON
.
parse
(
res
.
attendance_area
),
...
@@ -550,12 +572,14 @@ export default {
...
@@ -550,12 +572,14 @@ export default {
return
{
return
{
begin
:
cur
.
Begin
,
begin
:
cur
.
Begin
,
end
:
cur
.
End
,
end
:
cur
.
End
,
morrow
:
cur
.
Morrow
,
}
}
}),
}),
sign_night_time
:
JSON
.
parse
(
res
.
sign_night_time
).
map
(
cur
=>
{
sign_night_time
:
JSON
.
parse
(
res
.
sign_night_time
).
map
(
cur
=>
{
return
{
return
{
begin
:
cur
.
Begin
,
begin
:
cur
.
Begin
,
end
:
cur
.
End
,
end
:
cur
.
End
,
morrow
:
cur
.
Morrow
,
}
}
}),
}),
attandence_area
:
JSON
.
parse
(
res
.
attendance_area
),
attandence_area
:
JSON
.
parse
(
res
.
attendance_area
),
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录