Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
9c28002b
提交
9c28002b
编写于
5月 06, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
8fed731e
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
34 行删除
+8
-34
hypertension.vue
...ews/followup/record-manage/patient-scale/hypertension.vue
+8
-34
未找到文件。
src/views/followup/record-manage/patient-scale/hypertension.vue
浏览文件 @
9c28002b
...
@@ -88,10 +88,6 @@
...
@@ -88,10 +88,6 @@
let
formName
=
this
.
addComponents
[
i
].
formName
;
let
formName
=
this
.
addComponents
[
i
].
formName
;
// 将每个模块的fornName对应后台的表名放到表单对象
// 将每个模块的fornName对应后台的表名放到表单对象
this
.
formData
[
formName
]
=
this
.
addComponents
[
i
].
formObject
;
this
.
formData
[
formName
]
=
this
.
addComponents
[
i
].
formObject
;
// if(formName==='stroke_006'||formName==='stroke_014'||formName==='stroke_015'){
// this.setRuleToTrue(i)
// }
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// saveWay=1是提交,进行校验,2是暂存,不需要校验,直接发送请求
// saveWay=1是提交,进行校验,2是暂存,不需要校验,直接发送请求
if
(
this
.
saveWay
==
1
){
if
(
this
.
saveWay
==
1
){
...
@@ -148,20 +144,6 @@
...
@@ -148,20 +144,6 @@
}
}
})
})
},
},
// needRule(val){
// this.addComponents.forEach((item,index)=>{
// let formName = item.formName;
//// if(formName==='stroke_006'||formName==='stroke_014'||formName==='stroke_015'){
//// this.addComponents[index].ruleNew = val;
//// this.setRuleToTrue(index);
////// if(this.$refs['form' + index].length > 0){
////// this.$refs['form' + index][0].resetFields();
////// }
////
//// }
// })
//
// }
},
},
created
(){
created
(){
this
.
planPatientsTimesId
=
this
.
$route
.
query
.
planPatientsTimesId
this
.
planPatientsTimesId
=
this
.
$route
.
query
.
planPatientsTimesId
...
@@ -172,8 +154,6 @@
...
@@ -172,8 +154,6 @@
this
.
initScaleType
();
this
.
initScaleType
();
// 获取白名单域名
// 获取白名单域名
this
.
getWhiteDomain
();
this
.
getWhiteDomain
();
// localStorage.setItem('needRule',this.needRule);
},
},
methods
:
{
methods
:
{
// 获取量表类型
// 获取量表类型
...
@@ -194,15 +174,14 @@
...
@@ -194,15 +174,14 @@
getDomain
().
then
(
res
=>
{
getDomain
().
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
this
.
domain
=
res
.
data
;
this
.
domain
=
res
.
data
;
//
this.setFormData()
// this.setFormData()
// 目前模块先写死!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// 获取量表模块
// 获取量表模块
this
.
getFormModules
();
this
.
getFormModules
();
if
(
this
.
showBtn
!=
'0'
){
if
(
this
.
showBtn
!=
'0'
){
// 获取量表详情
// 获取量表详情
this
.
getFormDetail
();
this
.
getFormDetail
();
}
}
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
res
.
message
,
message
:
res
.
message
,
...
@@ -216,9 +195,7 @@
...
@@ -216,9 +195,7 @@
this
.
addComponents
=
this
.
addComponentsSourceList
this
.
addComponents
=
this
.
addComponentsSourceList
for
(
let
i
=
0
;
i
<
this
.
addComponents
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
this
.
addComponents
.
length
;
i
++
){
let
formName
=
this
.
addComponents
[
i
].
formName
;
let
formName
=
this
.
addComponents
[
i
].
formName
;
if
(
this
.
formData
[
formName
]){
if
(
this
.
formData
[
formName
]){
this
.
addComponents
[
i
].
formObject
=
this
.
formData
[
formName
];
this
.
addComponents
[
i
].
formObject
=
this
.
formData
[
formName
];
}
}
// 量表字段回显,会触发change校验,所以这里拿到数据渲染页面后,重置验证
// 量表字段回显,会触发change校验,所以这里拿到数据渲染页面后,重置验证
...
@@ -276,7 +253,6 @@
...
@@ -276,7 +253,6 @@
medicinesName
:
item
.
medicinesName
,
medicinesName
:
item
.
medicinesName
,
medicineType
:
item
.
medicineType
medicineType
:
item
.
medicineType
}
}
}
}
})
})
this
.
addComponents
[
i
].
formObject
=
{
this
.
addComponents
[
i
].
formObject
=
{
...
@@ -329,7 +305,7 @@
...
@@ -329,7 +305,7 @@
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// 如果表单未完善,跳转到该表单模块
// 如果表单未完善,跳转到该表单模块
document
.
querySelector
(
`#form
${
i
}
`
).
scrollIntoView
(
true
);
document
.
querySelector
(
`#form
${
i
}
`
).
scrollIntoView
(
true
);
return
return
;
})
})
}
}
...
@@ -337,7 +313,6 @@
...
@@ -337,7 +313,6 @@
}
}
let
flag
=
this
.
valid
;
let
flag
=
this
.
valid
;
this
.
$emit
(
'checkEnd'
,
false
);
this
.
$emit
(
'checkEnd'
,
false
);
console
.
log
(
'checkEndcheckEndcheckEndcheckEnd'
)
return
flag
;
return
flag
;
},
},
// 提交量表
// 提交量表
...
@@ -352,7 +327,6 @@
...
@@ -352,7 +327,6 @@
if
(
!
this
.
handleModuleMedicalUse
()){
if
(
!
this
.
handleModuleMedicalUse
()){
return
;
return
;
}
}
this
.
formData
.
hypertension_001
.
symptom
=
JSON
.
stringify
(
this
.
formData
.
hypertension_001
.
symptom
);
this
.
formData
.
hypertension_001
.
symptom
=
JSON
.
stringify
(
this
.
formData
.
hypertension_001
.
symptom
);
// console.log(this.formData)
// console.log(this.formData)
postScale
(
this
.
domain
,
this
.
formData
).
then
(
res
=>
{
postScale
(
this
.
domain
,
this
.
formData
).
then
(
res
=>
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录