|
|
@@ -10,7 +10,7 @@
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
<el-col v-for="(card, idx) in cards" :key="card.key" :span="8" class="wb-col">
|
|
|
- <div class="wb-card" :class="cardClass(card.key)" @click="openModule(card.key)">
|
|
|
+ <div class="wb-card" :class="cardStaticClass(card.key)" @click="openModule(card.key)">
|
|
|
<div class="wb-card-label">{{ card.label }}</div>
|
|
|
<div class="wb-card-total">{{ card.total }}</div>
|
|
|
<div class="wb-card-chart" :ref="chartRef(idx)"></div>
|
|
|
@@ -202,7 +202,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
goBack() {
|
|
|
- this.$router.push("/admin/families")
|
|
|
+ this.$router.push("/families")
|
|
|
},
|
|
|
async loadWorkbench() {
|
|
|
this.loading = true
|
|
|
@@ -219,6 +219,9 @@ export default {
|
|
|
this.loading = false
|
|
|
}
|
|
|
},
|
|
|
+ cardStaticClass(key) {
|
|
|
+ return key === "cf" ? "wb-card-static" : ""
|
|
|
+ },
|
|
|
cardClass(key) {
|
|
|
return "wb-card-" + key
|
|
|
},
|
|
|
@@ -243,6 +246,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
openModule(key) {
|
|
|
+ if (key === "cf") return
|
|
|
this.activeModule = key
|
|
|
if (key === "tasks") {
|
|
|
this.taskDrawerVisible = true
|
|
|
@@ -371,6 +375,8 @@ export default {
|
|
|
.wb-col { margin-bottom: 0; }
|
|
|
.wb-card { background: #fff; border-radius: 8px; padding: 14px 16px 8px; margin-bottom: 16px; cursor: pointer; border: 1px solid #ebeef5; transition: box-shadow 0.2s; }
|
|
|
.wb-card:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
|
|
|
+.wb-card-static { cursor: default; }
|
|
|
+.wb-card-static:hover { box-shadow: none; }
|
|
|
.wb-card-label { font-size: 13px; color: var(--adm-text-65); }
|
|
|
.wb-card-total { font-size: 28px; font-weight: 600; color: var(--adm-text-88); margin: 4px 0 6px; }
|
|
|
.wb-card-chart { height: 48px; }
|