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
051d349c
Commit
051d349c
authored
Jun 16, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ldx' into dev
parents
dad4cf74
a57d8006
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
29 deletions
+38
-29
src/components/table/table-um.vue
src/components/table/table-um.vue
+12
-12
src/pages/authority/menus.vue
src/pages/authority/menus.vue
+24
-15
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+2
-2
No files found.
src/components/table/table-um.vue
View file @
051d349c
...
...
@@ -462,6 +462,7 @@ export default {
this
.
selectedTabsPage
=
arrs
;
}
this
.
metaData
=
[...
this
.
selectedTabsPage
];
console
.
log
(
this
.
selectedTabsPage
);
},
err
=>
{
console
.
log
(
"
失败
"
+
err
);
...
...
@@ -531,13 +532,13 @@ export default {
select
(
rows
,
row
)
{
if
(
rows
.
indexOf
(
row
)
!=
-
1
)
{
let
arrs
=
this
.
metaData
;
this
.
setMeta
(
arrs
,
row
,
1
);
this
.
setMeta
(
arrs
,
row
,
true
);
if
(
row
.
parentId
&&
row
.
parentId
!=
"
00000000
"
)
{
this
.
getParent
(
arrs
,
row
.
parentId
);
}
}
else
{
let
arrs
=
this
.
metaData
;
this
.
setMeta
(
arrs
,
row
,
0
);
this
.
setMeta
(
arrs
,
row
,
false
);
}
this
.
$emit
(
"
select
"
,
rows
,
row
);
},
...
...
@@ -545,15 +546,16 @@ export default {
selectAll
(
rows
)
{
let
arrs
=
this
.
metaData
;
if
(
rows
.
length
==
arrs
.
length
)
{
this
.
setAllMeta
(
arrs
,
1
);
this
.
setAllMeta
(
arrs
,
true
);
}
else
{
this
.
setAllMeta
(
arrs
,
0
);
this
.
setAllMeta
(
arrs
,
false
);
}
this
.
$emit
(
"
select
"
,
rows
);
},
// 设置元素select
setMeta
(
arr
,
row
,
state
)
{
let
self
=
this
;
console
.
log
(
arr
,
row
,
state
);
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
].
id
==
row
.
id
)
{
if
(
arr
[
i
].
selected
)
{
...
...
@@ -593,18 +595,16 @@ export default {
}
},
// 获取父元素
getParent
(
arr
,
id
)
{
getParent
(
arr
,
pid
)
{
console
.
log
(
arr
);
let
self
=
this
;
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
].
id
==
id
)
{
arr
[
i
].
selected
=
1
;
self
.
$refs
.
cesTable
.
toggleRowSelection
(
arr
[
i
],
1
);
if
(
arr
[
i
].
parentId
&&
arr
[
i
].
parentId
!=
"
00000000
"
)
{
self
.
getParent
(
arr
,
arr
[
i
].
parentId
);
}
if
(
arr
[
i
].
id
==
pid
)
{
self
.
$refs
.
cesTable
.
toggleRowSelection
(
arr
[
i
],
true
);
self
.
getParent
(
self
.
metaData
,
arr
[
i
].
parentId
);
}
if
(
arr
[
i
].
children
&&
arr
[
i
].
children
.
length
!=
0
)
{
self
.
getParent
(
arr
[
i
].
children
,
id
);
self
.
getParent
(
arr
[
i
].
children
,
p
id
);
}
}
},
...
...
src/pages/authority/menus.vue
View file @
051d349c
...
...
@@ -292,6 +292,10 @@ export default {
this
.
formDetail
.
team_name
=
""
;
this
.
formDetail
.
visit_url
=
""
;
this
.
mcHold
=
true
;
this
.
$message
({
message
:
"
不要忘了完善信息哦
"
,
type
:
"
success
"
});
this
.
nodeClick
(
newChild
,
node
);
},
resetForm
()
{
...
...
@@ -356,6 +360,10 @@ export default {
});
},
deleteNode
()
{
if
(
this
.
nodeId
.
substring
(
0
,
3
)
==
"
new
"
)
{
this
.
getTree
();
this
.
emptyObject
();
}
else
{
let
params
=
{
id
:
this
.
nodeId
};
...
...
@@ -371,6 +379,7 @@ export default {
console
.
log
(
response
.
data
.
errMsg
);
}
});
}
},
nodePosition
(
type
)
{
let
node
=
this
.
$refs
.
tree
.
getNode
(
this
.
nodeId
);
...
...
src/pages/workbench/fwzc_fwcs.vue
View file @
051d349c
...
...
@@ -647,9 +647,9 @@ export default {
this
.
$api
.
workbench
.
fwzcFwcs
(
query
).
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
let
data
=
response
.
data
.
data
;
if
(
this
.
activeBtn
==
0
&&
this
.
activeName
==
1
)
{
if
(
data
.
body_fields
&&
data
.
body_fields
.
length
!=
0
)
{
this
.
datasQqcs
=
data
.
body_fields
;
}
else
if
(
this
.
activeBtn
==
0
)
{
}
else
{
this
.
datasQqcs
=
data
.
param_fields
;
}
this
.
datasFhcs
=
data
.
response_fields
;
...
...
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