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
0f325232
Commit
0f325232
authored
Jun 17, 2022
by
wangshuangqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击有交互效果 改变背景颜色
parent
d8c9567c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
src/views/outpatientDetails.vue
+21
-6
No files found.
src/views/outpatientDetails.vue
View file @
0f325232
...
@@ -274,9 +274,11 @@
...
@@ -274,9 +274,11 @@
<div
class=
"outpatientDetails_bottom_rght2_top_mes"
>
<div
class=
"outpatientDetails_bottom_rght2_top_mes"
>
<span
<span
class=
"outpatientDetails_bottom_rght2_top_mes_span1"
class=
"outpatientDetails_bottom_rght2_top_mes_span1"
:class=
"{ outpatientDetails_bottom_rght2_top_mes_span1background: ind == span1Ind }"
v-for=
"(item, ind) in typeCountDatas"
v-for=
"(item, ind) in typeCountDatas"
:key=
"ind"
:key=
"ind"
@
click=
"gettype(item.name)"
@
click=
"gettype(item.name,ind)"
>
{{ item.name }}:
<span
:style=
"{ color: item.color }"
>
{{
>
{{ item.name }}:
<span
:style=
"{ color: item.color }"
>
{{
item.count
item.count
}}
</span></span
}}
</span></span
...
@@ -290,9 +292,10 @@
...
@@ -290,9 +292,10 @@
<div
class=
"outpatientDetails_bottom_rght2_bottom"
>
<div
class=
"outpatientDetails_bottom_rght2_bottom"
>
<div
<div
class=
"outpatientDetails_bottom_rght2_bottom_li"
class=
"outpatientDetails_bottom_rght2_bottom_li"
:class=
"{outpatientDetails_bottom_rght2_bottom_liInd:ind==liInd}"
v-for=
"(item, ind) in options"
v-for=
"(item, ind) in options"
:key=
"ind"
:key=
"ind"
@
click=
"getruleId(item.ruleId)"
@
click=
"getruleId(item.ruleId
,ind
)"
>
>
<span
<span
v-show=
"item.projectRuleLevel == '禁止'"
v-show=
"item.projectRuleLevel == '禁止'"
...
@@ -375,7 +378,7 @@ export default {
...
@@ -375,7 +378,7 @@ export default {
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{});
};
};
//点击异常分类 显示异常信息
//点击异常分类 显示异常信息
const
gettype
=
(
name
)
=>
{
const
gettype
=
(
name
,
ind
)
=>
{
console
.
log
(
'name'
,
name
);
console
.
log
(
'name'
,
name
);
state
.
showCountDatas
=
true
;
state
.
showCountDatas
=
true
;
state
.
showbottom
=
true
;
state
.
showbottom
=
true
;
...
@@ -383,7 +386,8 @@ export default {
...
@@ -383,7 +386,8 @@ export default {
http
http
.
post
(
`/medical/get/GetPRHisData?&code=
${
route
.
value
.
query
.
id
}
&projectType=
${
name
}
`
,
{})
.
post
(
`/medical/get/GetPRHisData?&code=
${
route
.
value
.
query
.
id
}
&projectType=
${
name
}
`
,
{})
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
state
.
liInd
=-
1
;
state
.
span1Ind
=
ind
;
state
.
options
=
data
.
projectRules
;
state
.
options
=
data
.
projectRules
;
// state.typeCountDatas = data.typeCountDatas;
// state.typeCountDatas = data.typeCountDatas;
// if (data.typeCountDatas == null) {
// if (data.typeCountDatas == null) {
...
@@ -402,10 +406,11 @@ export default {
...
@@ -402,10 +406,11 @@ export default {
//点击获取中间的表格数据
//点击获取中间的表格数据
const
getruleId
=
(
ruleId
)
=>
{
const
getruleId
=
(
ruleId
,
ind
)
=>
{
http
http
.
post
(
`/medical/Post/GetiFHisByItemCode?code=
${
route
.
value
.
query
.
id
}
&ruleId=
${
ruleId
}
`
,
{})
.
post
(
`/medical/Post/GetiFHisByItemCode?code=
${
route
.
value
.
query
.
id
}
&ruleId=
${
ruleId
}
`
,
{})
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
state
.
liInd
=
ind
;
state
.
tableData
=
data
;
state
.
tableData
=
data
;
})
})
...
@@ -567,6 +572,8 @@ export default {
...
@@ -567,6 +572,8 @@ export default {
lowMagnification
:
0
,
//低倍率值
lowMagnification
:
0
,
//低倍率值
highMagnification
:
0
,
//高倍率值
highMagnification
:
0
,
//高倍率值
bottomheight
:
"60%"
,
//底部高度
bottomheight
:
"60%"
,
//底部高度
span1Ind
:
-
1
,
liInd
:
-
1
,
});
});
//表格自适应高度
//表格自适应高度
const
route
=
useRoute
();
const
route
=
useRoute
();
...
@@ -1059,6 +1066,7 @@ export default {
...
@@ -1059,6 +1066,7 @@ export default {
margin-bottom
:
21px
;
margin-bottom
:
21px
;
font-size
:
13px
;
font-size
:
13px
;
color
:
#6a707e
;
color
:
#6a707e
;
cursor
:
pointer
;
/*鼠标移上有小手*/
div
{
div
{
width
:
98%
;
width
:
98%
;
height
:
46px
;
height
:
46px
;
...
@@ -1183,7 +1191,11 @@ export default {
...
@@ -1183,7 +1191,11 @@ export default {
font-weight
:
400
;
font-weight
:
400
;
color
:
#5d5d5d
;
color
:
#5d5d5d
;
margin-right
:
5px
;
margin-right
:
5px
;
cursor
:
pointer
;
/*鼠标移上有小手*/
}
}
&
_span1background
{
background
:
#d9f0fa
;
}
&
_span2
{
&
_span2
{
width
:
101px
;
width
:
101px
;
height
:
36px
;
height
:
36px
;
...
@@ -1232,7 +1244,7 @@ export default {
...
@@ -1232,7 +1244,7 @@ export default {
&_li
{
&_li
{
width
:
100%
;
width
:
100%
;
height
:
25%
;
height
:
25%
;
cursor
:
pointer
;
/*鼠标移上有小手*/
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
flex-start
;
align-items
:
flex-start
;
...
@@ -1261,6 +1273,9 @@ export default {
...
@@ -1261,6 +1273,9 @@ export default {
width
:
97%
;
width
:
97%
;
}
}
}
}
&
_liInd
{
background
:
#f3fafd
;
}
}
}
}
}
}
}
...
...
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