diff --git a/src/components/body-d-left/bodyLeftHooks.ts b/src/components/body-d-left/bodyLeftHooks.ts
index 796f807..ba76e77 100644
--- a/src/components/body-d-left/bodyLeftHooks.ts
+++ b/src/components/body-d-left/bodyLeftHooks.ts
@@ -463,6 +463,73 @@ export function barOption(xData, ydata, theme) {
};
}
+export function getOptions(data: any[] = [], colors: any[] = [], totalTimes: number = 0) {
+ return {
+ title: [
+ {
+ text: totalTimes + '人',
+ left: 'center',
+ top: '35%',
+ textStyle: {
+ color: '#ffffff',
+ fontStyle: 'normal',
+ fontWeight: '400', // 字体粗细 'normal','bold','bolder','lighter',100 | 200 | 300 | 400...
+ fontFamily: 'Source Han Sans CN',
+ fontSize: 20,
+ height: '22%',
+ },
+ },
+ {
+ subtext: '急救总次数',
+ subtextStyle: {
+ color: '#ffffff',
+ fontStyle: 'normal',
+ fontWeight: '500',
+ fontFamily: 'Source Han Sans CN',
+ fontSize: 24,
+ },
+ left: 'center',
+ top: '48%',
+ },
+ ],
+ tooltip: {
+ trigger: 'item',
+ },
+ label: {
+ formatter: '{b} {c}',
+ // fontSize: 18
+ },
+ legend: {
+ top: '0%',
+ left: 'center',
+ textStyle: {
+ color: '#ffffff',
+ },
+ },
+ colors: colors,
+ series: [
+ {
+ type: 'pie',
+ radius: ['60%', '70%'],
+ avoidLabelOverlap: false,
+ padAngle: 1,
+ itemStyle: {
+ borderRadius: 10,
+ },
+ center: ['50%', '55%'],
+ // emphasis: {
+ // label: {
+ // show: true,
+ // fontSize: 40,
+ // fontWeight: 'bold',
+ // },
+ // },
+ data: data,
+ },
+ ],
+ };
+}
+
/**
* @desc 值是否不为零
* @param list 数组
diff --git a/src/views/yinChuan/componetns/dailyWorkTrends/dailyWorkTrends.vue b/src/views/yinChuan/componetns/dailyWorkTrends/dailyWorkTrends.vue
index 0193d05..ec1bebb 100644
--- a/src/views/yinChuan/componetns/dailyWorkTrends/dailyWorkTrends.vue
+++ b/src/views/yinChuan/componetns/dailyWorkTrends/dailyWorkTrends.vue
@@ -54,6 +54,7 @@
padding: 10px 20px;
.trends-title-con {
+ margin-bottom: 5px;
display: flex;
align-items: center;
}
diff --git a/src/views/yinChuan/componetns/emergencyData/emergencyData.vue b/src/views/yinChuan/componetns/emergencyData/emergencyData.vue
new file mode 100644
index 0000000..cd31a7e
--- /dev/null
+++ b/src/views/yinChuan/componetns/emergencyData/emergencyData.vue
@@ -0,0 +1,228 @@
+
+