Blame view

antis-ncc-admin/src/components/workbench/widgets/major-project-dashboard-entry.vue 1.88 KB
e1dcb3a0   “wangming”   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
  <template>
    <workbench-card title="大项目部驾驶舱" :subtitle="$catName('医美') + '经营看板'" icon="el-icon-data-analysis" tone="purple">
      <div class="entry" @click="go">
        <div class="entry__icon"><i class="el-icon-data-analysis" /></div>
        <div class="entry__text">
          <div class="entry__title">进入大项目部战略决策中心</div>
          <div class="entry__sub">查看{{ $catName('医美') }}业绩、趋势与门店排行</div>
        </div>
        <i class="el-icon-arrow-right entry__arrow" />
      </div>
    </workbench-card>
  </template>
  
  <script>
  import WorkbenchCard from '../workbench-card.vue'
  
  export default {
    name: 'WidgetMajorProjectDashboardEntry',
    components: { WorkbenchCard },
    methods: {
      go() {
        this.$router.push('/extend/majorProjectDashboard').catch(() => {})
      }
    }
  }
  </script>
  
  <style lang="scss" scoped>
  .entry {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: 10px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    cursor: pointer;
    height: 100%;
    min-height: 72px;
    transition: box-shadow 200ms ease, border-color 200ms ease;
  
    &:hover {
      border-color: #c084fc;
      box-shadow: 0 4px 14px rgba(139, 92, 246, 0.12);
    }
  }
  
  .entry__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f3e8ff;
    color: #8b5cf6;
    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; }
  
  @media (prefers-reduced-motion: reduce) {
    .entry { transition: none !important; }
  }
  </style>