diff --git a/src/views/Mechanics/components/devStatusTip.vue b/src/views/Mechanics/components/devStatusTip.vue index 08d743e..167430d 100644 --- a/src/views/Mechanics/components/devStatusTip.vue +++ b/src/views/Mechanics/components/devStatusTip.vue @@ -11,10 +11,12 @@

{{ title }}

- +
@@ -29,32 +31,38 @@ {{ label.duration }}:{{ res.duration }}

- {{res.status}} + {{ res.status }}
- +
+
+ +
+
@@ -64,18 +72,18 @@ import { register } from "swiper/element/bundle"; import { useI18n } from "vue-i18n"; let { t } = useI18n(); register(); -const props:any = defineProps({ +const props: any = defineProps({ title: { type: String, default: "", }, tipList: { type: Array, - default: [{name:'',date:'',duration:'',status:''}], + default: [{ name: '', date: '', duration: '', status: '' }], }, label: { type: Object, - default: { name: "设备名称", date: "保养日期", duration: "保养时长"} + default: { name: "设备名称", date: "保养日期", duration: "保养时长" } }, per_view: { type: Number, @@ -83,11 +91,11 @@ const props:any = defineProps({ }, }); let compare = { - '进行中':'#83C710', - '未开始':'#E44610', - '未进行':'#E54711', - '故障':'#DA0F10', - '维修中':'#83C710', + '进行中': '#83C710', + '未开始': '#E44610', + '未进行': '#E54711', + '故障': '#DA0F10', + '维修中': '#83C710', } let useSwiper: any = ref(null); let swiperRef = ref(null); @@ -144,6 +152,5 @@ swiper-container { width: 100%; height: 100%; display: inline-block !important; -} - +} \ No newline at end of file diff --git a/src/views/Waterhouse/index.vue b/src/views/Waterhouse/index.vue index 3878aaa..51f1b53 100644 --- a/src/views/Waterhouse/index.vue +++ b/src/views/Waterhouse/index.vue @@ -88,9 +88,9 @@ document.title = t('messages.南门水房物联监测系统') const colors = ['#5470C6', '#91CC75', '#EE6666']; //进水量 出水量 用电量 最大值 最小值 平均值 let mathList = reactive([ - { color: '#5470C6', name: '进水量', max: 100, min: 0, avg: 50 }, - { color: '#91CC75', name: '出水量', max: 100, min: 0, avg: 50 }, - { color: '#EE6666', name: '用电量', max: 100, min: 0, avg: 50 } + { color: '#5470C6', name: '进水量(m³)', max: 100, min: 0, avg: 50 }, + { color: '#91CC75', name: '出水量(m³)', max: 100, min: 0, avg: 50 }, + { color: '#EE6666', name: '用电量(kW·h)', max: 100, min: 0, avg: 50 } ]) function initChart(date,inChart, outChart, currentChart) { @@ -123,11 +123,11 @@ function initChart(date,inChart, outChart, currentChart) { yAxis: [ { type: 'value', - name: '水量', + name: '水量(m³)', }, { type: 'value', - name: '电量', + name: '电量(kW·h)', position: 'right', axisLine: { show: true,