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
0251e56c
Commit
0251e56c
authored
Jul 09, 2020
by
张俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev
parents
0f1e3583
4d1d7095
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
341 additions
and
100 deletions
+341
-100
src/components/apass-list.vue
src/components/apass-list.vue
+23
-12
src/pages/workbench/fwgl/approveWorkspace.vue
src/pages/workbench/fwgl/approveWorkspace.vue
+23
-4
src/pages/workbench/fwgl/fwglList.vue
src/pages/workbench/fwgl/fwglList.vue
+10
-11
src/pages/workbench/fwgl/organizationCloudResource.vue
src/pages/workbench/fwgl/organizationCloudResource.vue
+285
-73
No files found.
src/components/apass-list.vue
View file @
0251e56c
...
@@ -69,6 +69,10 @@
...
@@ -69,6 +69,10 @@
@
filter-change=
"filterChange"
@
filter-change=
"filterChange"
></list-filter>
></list-filter>
<div
class=
"main_top_container"
v-if=
"$slots['main-top']"
>
<slot
name=
"main-top"
></slot>
</div>
<div
class=
"cross_line"
v-if=
"!hideHeader"
></div>
<div
class=
"cross_line"
v-if=
"!hideHeader"
></div>
<div
class=
"list-container"
v-if=
"$slots.list"
>
<div
class=
"list-container"
v-if=
"$slots.list"
>
...
@@ -149,18 +153,28 @@ export default {
...
@@ -149,18 +153,28 @@ export default {
pageSizes
:
[
10
,
20
,
50
],
pageSizes
:
[
10
,
20
,
50
],
selectFilter
:
[],
selectFilter
:
[],
}),
}),
watch
:
{
otherFilter
:
{
handler
()
{
this
.
initOtherFilter
();
},
deep
:
true
,
},
},
methods
:
{
methods
:
{
initOtherFilter
()
{
initOtherFilter
()
{
this
.
otherFilter
.
forEach
((
item
)
=>
{
if
(
this
.
otherFilter
&&
this
.
otherFilter
.
length
>
0
)
{
this
.
$set
(
this
.
filter
,
item
.
prop
,
item
.
default
);
this
.
otherFilter
.
forEach
((
item
)
=>
{
this
.
$set
(
this
.
filter
,
item
.
prop
,
item
.
default
);
this
.
selectFilter
.
push
({
this
.
selectFilter
.
push
({
name
:
item
.
name
,
name
:
item
.
name
,
prop
:
item
.
prop
,
prop
:
item
.
prop
,
value
:
item
.
default
,
value
:
item
.
default
,
options
:
item
.
options
,
options
:
item
.
options
,
});
});
});
}
);
}
},
},
searchAction
(
value
)
{
searchAction
(
value
)
{
this
.
listAction
();
this
.
listAction
();
...
@@ -201,10 +215,7 @@ export default {
...
@@ -201,10 +215,7 @@ export default {
},
},
},
},
mounted
()
{
mounted
()
{
if
(
this
.
otherFilter
&&
this
.
otherFilter
.
length
>
0
)
{
this
.
initOtherFilter
();
this
.
initOtherFilter
();
}
this
.
listAction
();
this
.
listAction
();
},
},
};
};
...
...
src/pages/workbench/fwgl/approveWorkspace.vue
View file @
0251e56c
...
@@ -57,7 +57,25 @@ export default {
...
@@ -57,7 +57,25 @@ export default {
computed
:
{},
computed
:
{},
methods
:
{
methods
:
{
init
(
filter
)
{
init
(
filter
)
{
console
.
log
(
filter
);
// console.log(filter);
this
.
$http
.
get
(
"
/apaas/service/v3/resource/user/apply/list
"
,
{
params
:
{
search
:
filter
.
keyword
,
page
:
filter
.
page
,
limit
:
filter
.
size
,
depart
:
""
,
state1
:
filter
.
state1
,
},
})
.
then
(({
data
})
=>
{
this
.
listTotal
=
data
.
total
;
this
.
listData
=
data
.
data
.
cloud_apply_list
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
},
showDialog
()
{
showDialog
()
{
this
.
$refs
.
dialog
.
show
();
this
.
$refs
.
dialog
.
show
();
...
@@ -76,10 +94,12 @@ export default {
...
@@ -76,10 +94,12 @@ export default {
this
.
level
=
parseInt
(
this
.
$route
.
params
.
level
);
this
.
level
=
parseInt
(
this
.
$route
.
params
.
level
);
this
.
type
=
parseInt
(
this
.
$route
.
params
.
type
);
this
.
type
=
parseInt
(
this
.
$route
.
params
.
type
);
let
warnFlag
=
this
.
$route
.
query
.
warn
||
false
;
this
.
otherFilter
=
[
this
.
otherFilter
=
[
{
{
name
:
"
审批状态
"
,
name
:
"
审批状态
"
,
prop
:
"
approve_state
"
,
prop
:
"
state1
"
,
default
:
""
,
default
:
""
,
options
:
[
options
:
[
{
{
...
@@ -187,7 +207,7 @@ export default {
...
@@ -187,7 +207,7 @@ export default {
label
:
"
审批
"
,
label
:
"
审批
"
,
callback
:
this
.
approveAction
,
callback
:
this
.
approveAction
,
disabledRule
(
item
)
{
disabledRule
(
item
)
{
return
item
.
approve_state
!=
0
;
return
item
.
approve_state
!=
0
||
warnFlag
;
},
},
},
},
{
{
...
@@ -198,7 +218,6 @@ export default {
...
@@ -198,7 +218,6 @@ export default {
],
],
},
},
];
];
this
.
listData
=
[{},
{},
{}];
},
},
};
};
</
script
>
</
script
>
...
...
src/pages/workbench/fwgl/fwglList.vue
View file @
0251e56c
...
@@ -123,7 +123,6 @@ import helper from "@/services/helper.js";
...
@@ -123,7 +123,6 @@ import helper from "@/services/helper.js";
import
apassList
from
"
@/components/apass-list
"
;
import
apassList
from
"
@/components/apass-list
"
;
import
apassDialog
from
"
@/components/apass-dialog
"
;
import
apassDialog
from
"
@/components/apass-dialog
"
;
import
allotInfoConfirm
from
"
@/components/allot-info-confirm
"
;
import
allotInfoConfirm
from
"
@/components/allot-info-confirm
"
;
import
Dashboard
from
"
@/components/e-charts/dashboard
"
;
import
organizationList
from
"
@/components/organization-list/organization-list
"
;
import
organizationList
from
"
@/components/organization-list/organization-list
"
;
export
default
{
export
default
{
...
@@ -131,7 +130,6 @@ export default {
...
@@ -131,7 +130,6 @@ export default {
apassList
,
apassList
,
apassDialog
,
apassDialog
,
allotInfoConfirm
,
allotInfoConfirm
,
Dashboard
,
organizationList
,
organizationList
,
},
},
data
:
()
=>
({
data
:
()
=>
({
...
@@ -489,7 +487,7 @@ export default {
...
@@ -489,7 +487,7 @@ export default {
align
:
"
center
"
,
align
:
"
center
"
,
type
:
"
image
"
,
type
:
"
image
"
,
getImage
(
item
)
{
getImage
(
item
)
{
return
item
.
state
==
0
return
item
.
state
==
1
?
require
(
"
@/assets/imgs/ic_true.png
"
)
?
require
(
"
@/assets/imgs/ic_true.png
"
)
:
require
(
"
@/assets/imgs/ic_failed.png
"
);
:
require
(
"
@/assets/imgs/ic_failed.png
"
);
},
},
...
@@ -828,7 +826,7 @@ export default {
...
@@ -828,7 +826,7 @@ export default {
align
:
"
center
"
,
align
:
"
center
"
,
type
:
"
image
"
,
type
:
"
image
"
,
getImage
(
item
)
{
getImage
(
item
)
{
return
item
.
state
==
0
return
item
.
state
==
1
?
require
(
"
@/assets/imgs/ic_true.png
"
)
?
require
(
"
@/assets/imgs/ic_true.png
"
)
:
require
(
"
@/assets/imgs/ic_failed.png
"
);
:
require
(
"
@/assets/imgs/ic_failed.png
"
);
},
},
...
@@ -1214,7 +1212,7 @@ export default {
...
@@ -1214,7 +1212,7 @@ export default {
count_zy
:
cloud
.
count_zy
,
count_zy
:
cloud
.
count_zy
,
dashboard_list
:
[
dashboard_list
:
[
{
{
name
:
"
cpu
使用量
"
,
name
:
"
CPU
使用量
"
,
value
:
cloud
.
cpu_use
,
value
:
cloud
.
cpu_use
,
total
:
cloud
.
cpu_total
,
total
:
cloud
.
cpu_total
,
unit
:
"
(核)
"
,
unit
:
"
(核)
"
,
...
@@ -1243,7 +1241,7 @@ export default {
...
@@ -1243,7 +1241,7 @@ export default {
this
.
cloud_admin
=
{
this
.
cloud_admin
=
{
dashboard_list
:
[
dashboard_list
:
[
{
{
name
:
"
cpu
使用量
"
,
name
:
"
CPU
使用量
"
,
value
:
cloud
.
cpu_use
,
value
:
cloud
.
cpu_use
,
total
:
cloud
.
cpu_total
,
total
:
cloud
.
cpu_total
,
unit
:
"
(核)
"
,
unit
:
"
(核)
"
,
...
@@ -1995,11 +1993,12 @@ export default {
...
@@ -1995,11 +1993,12 @@ export default {
}
}
},
},
approveWorkspace
()
{
approveWorkspace
()
{
/* if (this.cloud_admin_warn) {
this
.
$router
.
push
({
console.log("告警 ---");
path
:
`/fwgl/
${
this
.
level
}
/
${
this
.
type
}
/approveWorkspace`
,
} else { */
query
:
{
this
.
$router
.
push
(
`/fwgl/
${
this
.
level
}
/
${
this
.
type
}
/approveWorkspace`
);
warn
:
this
.
cloud_admin_warn
,
// }
},
});
},
},
},
},
created
()
{
created
()
{
...
...
src/pages/workbench/fwgl/organizationCloudResource.vue
View file @
0251e56c
This diff is collapsed.
Click to expand it.
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