|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="ioc-dashboard">
|
|
|
- <a-row :gutter="[12,12]">
|
|
|
+ <a-row :gutter="[12, 12]">
|
|
|
<a-col :span="18">
|
|
|
<!--常用功能-->
|
|
|
<div class="dashboard-popFunc card-style">
|
|
@@ -11,36 +11,26 @@
|
|
|
<a-icon type="right"></a-icon>
|
|
|
</a-button>
|
|
|
</template>
|
|
|
- <a-row>
|
|
|
- <a-col v-for="(item, index) in commonMenu" :span="6" :key="index" >
|
|
|
- <div @click="toRoute(item.router)">
|
|
|
- <IocFunction :item="item" ></IocFunction>
|
|
|
- </div>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
+ <div class="common-tool-box">
|
|
|
+ <div v-for="(item, index) in commonMenu" :key="index">
|
|
|
+ <div @click="toRoute(item.router)"><IocFunction :item="item"></IocFunction></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</IocCard>
|
|
|
</div>
|
|
|
</a-col>
|
|
|
<a-col :span="6">
|
|
|
- <div class="dashboard-msg card-style">
|
|
|
- <DashboardMessageCard ></DashboardMessageCard>
|
|
|
- </div>
|
|
|
+ <div class="dashboard-msg card-style"><DashboardMessageCard></DashboardMessageCard></div>
|
|
|
</a-col>
|
|
|
<a-col :span="18">
|
|
|
- <div class="dashboard-summary card-style">
|
|
|
- <DashboardPortrait ></DashboardPortrait>
|
|
|
- </div>
|
|
|
+ <div class="dashboard-summary card-style"><DashboardPortrait></DashboardPortrait></div>
|
|
|
</a-col>
|
|
|
<a-col :span="6">
|
|
|
- <div class="dashboard-more card-style">
|
|
|
- <DashboardMore></DashboardMore>
|
|
|
- </div>
|
|
|
+ <div class="dashboard-more card-style"><DashboardMore></DashboardMore></div>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
|
|
|
-
|
|
|
<FunctionManage v-if="showFuncManage" :visible.sync="showFuncManage" :common-function.sync="commonMenu"></FunctionManage>
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -52,13 +42,12 @@ import DashboardPortrait from "@/components/dashboard/portrait/dashboardPortrait
|
|
|
import DashboardMore from "@/components/dashboard/more/dashboardMore.vue";
|
|
|
import FunctionManage from "@/components/dashboard/commonFuncManage/functionManage.vue";
|
|
|
|
|
|
-
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
showFuncManage: false,
|
|
|
commonMenu: []
|
|
|
- }
|
|
|
+ };
|
|
|
},
|
|
|
components: {
|
|
|
IocCard,
|
|
@@ -66,7 +55,7 @@ export default {
|
|
|
DashboardMessageCard,
|
|
|
DashboardPortrait,
|
|
|
DashboardMore,
|
|
|
- FunctionManage,
|
|
|
+ FunctionManage
|
|
|
},
|
|
|
mounted() {
|
|
|
this.commonMenu = this.$store.menuStore().commonFunction;
|
|
@@ -76,13 +65,30 @@ export default {
|
|
|
this.showFuncManage = true;
|
|
|
},
|
|
|
toRoute(route) {
|
|
|
- this.$router.push({path: route})
|
|
|
- },
|
|
|
+ this.$router.push({ path: route });
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
+.common-tool-box {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ align-items: center;
|
|
|
+ align-content: center;
|
|
|
+ & > div {
|
|
|
+ height: 40px;
|
|
|
+ width: 25%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ margin: 15px 0;
|
|
|
+ & > div {
|
|
|
+ width: 80%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
.ioc-dashboard {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
@@ -106,7 +112,6 @@ export default {
|
|
|
background-color: white;
|
|
|
height: 765px;
|
|
|
overflow-y: hidden;
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|