|
|
@@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div class="map__entend"> |
|
|
|
<div v-for="(item,index) in extendList" :key="index" class="extend__container" @click="handleClick(index)"> |
|
|
|
<img :src="selectedTab === index ? `../src/assets/images/${item.selected.path}.png` : `../src/assets/images/${item.path}.png`" alt=""> |
|
|
|
<img :src="selectedTab === index ? getImgUrl(item.selected.path) : getImgUrl(item.path)" alt=""> |
|
|
|
<p :style="{color: selectedTab === index ? item.selected.color : '#eee'}">{{ item.name }}</p> |
|
|
|
</div> |
|
|
|
|
|
|
@@ -287,6 +287,10 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const getImgUrl = (src) => { |
|
|
|
return new URL(`../../../assets/images/${src}.png`, import.meta.url).href |
|
|
|
} |
|
|
|
|
|
|
|
return { |
|
|
|
...toRefs(data), |
|
|
|
...toRefs(warn), |
|
|
@@ -300,6 +304,7 @@ export default { |
|
|
|
handleDateChange, |
|
|
|
handleWarnChange, |
|
|
|
handleQuesChange, |
|
|
|
getImgUrl, |
|
|
|
handlePositiveClick(row) { |
|
|
|
$message.info('机场设备开始自检,请稍等') |
|
|
|
implement(row.id).then((res) => { |