Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
7092f5ee
提交
7092f5ee
编写于
5月 07, 2019
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
科室及机构添加字段
上级
61c2935f
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
38 行增加
和
9 行删除
+38
-9
diabetesSourseOther.js
...owup/record-manage/models/diabetes/diabetesSourseOther.js
+2
-2
diabetesSourseReferral.js
...p/record-manage/models/diabetes/diabetesSourseReferral.js
+36
-7
未找到文件。
src/views/followup/record-manage/models/diabetes/diabetesSourseOther.js
浏览文件 @
7092f5ee
...
@@ -33,13 +33,13 @@ export default ($this) => {
...
@@ -33,13 +33,13 @@ export default ($this) => {
},
},
{
{
formType
:
'input'
,
formType
:
'input'
,
className
:
'obj-form-title'
,
className
:
'obj-form-title
2
'
,
linkageRule
:
[{
name
:
'medicalSideEffects'
,
value
:
[
'有'
]}],
linkageRule
:
[{
name
:
'medicalSideEffects'
,
value
:
[
'有'
]}],
prop
:
'remark'
,
prop
:
'remark'
,
model
:
'remark'
,
model
:
'remark'
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入不良反应'
,
placeholder
:
'请输入不良反应'
,
spanNum
:
24
,
spanNum
:
12
,
maxlength
:
30
,
maxlength
:
30
,
type
:
'text'
,
type
:
'text'
,
labmsg
:
''
,
labmsg
:
''
,
...
...
src/views/followup/record-manage/models/diabetes/diabetesSourseReferral.js
浏览文件 @
7092f5ee
...
@@ -19,7 +19,9 @@ export default ($this) => {
...
@@ -19,7 +19,9 @@ export default ($this) => {
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'diabetesSourseReferral'
){
if
(
item
.
name
==
'diabetesSourseReferral'
){
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
if
(
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
}
})
})
}
}
})
})
...
@@ -28,21 +30,48 @@ export default ($this) => {
...
@@ -28,21 +30,48 @@ export default ($this) => {
{
{
formType
:
'input'
,
formType
:
'input'
,
className
:
'float-none'
,
className
:
'float-none'
,
prop
:
'mechanism
Department
'
,
prop
:
'mechanism'
,
model
:
'mechanism
Department
'
,
model
:
'mechanism'
,
label
:
'机构
及科别
:'
,
label
:
'机构:'
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入机构
及科别
'
,
placeholder
:
'请输入机构'
,
spanNum
:
12
,
spanNum
:
12
,
maxlength
:
30
,
maxlength
:
30
,
type
:
'text'
,
type
:
'text'
,
rules
:
[{
required
:
false
,
message
:
'请输入机构
及科别
'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]}],
rules
:
[{
required
:
false
,
message
:
'请输入机构'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]}],
changeFun
:
(
val
)
=>
{
changeFun
:
(
val
)
=>
{
let
flag
=
val
?
true
:
false
;
let
flag
=
val
?
true
:
false
;
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'diabetesSourseReferral'
){
if
(
item
.
name
==
'diabetesSourseReferral'
){
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
if
(
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
}
})
}
})
},
},
{
formType
:
'input'
,
className
:
'float-none'
,
prop
:
'department'
,
model
:
'department'
,
label
:
'科室:'
,
disabled
:
false
,
placeholder
:
'请输入科室'
,
spanNum
:
12
,
maxlength
:
30
,
type
:
'text'
,
rules
:
[{
required
:
false
,
message
:
'请输入科室'
,
trigger
:
[
'submit'
,
'change'
,
'blur'
]}],
changeFun
:
(
val
)
=>
{
let
flag
=
val
?
true
:
false
;
$this
.
addComponents
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
==
'diabetesSourseReferral'
){
$this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
index2
)
=>
{
if
(
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
){
$this
.
addComponents
[
index
].
dataSource
[
index2
].
rules
[
0
].
required
=
flag
;
}
})
})
}
}
})
})
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录