Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
e4d790a4
Commit
e4d790a4
authored
Jun 19, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix表格勾选联动失效
parent
995e3b14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
src/components/shopping-cart/shopping-cart-cell.vue
src/components/shopping-cart/shopping-cart-cell.vue
+0
-8
src/components/table/table-um.vue
src/components/table/table-um.vue
+3
-2
No files found.
src/components/shopping-cart/shopping-cart-cell.vue
View file @
e4d790a4
...
...
@@ -203,23 +203,16 @@ export default {
getSpecification
()
{
if
(
this
.
cellIsService
)
{
let
arr
=
[];
console
.
log
(
this
.
cellItems
.
service
.
request_spcs_info
);
if
(
this
.
cellItems
.
service
.
request_spcs_info
&&
this
.
cellItems
.
service
.
request_spcs_info
.
length
!=
0
)
{
console
.
log
(
"
sss
"
);
let
requestArr
=
this
.
cellItems
.
service
.
request_spcs_info
;
requestArr
.
forEach
(
item
=>
{
console
.
log
(
item
);
arr
.
push
(
item
.
id
);
});
}
console
.
log
(
arr
);
let
num
=
arr
.
indexOf
(
this
.
cellItems
.
spec_id
);
console
.
log
(
num
);
let
specification
=
""
;
if
(
num
!=
-
1
)
{
specification
=
this
.
cellItems
.
service
.
request_spcs_info
[
num
].
des
;
...
...
@@ -240,7 +233,6 @@ export default {
this
.
$emit
(
"
changeState
"
,
{
state
:
val
,
index
:
this
.
cellIndex
});
},
changeSpecification
(
val
)
{
console
.
log
(
val
);
this
.
specificationPop
=
val
;
},
changeSpecificationApplication
(
val
)
{
...
...
src/components/table/table-um.vue
View file @
e4d790a4
...
...
@@ -544,10 +544,10 @@ export default {
let
self
=
this
;
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
].
id
==
row
.
id
)
{
if
(
arr
[
i
].
selected
)
{
if
(
arr
[
i
].
selected
&&
typeof
arr
[
i
].
selected
==
"
boolean
"
)
{
arr
[
i
].
selected
=
state
;
}
else
{
arr
[
i
].
selected
=
1
;
arr
[
i
].
selected
=
true
;
}
if
(
arr
[
i
].
children
&&
arr
[
i
].
children
.
length
!=
0
)
{
self
.
setChildren
(
arr
[
i
].
children
,
state
);
...
...
@@ -586,6 +586,7 @@ export default {
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
].
id
==
pid
)
{
self
.
$refs
.
cesTable
.
toggleRowSelection
(
arr
[
i
],
true
);
arr
[
i
].
selected
=
true
;
self
.
getParent
(
self
.
metaData
,
arr
[
i
].
parentId
);
}
if
(
arr
[
i
].
children
&&
arr
[
i
].
children
.
length
!=
0
)
{
...
...
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