haoxuan
2023-10-31 f8b2d2f20433f41183d8cd126af45517938d9bd6
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
  <div class="person-info">
    <div class="person-l">
      <el-icon>
        <UserFilled />
      </el-icon>
    </div>
    <div class="person-r">
      {{ person.workerName || '' }}
      <!-- <span>{{ person.phoneNum || "" }}</span> -->
      <span>
        <el-icon>
          <StarFilled />
        </el-icon>
        <el-icon>
          <StarFilled />
        </el-icon>
        <el-icon>
          <StarFilled />
        </el-icon>
        <el-icon>
          <StarFilled />
        </el-icon>
        <el-icon>
          <StarFilled />
        </el-icon>
      </span>
    </div>
  </div>
</template>
<script setup lang="ts">
import { StarFilled, UserFilled } from '@element-plus/icons-vue'
import { toRefs } from 'vue'
import type { Worker } from '@/api/task'
 
export interface PersonInfoProps {
  person: Worker
}
 
const props = defineProps<PersonInfoProps>()
const { person } = toRefs(props)
</script>
 
<style scoped lang="scss">
$status-default: #13235a;
$status-running: #f76c0f;
$status-ready: #13235a;
$status-done: #2c5dbb82;
$status-star: yellow;
 
.font_weight {
  font-weight: 600;
}
 
.person-info {
  width: 100%;
  height: 60px;
  line-height: 60px;
  margin-top: 10px;
  border-radius: 10px;
  background: $status-default;
  color: #fff;
  overflow: hidden;
 
  .person-l {
    width: 80px;
    height: 40px;
    line-height: 40px;
    padding: 10px 0px;
    text-align: center;
    float: left;
    font-size: 40px;
  }
 
  .person-r {
    width: calc(100% - 80px);
    font-size: 20px;
    font-weight: 600;
    span {
      color: $status-star;
      margin-left: 10px;
    }
  }
}
</style>