Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
daae0a48
提交
daae0a48
编写于
4月 08, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
01a83ecf
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
42 行增加
和
11 行删除
+42
-11
set-time-form.vue
src/views/followup/plan-manage/dialog/set-time-form.vue
+14
-1
set-time-node.vue
src/views/followup/plan-manage/dialog/set-time-node.vue
+28
-10
未找到文件。
src/views/followup/plan-manage/dialog/set-time-form.vue
浏览文件 @
daae0a48
...
...
@@ -74,6 +74,7 @@
v-model=
"timeForm.followResourceId"
multiple
:multiple-limit=
2
@
change=
"changeFollowId"
placeholder=
"请选择"
>
<el-option
v-for=
"item in formOptions"
...
...
@@ -140,7 +141,7 @@
}
},
saveValiedBegin
(
val
){
console
.
log
(
'+++
保存按钮子组件的校验'
,
val
)
console
.
log
(
'
保存按钮子组件的校验'
,
val
)
console
.
log
(
this
.
timeForm
.
formRef
)
if
(
val
&&
this
.
timeForm
.
formRef
){
this
.
$refs
[
this
.
timeForm
.
formRef
].
validate
((
valid
)
=>
{
...
...
@@ -154,6 +155,18 @@
changeRemindDay
(
val
){
console
.
log
(
val
)
},
changeFollowId
(
val
){
console
.
log
(
val
)
this
.
formOptions
.
forEach
((
item1
)
=>
{
console
.
log
(
'item1'
,
item1
)
val
.
forEach
((
item2
)
=>
{
console
.
log
(
'item2'
,
item2
)
if
(
item2
==
item1
.
scaleNo
){
this
.
timeForm
.
followResourceIdStr
.
push
(
item1
.
name
)
}
})
})
},
getNowTime
()
{
const
date
=
new
Date
();
const
year
=
date
.
getFullYear
();
...
...
src/views/followup/plan-manage/dialog/set-time-node.vue
浏览文件 @
daae0a48
...
...
@@ -214,21 +214,26 @@
})
})
}
console
.
log
(
this
.
timeForm
.
followResourceIdStr
)
if
(
this
.
timeForm
.
pushDay
){
this
.
timeForm
.
pushContentList
.
push
({
startDays
:
this
.
timeForm
.
pushDay
,
resourceId
:
this
.
timeForm
.
comentMsg
.
id
resourceId
:
this
.
timeForm
.
comentMsg
.
id
,
sendContent
:
this
.
timeForm
.
comentMsg
.
header_name
})
}
if
(
this
.
timeForm
.
followResourceId
.
length
>
0
){
this
.
timeForm
.
followResourceId
.
forEach
((
item
)
=>
{
this
.
timeForm
.
followResourceId
.
forEach
((
item
,
index
)
=>
{
this
.
timeForm
.
followupList
.
push
({
resourceId
:
item
resourceId
:
item
,
sendContent
:
this
.
timeForm
.
followResourceIdStr
[
index
]
})
})
}
if
(
this
.
showSetBtn
){
this
.
setTimeNodeList
.
push
(
this
.
timeForm
);
}
this
.
$emit
(
'setTimeNodeListOnCom'
,
this
.
setTimeNodeList
)
// 保存按钮发起的校验
if
(
obj
.
type
==
'save'
){
...
...
@@ -276,12 +281,24 @@
// 验证是否重复
checkTimeIsRepeat
(){
this
.
timeIsRepeat
=
false
;
console
.
log
(
'+++'
,
this
.
setTimeNodeList
)
console
.
log
(
'+++'
,
this
.
timeForm
.
timeNo
)
if
(
this
.
setTimeNodeList
.
length
>
0
){
if
(
this
.
showSetBtn
){
this
.
setTimeNodeList
.
forEach
(
item
=>
{
if
(
item
.
timeNo
==
this
.
timeForm
.
timeNo
){
this
.
timeIsRepeat
=
true
;
}
})
}
else
{
this
.
setTimeNodeList
.
forEach
((
item
,
index
)
=>
{
if
(
index
>
0
){
if
(
item
.
timeNo
==
this
.
timeForm
.
timeNo
){
this
.
timeIsRepeat
=
true
;
}
}
})
}
}
},
// 初始化新的表单
...
...
@@ -300,6 +317,7 @@
pushDay
:
''
,
followResourceId
:
[],
comentMsg
:
{},
followResourceIdStr
:
[],
totalNumber
:
0
,
wechatPatientNum
:
0
,
messagePatientNum
:
0
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录