Commit 73cc6d5b authored by 徐一鸣's avatar 徐一鸣

超管-云资源管理页面

parent 8ca44d69
...@@ -72,7 +72,10 @@ ...@@ -72,7 +72,10 @@
</div> </div>
</div> </div>
</div> </div>
<div class="admin_preview-right"> <div class="admin_preview-right apass_buttons">
<el-button type="primary" size="mini" @click="approveWorkspace">
工作区域审批(1)
</el-button>
<chart <chart
ref="adminHistogram" ref="adminHistogram"
:options="getHistogramOption()" :options="getHistogramOption()"
...@@ -151,6 +154,7 @@ export default { ...@@ -151,6 +154,7 @@ export default {
tempFliter: null, tempFliter: null,
cloud_zuzhi: null, cloud_zuzhi: null,
cloud_admin: null, cloud_admin: null,
cloud_admin_warn: false,
}), }),
computed: { computed: {
...mapState({ ...mapState({
...@@ -1505,6 +1509,7 @@ export default { ...@@ -1505,6 +1509,7 @@ export default {
} else { } else {
if (percent >= 80) { if (percent >= 80) {
colors = ["#e3606d", "#f6d0d0"]; colors = ["#e3606d", "#f6d0d0"];
this.cloud_admin_warn = true;
} else if (percent >= 60) { } else if (percent >= 60) {
colors = ["#ef9535", "#fcefd8"]; colors = ["#ef9535", "#fcefd8"];
} else { } else {
...@@ -1989,6 +1994,13 @@ export default { ...@@ -1989,6 +1994,13 @@ export default {
this.$refs.adminHistogram.resize(); this.$refs.adminHistogram.resize();
} }
}, },
approveWorkspace() {
if (this.cloud_admin_warn) {
console.log("告警 ---");
} else {
console.log("审批 ---");
}
},
}, },
created() { created() {
this.level = parseInt(this.$route.params.level); this.level = parseInt(this.$route.params.level);
...@@ -2103,4 +2115,13 @@ export default { ...@@ -2103,4 +2115,13 @@ export default {
margin-top: 15px; margin-top: 15px;
box-sizing: border-box; box-sizing: border-box;
} }
.apass_buttons {
position: relative;
}
.apass_buttons > .el-button {
position: absolute;
top: 0;
right: 0;
z-index: 9;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment