Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
6eb03363
提交
6eb03363
编写于
4月 08, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
635ea64f
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
14 行删除
+12
-14
set-time-form.vue
src/views/followup/plan-manage/dialog/set-time-form.vue
+3
-3
set-time-node.vue
src/views/followup/plan-manage/dialog/set-time-node.vue
+9
-11
未找到文件。
src/views/followup/plan-manage/dialog/set-time-form.vue
浏览文件 @
6eb03363
...
@@ -114,9 +114,9 @@
...
@@ -114,9 +114,9 @@
}
}
return
{
return
{
isSelectCartoon
:
false
,
isSelectCartoon
:
false
,
followResourceId
:
''
,
//
followResourceId: '',
pushDay
:
''
,
//
pushDay: '',
remindDay
:
''
,
//
remindDay: '',
timeFormRules
:
{
timeFormRules
:
{
timeNo
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
},{
validator
:
checkDay
,
trigger
:
'blur'
}],
timeNo
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
},{
validator
:
checkDay
,
trigger
:
'blur'
}],
timeUnit
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
}],
timeUnit
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
}],
...
...
src/views/followup/plan-manage/dialog/set-time-node.vue
浏览文件 @
6eb03363
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
},
},
data
()
{
data
()
{
return
{
return
{
//
timeIsRepeat: false, //验证时间是否重复
timeIsRepeat
:
false
,
//验证时间是否重复
valBegin
:
false
,
valBegin
:
false
,
saveValiedBegin
:
false
,
saveValiedBegin
:
false
,
isSelectCartoon
:
false
,
isSelectCartoon
:
false
,
...
@@ -194,8 +194,10 @@
...
@@ -194,8 +194,10 @@
this
.
valBegin
=
false
this
.
valBegin
=
false
// 校验通过了
// 校验通过了
if
(
obj
.
valid
)
{
if
(
obj
.
valid
)
{
console
.
log
(
this
.
checkTimeIsRepeat
())
if
(
this
.
checkTimeIsRepeat
()){
this
.
checkTimeIsRepeat
()
if
(
this
.
timeIsRepeat
){
this
.
$notify
.
success
({
this
.
$notify
.
success
({
title
:
'时间节点重复'
,
title
:
'时间节点重复'
,
message
:
'时间节点重复'
,
message
:
'时间节点重复'
,
...
@@ -251,7 +253,8 @@ console.log(this.checkTimeIsRepeat())
...
@@ -251,7 +253,8 @@ console.log(this.checkTimeIsRepeat())
// 点击 新增时间节点
// 点击 新增时间节点
addNewNode
()
{
addNewNode
()
{
console
.
log
(
'是否新增一个新的时间节点 '
+
(
this
.
activeTab
==
'setNewRef'
))
console
.
log
(
'是否新增一个新的时间节点 '
+
(
this
.
activeTab
==
'setNewRef'
))
if
(
this
.
checkTimeIsRepeat
()){
this
.
checkTimeIsRepeat
()
if
(
this
.
timeIsRepeat
){
this
.
$notify
.
success
({
this
.
$notify
.
success
({
title
:
'时间节点重复'
,
title
:
'时间节点重复'
,
message
:
'时间节点重复'
,
message
:
'时间节点重复'
,
...
@@ -272,19 +275,14 @@ console.log(this.checkTimeIsRepeat())
...
@@ -272,19 +275,14 @@ console.log(this.checkTimeIsRepeat())
},
},
// 验证是否重复
// 验证是否重复
checkTimeIsRepeat
(){
checkTimeIsRepeat
(){
let
flag
;
this
.
timeIsRepeat
=
false
;
if
(
this
.
setTimeNodeList
.
length
>
0
){
if
(
this
.
setTimeNodeList
.
length
>
0
){
this
.
setTimeNodeList
.
forEach
(
item
=>
{
this
.
setTimeNodeList
.
forEach
(
item
=>
{
if
(
item
.
timeNo
==
this
.
timeForm
.
timeNo
){
if
(
item
.
timeNo
==
this
.
timeForm
.
timeNo
){
flag
=
true
;
this
.
timeIsRepeat
=
true
;
}
else
{
flag
=
false
;
}
}
})
})
}
else
{
flag
=
false
;
}
}
return
flag
;
},
},
// 初始化新的表单
// 初始化新的表单
initNewForm
(){
initNewForm
(){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录