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
提交
a8f37e25
提交
a8f37e25
编写于
4月 09, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
6d25fae7
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
52 行增加
和
9 行删除
+52
-9
select-cartoon.vue
src/views/followup/plan-manage/dialog/select-cartoon.vue
+52
-5
new-plan.vue
src/views/followup/plan-manage/new-plan.vue
+0
-2
plan-modify.vue
src/views/followup/plan-manage/plan-modify.vue
+0
-2
未找到文件。
src/views/followup/plan-manage/dialog/select-cartoon.vue
浏览文件 @
a8f37e25
...
...
@@ -20,7 +20,14 @@
:value=
"item.no"
>
</el-option>
</el-select>
<el-select
v-if=
"showSecond"
v-model=
"typeId"
placeholder=
"请选择类目"
size=
"small"
style=
"margin-left:20px;"
>
<el-select
v-if=
"showSecond"
v-model=
"typeId"
@
change=
"changeType"
placeholder=
"请选择类目"
size=
"small"
style=
"margin-left:20px;"
>
<el-option
v-for=
"(item,index) in typeList"
:key=
"index"
...
...
@@ -57,10 +64,11 @@
hasSelected
:
''
,
closeStatus
:
false
,
},
saasDisease
:
''
,
// 高血压标识
showSecond
:
false
,
//是否显示分类
showCartoonDialog
:
true
,
cartoonList
:
[],
patientTypeModels
:
[],
diseaseId
:
''
,
//所选疾病id
typeId
:
''
,
//所选分类id
typeList
:
[
// 分类列表
...
...
@@ -88,9 +96,17 @@
}).
then
(
res
=>
{
this
.
diseaseOptions
=
this
.
diseaseOptions
.
concat
(
res
.
data
.
P004
)
this
.
typeList
=
this
.
typeList
.
concat
(
res
.
data
.
P036
)
this
.
patientTypeModels
=
[...
res
.
data
.
P004
,...
res
.
data
.
P036
]
})
getAllEducationComtent
({}).
then
(
res
=>
{
this
.
cartoonList
=
[...
res
.
data
.
picapEducationComtentsForHypertension
,...
res
.
data
.
picapEducationComtentsForNotHypertension
]
this
.
picapEducationComtentsForHypertension
=
res
.
data
.
picapEducationComtentsForHypertension
;
this
.
picapEducationComtentsForNotHypertension
=
res
.
data
.
picapEducationComtentsForNotHypertension
;
this
.
allList
=
[...
this
.
picapEducationComtentsForHypertension
,...
this
.
picapEducationComtentsForNotHypertension
];
this
.
cartoonList
=
this
.
allList
this
.
articleTable
=
this
.
picapEducationComtentsForNotHypertension
})
}
}
...
...
@@ -100,15 +116,46 @@
},
methods
:
{
changeDisease
(
val
){
console
.
log
(
val
)
this
.
saasDisease
=
val
if
(
!
val
){
console
.
log
(
'选择了全部'
)
this
.
cartoonList
=
this
.
allList
this
.
showSecond
=
false
}
else
if
(
val
===
1
){
this
.
showSecond
=
true
this
.
articleTable
=
this
.
picapEducationComtentsForHypertension
this
.
reduceArticleArray
(
this
.
articleTable
,
val
)
this
.
cartoonList
=
this
.
articleTable
}
else
{
this
.
showSecond
=
false
this
.
articleTable
=
this
.
picapEducationComtentsForNotHypertension
this
.
cartoonList
=
this
.
reduceArticleArray
(
this
.
articleTable
,
val
)
}
},
changeType
(
id
){
if
(
!
id
&&
this
.
saasDisease
===
1
){
// 选中全部时。
this
.
cartoonList
=
this
.
picapEducationComtentsForHypertension
}
else
{
this
.
cartoonList
=
this
.
reduceArticleArray
(
this
.
articleTable
,
id
);
}
},
reduceArticleArray
(
articleTable
,
id
){
let
array
=
[];
let
count
=
0
;
for
(
let
k
=
0
;
k
<
this
.
patientTypeModels
.
length
;
k
++
){
if
(
this
.
patientTypeModels
[
k
].
no
>
count
){
count
=
this
.
patientTypeModels
[
k
].
no
;
}
}
for
(
let
j
=
0
;
j
<=
count
;
j
++
){
array
[
j
]
=
[];
}
for
(
let
i
=
0
;
i
<
articleTable
.
length
;
i
++
){
let
coun
=
this
.
showSecond
?
articleTable
[
i
].
education_classify
:
articleTable
[
i
].
type
;
if
(
coun
&&
coun
<=
count
){
array
[
coun
].
push
(
articleTable
[
i
]);
}
}
return
array
[
id
]
},
clickClose
()
{
this
.
$emit
(
'closeSelectCartoon'
,
this
.
sendObj
)
...
...
src/views/followup/plan-manage/new-plan.vue
浏览文件 @
a8f37e25
...
...
@@ -124,7 +124,6 @@
data
()
{
return
{
checkForm
:
false
,
// saveStatus: false,
/*面包屑配置*/
curmbFirst
:
'随访管理'
,
curmbSecond
:
'计划管理'
,
...
...
@@ -212,7 +211,6 @@
message
:
res
.
message
,
showClose
:
false
});
// this.saveStatus = false
}
})
// console.log('保存setTimeNodeList1',this.$refs.getTimeNodeList.setTimeNodeList1)
...
...
src/views/followup/plan-manage/plan-modify.vue
浏览文件 @
a8f37e25
...
...
@@ -95,7 +95,6 @@
checkForm
:
false
,
patientIdList
:
[],
//获取的病人列表
hasSelectedList
:
[],
//已选居民
// saveStatus: false,
/*面包屑配置*/
curmbFirst
:
'随访管理'
,
curmbSecond
:
'计划管理'
,
...
...
@@ -240,7 +239,6 @@
message
:
res
.
message
,
showClose
:
false
});
// this.saveStatus = false
}
})
}
else
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录