Commit 6affb264 by liujinbo

筛选项未实时更新

parent e3491b67
...@@ -42,8 +42,7 @@ import { fightListPlanTime } from 'mocp/utils/getFlightList' ...@@ -42,8 +42,7 @@ import { fightListPlanTime } from 'mocp/utils/getFlightList'
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
const flightSupportStore = useFlightSupportStore() const flightSupportStore = useFlightSupportStore()
const {details} = storeToRefs(flightSupportStore) const {details, getSelectedList} = storeToRefs(flightSupportStore)
const listTab = flightSupportStore.listTab
const ps = defineProps({ const ps = defineProps({
itemMsg: { itemMsg: {
...@@ -56,7 +55,7 @@ const ps = defineProps({ ...@@ -56,7 +55,7 @@ const ps = defineProps({
const msg = computed(() => { const msg = computed(() => {
if (!ps.itemMsg) return {} if (!ps.itemMsg) return {}
const isCurrentIn = currentInBoundModeForFlightTablePage.value == allInBoundMode.In const isCurrentIn = currentInBoundModeForFlightTablePage.value == allInBoundMode.In
const filterListTab = listTab.filter(item => !!item.selected) const filterListTab = getSelectedList.value.filter(item => !!item.selected)
return filterListTab.map(item => { return filterListTab.map(item => {
const defaultObj = { const defaultObj = {
......
...@@ -24,15 +24,21 @@ ...@@ -24,15 +24,21 @@
<template v-slot:top> <template v-slot:top>
<view class="flex listTopTab text-center"> <view class="flex listTopTab text-center">
<view v-for="item of getSelectedList" :key="item.id" class="topTabItem" :style="{ flex: item.flex }"> <view
v-for="item of getSelectedList"
:key="item.id"
class="topTabItem"
:style="{ flex: item.flex }"
>
{{ item.label }} {{ item.label }}
<up-icon <!--<up-icon
v-if="item.keyValue == 'time' || item.keyValue == 'staChn'" v-if="item.keyValue == 'time' || item.keyValue == 'staChn'"
@click="sortClick(item)"
class="sortIcon" class="sortIcon"
name="arrow-down" name="arrow-down"
color="#4e5969" color="#4e5969"
size="10" size="10"
/> />-->
<!--arrow-down--> <!--arrow-down-->
</view> </view>
</view> </view>
...@@ -103,6 +109,9 @@ const transformData = (data) => { ...@@ -103,6 +109,9 @@ const transformData = (data) => {
return listMsg return listMsg
} }
const sortClick = (e) => {
console.log(e)
}
const toCustom = () => { const toCustom = () => {
uni.$mocpJump.navigateTo('/panel/flight-support/components/Custom') uni.$mocpJump.navigateTo('/panel/flight-support/components/Custom')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment