Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
c4ded963
提交
c4ded963
编写于
4月 28, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
755d5da0
变更
10
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
359 行增加
和
49 行删除
+359
-49
checkField.js
src/utils/followup/followupUtils/checkField.js
+1
-1
plan-modify.vue
src/views/followup/plan-manage/plan-modify.vue
+13
-4
form-template.vue
src/views/followup/record-manage/form-template.vue
+8
-7
hypeDataSourceHelpChecking.js
...-manage/models/hypertension/hypeDataSourceHelpChecking.js
+63
-0
hypeDataSourceLifeMode.js
...cord-manage/models/hypertension/hypeDataSourceLifeMode.js
+63
-0
hypeDataSourceMedicationUse.js
...manage/models/hypertension/hypeDataSourceMedicationUse.js
+63
-0
hypeDataSourceSign.js
...p/record-manage/models/hypertension/hypeDataSourceSign.js
+63
-0
hypeDataSourceSymptom.js
...ecord-manage/models/hypertension/hypeDataSourceSymptom.js
+33
-0
hypertension.vue
...ews/followup/record-manage/patient-scale/hypertension.vue
+0
-13
scale.vue
src/views/followup/record-manage/patient-scale/scale.vue
+52
-24
未找到文件。
src/utils/followup/followupUtils/checkField.js
浏览文件 @
c4ded963
...
...
@@ -28,7 +28,7 @@ export const checkRange = (rule, value, callback) => {
// 校验手机号
export
const
checkMobile
=
(
rule
,
value
,
callback
)
=>
{
var
reg
=
/^1
[
3|4|5|7|8
][
0-9
]{9}
$/
;
//验证规则
var
reg
=
/^1
[
3|4|5|7|8
|9
][
0-9
]{9}
$/
;
//验证规则
const
flag
=
reg
.
test
(
value
);
if
(
flag
){
callback
()
...
...
src/views/followup/plan-manage/plan-modify.vue
浏览文件 @
c4ded963
...
...
@@ -15,7 +15,7 @@
</div>
<div
class=
"plan-btns-group"
>
<el-button
class=
"button-white"
plain
@
click=
"cancelEdit"
size=
"small"
>
取 消
</el-button>
<el-button
class=
"button-green"
type=
"primary"
@
click=
"saveModify"
size=
"small"
>
保 存
</el-button>
<el-button
class=
"button-green"
type=
"primary"
@
click=
"saveModify
('baseInfo')
"
size=
"small"
>
保 存
</el-button>
</div>
</div>
<el-form
ref=
"baseInfo"
:model=
"planDetailData"
:rules=
"rules"
label-suffix=
":"
label-width=
"140px"
>
...
...
@@ -241,9 +241,18 @@
this
.
$router
.
back
(
-
1
)
});
},
saveModify
()
{
// 点击保存,先进行校验,表单字段是否通过验证
this
.
checkForm
=
true
saveModify
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
){
// 点击保存,先进行校验,表单字段是否通过验证
this
.
checkForm
=
true
}
else
{
this
.
$message
({
message
:
'请填写完整表单'
,
type
:
'error'
});
}
});
},
// 监听保存校验结果
addListenSave
(
val
){
...
...
src/views/followup/record-manage/form-template.vue
浏览文件 @
c4ded963
...
...
@@ -27,8 +27,7 @@
<!--模板页面除了显示居民基本信息,将病种展示作为组件引入-->
<div
class=
"form-container"
>
<!--脑卒中-->
<stroke
v-if=
"resourceId=='SCALE0003'"
:showBtn=
"showBtn"
:checkStart=
"checkStart"
@
checkEnd=
"checkEnd"
:saveWay=
"saveWay"
/>
<scale
:showBtn=
"showBtn"
:scaleType=
"scaleNo"
:checkStart=
"checkStart"
@
checkEnd=
"checkEnd"
:saveWay=
"saveWay"
/>
</div>
...
...
@@ -42,7 +41,7 @@
// 糖尿病
import
s
troke
from
'./patient-scale/strok
e'
import
s
cale
from
'./patient-scale/scal
e'
export
default
{
data
(){
return
{
...
...
@@ -50,12 +49,13 @@
jumPathThird
:
'/followup/record-manage/record-list'
,
checkStart
:
false
,
showBtn
:
'1'
,
resourceId
:
''
,
//
resourceId: '',
saveWay
:
1
,
scaleNo
:
''
}
},
components
:
{
s
trok
e
,
s
cal
e
,
BreadCrumb
,
},
methods
:
{
...
...
@@ -68,8 +68,9 @@
}
},
created
(){
this
.
resourceId
=
this
.
$route
.
query
.
resourceId
;
this
.
resourceId
=
'SCALE0003'
this
.
scaleNo
=
this
.
$route
.
query
.
scaleNo
;
console
.
log
(
this
.
scaleNo
)
// this.resourceId = 'SCALE0003'
if
(
this
.
$route
.
query
.
showBtn
==
'0'
){
this
.
showBtn
=
String
(
this
.
$route
.
query
.
showBtn
);
}
...
...
src/views/followup/record-manage/models/hypertension/hypeDataSourceHelpChecking.js
0 → 100644
浏览文件 @
c4ded963
import
{
checkMobile
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
return
[
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpOrgName'
,
model
:
'followUpOrgName'
,
label
:
'随访单位名称:'
,
disabled
:
false
,
placeholder
:
'请输入随访单位名称'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访单位名称'
,
trigger
:
[
'submit'
,
'change'
]}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpUser'
,
model
:
'followUpUser'
,
label
:
'随访人员姓名:'
,
disabled
:
false
,
placeholder
:
'请输入随访人员姓名'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访人员姓名'
,
trigger
:
[
'submit'
,
'change'
]}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpMobile'
,
model
:
'followUpMobile'
,
label
:
'随访人员联系电话:'
,
disabled
:
false
,
placeholder
:
'请输入随访人员联系电话'
,
spanNum
:
12
,
maxlength
:
11
,
type
:
'tel'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访人员联系电话'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkMobile
,
trigger
:
[
'submit'
,
'change'
]
}],
},
{
formType
:
'date-picker'
,
className
:
'float-none'
,
prop
:
'surveyTime'
,
model
:
'surveyTime'
,
placeholder
:
'请选择'
,
label
:
'本次调查时间:'
,
format
:
'yyyy-MM-dd'
,
valueFormat
:
'yyyy-MM-dd'
,
dateType
:
'date'
,
type
:
'date'
,
rules
:
[{
required
:
true
,
message
:
'请选择本次调查时间'
,
trigger
:
[
'submit'
,
'change'
]}],
spanNum
:
12
,
},
]
}
src/views/followup/record-manage/models/hypertension/hypeDataSourceLifeMode.js
0 → 100644
浏览文件 @
c4ded963
import
{
checkMobile
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
return
[
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpOrgName'
,
model
:
'followUpOrgName'
,
label
:
'随访单位名称:'
,
disabled
:
false
,
placeholder
:
'请输入随访单位名称'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访单位名称'
,
trigger
:
[
'submit'
,
'change'
]}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpUser'
,
model
:
'followUpUser'
,
label
:
'随访人员姓名:'
,
disabled
:
false
,
placeholder
:
'请输入随访人员姓名'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访人员姓名'
,
trigger
:
[
'submit'
,
'change'
]}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpMobile'
,
model
:
'followUpMobile'
,
label
:
'随访人员联系电话:'
,
disabled
:
false
,
placeholder
:
'请输入随访人员联系电话'
,
spanNum
:
12
,
maxlength
:
11
,
type
:
'tel'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访人员联系电话'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkMobile
,
trigger
:
[
'submit'
,
'change'
]
}],
},
{
formType
:
'date-picker'
,
className
:
'float-none'
,
prop
:
'surveyTime'
,
model
:
'surveyTime'
,
placeholder
:
'请选择'
,
label
:
'本次调查时间:'
,
format
:
'yyyy-MM-dd'
,
valueFormat
:
'yyyy-MM-dd'
,
dateType
:
'date'
,
type
:
'date'
,
rules
:
[{
required
:
true
,
message
:
'请选择本次调查时间'
,
trigger
:
[
'submit'
,
'change'
]}],
spanNum
:
12
,
},
]
}
src/views/followup/record-manage/models/hypertension/hypeDataSourceMedicationUse.js
0 → 100644
浏览文件 @
c4ded963
import
{
checkMobile
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
return
[
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpOrgName'
,
model
:
'followUpOrgName'
,
label
:
'随访单位名称:'
,
disabled
:
false
,
placeholder
:
'请输入随访单位名称'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访单位名称'
,
trigger
:
[
'submit'
,
'change'
]}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpUser'
,
model
:
'followUpUser'
,
label
:
'随访人员姓名:'
,
disabled
:
false
,
placeholder
:
'请输入随访人员姓名'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访人员姓名'
,
trigger
:
[
'submit'
,
'change'
]}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpMobile'
,
model
:
'followUpMobile'
,
label
:
'随访人员联系电话:'
,
disabled
:
false
,
placeholder
:
'请输入随访人员联系电话'
,
spanNum
:
12
,
maxlength
:
11
,
type
:
'tel'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访人员联系电话'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkMobile
,
trigger
:
[
'submit'
,
'change'
]
}],
},
{
formType
:
'date-picker'
,
className
:
'float-none'
,
prop
:
'surveyTime'
,
model
:
'surveyTime'
,
placeholder
:
'请选择'
,
label
:
'本次调查时间:'
,
format
:
'yyyy-MM-dd'
,
valueFormat
:
'yyyy-MM-dd'
,
dateType
:
'date'
,
type
:
'date'
,
rules
:
[{
required
:
true
,
message
:
'请选择本次调查时间'
,
trigger
:
[
'submit'
,
'change'
]}],
spanNum
:
12
,
},
]
}
src/views/followup/record-manage/models/hypertension/hypeDataSourceSign.js
0 → 100644
浏览文件 @
c4ded963
import
{
checkMobile
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
return
[
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpOrgName'
,
model
:
'followUpOrgName'
,
label
:
'随访单位名称:'
,
disabled
:
false
,
placeholder
:
'请输入随访单位名称'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访单位名称'
,
trigger
:
[
'submit'
,
'change'
]}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpUser'
,
model
:
'followUpUser'
,
label
:
'随访人员姓名:'
,
disabled
:
false
,
placeholder
:
'请输入随访人员姓名'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访人员姓名'
,
trigger
:
[
'submit'
,
'change'
]}],
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'followUpMobile'
,
model
:
'followUpMobile'
,
label
:
'随访人员联系电话:'
,
disabled
:
false
,
placeholder
:
'请输入随访人员联系电话'
,
spanNum
:
12
,
maxlength
:
11
,
type
:
'tel'
,
labmsg
:
'次'
,
rules
:
[{
required
:
true
,
message
:
'请输入随访人员联系电话'
,
trigger
:
[
'submit'
,
'change'
]},{
validator
:
checkMobile
,
trigger
:
[
'submit'
,
'change'
]
}],
},
{
formType
:
'date-picker'
,
className
:
'float-none'
,
prop
:
'surveyTime'
,
model
:
'surveyTime'
,
placeholder
:
'请选择'
,
label
:
'本次调查时间:'
,
format
:
'yyyy-MM-dd'
,
valueFormat
:
'yyyy-MM-dd'
,
dateType
:
'date'
,
type
:
'date'
,
rules
:
[{
required
:
true
,
message
:
'请选择本次调查时间'
,
trigger
:
[
'submit'
,
'change'
]}],
spanNum
:
12
,
},
]
}
src/views/followup/record-manage/models/hypertension/hypeDataSourceSymptom.js
0 → 100644
浏览文件 @
c4ded963
import
{
checkMobile
}
from
'@/utils/followup/followupUtils/checkField'
;
export
default
(
$this
)
=>
{
return
[
{
formType
:
'checkbox'
,
className
:
'obj-form-title3'
,
prop
:
'symptom'
,
model
:
'symptom'
,
label
:
'选择的症状:'
,
linkageRule
:
[{
name
:
'takeHypoglycemicDrugs'
,
value
:
[
'是'
]}],
disabled
:
false
,
changeFun
:
(
val
)
=>
{
// console.log(val)
},
spanNum
:
24
,
options
:
[
{
label
:
'无症状'
,
value
:
'无症状'
,
disabled
:
false
},
{
label
:
'头痛头晕'
,
value
:
'头痛头晕'
,
disabled
:
false
},
{
label
:
'恶心呕吐'
,
value
:
'恶心呕吐'
,
disabled
:
false
},
{
label
:
'眼花耳鸣'
,
value
:
'眼花耳鸣'
,
disabled
:
false
},
{
label
:
'呼吸困难'
,
value
:
'呼吸困难'
,
disabled
:
false
},
{
label
:
'心悸胸闷'
,
value
:
'心悸胸闷'
,
disabled
:
false
},
{
label
:
'鼻衄出血不止'
,
value
:
'鼻衄出血不止'
,
disabled
:
false
},
{
label
:
'四肢发麻'
,
value
:
'四肢发麻'
,
disabled
:
false
},
{
label
:
'下肢水肿'
,
value
:
'下肢水肿'
,
disabled
:
false
},
{
label
:
'其他'
,
value
:
'其他'
,
disabled
:
false
},
],
rules
:
[{
required
:
true
,
message
:
'选择的症状'
,
trigger
:
[
'submit'
]}]
},
]
}
src/views/followup/record-manage/patient-scale/hypertension.vue
已删除
100644 → 0
浏览文件 @
755d5da0
<
template
>
<div>
</div>
</
template
>
<
script
>
export
default
{}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/followup/record-manage/patient-scale/s
trok
e.vue
→
src/views/followup/record-manage/patient-scale/s
cal
e.vue
浏览文件 @
c4ded963
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录