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
31f28c0e
Commit
31f28c0e
authored
Jan 30, 2023
by
wangshuangqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.添加新字段
2.看在当前行点击进行编辑 3.添加滚动条
parent
1928cd92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
194 additions
and
3 deletions
+194
-3
src/views/outClinicalpathway.vue
+194
-3
No files found.
src/views/outClinicalpathway.vue
View file @
31f28c0e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: wsq
* @Author: wsq
* @Date: 2022-04-22 15:20:58
* @Date: 2022-04-22 15:20:58
* @LastEditors: wsq
* @LastEditors: wsq
* @LastEditTime: 2023-01-
28 15:40:40
* @LastEditTime: 2023-01-
30 13:51:13
* @Description:
* @Description:
-->
-->
<
template
>
<
template
>
...
@@ -134,7 +134,6 @@
...
@@ -134,7 +134,6 @@
ref=
"multipleTable"
ref=
"multipleTable"
row-key=
"id"
row-key=
"id"
:data=
"tableData"
:data=
"tableData"
style=
"width: 100%; height: 100%; overflow-y: scroll"
:tree-props=
"{ children: 'children', hasChildren: 'hasChildren' }"
:tree-props=
"{ children: 'children', hasChildren: 'hasChildren' }"
:select-on-indeterminate=
"true"
:select-on-indeterminate=
"true"
@
selection-change=
"SelectionChange"
@
selection-change=
"SelectionChange"
...
@@ -150,17 +149,147 @@
...
@@ -150,17 +149,147 @@
show-overflow-tooltip
show-overflow-tooltip
property=
"advice_name"
property=
"advice_name"
label=
"路径名称"
label=
"路径名称"
width=
"150"
/>
/>
<el-table-column
<el-table-column
show-overflow-tooltip
show-overflow-tooltip
property=
"project_code"
property=
"project_code"
label=
"医院项目编码"
label=
"医院项目编码"
width=
"120"
/>
/>
<el-table-column
<el-table-column
show-overflow-tooltip
show-overflow-tooltip
property=
"project_name"
property=
"project_name"
label=
"医院项目名称"
label=
"医院项目名称"
width=
"150"
/>
/>
<el-table-column
show-overflow-tooltip
property=
"specifications"
label=
"规格说明"
/>
<el-table-column
show-overflow-tooltip
property=
"dosage"
label=
"药品剂型"
/>
<el-table-column
show-overflow-tooltip
property=
"isAntibiotic"
label=
"抗生素否"
width=
"110"
>
<
template
#
default=
"scope"
>
<span
v-if=
"tableIndex != scope.$index"
>
{{
scope
.
row
.
isAntibiotic
}}
</span>
<el-select
v-else
size=
"mini"
v-model=
"scope.row.isAntibiotic"
>
<el-option
v-for=
"item in chargeTypeoptions"
:key=
"item.label"
:label=
"item.label"
:value=
"item.label"
>
</el-option>
</el-select>
</
template
>
</el-table-column>
<el-table-column
prop=
"medicUseQuantity"
label=
"用量"
width=
"120"
>
<
template
#
default=
"scope"
>
<span
v-if=
"tableIndex != scope.$index"
>
{{
scope
.
row
.
medicUseQuantity
}}
</span>
<el-input
v-else
v-model=
"scope.row.medicUseQuantity"
size=
"mini"
placeholder=
"请输入内容"
></el-input>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"medicUseUnit"
label=
"单位"
/>
<el-table-column
show-overflow-tooltip
property=
"medicUseMode"
label=
"途径"
/>
<el-table-column
show-overflow-tooltip
property=
"medicUsePlan"
label=
"频率"
/>
<el-table-column
prop=
"dropNumber"
label=
"滴数"
width=
"120"
>
<
template
#
default=
"scope"
>
<span
v-if=
"tableIndex != scope.$index"
>
{{
scope
.
row
.
dropNumber
}}
</span>
<el-input
v-else
v-model=
"scope.row.dropNumber"
size=
"mini"
placeholder=
"请输入内容"
></el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"medicQuantity"
label=
"用药总量"
width=
"120"
>
<
template
#
default=
"scope"
>
<span
v-if=
"tableIndex != scope.$index"
>
{{
scope
.
row
.
medicQuantity
}}
</span>
<el-input
v-else
v-model=
"scope.row.medicQuantity"
size=
"mini"
placeholder=
"请输入内容"
></el-input>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"medicUnit"
label=
"单位"
/>
<el-table-column
show-overflow-tooltip
property=
"remark"
label=
"嘱托"
/>
<el-table-column
label=
"操作"
width=
"200"
align=
"center"
>
<
template
#
default=
"scope"
>
<div
class=
"table_handle"
v-show=
"tableIndex != scope.$index"
v-if=
"scope.row.advice_name == null"
>
<el-button
size=
"mini"
type=
"info"
@
click=
"edit(scope.row, scope.$index)"
>
编辑
</el-button
>
</div>
<div
class=
"table_handle"
v-show=
"tableIndex == scope.$index"
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"confirm(scope.row, scope.$index)"
>
确定
</el-button
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"cancel(scope.row, scope.$index)"
>
取消
</el-button
>
</div>
</
template
>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
</div>
</div>
...
@@ -182,7 +311,7 @@ import { Message } from "element-ui";
...
@@ -182,7 +311,7 @@ import { Message } from "element-ui";
import
{
useRoute
,
useRouter
}
from
"../utils/useVueRouter"
;
import
{
useRoute
,
useRouter
}
from
"../utils/useVueRouter"
;
import
{
setItem
,
getItem
}
from
"../utils/auth"
;
import
{
setItem
,
getItem
}
from
"../utils/auth"
;
import
{
Loading
}
from
"element-ui"
;
import
{
Loading
}
from
"element-ui"
;
import
_
from
"lodash"
;
export
default
{
export
default
{
name
:
"outClinicalpathway"
,
name
:
"outClinicalpathway"
,
setup
()
{
setup
()
{
...
@@ -226,8 +355,38 @@ export default {
...
@@ -226,8 +355,38 @@ export default {
reasonoptions
:
[],
//变异原因
reasonoptions
:
[],
//变异原因
crid
:
null
,
crid
:
null
,
chickid
:
[],
//选中的id
chickid
:
[],
//选中的id
tableIndex
:
-
1
,
tempRow
:
{},
//储存正在编辑的行
chargeTypeoptions
:
[
{
label
:
"是"
,
},
{
label
:
"否"
,
},
],
});
});
//编辑
const
edit
=
(
row
,
index
)
=>
{
console
.
log
(
"row"
,
row
);
state
.
tableIndex
=
index
;
state
.
tempRow
=
_
.
cloneDeep
(
row
);
console
.
log
(
"state.tempRow "
,
state
.
tempRow
);
};
//取消
const
cancel
=
(
row
,
index
)
=>
{
if
(
!
row
.
id
)
{
//如果为空,删除当前行
state
.
tableData
.
splice
(
index
,
1
);
//前端删除
}
else
{
state
.
tableData
[
index
]
=
state
.
tempRow
;
}
state
.
tableIndex
=
-
1
;
};
//获取患者信息
//获取患者信息
const
gettopdata
=
()
=>
{
const
gettopdata
=
()
=>
{
http
http
...
@@ -524,6 +683,8 @@ export default {
...
@@ -524,6 +683,8 @@ export default {
joinorder
,
joinorder
,
getreasonoptions
,
getreasonoptions
,
getTitle
,
getTitle
,
edit
,
cancel
,
};
};
},
},
};
};
...
@@ -537,6 +698,34 @@ export default {
...
@@ -537,6 +698,34 @@ export default {
background-color
:
#0085ba
!important
;
background-color
:
#0085ba
!important
;
border-color
:
#1097e0
!important
;
border-color
:
#1097e0
!important
;
}
}
::v-deep
.el-table--scrollable-x
.el-table__body-wrapper
{
height
:
688px
!important
;
overflow-y
:
auto
!important
;
}
//
滚动条的宽度
::v-deep
.el-table__body-wrapper
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
10px
;
/*高宽分别对应横竖滚动条的尺寸*/
height
:
10px
;
background-color
:
#ffff
;
}
//
滚动条的滑块
::v-deep
.el-table__body-wrapper
::-webkit-scrollbar-thumb
{
background-color
:
#27aae2
;
border
:
3px
solid
transparent
;
border-radius
:
9px
;
background-clip
:
content-box
;
}
::v-deep
.el-table__body-wrapper
::-webkit-scrollbar-track
{
/*滚动条里面轨道*/
border-radius
:
20px
;
background
:
#ffff
;
width
:
10px
;
}
.outClinicalpathway
{
.outClinicalpathway
{
//
height
:
calc
(
100%
-
50px
);
//
height
:
calc
(
100%
-
50px
);
//
background-color
:
white
;
//
background-color
:
white
;
...
@@ -669,6 +858,7 @@ export default {
...
@@ -669,6 +858,7 @@ export default {
&
_right
{
&
_right
{
height
:
100%
;
height
:
100%
;
width
:
20%
;
width
:
20%
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
...
@@ -700,6 +890,7 @@ export default {
...
@@ -700,6 +890,7 @@ export default {
&
_right
{
&
_right
{
width
:
84%
;
width
:
84%
;
height
:
100%
;
height
:
100%
;
//
overflow
:
scroll
;
}
}
}
}
}
}
...
...
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