|
@@ -17,6 +17,9 @@
|
|
import { ref, onMounted, watch, getCurrentInstance, reactive, toRefs } from 'vue'
|
|
import { ref, onMounted, watch, getCurrentInstance, reactive, toRefs } from 'vue'
|
|
/*----------------------------------接口引入-----------------------------------*/
|
|
/*----------------------------------接口引入-----------------------------------*/
|
|
/*----------------------------------组件引入-----------------------------------*/
|
|
/*----------------------------------组件引入-----------------------------------*/
|
|
|
|
+import CaretCenter from '@/assets/images/energyManage/CaretCenter.png'
|
|
|
|
+import CaretTop from '@/assets/images/energyManage/CaretTop.png'
|
|
|
|
+import CaretBottom from '@/assets/images/energyManage/CaretBottom.png'
|
|
/*----------------------------------store引入-----------------------------------*/
|
|
/*----------------------------------store引入-----------------------------------*/
|
|
/*----------------------------------公共方法引入-----------------------------------*/
|
|
/*----------------------------------公共方法引入-----------------------------------*/
|
|
/*----------------------------------公共变量-----------------------------------*/
|
|
/*----------------------------------公共变量-----------------------------------*/
|
|
@@ -37,13 +40,13 @@ function isPositiveNumber(value) {
|
|
|
|
|
|
if (value == 0 || value == null) {
|
|
if (value == 0 || value == null) {
|
|
list.color = '#cacaca'
|
|
list.color = '#cacaca'
|
|
- list.icons = '/images/energyManage/CaretCenter.png'
|
|
|
|
|
|
+ list.icons = CaretCenter
|
|
} else if (typeof value === 'number' && !Number.isNaN(value) && value > 0 && value !== Infinity) {
|
|
} else if (typeof value === 'number' && !Number.isNaN(value) && value > 0 && value !== Infinity) {
|
|
list.color = '#FF0000'
|
|
list.color = '#FF0000'
|
|
- list.icons = '/images/energyManage/CaretTop.png'
|
|
|
|
|
|
+ list.icons = CaretTop
|
|
} else {
|
|
} else {
|
|
list.color = '#00C309'
|
|
list.color = '#00C309'
|
|
- list.icons = '/images/energyManage/CaretBottom.png'
|
|
|
|
|
|
+ list.icons = CaretBottom
|
|
}
|
|
}
|
|
|
|
|
|
return list
|
|
return list
|