Commit e3491b67 by liujinbo

历史通报未完成改为黑色

parent 80955fee
...@@ -103,7 +103,7 @@ import { computed, nextTick, onUnmounted, ref, watch } from 'vue' ...@@ -103,7 +103,7 @@ import { computed, nextTick, onUnmounted, ref, watch } from 'vue'
// 获取屏幕边界到安全区域距离 // 获取屏幕边界到安全区域距离
const {safeAreaInsets} = uni.getSystemInfoSync() const {safeAreaInsets} = uni.getSystemInfoSync()
const es = defineEmits(['handleLeftClick', 'handleRightClick', 'handleFooterClick', 'handleChooseData']) const es = defineEmits(['handleLeftClick', 'handleRightClick', 'handleFooterClick', 'handleChooseData', 'handleTabsChange'])
const ps = defineProps({ const ps = defineProps({
background: { background: {
type: String, type: String,
...@@ -329,6 +329,7 @@ const current = ref(ps.current) ...@@ -329,6 +329,7 @@ const current = ref(ps.current)
// tabs通知swiper切换 // tabs通知swiper切换
const tabsChange = (item) => { const tabsChange = (item) => {
current.value = item.index current.value = item.index
es('handleTabsChange', current.value)
} }
// swiper滑动中 // swiper滑动中
const swiperTransition = (e) => {} const swiperTransition = (e) => {}
......
...@@ -43,8 +43,8 @@ const useFleetStore = defineStore('fleet', { ...@@ -43,8 +43,8 @@ const useFleetStore = defineStore('fleet', {
} }
}, },
// 配置持久化 // 配置持久化
// persist: false persist: false
persist: { /*persist: {
// 调整为兼容多端的API // 调整为兼容多端的API
storage: { storage: {
setItem (key, value) { setItem (key, value) {
...@@ -54,6 +54,6 @@ const useFleetStore = defineStore('fleet', { ...@@ -54,6 +54,6 @@ const useFleetStore = defineStore('fleet', {
return uni.getStorageSync(key) return uni.getStorageSync(key)
} }
} }
} }*/
}) })
export default useFleetStore export default useFleetStore
...@@ -18,7 +18,8 @@ const useInforDisclosureStore = defineStore('inforDisclosure', { ...@@ -18,7 +18,8 @@ const useInforDisclosureStore = defineStore('inforDisclosure', {
professional: '' professional: ''
}, },
details: undefined, details: undefined,
releaseBasisDetails: undefined releaseBasisDetails: undefined,
currentTabsIndex: 0
} }
}, },
getters: {}, getters: {},
......
...@@ -69,6 +69,10 @@ ...@@ -69,6 +69,10 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex: 1; flex: 1;
.sortIcon {
margin-left: 6rpx;
}
} }
} }
......
...@@ -26,9 +26,14 @@ ...@@ -26,9 +26,14 @@
<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'" name="photo" color="#2979ff" v-if="item.keyValue == 'time' || item.keyValue == 'staChn'"
size="12"></up-icon>--> class="sortIcon"
name="arrow-down"
color="#4e5969"
size="10"
/>
<!--arrow-down-->
</view> </view>
</view> </view>
</template> </template>
......
...@@ -5,7 +5,12 @@ ...@@ -5,7 +5,12 @@
> >
<view class="item-title"> <view class="item-title">
<view class="left"> <view class="left">
<custom-state :value="item.status?.toUpperCase()" /> <text v-if="currentTabsIndex == 1 && item.status == '未完成'" class="statusTxt">
{{ item.status?.toUpperCase() }}
</text>
<custom-state
v-else
:value="item.status?.toUpperCase()" />
</view> </view>
<view class="right inforDisTags"> <view class="right inforDisTags">
<global-tag <global-tag
...@@ -55,8 +60,8 @@ const ps = defineProps({ ...@@ -55,8 +60,8 @@ const ps = defineProps({
} }
}) })
const {item} = ps const {item} = ps
//跳转
const inforDisclosureStore = useInforDisclosureStore() const inforDisclosureStore = useInforDisclosureStore()
const {currentTabsIndex} = storeToRefs(inforDisclosureStore)
const goDetails = (data) => { const goDetails = (data) => {
uni.$mocpJump.navigateTo('/panel/inforDisclosure/details', {id: data.id}).then(() => { uni.$mocpJump.navigateTo('/panel/inforDisclosure/details', {id: data.id}).then(() => {
...@@ -75,4 +80,8 @@ onUnload(() => { ...@@ -75,4 +80,8 @@ onUnload(() => {
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'mocpStatic/css/list.scss'; @import 'mocpStatic/css/list.scss';
@import '../constants/inforDisclosure.scss'; @import '../constants/inforDisclosure.scss';
.statusTxt {
font-size: 34rpx;
}
</style> </style>
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
navRightType="icon" navRightType="icon"
navRightIcon="saixuan-01" navRightIcon="saixuan-01"
@handleRightClick="handleRightClick" @handleRightClick="handleRightClick"
@handleTabsChange="handleTabsChange"
> >
<template #="{ item }"> <template #="{ item }">
<inforDisclosureItem :item="item" /> <inforDisclosureItem :item="item" />
...@@ -34,9 +35,8 @@ import { getMocinfoListApi } from 'mocp/api/inforDisclosure' ...@@ -34,9 +35,8 @@ import { getMocinfoListApi } from 'mocp/api/inforDisclosure'
import { getParamsByType } from 'mocp/hooks/use-params/useParams' import { getParamsByType } from 'mocp/hooks/use-params/useParams'
import inforDisclosureItem from './components/inforDisClosureItem.vue' import inforDisclosureItem from './components/inforDisClosureItem.vue'
//跳转
const inforDisclosureStore = useInforDisclosureStore() const inforDisclosureStore = useInforDisclosureStore()
const {searchData} = storeToRefs(inforDisclosureStore) const {searchData, currentTabsIndex} = storeToRefs(inforDisclosureStore)
const tabList = [ const tabList = [
{ {
name: '当前通报', name: '当前通报',
...@@ -99,6 +99,10 @@ const transformData = (data) => { ...@@ -99,6 +99,10 @@ const transformData = (data) => {
const handleRightClick = () => { const handleRightClick = () => {
uni.$mocpJump.redirectTo('/panel/inforDisclosure/search') uni.$mocpJump.redirectTo('/panel/inforDisclosure/search')
} }
const handleTabsChange = (e) => {
console.log(e)
currentTabsIndex.value = e
}
//刷新 //刷新
const paging = ref() const paging = ref()
uni.$on('inforDisclosureReload', () => { uni.$on('inforDisclosureReload', () => {
......
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