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
33740995
Commit
33740995
authored
Dec 27, 2022
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医联体管理接口
parent
674a77d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
8 deletions
+38
-8
medicalunion-management.js
src/api/medicalunion-management.js
+11
-0
index.vue
src/views/systems/medicalunion-management/index.vue
+27
-8
No files found.
src/api/medicalunion-management.js
0 → 100644
View file @
33740995
import
request
from
"
@/utils/request
"
/* 数据库管理 */
export
function
addMedicalunion
(
data
=
{})
{
return
request
({
url
:
"
/cloud-upms/sys/union/addOrUpdate
"
,
method
:
"
post
"
,
data
,
})
}
src/views/systems/medicalunion-management/index.vue
View file @
33740995
...
...
@@ -21,6 +21,7 @@
<el-dialog
:visible.sync=
"addVisible"
width=
"520px"
:show-close=
"true"
>
<div
class=
"title"
>
添加医联体
</div>
<el-form
ref=
"form"
:model=
"form"
:label-position=
"'right'"
label-width=
"110px"
...
...
@@ -30,6 +31,8 @@
v-for=
"(item, index) in formList"
:key=
"index"
:label=
"item.label"
:rules=
"[
{ required: true, message: item.label + '不能为空' }]"
:prop="item.prop"
>
<el-input
v-if=
"item.type == 'input'"
...
...
@@ -52,7 +55,7 @@
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"
addVisible = false
"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"
submit()
"
>
保存
</el-button>
</span>
</el-dialog>
</div>
...
...
@@ -60,6 +63,8 @@
<
script
>
import
CustomsTable
from
"
@/components/CustomsTable
"
import
paginationMixin
from
"
@/components/TabComponents/mixin
"
import
{
addMedicalunion
}
from
"
@/api/medicalunion-management
"
export
default
{
components
:
{
CustomsTable
,
...
...
@@ -73,23 +78,23 @@ export default {
{
label
:
"
医联体名称
"
,
minWidth
:
120
,
value
:
"
group
Name
"
,
value
:
"
union
Name
"
,
},
{
label
:
"
医联体编号
"
,
minWidth
:
120
,
value
:
"
name
"
,
value
:
"
unionNo
"
,
},
{
label
:
"
省
"
,
minWidth
:
120
,
value
:
"
sex
"
,
value
:
"
province
"
,
},
{
label
:
"
市
"
,
minWidth
:
120
,
value
:
"
idCard
"
,
value
:
"
city
"
,
},
{
label
:
"
操作
"
,
...
...
@@ -123,19 +128,19 @@ export default {
],
tableData
:
[
{
group
Name
:
"
第一个
"
,
union
Name
:
"
第一个
"
,
},
],
formList
:
[
{
type
:
"
input
"
,
label
:
"
医联体名称
"
,
prop
:
"
medical
Name
"
,
prop
:
"
union
Name
"
,
},
{
type
:
"
input
"
,
label
:
"
医联体编号
"
,
prop
:
"
medicalId
"
,
prop
:
"
unionNo
"
,
},
{
type
:
"
select
"
,
...
...
@@ -171,6 +176,20 @@ export default {
}
this
.
addVisible
=
true
},
submit
()
{
this
.
$refs
[
"
form
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
addMedicalunion
(
this
.
form
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
$message
.
success
(
"
添加成功
"
)
}
})
}
else
{
console
.
log
(
"
error submit!!
"
)
return
false
}
})
},
},
}
</
script
>
...
...
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