Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
agcs2.0-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liang
agcs2.0-web
Commits
ca416b44
Commit
ca416b44
authored
Feb 07, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.实验室检查formJSON数据
2.upload上传联调,修改部分字段
parent
3300a2a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
185 additions
and
9 deletions
+185
-9
实验室检查.js
src/components/FormComponents/CustomForm/实验室检查.js
+178
-0
index.vue
src/components/Upload/index.vue
+7
-9
No files found.
src/components/FormComponents/CustomForm/实验室检查.js
0 → 100644
View file @
ca416b44
let
formJson
=
{
column
:
[],
labelPosition
:
"
right
"
,
labelSuffix
:
"
:
"
,
labelWidth
:
180
,
gutter
:
0
,
menuBtn
:
true
,
submitBtn
:
true
,
submitText
:
"
下一步
"
,
emptyBtn
:
false
,
emptyText
:
"
清空
"
,
nextTabBtn
:
true
,
nextTabText
:
"
下一页
"
,
menuPosition
:
"
center
"
,
prevBtn
:
true
,
group
:
[
{
label
:
"
实验室检查
"
,
prop
:
"
1669789802778_28648
"
,
arrow
:
true
,
collapse
:
true
,
display
:
true
,
labelWidth
:
8
,
column
:
[
{
type
:
"
input
"
,
display
:
true
,
importantField
:
false
,
styles
:
{},
prop
:
"
G_17
"
,
label
:
"
胃泌素17
"
,
fieldType
:
"
varchar
"
,
fieldLength
:
"
255
"
,
tableName
:
"
实验室检查
"
,
tableCode
:
"
gas_exam
"
,
tableId
:
"
1597466741234040833
"
,
notFilter
:
false
,
cType
:
""
,
subfield
:
false
,
autoRequired
:
0
,
personalRequired
:
0
,
required
:
true
,
rules
:
[{
required
:
true
,
message
:
"
胃泌素17必须填写
"
}],
},
{
type
:
"
input
"
,
display
:
true
,
importantField
:
false
,
styles
:
{},
prop
:
"
PG_I
"
,
label
:
"
胃蛋白酶原I(PG I)
"
,
fieldType
:
"
varchar
"
,
fieldLength
:
"
255
"
,
tableName
:
"
实验室检查
"
,
tableCode
:
"
gas_exam
"
,
tableId
:
"
1597466741234040833
"
,
notFilter
:
false
,
cType
:
""
,
subfield
:
false
,
rules
:
[{
required
:
true
,
message
:
"
胃蛋白酶原I(PG I)必须填写
"
}],
required
:
true
,
},
{
type
:
"
input
"
,
display
:
true
,
importantField
:
false
,
styles
:
{},
prop
:
"
PG_II
"
,
label
:
"
胃蛋白酶原II(PG II)
"
,
fieldType
:
"
varchar
"
,
fieldLength
:
"
255
"
,
tableName
:
"
实验室检查
"
,
tableCode
:
"
gas_exam
"
,
tableId
:
"
1597466741234040833
"
,
notFilter
:
false
,
cType
:
""
,
subfield
:
false
,
rules
:
[{
required
:
true
,
message
:
"
胃蛋白酶原II(PG II)必须填写
"
}],
required
:
true
,
},
{
type
:
"
radio
"
,
display
:
true
,
importantField
:
false
,
styles
:
{},
prop
:
"
IgG
"
,
label
:
"
Hp抗体(IgG)检测
"
,
fieldType
:
"
varchar
"
,
fieldLength
:
"
255
"
,
tableName
:
"
实验室检查
"
,
tableCode
:
"
gas_exam
"
,
tableId
:
"
1597466741234040833
"
,
notFilter
:
false
,
cType
:
""
,
subfield
:
false
,
dicData
:
[
{
label
:
"
阳性
"
,
value
:
"
2
"
,
id
:
"
1598150992287858689
"
,
parentId
:
""
,
},
{
label
:
"
阴性
"
,
value
:
"
1
"
,
id
:
"
1598150963816923138
"
,
parentId
:
""
,
},
],
dynamicshSet
:
[],
dicType
:
"
hp_antibody
"
,
props
:
{
label
:
"
label
"
,
value
:
"
value
"
},
disabled
:
false
,
required
:
true
,
rules
:
[{
required
:
true
,
message
:
"
请选择Hp抗体(IgG)检测
"
}],
},
{
type
:
"
upload
"
,
display
:
true
,
importantField
:
false
,
styles
:
{},
prop
:
"
patient_avatar
"
,
label
:
"
血检报告单
"
,
fieldType
:
"
varchar
"
,
fieldLength
:
"
10
"
,
showFileList
:
true
,
multiple
:
true
,
bucketName
:
"
pacs
"
,
limit
:
5
,
dicType
:
""
,
tableName
:
"
附件
"
,
tableCode
:
"
gas_attachment
"
,
tableId
:
"
1595978031963398145
"
,
notFilter
:
false
,
cType
:
""
,
subfield
:
false
,
autoRequired
:
0
,
personalRequired
:
0
,
listType
:
"
picture-card
"
,
required
:
true
,
rules
:
[{
required
:
true
,
message
:
"
血检报告单必须填写
"
}],
lg
:
24
,
width
:
24
,
xs
:
24
,
sm
:
24
,
span
:
24
,
md
:
24
,
},
{
type
:
"
upload
"
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
"
exam_img
"
,
label
:
"
实验室报告
"
,
required
:
true
,
rules
:
[{
required
:
true
,
message
:
"
实验室报告必须填写
"
}],
showFileList
:
true
,
multiple
:
true
,
bucketName
:
"
exam
"
,
limit
:
5
,
dicType
:
""
,
listType
:
"
picture-card
"
,
fieldType
:
"
varchar
"
,
fieldLength
:
"
255
"
,
tableName
:
"
附件
"
,
tableCode
:
"
gas_attachment
"
,
tableId
:
"
1595978031963398145
"
,
notFilter
:
false
,
cType
:
""
,
subfield
:
false
,
},
],
},
],
}
src/components/Upload/index.vue
View file @
ca416b44
...
@@ -116,7 +116,7 @@ export default {
...
@@ -116,7 +116,7 @@ export default {
return
this
.
value
.
map
((
_
)
=>
{
return
this
.
value
.
map
((
_
)
=>
{
return
(
return
(
_
.
url
||
_
.
url
||
`https://ds.cixincloud.com/geca-api/disease-data/file/info/
${
_
.
bucket
Name
}
/
${
_
.
uuidN
ame
}
`
`https://ds.cixincloud.com/geca-api/disease-data/file/info/
${
_
.
bucket
_name
}
/
${
_
.
prefix
}
-
${
_
.
uuid_n
ame
}
`
)
)
})
})
},
},
...
@@ -129,7 +129,7 @@ export default {
...
@@ -129,7 +129,7 @@ export default {
this
.
fileList
=
newValue
.
map
((
_
)
=>
{
this
.
fileList
=
newValue
.
map
((
_
)
=>
{
return
{
return
{
name
:
_
.
file_name
,
name
:
_
.
file_name
,
url
:
`https://ds.cixincloud.com/geca-api/disease-data/file/info/
${
_
.
bucket
Name
}
/
${
_
.
uuidN
ame
}
`
,
url
:
`https://ds.cixincloud.com/geca-api/disease-data/file/info/
${
_
.
bucket
_name
}
/
${
_
.
prefix
}
-
${
_
.
uuid_n
ame
}
`
,
}
}
})
})
},
},
...
@@ -171,7 +171,7 @@ export default {
...
@@ -171,7 +171,7 @@ export default {
handleSuccess
(
res
,
file
,
fileList
)
{
handleSuccess
(
res
,
file
,
fileList
)
{
const
{
data
}
=
res
const
{
data
}
=
res
if
(
data
)
{
if
(
data
)
{
this
.
value
.
push
({
...
data
,
url
:
file
.
url
})
this
.
value
.
push
({
...
data
})
}
else
{
}
else
{
this
.
$message
.
warning
(
res
.
msg
)
this
.
$message
.
warning
(
res
.
msg
)
this
.
$refs
.
upload
.
clearFiles
()
this
.
$refs
.
upload
.
clearFiles
()
...
@@ -187,22 +187,20 @@ export default {
...
@@ -187,22 +187,20 @@ export default {
},
},
// 移除
// 移除
handleRemove
({
url
},
fileList
)
{
handleRemove
({
uuid_name
},
fileList
)
{
let
arr
=
url
.
split
(
"
/
"
)
const
i
=
this
.
value
.
findIndex
((
_
)
=>
uuid_name
==
_
.
uuidName
)
let
uuidName
=
arr
[
arr
.
length
-
1
]
const
i
=
this
.
value
.
findIndex
((
_
)
=>
uuidName
==
_
.
uuidName
)
if
(
i
>
-
1
)
this
.
value
.
splice
(
i
,
1
)
if
(
i
>
-
1
)
this
.
value
.
splice
(
i
,
1
)
console
.
log
(
"
删了
"
,
this
.
value
)
console
.
log
(
"
删了
"
,
this
.
value
)
},
},
// 查看
// 查看
/下载
handlePreview
(
file
)
{
handlePreview
(
file
)
{
const
name
=
file
.
fileName
||
file
.
name
const
name
=
file
.
fileName
||
file
.
name
this
.
title
=
name
this
.
title
=
name
let
responseUrl
let
responseUrl
if
(
file
.
response
)
{
if
(
file
.
response
)
{
const
_
=
file
.
response
.
data
const
_
=
file
.
response
.
data
responseUrl
=
`https://ds.cixincloud.com/geca-api/disease-data/file/info/
${
_
.
bucket
Name
}
/
${
_
.
uuidN
ame
}
`
responseUrl
=
`https://ds.cixincloud.com/geca-api/disease-data/file/info/
${
_
.
bucket
_name
}
/
${
_
.
prefix
}
-
${
_
.
uuid_n
ame
}
`
}
}
try
{
try
{
if
(
name
.
match
(
/
\.(
png|jpg|jpeg
)
/
))
{
if
(
name
.
match
(
/
\.(
png|jpg|jpeg
)
/
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment