Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mocp-uniapp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pangchong
mocp-uniapp
Commits
e3491b67
Commit
e3491b67
authored
Jul 31, 2024
by
liujinbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历史通报未完成改为黑色
parent
80955fee
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
12 deletions
+36
-12
src/mocp/components/global-page-swiper/global-page-swiper.vue
+2
-1
src/mocp/store/fleet.js
+3
-3
src/mocp/store/inforDisclosure.js
+2
-1
src/pages/modules/mocp/panel/flight-support/constants/flightSupportList.scss
+4
-0
src/pages/modules/mocp/panel/flight-support/list.vue
+8
-3
src/pages/modules/mocp/panel/inforDisclosure/components/inforDisClosureItem.vue
+11
-2
src/pages/modules/mocp/panel/inforDisclosure/list.vue
+6
-2
No files found.
src/mocp/components/global-page-swiper/global-page-swiper.vue
View file @
e3491b67
...
...
@@ -103,7 +103,7 @@ import { computed, nextTick, onUnmounted, ref, watch } from 'vue'
// 获取屏幕边界到安全区域距离
const
{
safeAreaInsets
}
=
uni
.
getSystemInfoSync
()
const
es
=
defineEmits
([
'handleLeftClick'
,
'handleRightClick'
,
'handleFooterClick'
,
'handleChooseData'
])
const
es
=
defineEmits
([
'handleLeftClick'
,
'handleRightClick'
,
'handleFooterClick'
,
'handleChooseData'
,
'handleTabsChange'
])
const
ps
=
defineProps
({
background
:
{
type
:
String
,
...
...
@@ -329,6 +329,7 @@ const current = ref(ps.current)
// tabs通知swiper切换
const
tabsChange
=
(
item
)
=>
{
current
.
value
=
item
.
index
es
(
'handleTabsChange'
,
current
.
value
)
}
// swiper滑动中
const
swiperTransition
=
(
e
)
=>
{}
...
...
src/mocp/store/fleet.js
View file @
e3491b67
...
...
@@ -43,8 +43,8 @@ const useFleetStore = defineStore('fleet', {
}
},
// 配置持久化
//
persist: false
persist
:
{
persist
:
false
/*
persist: {
// 调整为兼容多端的API
storage: {
setItem (key, value) {
...
...
@@ -54,6 +54,6 @@ const useFleetStore = defineStore('fleet', {
return uni.getStorageSync(key)
}
}
}
}
*/
})
export
default
useFleetStore
src/mocp/store/inforDisclosure.js
View file @
e3491b67
...
...
@@ -18,7 +18,8 @@ const useInforDisclosureStore = defineStore('inforDisclosure', {
professional
:
''
},
details
:
undefined
,
releaseBasisDetails
:
undefined
releaseBasisDetails
:
undefined
,
currentTabsIndex
:
0
}
},
getters
:
{},
...
...
src/pages/modules/mocp/panel/flight-support/constants/flightSupportList.scss
View file @
e3491b67
...
...
@@ -69,6 +69,10 @@
align-items
:
center
;
justify-content
:
center
;
flex
:
1
;
.sortIcon
{
margin-left
:
6rpx
;
}
}
}
...
...
src/pages/modules/mocp/panel/flight-support/list.vue
View file @
e3491b67
...
...
@@ -26,9 +26,14 @@
<view
class=
"flex listTopTab text-center"
>
<view
v-for=
"item of getSelectedList"
:key=
"item.id"
class=
"topTabItem"
:style=
"
{ flex: item.flex }">
{{
item
.
label
}}
<!--
<up-icon
v-if=
"item.keyValue == 'time' || item.keyValue == 'staChn'"
name=
"photo"
color=
"#2979ff"
size=
"12"
></up-icon>
-->
<up-icon
v-if=
"item.keyValue == 'time' || item.keyValue == 'staChn'"
class=
"sortIcon"
name=
"arrow-down"
color=
"#4e5969"
size=
"10"
/>
<!--arrow-down-->
</view>
</view>
</
template
>
...
...
src/pages/modules/mocp/panel/inforDisclosure/components/inforDisClosureItem.vue
View file @
e3491b67
...
...
@@ -5,7 +5,12 @@
>
<view
class=
"item-title"
>
<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
class=
"right inforDisTags"
>
<global-tag
...
...
@@ -55,8 +60,8 @@ const ps = defineProps({
}
})
const
{
item
}
=
ps
//跳转
const
inforDisclosureStore
=
useInforDisclosureStore
()
const
{
currentTabsIndex
}
=
storeToRefs
(
inforDisclosureStore
)
const
goDetails
=
(
data
)
=>
{
uni
.
$mocpJump
.
navigateTo
(
'/panel/inforDisclosure/details'
,
{
id
:
data
.
id
}).
then
(()
=>
{
...
...
@@ -75,4 +80,8 @@ onUnload(() => {
<
style
lang=
"scss"
scoped
>
@import
'mocpStatic/css/list.scss'
;
@import
'../constants/inforDisclosure.scss'
;
.statusTxt
{
font-size
:
34
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/inforDisclosure/list.vue
View file @
e3491b67
...
...
@@ -17,6 +17,7 @@
navRightType=
"icon"
navRightIcon=
"saixuan-01"
@
handleRightClick=
"handleRightClick"
@
handleTabsChange=
"handleTabsChange"
>
<template
#="
{ item }">
<inforDisclosureItem
:item=
"item"
/>
...
...
@@ -34,9 +35,8 @@ import { getMocinfoListApi } from 'mocp/api/inforDisclosure'
import
{
getParamsByType
}
from
'mocp/hooks/use-params/useParams'
import
inforDisclosureItem
from
'./components/inforDisClosureItem.vue'
//跳转
const
inforDisclosureStore
=
useInforDisclosureStore
()
const
{
searchData
}
=
storeToRefs
(
inforDisclosureStore
)
const
{
searchData
,
currentTabsIndex
}
=
storeToRefs
(
inforDisclosureStore
)
const
tabList
=
[
{
name
:
'当前通报'
,
...
...
@@ -99,6 +99,10 @@ const transformData = (data) => {
const
handleRightClick
=
()
=>
{
uni
.
$mocpJump
.
redirectTo
(
'/panel/inforDisclosure/search'
)
}
const
handleTabsChange
=
(
e
)
=>
{
console
.
log
(
e
)
currentTabsIndex
.
value
=
e
}
//刷新
const
paging
=
ref
()
uni
.
$on
(
'inforDisclosureReload'
,
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment