修改 终端运行评价
This commit is contained in:
@@ -144,7 +144,7 @@
|
||||
strokeColor="#0e8780"
|
||||
:strokeOpacity="1"
|
||||
:fillColor="item.background || ''"
|
||||
:fillOpacity="0.5"
|
||||
:fillOpacity="0.6"
|
||||
></bm-polygon>
|
||||
</div>
|
||||
</div>
|
||||
@@ -211,6 +211,12 @@ import { getAssessOverview } from '@/api/device-boot/panorama'
|
||||
import { getRunEvaluate } from '@/api/device-boot/runEvaluate'
|
||||
import { getGridDiagramAreaData } from '@/api/device-boot/panorama'
|
||||
const emit = defineEmits(['changeValue', 'drop', 'show'])
|
||||
const props = defineProps({
|
||||
params: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
}
|
||||
})
|
||||
import mapJson from '@/views/pqs/panorama/components/boundary'
|
||||
const datePickerRef = ref()
|
||||
const height = mainHeight(90)
|
||||
@@ -219,8 +225,7 @@ const dictData = useDictData()
|
||||
const inputQuery: any = ref('')
|
||||
const QueryList: any = ref([])
|
||||
const activeName: any = ref(0)
|
||||
|
||||
const zoomMap = ref(9.8)
|
||||
const zoomMap = ref(8.9)
|
||||
const colorKey = ref('')
|
||||
const showCollapse: any = ref(true)
|
||||
const showWrap: any = ref(false)
|
||||
@@ -311,7 +316,7 @@ const polyline = ref<any>([])
|
||||
const lineId = ref('')
|
||||
const center = ref({
|
||||
lng: 122.42588,
|
||||
lat: 41.210977
|
||||
lat: 40.810977
|
||||
})
|
||||
const infoWindowPoint = ref<anyObj>({
|
||||
lng: 0,
|
||||
@@ -323,7 +328,7 @@ const initMap = async ({ BMap, map }: any) => {}
|
||||
// 加载点
|
||||
const addMarkers = async (row?: any, key?: any, num?: any) => {
|
||||
let params = {
|
||||
deptIndex: deptIndex.value,
|
||||
deptIndex: props.params.deptIndex,
|
||||
monitorFlag: 2,
|
||||
powerFlag: 2,
|
||||
searchBeginTime: datePickerRef.value.timeValue[0],
|
||||
@@ -487,7 +492,7 @@ const grids = (row: any) => {
|
||||
AreaData.value = []
|
||||
// 综合评估
|
||||
|
||||
getRunEvaluate({ ...row, deptIndex: deptIndex.value }).then((res: any) => {
|
||||
getRunEvaluate({ ...row, deptIndex: props.params.deptIndex }).then((res: any) => {
|
||||
console.log('🚀 ~ getRunEvaluate ~ res:', res)
|
||||
AreaData.value = res.data
|
||||
GridDiagramArea()
|
||||
@@ -500,35 +505,19 @@ const radiusPop = (k: any) => {
|
||||
}
|
||||
const GridDiagramArea = () => {
|
||||
boundaryList.value.forEach((item: any) => {
|
||||
// assessList.value.forEach((y: any) => {
|
||||
// if (item.orgName == y.name) {
|
||||
// if (y.score == 3.14159) {
|
||||
// } else if (y.score > 4.5) {
|
||||
// item.background = '#33996699'
|
||||
// } else if (y.score > 4) {
|
||||
// item.background = '#3399ff99'
|
||||
// } else if (y.score > 3) {
|
||||
// item.background = '#ffcc3399'
|
||||
// } else if (y.score > 2) {
|
||||
// item.background = '#db088799'
|
||||
// } else if (y.score > 0) {
|
||||
// item.background = '#ff000099'
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
AreaData.value.forEach((k: any, i: any) => {
|
||||
if (item.orgName == k.name) {
|
||||
for (let kk in item) {
|
||||
k[kk] = item[kk]
|
||||
}
|
||||
if (k.evaluate >= 90) {
|
||||
k.background = '#0fff04'
|
||||
k.background = '#00b07d'
|
||||
} else if (k.evaluate >= 80) {
|
||||
k.background = '#2b7fd3'
|
||||
} else if (k.evaluate >= 70) {
|
||||
k.background = '#ffcc33'
|
||||
k.background = '#ff8c00'
|
||||
} else {
|
||||
k.background = '#97017e'
|
||||
k.background = '#c00'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user