|
@@ -10,7 +10,7 @@
|
|
|
<Transition>
|
|
|
<ul class="list-base flex flex-wrap shrink-0" v-if="contentShow.b1" v-collapse>
|
|
|
<li v-for="item in basicList" class="text-center w-1/4 mb-4 cursor-pointer" @click="handleBaseClick(item)">
|
|
|
- <img :src="getAssetsFile(`page/${item.icon}.png`)" alt="" class="ml-2 mb-1">
|
|
|
+ <img :src="getAssetsFile(`page/${item.active ? item.icon + '-h' : item.icon}.png`)" alt="" class="ml-2 mb-1">
|
|
|
<span class="block text-base ml-2">{{ item.label }}</span>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -33,8 +33,8 @@
|
|
|
<li v-for="item in areaList" class="list-item">
|
|
|
<img src="../../../assets/images/page/icon-location.png" alt="">
|
|
|
<span>{{ item.label }}</span>
|
|
|
- <i title="查看" @click="handleCheckArea(item)"></i>
|
|
|
- <i title="网格"></i>
|
|
|
+ <i title="查看" @click="handleCheckArea(item)" :class="{'active': item.check}"></i>
|
|
|
+ <i title="网格" :class="{'active': item.mesh}"></i>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</Transition>
|
|
@@ -49,8 +49,8 @@
|
|
|
<li v-for="item in routeList" class="list-item">
|
|
|
<img src="../../../assets/images/page/icon-route.png" alt="">
|
|
|
<span>{{ item.label }}</span>
|
|
|
- <i title="查看"></i>
|
|
|
- <i title="网格"></i>
|
|
|
+ <i title="查看" :class="{'active': item.check}"></i>
|
|
|
+ <i title="网格" :class="{'active': item.mesh}"></i>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</Transition>
|
|
@@ -73,28 +73,28 @@ const basicList = ref([
|
|
|
])
|
|
|
|
|
|
const areaList = ref([
|
|
|
- { label: '临时限制区', active: false },
|
|
|
+ { label: '临时限制区', check: false, mesh: false },
|
|
|
])
|
|
|
|
|
|
async function handleCheckArea(item) {
|
|
|
- item.active = !item.active
|
|
|
+ item.check = !item.check
|
|
|
showShapes({
|
|
|
id: 'drawOne',
|
|
|
- data: item.active ? await getData('restrictArea.json') : null
|
|
|
+ data: item.check ? await getData('restrictArea.json') : null
|
|
|
})
|
|
|
}
|
|
|
|
|
|
const routeList = ref([
|
|
|
- { label: '航线1' },
|
|
|
- { label: '航线2' },
|
|
|
- { label: '航线3' },
|
|
|
- { label: '航线4' },
|
|
|
- { label: '航线5' },
|
|
|
- { label: '航线6' },
|
|
|
- { label: '航线7' },
|
|
|
- { label: '航线8' },
|
|
|
- { label: '航线9' },
|
|
|
- { label: '航线10' },
|
|
|
+ { label: '航线1', check: false, mesh: false },
|
|
|
+ { label: '航线2', check: false, mesh: false },
|
|
|
+ { label: '航线3', check: false, mesh: false },
|
|
|
+ { label: '航线4', check: false, mesh: false },
|
|
|
+ { label: '航线5', check: false, mesh: false },
|
|
|
+ { label: '航线6', check: false, mesh: false },
|
|
|
+ { label: '航线7', check: false, mesh: false },
|
|
|
+ { label: '航线8', check: false, mesh: false },
|
|
|
+ { label: '航线9', check: false, mesh: false },
|
|
|
+ { label: '航线10', check: false, mesh: false },
|
|
|
])
|
|
|
|
|
|
function handleBaseClick(item) {
|
|
@@ -236,6 +236,10 @@ const vCollapse = {
|
|
|
margin-left: 5px;
|
|
|
cursor: pointer;
|
|
|
background-size: cover !important;
|
|
|
+ filter: grayscale(1);
|
|
|
+ &.active {
|
|
|
+ filter: grayscale(0);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
i:nth-child(3) {
|