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
6a1eb39a
Commit
6a1eb39a
authored
Mar 15, 2023
by
yufeng.tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
a45161b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
23 deletions
+41
-23
src/views/outClinicalpathway.vue
+41
-23
No files found.
src/views/outClinicalpathway.vue
View file @
6a1eb39a
...
@@ -620,15 +620,16 @@ export default {
...
@@ -620,15 +620,16 @@ export default {
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{});
},
},
// setChildren(children, type) {
setChildren
(
children
,
type
)
{
// // 编辑多个子层级
// 编辑多个子层级
// children.map((j) => {
children
.
map
((
j
)
=>
{
// this.toggleSelection(j, type);
j
.
tickTime
=
transformTimestampnow
();
// if (j.children) {
this
.
toggleSelection
(
j
,
type
);
// this.setChildren(j.children, type);
if
(
j
.
children
&&
j
.
children
.
length
)
{
// }
this
.
setChildren
(
j
.
children
,
type
);
// });
}
// },
});
},
// 选中父节点时,子节点一起选中取消
// 选中父节点时,子节点一起选中取消
select
(
selection
,
row
)
{
select
(
selection
,
row
)
{
...
@@ -640,13 +641,21 @@ export default {
...
@@ -640,13 +641,21 @@ export default {
})
})
)
{
)
{
row
.
ischeck
=
1
;
row
.
ischeck
=
1
;
if
(
row
.
children
)
{
if
(
row
.
children
&&
row
.
children
.
length
)
{
row
.
children
row
.
children
.
filter
((
item
)
=>
item
.
isForbidden
)
.
filter
((
item
)
=>
item
.
isForbidden
)
.
map
((
j
)
=>
{
.
map
((
j
)
=>
{
if
(
j
.
children
&&
j
.
children
.
length
)
{
j
.
children
.
filter
((
r
)
=>
r
.
isForbidden
)
.
map
((
e
)
=>
{
e
.
tickTime
=
transformTimestampnow
();
// e.edit = false;
this
.
toggleSelection
(
e
,
true
);
});
}
j
.
tickTime
=
transformTimestampnow
();
j
.
tickTime
=
transformTimestampnow
();
j
.
edit
=
false
;
// j.edit = false;
console
.
log
(
j
.
type
);
this
.
toggleSelection
(
j
,
true
);
this
.
toggleSelection
(
j
,
true
);
});
});
console
.
log
(
1
);
console
.
log
(
1
);
...
@@ -663,6 +672,12 @@ export default {
...
@@ -663,6 +672,12 @@ export default {
if
(
row
.
children
&&
row
.
children
.
length
)
{
if
(
row
.
children
&&
row
.
children
.
length
)
{
console
.
log
(
3
,
row
);
console
.
log
(
3
,
row
);
row
.
children
.
map
((
p
)
=>
{
row
.
children
.
map
((
p
)
=>
{
if
(
p
.
children
&&
p
.
children
.
length
)
{
p
.
children
.
map
((
i
)
=>
{
i
.
ischeck
=
2
;
this
.
toggleSelection
(
i
,
false
);
});
}
p
.
ischeck
=
2
;
p
.
ischeck
=
2
;
this
.
toggleSelection
(
p
,
false
);
this
.
toggleSelection
(
p
,
false
);
});
});
...
@@ -706,6 +721,13 @@ export default {
...
@@ -706,6 +721,13 @@ export default {
el
.
children
el
.
children
.
filter
((
item
)
=>
item
.
isForbidden
)
.
filter
((
item
)
=>
item
.
isForbidden
)
.
map
((
j
)
=>
{
.
map
((
j
)
=>
{
if
(
j
.
children
)
{
j
.
children
.
filter
((
r
)
=>
r
.
isForbidden
)
.
map
((
e
)
=>
{
this
.
toggleSelection
(
e
,
true
);
});
}
this
.
toggleSelection
(
j
,
true
);
this
.
toggleSelection
(
j
,
true
);
});
});
}
}
...
@@ -731,23 +753,25 @@ export default {
...
@@ -731,23 +753,25 @@ export default {
this
.
multipleSelection1
=
val
.
sort
((
a
,
b
)
=>
a
.
sort
-
b
.
sort
);
this
.
multipleSelection1
=
val
.
sort
((
a
,
b
)
=>
a
.
sort
-
b
.
sort
);
// this.multipleSelection1 = val.filter((item) => !item.children).sort((a, b) => a.sort - b.sort);
// this.multipleSelection1 = val.filter((item) => !item.children).sort((a, b) => a.sort - b.sort);
}
}
console
.
log
(
this
.
multipleSelection
.
filter
((
item
)
=>
item
.
adviceType
));
console
.
log
(
this
.
multipleSelection1
.
filter
((
item
)
=>
item
.
adviceType
));
if
(
this
.
multipleSelection
.
length
)
{
if
(
this
.
multipleSelection
.
length
)
{
this
.
multipleSelection
this
.
multipleSelection
.
filter
((
item
)
=>
item
.
adviceType
)
.
filter
((
item
)
=>
item
.
type
!=
1
)
.
filter
((
item
)
=>
item
.
type
!=
1
)
.
filter
((
item
)
=>
!
item
.
children
)
.
map
((
item
,
index
)
=>
{
.
map
((
item
,
index
)
=>
{
index
==
0
?
(
item
.
isedit
=
true
)
:
(
item
.
isedit
=
false
);
index
==
0
?
(
item
.
isedit
=
true
)
:
(
item
.
isedit
=
false
);
});
});
}
}
if
(
this
.
multipleSelection1
.
length
)
{
if
(
this
.
multipleSelection1
.
length
)
{
this
.
multipleSelection1
this
.
multipleSelection1
.
filter
((
item
)
=>
item
.
adviceType
)
.
filter
((
item
)
=>
item
.
type
!=
1
)
.
filter
((
item
)
=>
item
.
type
!=
1
)
.
filter
((
item
)
=>
!
item
.
children
)
.
map
((
item
,
index
)
=>
{
.
map
((
item
,
index
)
=>
{
index
==
0
?
(
item
.
isedit
=
true
)
:
(
item
.
isedit
=
false
);
index
==
0
?
(
item
.
isedit
=
true
)
:
(
item
.
isedit
=
false
);
});
});
}
}
console
.
log
(
this
.
multipleSelection
);
},
},
//获取左侧时间线数据
//获取左侧时间线数据
...
@@ -797,9 +821,6 @@ export default {
...
@@ -797,9 +821,6 @@ export default {
data
.
route1
.
forEach
((
element
)
=>
{
data
.
route1
.
forEach
((
element
)
=>
{
if
(
element
.
children
)
{
if
(
element
.
children
)
{
element
.
children
.
map
((
el
,
i
)
=>
{
element
.
children
.
map
((
el
,
i
)
=>
{
// if (el.orderType == "药疗") {
// el.children = [];
// }
el
.
sort
=
i
++
;
el
.
sort
=
i
++
;
el
.
isedit
=
false
;
el
.
isedit
=
false
;
});
});
...
@@ -808,9 +829,6 @@ export default {
...
@@ -808,9 +829,6 @@ export default {
data
.
route2
.
forEach
((
element
)
=>
{
data
.
route2
.
forEach
((
element
)
=>
{
if
(
element
.
children
)
{
if
(
element
.
children
)
{
element
.
children
.
map
((
el
,
i
)
=>
{
element
.
children
.
map
((
el
,
i
)
=>
{
// if (el.orderType == "药疗") {
// el.children = [];
// }
el
.
sort
=
i
++
;
el
.
sort
=
i
++
;
el
.
isedit
=
false
;
el
.
isedit
=
false
;
});
});
...
@@ -906,8 +924,8 @@ export default {
...
@@ -906,8 +924,8 @@ export default {
},
300
);
},
300
);
},
},
saveSetPatientRoutes
()
{
saveSetPatientRoutes
()
{
this
.
objtable
.
route1
=
this
.
multipleSelection
;
this
.
objtable
.
route1
=
this
.
multipleSelection
.
filter
((
item
)
=>
item
.
adviceType
)
;
this
.
objtable
.
route2
=
this
.
multipleSelection1
;
this
.
objtable
.
route2
=
this
.
multipleSelection1
.
filter
((
item
)
=>
item
.
adviceType
)
;
http
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=
${
this
.
$route
.
query
.
pid
}
`
,
this
.
objtable
)
.
post
(
`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=
${
this
.
$route
.
query
.
pid
}
`
,
this
.
objtable
)
.
then
(
async
(
data
)
=>
{
.
then
(
async
(
data
)
=>
{
...
...
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