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
a5592101
Commit
a5592101
authored
Jan 12, 2023
by
wangshuangqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认高亮条件
parent
ae8b3f86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
29 deletions
+47
-29
public/index.html
+8
-1
src/views/outClinicalpathway.vue
+39
-28
No files found.
public/index.html
View file @
a5592101
<!--
* @Author: wsq
* @Date: 2022-07-01 16:23:27
* @LastEditors: wsq
* @LastEditTime: 2023-01-12 13:05:23
* @Description:
-->
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
...
@@ -7,7 +14,7 @@
...
@@ -7,7 +14,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
rel=
"icon"
href=
"favicon.ico"
>
<link
rel=
"icon"
href=
"favicon.ico"
>
<link
rel=
"stylesheet"
href=
"../src/assets/
/
font/complete/iconfont.css"
>
<link
rel=
"stylesheet"
href=
"../src/assets/font/complete/iconfont.css"
>
<title>
<title>
基于病种精准管理系统
基于病种精准管理系统
...
...
src/views/outClinicalpathway.vue
View file @
a5592101
...
@@ -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-12 1
1:35:48
* @LastEditTime: 2023-01-12 1
3:11:54
* @Description:
* @Description:
-->
-->
<
template
>
<
template
>
...
@@ -170,7 +170,7 @@ export default {
...
@@ -170,7 +170,7 @@ export default {
setup
()
{
setup
()
{
//表格自适应高度
//表格自适应高度
const
route
=
useRoute
();
const
route
=
useRoute
();
const
router
=
useRouter
();
const
router
=
useRouter
();
const
fromRef
=
ref
();
const
fromRef
=
ref
();
const
monthlyPlanTable
=
ref
();
const
monthlyPlanTable
=
ref
();
const
multipleTable
=
ref
();
const
multipleTable
=
ref
();
...
@@ -323,28 +323,41 @@ export default {
...
@@ -323,28 +323,41 @@ export default {
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
state
.
activities
=
data
;
state
.
activities
=
data
;
state
.
options
=
data
;
state
.
options
=
data
;
state
.
activities
.
every
(
item
=>
{
state
.
activities
.
every
((
item
)
=>
{
if
(
item
.
flag
==
true
){
//如果都为true高亮最后一个
for
(
let
i
=
0
;
i
<
state
.
activities
.
length
;
i
++
)
{
if
(
item
.
flag
==
true
)
{
state
.
timeindex
=
state
.
activities
[
state
.
activities
.
length
-
1
].
inhosdays
for
(
let
i
=
0
;
i
<
state
.
activities
.
length
;
i
++
)
{
timeclick
(
state
.
activities
[
state
.
activities
.
length
-
1
]);
state
.
timeindex
=
state
.
activities
[
state
.
activities
.
length
-
1
].
inhosdays
;
timeclick
(
state
.
activities
[
state
.
activities
.
length
-
1
]);
console
.
log
(
"state.activities[state.activities.length-1]"
,
state
.
activities
[
state
.
activities
.
length
-
1
]
);
}
//如果都为false高亮第一个
}
else
if
(
item
.
flag
==
false
)
{
for
(
let
i
=
0
;
i
<
state
.
activities
.
length
;
i
++
)
{
state
.
timeindex
=
state
.
activities
[
0
].
inhosdays
;
timeclick
(
state
.
activities
[
0
]);
console
.
log
(
"state.activities[0]"
,
state
.
activities
[
0
]);
}
}
}
else
{
//truehe和false都有高亮第一个false
}
else
{
let
obj
=
null
;
let
obj
=
null
;
//find返回数组中符合条件的第一个元素 有false
//find返回数组中符合条件的第一个元素 有false
state
.
activities
.
find
((
item
)
=>
{
state
.
activities
.
find
((
item
)
=>
{
if
(
item
.
flag
==
false
)
{
if
(
item
.
flag
==
false
)
{
obj
=
item
;
obj
=
item
;
state
.
timeindex
=
obj
.
inhosdays
;
state
.
timeindex
=
obj
.
inhosdays
;
timeclick
(
obj
);
timeclick
(
obj
);
console
.
log
(
"item--false"
,
item
);
}
});
}
}
});
});
}
})
})
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{});
};
};
...
@@ -398,7 +411,6 @@ export default {
...
@@ -398,7 +411,6 @@ export default {
//病情变异
//病情变异
const
variation
=
()
=>
{
const
variation
=
()
=>
{
state
.
editdialogFormVisible
=
true
;
state
.
editdialogFormVisible
=
true
;
};
};
//确定
//确定
const
fromOKbtn
=
()
=>
{
const
fromOKbtn
=
()
=>
{
...
@@ -419,13 +431,12 @@ export default {
...
@@ -419,13 +431,12 @@ export default {
reason
:
""
,
reason
:
""
,
}),
}),
(
state
.
editdialogFormVisible
=
false
);
(
state
.
editdialogFormVisible
=
false
);
router
.
push
({
router
.
push
({
path
:
"Entrypath"
,
path
:
"Entrypath"
,
query
:
{
query
:
{
pid
:
route
.
value
.
query
.
pid
,
pid
:
route
.
value
.
query
.
pid
,
},
},
});
});
})
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{});
};
};
...
...
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