Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
8f7964ac
提交
8f7964ac
编写于
5月 07, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
ae7ef544
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
7 行增加
和
18 行删除
+7
-18
checkField.js
src/utils/followup/followupUtils/checkField.js
+4
-4
dataSourceBaseInfo.js
...ollowup/record-manage/models/stroke/dataSourceBaseInfo.js
+2
-2
diabetes.vue
src/views/followup/record-manage/patient-scale/diabetes.vue
+0
-11
stroke.vue
src/views/followup/record-manage/patient-scale/stroke.vue
+1
-1
未找到文件。
src/utils/followup/followupUtils/checkField.js
浏览文件 @
8f7964ac
...
@@ -3,7 +3,7 @@ import rangeJson from './rangConfig';
...
@@ -3,7 +3,7 @@ import rangeJson from './rangConfig';
// 这个方法,是用户在选择随访轮次(6个月,12个月)后续操作
// 这个方法,是用户在选择随访轮次(6个月,12个月)后续操作
let
checkNeedRule
=
(
val
)
=>
{
let
checkNeedRule
=
(
val
)
=>
{
const
needRule
=
localStorage
.
getItem
(
'needRule'
);
const
needRule
=
localStorage
.
getItem
(
'needRule'
);
if
(
(
(
!
val
||
val
==
''
)
&&
(
!
needRule
||
needRule
==
'true'
)
)
){
if
(
(
!
val
||
val
==
''
)
&&
(
!
needRule
||
needRule
==
'true'
)
){
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
@@ -19,10 +19,10 @@ export const checkRange = (rule, value, callback) => {
...
@@ -19,10 +19,10 @@ export const checkRange = (rule, value, callback) => {
max
=
item
.
max
;
max
=
item
.
max
;
}
}
})
})
if
(((
val
>=
min
)
&&
(
val
<=
max
))
||
checkNeedRule
(
val
)){
if
(
!
((
val
>=
min
)
&&
(
val
<=
max
))
||
!
checkNeedRule
(
val
)){
callback
()
}
else
{
callback
(
new
Error
(
`输入范围
${
min
}
~
${
max
}
`
))
callback
(
new
Error
(
`输入范围
${
min
}
~
${
max
}
`
))
}
else
{
callback
()
}
}
}
}
...
...
src/views/followup/record-manage/models/stroke/dataSourceBaseInfo.js
浏览文件 @
8f7964ac
...
@@ -52,10 +52,10 @@ export default ($this) => {
...
@@ -52,10 +52,10 @@ export default ($this) => {
// console.log(e)
// console.log(e)
if
(
e
==
'12个月'
){
if
(
e
==
'12个月'
){
$this
.
needRule
=
false
;
$this
.
needRule
=
false
;
local
Storage
.
setItem
(
'needRule'
,
false
);
session
Storage
.
setItem
(
'needRule'
,
false
);
}
else
{
}
else
{
$this
.
needRule
=
true
;
$this
.
needRule
=
true
;
local
Storage
.
setItem
(
'needRule'
,
true
);
session
Storage
.
setItem
(
'needRule'
,
true
);
}
}
}
}
},
},
...
...
src/views/followup/record-manage/patient-scale/diabetes.vue
浏览文件 @
8f7964ac
...
@@ -145,15 +145,6 @@
...
@@ -145,15 +145,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);
// }
// })
// }
},
},
created
(){
created
(){
this
.
planPatientsTimesId
=
this
.
$route
.
query
.
planPatientsTimesId
this
.
planPatientsTimesId
=
this
.
$route
.
query
.
planPatientsTimesId
...
@@ -164,8 +155,6 @@
...
@@ -164,8 +155,6 @@
this
.
initScaleType
();
this
.
initScaleType
();
// 获取白名单域名
// 获取白名单域名
this
.
getWhiteDomain
();
this
.
getWhiteDomain
();
// localStorage.setItem('needRule',this.needRule);
},
},
methods
:
{
methods
:
{
// 获取量表类型
// 获取量表类型
...
...
src/views/followup/record-manage/patient-scale/stroke.vue
浏览文件 @
8f7964ac
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
// 获取白名单域名
// 获取白名单域名
this
.
getWhiteDomain
();
this
.
getWhiteDomain
();
local
Storage
.
setItem
(
'needRule'
,
this
.
needRule
);
session
Storage
.
setItem
(
'needRule'
,
this
.
needRule
);
},
},
methods
:
{
methods
:
{
// 获取量表类型
// 获取量表类型
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录