yangfeng
2024-02-29 301c610b979f1f2f228a81881323a12e4e9d9289
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
<template>
  <div class="sales-lead">
    <div class="header-title">{{ headerTitle }}</div>
    <div class="header-user-info"></div>
  </div>
</template>
 
<script>
export default {
  name: "SalesLead",
  props: {
    headerTitle: String
  },
  data() {
    return {}
  },
  methods: {
    handleCommand(command) {
      console.log(command)
      if (command === "logout") {
        this.$router.push({ path: "/login" })
      }
    }
  }
}
</script>
 
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.sales-lead {
  display: flex;
  height: 66px;
  box-sizing: border-box;
  line-height: 66px;
  background-color: #fff;
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.0588235294117647);
  .header-title {
    padding-left: 30px;
    font-size: 18px;
    font-family: "Arial Negreta", "Arial Normal", "Arial";
    font-weight: 700;
    color: #227bde;
  }
  .header-user-info {
    margin-left: auto;
    margin-right: 20px;
    display: flex;
    .avatar {
      margin-top: 8px;
      margin-right: 10px;
    }
  }
}
</style>