Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
3fcceb98
提交
3fcceb98
编写于
4月 18, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
adef9237
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
33 行增加
和
69 行删除
+33
-69
form-template.vue
src/views/followup/record-manage/form-template.vue
+1
-0
stroke.vue
src/views/followup/record-manage/patient-scale/stroke.vue
+32
-69
未找到文件。
src/views/followup/record-manage/form-template.vue
浏览文件 @
3fcceb98
...
...
@@ -70,6 +70,7 @@
this
.
showBtn
=
false
;
console
.
log
(
this
.
$route
.
query
);
this
.
resourceId
=
this
.
$route
.
query
.
resourceId
;
this
.
resourceId
=
'SCALE0003'
// 0003 脑卒中、0002 糖尿病、0001 高血压
// axios({
...
...
src/views/followup/record-manage/patient-scale/stroke.vue
浏览文件 @
3fcceb98
...
...
@@ -48,6 +48,37 @@
import
{
submitScale
}
from
'@/utils/followup/followapis'
;
export
default
{
data
(){
return
{
canRender
:
true
,
bmi
:
0
,
addComponents
:
[
{
name
:
'BaseInfo0'
,
formObject
:
{},
formName
:
'stroke_001'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceBaseInfo0
(
this
),
hideTitle
:
true
,
title
:
'一、量表脑卒中随访人员信息表'
},
{
name
:
'BaseInfo'
,
formObject
:
{},
formName
:
'stroke_002'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceBaseInfo
(
this
),
title
:
'一、基本信息'
},
{
name
:
'BaseInfo2'
,
formObject
:
{},
formName
:
'stroke_003'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceBaseInfo2
(
this
),
hideTitle
:
true
,
title
:
'一、基本信息'
},
{
name
:
'LifeStyleGuide'
,
formObject
:
{},
formName
:
'stroke_004'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceLifeStyleGuide
(
this
),
title
:
'二、随访期间生活方式'
},
{
name
:
'MainSickControl'
,
formObject
:
{},
formName
:
'stroke_005'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl
(
this
),
title
:
'三、随访期间主要病史及控制情况-脑血管病'
},
{
name
:
'MainSickControl2'
,
formObject
:
{},
formName
:
'stroke_006'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl2
(
this
),
hideTitle
:
true
,
title
:
'三、随访期间主要病史及控制情况-MRS评分(卒中患者12个月随访必填)'
},
{
name
:
'MainSickControl3'
,
formObject
:
{},
formName
:
'stroke_007'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl3
(
this
),
hideTitle
:
true
,
title
:
'三、随访期间主要病史及控制情况-心脏病'
},
{
name
:
'MainSickControl4'
,
formObject
:
{},
formName
:
'stroke_008'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl4
(
this
),
hideTitle
:
true
,
title
:
'三、随访期间主要病史及控制情况-高血压'
},
{
name
:
'MainSickControl5'
,
formObject
:
{},
formName
:
'stroke_009'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl5
(
this
),
hideTitle
:
true
,
title
:
'三、随访期间主要病史及控制情况-血脂异常'
},
{
name
:
'MainSickControl6'
,
formObject
:
{},
formName
:
'stroke_010'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl6
(
this
),
hideTitle
:
true
,
title
:
'三、随访期间主要病史及控制情况-糖尿病'
},
{
name
:
'TreatmentSituation'
,
formObject
:
{},
formName
:
'stroke_011'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceTreatmentSituation
(
this
),
title
:
'四、本次随访期间血管病变的外科手术或介入治疗情况-颈动脉'
},
{
name
:
'TreatmentSituation2'
,
formObject
:
{},
formName
:
'stroke_012'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceTreatmentSituation2
(
this
),
hideTitle
:
true
,
title
:
'四、本次随访期间血管病变的外科手术或介入治疗情况-冠状动脉'
},
{
name
:
'TreatmentSituation3'
,
formObject
:
{},
formName
:
'stroke_013'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceTreatmentSituation3
(
this
),
hideTitle
:
true
,
title
:
'四、本次随访期间血管病变的外科手术或介入治疗情况-出血性卒中外科治疗'
},
{
name
:
'CheckBody'
,
formObject
:
{},
formName
:
'stroke_014'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceCheckBody
(
this
),
title
:
'五、体格检查(高危人群12个月随访必做)'
},
{
name
:
'CheckLab'
,
formObject
:
{},
formName
:
'stroke_015'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceCheckLab
(
this
),
title
:
'六、实验室检查(高危人群12个月随访必填)'
},
],
formData
:
{},
//整个表单对象
isRule
:
false
,
//验证的依赖关系
// form: {
//// heartType: [],//心脏病类型
//// medicalUseSituation: [],//用药情况
//// stentingPosition: [],//支架术位置
//// endarterectomyPosition: [],//内膜剥脱术位置
// },
}
},
components
:
{
FormScale
,
},
...
...
@@ -58,20 +89,6 @@
watch
:
{
checkStart
(
val
){
if
(
val
){
// this.formData = {"stroke_001":{"followUpOrgName":"12","followUpUser":"21","surveyTime":"2019-04-18","followUpMobile":"1212"},"stroke_002":{"name":"212","idNo":"312","inTurn":"1"},"stroke_003":{"investigationState":"1","investigationWay":"面对面","oneself":"1"},"stroke_004":{"sportState":"1","haveSmoke":"1","drinkWine":"1","saltInFood":"1","meatInFood":"1","vegetablesInFood":"1","fruitsInFood":"1"},"stroke_005":{"diseasedHappened":"1"},"stroke_006":{"assessTime":"2019-04-18","symptomScore":"6"},"stroke_007":{"happenedAgain":"1","atrialFibrillation":"1"},"stroke_008":{"haveHypertension":"1"},"stroke_009":{"haveDyslipidemia":"1"},"stroke_010":{"haveDiabetes":"1"},"stroke_011":{"stenting":"1","endometriodenudation":"1","ecIcBypass":"1"},"stroke_012":{"intervention":"1","coronaryArteryYpass":"1"},"stroke_013":{"haveSurgicalIntervention":"1"},"stroke_014":{"stature":"121","weight":"55","inspectTime":"2019-04-18","waistline":"21","bmi":"23","measureTime":"2019-04-26","firstSystolicPressure":"22","firstDiastolicPressure":"33","firstPulse":"44","secondSystolicPressure":"55","secondDiastolicPressure":"44","secondPulse":"33","inspectTime1":"2019-04-25","cardiacMurmur":"1","heartRhythm":"2"},"stroke_015":{"inspectTime":"2019-04-18","fastingBloodGlucose":"22","inspectTime1":"2019-04-18","triglyceride":"33","cholesterol":"22","cLdl":"12","cHdl":"22"},"doctorId":1,"saveWay":1,"scaleNo":"SCALE0003","planPatientsTimesId":1}
// axios({
// method: 'post',
//// url:'http://10.177.15.251:13001/scale/save',
// headers:{
//// sysCode: 46
// },
// url: 'https://dev-sc.yunqueyi.com/scale/save',
// data: JSON.stringify(this.formData),
// }).then(res=>{
// console.log(res)
// });
// return
for
(
let
i
=
0
;
i
<
this
.
addComponents
.
length
;
i
++
){
let
formName
=
this
.
addComponents
[
i
].
formName
;
// 将每个模块的fornName对应后台的表名放到表单对象
...
...
@@ -103,12 +120,8 @@
console
.
log
(
JSON
.
stringify
(
this
.
formData
))
if
(
this
.
valid
){
// submitScale(JSON.stringify(this.formData)).then(res=>{
// console.log(res)
// })
axios
({
method
:
'post'
,
// url:'http://10.177.15.251:13001/scale/save',
url
:
'https://dev-sc.yunqueyi.com/scale/save'
,
data
:
JSON
.
stringify
(
this
.
formData
),
}).
then
(
res
=>
{
...
...
@@ -131,50 +144,8 @@
}
}
},
methods
:
{
// setRulesToFalse(dataSource){
// dataSource.forEach((item,index)=>{
//
// })
// }
},
data
(){
return
{
canRender
:
true
,
bmi
:
0
,
addComponents
:
[
{
name
:
'BaseInfo0'
,
formObject
:
{},
formName
:
'stroke_001'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceBaseInfo0
(
this
),
hideTitle
:
true
,
title
:
'一、量表脑卒中随访人员信息表'
},
{
name
:
'BaseInfo'
,
formObject
:
{},
formName
:
'stroke_002'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceBaseInfo
(
this
),
title
:
'一、基本信息'
},
{
name
:
'BaseInfo2'
,
formObject
:
{},
formName
:
'stroke_003'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceBaseInfo2
(
this
),
hideTitle
:
true
,
title
:
'一、基本信息'
},
{
name
:
'LifeStyleGuide'
,
formObject
:
{},
formName
:
'stroke_004'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceLifeStyleGuide
(
this
),
title
:
'二、随访期间生活方式'
},
{
name
:
'MainSickControl'
,
formObject
:
{},
formName
:
'stroke_005'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl
(
this
),
title
:
'三、随访期间主要病史及控制情况-脑血管病'
},
{
name
:
'MainSickControl2'
,
formObject
:
{},
formName
:
'stroke_006'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl2
(
this
),
hideTitle
:
true
,
title
:
'三、随访期间主要病史及控制情况-MRS评分(卒中患者12个月随访必填)'
},
{
name
:
'MainSickControl3'
,
formObject
:
{},
formName
:
'stroke_007'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl3
(
this
),
hideTitle
:
true
,
title
:
'三、随访期间主要病史及控制情况-心脏病'
},
{
name
:
'MainSickControl4'
,
formObject
:
{},
formName
:
'stroke_008'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl4
(
this
),
hideTitle
:
true
,
title
:
'三、随访期间主要病史及控制情况-高血压'
},
{
name
:
'MainSickControl5'
,
formObject
:
{},
formName
:
'stroke_009'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl5
(
this
),
hideTitle
:
true
,
title
:
'三、随访期间主要病史及控制情况-血脂异常'
},
{
name
:
'MainSickControl6'
,
formObject
:
{},
formName
:
'stroke_010'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceMainSickControl6
(
this
),
hideTitle
:
true
,
title
:
'三、随访期间主要病史及控制情况-糖尿病'
},
{
name
:
'TreatmentSituation'
,
formObject
:
{},
formName
:
'stroke_011'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceTreatmentSituation
(
this
),
title
:
'四、本次随访期间血管病变的外科手术或介入治疗情况-颈动脉'
},
{
name
:
'TreatmentSituation2'
,
formObject
:
{},
formName
:
'stroke_012'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceTreatmentSituation2
(
this
),
hideTitle
:
true
,
title
:
'四、本次随访期间血管病变的外科手术或介入治疗情况-冠状动脉'
},
{
name
:
'TreatmentSituation3'
,
formObject
:
{},
formName
:
'stroke_013'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceTreatmentSituation3
(
this
),
hideTitle
:
true
,
title
:
'四、本次随访期间血管病变的外科手术或介入治疗情况-出血性卒中外科治疗'
},
{
name
:
'CheckBody'
,
formObject
:
{},
formName
:
'stroke_014'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceCheckBody
(
this
),
title
:
'五、体格检查(高危人群12个月随访必做)'
},
{
name
:
'CheckLab'
,
formObject
:
{},
formName
:
'stroke_015'
,
className
:
'obj-form-title'
,
dataSource
:
dataSourceCheckLab
(
this
),
title
:
'六、实验室检查(高危人群12个月随访必填)'
},
],
formData
:
{},
//整个表单对象
isRule
:
false
,
//验证的依赖关系
form
:
{
// heartType: [],//心脏病类型
// medicalUseSituation: [],//用药情况
// stentingPosition: [],//支架术位置
// endarterectomyPosition: [],//内膜剥脱术位置
},
}
},
mounted
(){
created
(){
// /scale/{patientTimesId}/{scaleNo}/info
if
(
this
.
showBtn
){
return
;
}
axios
({
method
:
'get'
,
url
:
'https://dev-sc.yunqueyi.com/scale/1/SCALE0003/info'
,
...
...
@@ -182,20 +153,12 @@
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
formData
=
res
.
data
.
data
res
.
data
.
code
=
'111'
if
(
res
.
data
.
code
==
'111'
){
this
.
showBtn
=
false
;
}
for
(
let
i
=
0
;
i
<
this
.
addComponents
.
length
;
i
++
){
let
formName
=
this
.
addComponents
[
i
].
formName
;
this
.
addComponents
[
i
].
formObject
=
this
.
formData
[
formName
]
// this.formData[formName] = this.addComponents[i].formObject;
// console.log(this.addComponents[i].formObject)
// console.log(this.addComponents)
}
this
.
canRender
=
true
;
this
.
$forceUpdate
();
})
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录