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
提交
3367c066
提交
3367c066
编写于
4月 09, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
1319bb14
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
144 行增加
和
25 行删除
+144
-25
set-time-form.vue
src/views/followup/plan-manage/dialog/set-time-form.vue
+1
-0
set-time-node.vue
src/views/followup/plan-manage/dialog/set-time-node.vue
+143
-25
未找到文件。
src/views/followup/plan-manage/dialog/set-time-form.vue
浏览文件 @
3367c066
...
@@ -284,6 +284,7 @@
...
@@ -284,6 +284,7 @@
console
.
log
(
val
)
console
.
log
(
val
)
},
},
changeFollowId
(
val
){
changeFollowId
(
val
){
console
.
log
(
val
)
this
.
timeForm
.
followResourceIdStr
=
[]
this
.
timeForm
.
followResourceIdStr
=
[]
val
.
forEach
((
item
)
=>
{
val
.
forEach
((
item
)
=>
{
if
(
this
.
formNoList
.
includes
(
item
)){
if
(
this
.
formNoList
.
includes
(
item
)){
...
...
src/views/followup/plan-manage/dialog/set-time-node.vue
浏览文件 @
3367c066
...
@@ -4,20 +4,34 @@
...
@@ -4,20 +4,34 @@
<div
class=
"add-time-content"
>
<div
class=
"add-time-content"
>
<div
class=
"time-line-scroll"
>
<div
class=
"time-line-scroll"
>
<el-radio-group
v-model=
"activeTab"
@
change=
"changeTab"
size=
"small"
>
<el-radio-button
<!--
<el-row
:gutter=
"20"
v-model=
"activeTab"
>
-->
v-if=
"setTimeNodeList.length > 0"
<!--
<el-col
:span=
"6"
v-if=
"setTimeNodeList.length > 0"
--
>
v-for=
"(item, index) in setTimeNodeList1"
<!--v-for="(item, index) in setTimeNodeList1"-->
:key=
"index"
<!--:key="index"-->
:label=
"index"
>
开始后
{{
String
(
item
.
timeNo
)
+
item
.
timeUnitStr
}}
<!--:label="index">开始后
{{
String
(
item
.
timeNo
)
+
item
.
timeUnitStr
}}
>
<div
@
click=
"changeTab(index)"
class=
"grid-content bg-purple"
></div></el-col>
-->
<i
class=
"el-icon-circle-close-outline"
v-if=
"!isStandedTemplate"
@
click=
"deleteTimeNode(item, index)"
></i>
<!--
</el-row>
-->
</el-radio-button>
<div
:gutter=
"20"
v-model=
"activeTab"
>
<el-radio-button
<div
@
click=
"changeTab(index)"
:span=
"6"
v-if=
"setTimeNodeList.length > 0"
label=
"setNewRef"
v-for=
"(item, index) in setTimeNodeList1"
v-if=
"showSetBtn && !isStandedTemplate"
>
设置随访时间
:key=
"index"
<i
class=
"el-icon-circle-close-outline"
@
click=
"deleteAddNode"
v-if=
"setTimeNodeList.length>0"
></i>
:label=
"index"
>
开始后
{{
String
(
item
.
timeNo
)
+
item
.
timeUnitStr
}}
>
</div>
</el-radio-button>
</div>
</el-radio-group>
<!--
<el-radio-group
v-model=
"activeTab"
@
change=
"changeTab"
size=
"small"
>
-->
<!--
<el-radio-button-->
<!--v-if="setTimeNodeList.length > 0"-->
<!--v-for="(item, index) in setTimeNodeList1"-->
<!--:key="index"-->
<!--:label="index">开始后
{{
String
(
item
.
timeNo
)
+
item
.
timeUnitStr
}}
-->
<!--
<i
class=
"el-icon-circle-close-outline"
v-if=
"!isStandedTemplate"
@
click=
"deleteTimeNode(item, index)"
></i>
-->
<!--
</el-radio-button>
-->
<!--
<el-radio-button-->
<!--label="setNewRef"-->
<!--v-if="showSetBtn && !isStandedTemplate">设置随访时间-->
<!--
<i
class=
"el-icon-circle-close-outline"
@
click=
"deleteAddNode"
v-if=
"setTimeNodeList.length>0"
></i>
-->
<!--
</el-radio-button>
-->
<!--
</el-radio-group>
-->
</div>
</div>
<!--查看时间节点-->
<!--查看时间节点-->
...
@@ -224,9 +238,66 @@
...
@@ -224,9 +238,66 @@
}
else
{
}
else
{
console
.
log
(
this
.
isStandedTemplate
)
console
.
log
(
this
.
isStandedTemplate
)
console
.
log
(
this
.
planId
)
console
.
log
(
this
.
planId
)
// 不是固定模板
// 修改
if
(
!
this
.
isStandedTemplate
&&
!
this
.
planId
){
if
(
this
.
planId
){
if
(
this
.
timeForm
.
remindDay
.
length
>
0
){
console
.
log
(
'修改计划中'
)
// 固定模板
if
(
this
.
isStandedTemplate
){
// 只能保存提交
// this.setTimeNodeList.push(this.timeForm);
console
.
log
(
'addListenSave'
,
this
.
setTimeNodeList
)
this
.
$emit
(
'setTimeNodeListOnCom'
,
this
.
setTimeNodeList
)
this
.
$emit
(
'addListenSave'
,
true
)
}
else
{
// 自定义普通修改
if
(
this
.
timeForm
.
remindDay
.
length
>
0
){
this
.
timeForm
.
remindList
=
[]
this
.
timeForm
.
remindDay
.
forEach
((
item
)
=>
{
this
.
timeForm
.
remindList
.
push
({
startDays
:
item
})
})
}
console
.
log
(
this
.
timeForm
)
console
.
log
(
this
.
timeForm
.
followResourceIdStr
)
if
(
this
.
timeForm
.
pushDay
){
this
.
timeForm
.
pushContentList
=
[]
this
.
timeForm
.
pushContentList
.
push
({
startDays
:
this
.
timeForm
.
pushDay
,
resourceId
:
this
.
timeForm
.
comentMsg
.
id
,
sendContent
:
this
.
timeForm
.
comentMsg
.
header_name
})
}
if
(
this
.
timeForm
.
followResourceId
.
length
>
0
){
this
.
timeForm
.
followupList
=
[]
this
.
timeForm
.
followResourceId
.
forEach
((
item
,
index
)
=>
{
this
.
timeForm
.
followupList
.
push
({
resourceId
:
item
,
sendContent
:
this
.
timeForm
.
followResourceIdStr
?
this
.
timeForm
.
followResourceIdStr
[
index
]:
''
})
})
}
if
(
this
.
showSetBtn
){
this
.
setTimeNodeList
.
push
(
this
.
timeForm
);
}
this
.
$emit
(
'setTimeNodeListOnCom'
,
this
.
setTimeNodeList
)
console
.
log
(
'addListenSave'
,
this
.
setTimeNodeList
)
// 保存按钮发起的校验
if
(
obj
.
type
==
'save'
){
this
.
$emit
(
'addListenSave'
,
true
)
}
else
{
this
.
initNewForm
();
// console.log('初始化过之后activeTab=====> ',this.activeTab)
this
.
timeForm
.
formRef
=
this
.
getNowTime
();
this
.
timeForm
.
isDisabled
=
true
;
}
}
}
else
{
// 新建
if
(
this
.
timeForm
.
remindDay
&&
this
.
timeForm
.
remindDay
.
length
>
0
){
this
.
timeForm
.
remindDay
=
[]
this
.
timeForm
.
remindDay
.
forEach
((
item
)
=>
{
this
.
timeForm
.
remindDay
.
forEach
((
item
)
=>
{
this
.
timeForm
.
remindList
.
push
({
this
.
timeForm
.
remindList
.
push
({
startDays
:
item
startDays
:
item
...
@@ -236,17 +307,19 @@
...
@@ -236,17 +307,19 @@
console
.
log
(
this
.
timeForm
)
console
.
log
(
this
.
timeForm
)
console
.
log
(
this
.
timeForm
.
followResourceIdStr
)
console
.
log
(
this
.
timeForm
.
followResourceIdStr
)
if
(
this
.
timeForm
.
pushDay
){
if
(
this
.
timeForm
.
pushDay
){
this
.
timeForm
.
pushContentList
=
[]
this
.
timeForm
.
pushContentList
.
push
({
this
.
timeForm
.
pushContentList
.
push
({
startDays
:
this
.
timeForm
.
pushDay
,
startDays
:
this
.
timeForm
.
pushDay
,
resourceId
:
this
.
timeForm
.
comentMsg
.
id
,
resourceId
:
this
.
timeForm
.
comentMsg
.
id
,
sendContent
:
this
.
timeForm
.
comentMsg
.
header_name
sendContent
:
this
.
timeForm
.
comentMsg
.
header_name
})
})
}
}
if
(
this
.
timeForm
.
followResourceId
.
length
>
0
){
if
(
this
.
timeForm
.
followResourceId
&&
this
.
timeForm
.
followResourceId
.
length
>
0
){
this
.
timeForm
.
followupList
=
[]
this
.
timeForm
.
followResourceId
.
forEach
((
item
,
index
)
=>
{
this
.
timeForm
.
followResourceId
.
forEach
((
item
,
index
)
=>
{
this
.
timeForm
.
followupList
.
push
({
this
.
timeForm
.
followupList
.
push
({
resourceId
:
item
,
resourceId
:
item
,
sendContent
:
this
.
timeForm
.
followResourceIdStr
[
index
]
sendContent
:
this
.
timeForm
.
followResourceIdStr
?
this
.
timeForm
.
followResourceIdStr
[
index
]:
''
})
})
})
})
}
}
...
@@ -265,13 +338,57 @@
...
@@ -265,13 +338,57 @@
this
.
timeForm
.
formRef
=
this
.
getNowTime
();
this
.
timeForm
.
formRef
=
this
.
getNowTime
();
this
.
timeForm
.
isDisabled
=
true
;
this
.
timeForm
.
isDisabled
=
true
;
}
}
}
else
{
// 是固定模板
// 只能保存提交
// this.setTimeNodeList.push(this.timeForm);
console
.
log
(
'addListenSave'
,
this
.
setTimeNodeList
)
this
.
$emit
(
'setTimeNodeListOnCom'
,
this
.
setTimeNodeList
)
this
.
$emit
(
'addListenSave'
,
true
)
}
}
// 不是固定模板
// if(!this.isStandedTemplate){
// if(this.timeForm.remindDay.length>0){
// this.timeForm.remindDay.forEach((item)=>{
// this.timeForm.remindList.push({
// startDays: item
// })
// })
// }
// console.log(this.timeForm)
// console.log(this.timeForm.followResourceIdStr)
// if(this.timeForm.pushDay){
// this.timeForm.pushContentList.push({
// startDays: this.timeForm.pushDay,
// resourceId: this.timeForm.comentMsg.id,
// sendContent: this.timeForm.comentMsg.header_name
// })
// }
// if(this.timeForm.followResourceId.length>0){
// this.timeForm.followResourceId.forEach((item,index)=>{
// this.timeForm.followupList.push({
// resourceId: item,
// sendContent : this.timeForm.followResourceIdStr[index]
// })
// })
// }
//
// if(this.showSetBtn){
// this.setTimeNodeList.push(this.timeForm);
// }
// this.$emit('setTimeNodeListOnCom',this.setTimeNodeList)
// console.log('addListenSave',this.setTimeNodeList)
// // 保存按钮发起的校验
// if(obj.type=='save'){
// this.$emit('addListenSave',true)
// }else{
// this.initNewForm();
//// console.log('初始化过之后activeTab=====> ',this.activeTab)
// this.timeForm.formRef = this.getNowTime();
// this.timeForm.isDisabled = true;
// }
// }else if(this.planId){
//
// }else{// 是固定模板
// // 只能保存提交
//// this.setTimeNodeList.push(this.timeForm);
// console.log('addListenSave',this.setTimeNodeList)
// this.$emit('setTimeNodeListOnCom',this.setTimeNodeList)
// this.$emit('addListenSave',true)
// }
}
}
...
@@ -363,6 +480,7 @@
...
@@ -363,6 +480,7 @@
this
.
timeForm
.
hasSelected
=
''
;
this
.
timeForm
.
hasSelected
=
''
;
},
},
changeTab
(
val
){
changeTab
(
val
){
debugger
console
.
log
(
'当前的 activeTab '
,
val
)
console
.
log
(
'当前的 activeTab '
,
val
)
this
.
activeTab
=
val
;
this
.
activeTab
=
val
;
console
.
log
(
this
.
setTimeNodeList
)
console
.
log
(
this
.
setTimeNodeList
)
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录