Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-composition-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
vue-composition-api
Commits
4aa84ad4
Commit
4aa84ad4
authored
Jun 27, 2023
by
唐玉峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临床
parent
187e6004
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
24 deletions
+47
-24
src/views/clinicalPathMaintenance.vue
+31
-13
src/views/relationMapping.vue
+16
-11
No files found.
src/views/clinicalPathMaintenance.vue
View file @
4aa84ad4
...
...
@@ -23,10 +23,11 @@
<el-table-column
align=
"center"
type=
"index"
width=
"50"
:index=
"(currentPage - 1) * pageSize + 1"
fixed
></el-table-column>
<el-table-column
:prop=
"item.prop"
min-width=
"160"
:label=
"item.label"
v-for=
"item in columnList"
:key=
"item.label"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"
24
0"
fixed=
"right"
>
<el-table-column
label=
"操作"
width=
"
30
0"
fixed=
"right"
>
<template
#
default=
"scope"
>
<el-button
size=
"mini"
type=
"success"
@
click=
"editbtn(scope.row)"
>
操作方案
</el-button>
<el-button
size=
"mini"
type=
"primary"
style=
"background-color: #0283bb"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"primary"
style=
"background-color: #0283bb"
@
click=
"edit(scope.row, 1)"
>
复制
</el-button>
<el-button
size=
"mini"
type=
"primary"
style=
"background-color: #0283bb"
@
click=
"edit(scope.row, 2)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"danger"
@
click=
"delbtn(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
...
...
@@ -50,7 +51,7 @@
class=
"relationMapping_rightdiaglogbox"
max-height=
"600px"
width=
"30%"
:title=
"form.id ? '编辑' : '新增'"
:title=
"
type == 1 ? '复制' :
form.id ? '编辑' : '新增'"
>
<el-form
size=
"mini"
:model=
"form"
ref=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
...
...
@@ -178,6 +179,7 @@ export default {
max_stay
:
0
,
pin_yin
:
""
,
},
type
:
0
,
};
},
mounted
()
{
...
...
@@ -211,20 +213,31 @@ export default {
this
.
visible
=
true
;
this
.
$refs
.
ruleForm
.
resetFields
();
},
edit
(
row
)
{
edit
(
row
,
i
)
{
this
.
visible
=
true
;
this
.
type
=
i
;
this
.
form
=
{
id
:
row
.
id
,
clinical_route_name
:
row
.
clinical_route_name
,
clinical_route_foldername
:
row
.
clinical_route_foldername
,
applicable_objects
:
row
.
applicable_objects
,
hospital_stay
:
row
.
hospital_stay
,
min_stay
:
row
.
min_stay
,
max_stay
:
row
.
max_stay
,
pin_yin
:
row
.
pin_yin
,
clinical_route_name
:
i
==
1
?
""
:
row
.
clinical_route_name
,
clinical_route_foldername
:
i
==
1
?
""
:
row
.
clinical_route_foldername
,
applicable_objects
:
i
==
1
?
""
:
row
.
applicable_objects
,
hospital_stay
:
i
==
1
?
""
:
row
.
hospital_stay
,
min_stay
:
i
==
1
?
0
:
row
.
min_stay
,
max_stay
:
i
==
1
?
0
:
row
.
max_stay
,
pin_yin
:
i
==
1
?
""
:
row
.
pin_yin
,
};
},
resetForm
()
{
this
.
form
=
{
id
:
0
,
// clinical_route_name: "",
// clinical_route_foldername: "",
// applicable_objects: "",
// hospital_stay: "",
// min_stay: 0,
// max_stay: 0,
// pin_yin: "",
};
this
.
$refs
.
ruleForm
.
resetFields
();
this
.
visible
=
false
;
},
...
...
@@ -255,10 +268,15 @@ export default {
.
catch
((
e
)
=>
{});
},
Updatepost
(
infoParams
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/Update?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
?
this
.
$route
.
query
.
ApplyDoctor
:
0
}
`
,
infoParams
)
http
.
post
(
`
${
this
.
type
==
1
?
"/ClinicalRoute/ClinicalRoute/CopyRoute"
:
"/ClinicalRoute/ClinicalRoute/Update"
}
?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
?
this
.
$route
.
query
.
ApplyDoctor
:
0
}
`
,
infoParams
)
.
then
((
data
)
=>
{
Message
.
success
({
message
:
`
编辑成功
`
,
message
:
`
${
this
.
type
==
1
?
"复制成功"
:
"编辑成功"
}
`
,
type
:
"success"
,
});
this
.
form
.
id
=
0
;
...
...
src/views/relationMapping.vue
View file @
4aa84ad4
...
...
@@ -37,12 +37,13 @@
</el-radio-group>
<div
class=
""
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"saveSort(1, lefttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAdviceList')"
>
保存排序
</el-button
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"leftadd()"
>
添加
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"edit(currentRow)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"edit(currentRow, 1)"
>
复制
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"edit(currentRow, 2)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"danger"
@
click=
"del(currentRow)"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"success"
@
click=
"saveSort(1, lefttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAdviceList')"
>
保存排序
</el-button
>
</div>
</div>
<div
class=
"relationMapping_tablebox_lefttable_tablebox"
>
...
...
@@ -78,11 +79,11 @@
<span></span>
<div
style=
"color: red"
v-show=
"show"
>
有未保存排序内容!
</div>
<div
class=
""
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"saveSort(2, righttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAProject')"
>
保存排序
</el-button
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"rightadd()"
>
添加
</el-button>
<el-button
size=
"mini"
type=
"danger"
@
click=
"rightdelarr()"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"success"
@
click=
"saveSort(2, righttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAProject')"
>
保存排序
</el-button
>
</div>
</div>
<div
class=
"relationMapping_tablebox_righttable_tablebox"
>
...
...
@@ -110,7 +111,7 @@
class=
"relationMapping_rightdiaglogbox"
max-height=
"600px"
width=
"30%"
:title=
"
ruleForm.id > 0 ? '编辑' : '新增
'"
:title=
"
type == 1 ? '复制' : '编辑
'"
>
<el-form
size=
"mini"
:model=
"ruleForm"
ref=
"ruleFormRef"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
...
...
@@ -360,6 +361,7 @@ export default {
leftaddtable
:
[],
},
currentRow
:
null
,
type
:
0
,
};
},
mounted
()
{
...
...
@@ -411,9 +413,10 @@ export default {
this
.
visible
=
false
;
},
//左侧点击编辑
edit
(
row
)
{
edit
(
row
,
i
)
{
if
(
row
)
{
this
.
visible
=
true
;
this
.
type
=
i
;
this
.
ruleForm
=
{
id
:
row
.
id
,
type
:
this
.
radio
,
...
...
@@ -465,12 +468,14 @@ export default {
if
(
valid
)
{
let
param
=
this
.
ruleForm
;
http
.
post
(
`/ClinicalRoute/ClinicalRoute/UpdateMapCRAdvice?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
?
this
.
$route
.
query
.
ApplyDoctor
:
0
}
`
,
`
${
this
.
type
==
1
?
"/ClinicalRoute/ClinicalRoute/CopyMapCRAdvice"
:
"/ClinicalRoute/ClinicalRoute/UpdateMapCRAdvice"
}
?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
?
this
.
$route
.
query
.
ApplyDoctor
:
0
}
`
,
param
)
.
then
((
data
)
=>
{
Message
.
success
({
message
:
`
${
this
.
ruleForm
.
id
?
"编辑成功"
:
"添加
成功"
}
`
,
message
:
`
${
this
.
type
==
1
?
"复制成功"
:
"编辑
成功"
}
`
,
type
:
"success"
,
});
this
.
visible
=
false
;
...
...
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