tech-dashboard-entry.vue 1.71 KB
<template>
  <workbench-card title="科技部驾驶舱" subtitle="科技部经营看板" icon="el-icon-cpu" tone="cyan">
    <div class="entry" @click="go">
      <div class="entry__icon"><i class="el-icon-cpu" /></div>
      <div class="entry__text">
        <div class="entry__title">进入科技部驾驶舱</div>
        <div class="entry__sub">科技部业绩与老师排行</div>
      </div>
      <i class="el-icon-arrow-right entry__arrow" />
    </div>
  </workbench-card>
</template>

<script>
import WorkbenchCard from '../workbench-card.vue'

export default {
  name: 'WidgetTechDashboardEntry',
  components: { WorkbenchCard },
  methods: {
    go() {
      this.$router.push('/extend/techDepartmentDashboard').catch(() => {})
    }
  }
}
</script>

<style lang="scss" scoped>
.entry {
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid #e0efff;
  cursor: pointer;
  height: 100%;
  min-height: 72px;
  transition: box-shadow 200ms ease, border-color 200ms ease;

  &:hover {
    border-color: #b3d8ff;
    box-shadow: 0 4px 14px rgba(64, 158, 255, 0.12);
  }
}
.entry__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ecf5ff;
  color: #409eff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}
.entry__title { font-size: 15px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry__sub { margin-top: 4px; font-size: 12px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry__text { flex: 1; min-width: 0; }
.entry__arrow { color: #94a3b8; font-size: 16px; }
</style>