duhuizhe
2023-10-16 3aa55dd3f62cee2c1c4c0aa74e1570acf83f8927
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
<template>
  <div class="container">
    <div class="box">
      <div class="flex">
        <span>待响应</span>
        <el-progress style="flex: 1;margin-left: 10px" :text-inside="true" :stroke-width="26" :percentage="this.projectInfo.poolBi"></el-progress>
      </div>
      <div class="flex">
        <span>进行中</span>
        <el-progress
          style="flex: 1;margin-left: 10px"
          :text-inside="true"
          :stroke-width="24"
          :percentage="this.projectInfo.doBi"
          status="success"
        ></el-progress>
      </div>
      <div class="flex">
        <span>已处理</span>
        <el-progress
          :text-inside="true"
          style="flex: 1;margin-left: 10px"
          :stroke-width="20"
          :percentage="this.projectInfo.doneBi"
          status="exception"
        ></el-progress>
      </div>
      <div class="flex">
        <span>已取消</span>
        <el-progress
          :text-inside="true"
          style="flex: 1;margin-left: 10px"
          :stroke-width="20"
          :percentage="this.projectInfo.noBi"
          status="warning"
        ></el-progress>
      </div>
    </div>
    <p style="text-align: center;font-size: 16px;font-weight: 600">流程占比</p>
  </div>
</template>
 
<script>
import * as dash from "@/api/dashboard/dash";
 
export default {
  name: 'progressMY',
  data() {
    return {
      projectInfo: {},
 
    }
  },
  mounted() {
    dash.getProcess().then(res => {
      if (res) {
        this.projectInfo = res
      }
    })
  }
};
 
 
 
</script>
 
<style scoped>
 
.box {
  width: 100%;
  height: 300px;
 
  transform: translateY(30%);
}
.flex {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
</style>