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
80955fee
Commit
80955fee
authored
Jul 31, 2024
by
liujinbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机队状态详情新增部分字段
parent
472ade02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
20 deletions
+79
-20
src/mocp/store/fleet.js
+12
-1
src/mocp/utils/getFlightList.js
+4
-0
src/pages/modules/mocp/panel/fleet/details.vue
+63
-19
No files found.
src/mocp/store/fleet.js
View file @
80955fee
...
...
@@ -43,6 +43,17 @@ const useFleetStore = defineStore('fleet', {
}
},
// 配置持久化
persist
:
false
// persist: false
persist
:
{
// 调整为兼容多端的API
storage
:
{
setItem
(
key
,
value
)
{
uni
.
setStorageSync
(
key
,
value
)
},
getItem
(
key
)
{
return
uni
.
getStorageSync
(
key
)
}
}
}
})
export
default
useFleetStore
src/mocp/utils/getFlightList.js
View file @
80955fee
...
...
@@ -49,6 +49,10 @@ export const fleetMapper = {
'1'
:
'高高原'
,
'2'
:
'国际航班'
,
'3'
:
'Etops'
,
'4'
:
'限飞外站'
,
'5'
:
'其他'
}
export
const
limitSectionList
=
{
'1'
:
'时间'
,
'2'
:
'航段数'
}
export
const
fightListTime
=
[
'etdChn'
,
'atdChn'
,
'etaChn'
,
'ataChn'
]
export
const
fightListPlanTime
=
[
'staChn'
,
'schTime'
]
export
const
finishedStatus
=
[
'ARR'
,
'NDR'
,
'ATA'
]
...
...
src/pages/modules/mocp/panel/fleet/details.vue
View file @
80955fee
...
...
@@ -21,42 +21,84 @@
</view>
</view>
</view>
<view
class=
"details-body fleetATA"
>
<view
class=
"details-body-content ataCont"
>
<text>
ATA章节:
{{
details
.
ata
}}
</text>
<view
class=
"fleetDescribe"
>
故障描述:
</view>
<view
class=
"describeCont"
>
{{
details
.
faultDescribe
||
'无'
}}
</view>
<view
class=
"fleetDescribe"
>
相关参考文档:
</view>
<view
class=
"describeCont"
>
<!--
<global-upload
:fileList=
"details.releaseEnclosure"
typeField=
"type"
nameField=
"name"
:showUpload=
"false"
/>
-->
<template
v-if=
"details?.relevantFile"
>
<view
class=
"fleetDescribe"
>
相关参考文档:
</view>
<view
class=
"describeCont"
>
<global-upload
:fileList=
"details.relevantFile"
:showUpload=
"false"
/>
</view>
</
template
>
</view>
</view>
<view
class=
"details-body fleetATA"
>
<view
class=
"details-body-content ataCont"
>
<view
class=
"footerData occurrenceData"
>
发生日期:{{ timeStampFormat(details.sendingTime, {format: 'YYYY-MM-DD'}) }}
</view>
<view
class=
"footerData occurrenceData"
>
填报时间:{{ timeStampFormat(details.creationTime, {format: 'YYYY-MM-DD'}) }}
</view>
</view>
</view>
<view
class=
"details-footer"
>
<view
class=
"fleetDescribe"
>
处理措施:
</view>
<view
class=
"describeCont"
>
{{ details.handle || '无' }}
</view>
<view
class=
"footerData occurrenceData"
>
发生日期:
{{
timeStampFormat
(
details
.
sendingTime
,
{
format
:
'YYYY-MM-DD'
}
)
}}
<
/view
>
<
view
class
=
"footerData occurrenceData"
>
填报时间:
{{
timeStampFormat
(
details
.
creationTime
,
{
format
:
'YYYY-MM-DD'
}
)
}}
<
/view
>
<
template
v-if=
"details?.handleFile"
>
<view
class=
"fleetDescribe"
>
附件:
</view>
<view
class=
"describeCont"
>
<global-upload
:fileList=
"details.handleFile"
:showUpload=
"false"
/>
</view>
</
template
>
<view
class=
"fleetDescribe"
>
备注:
</view>
<
view
class
=
"describeCont"
>
{{
details
.
remarks
}}
<
/view
>
<view
class=
"describeCont"
>
{{ details.remarks || '无' }}
</view>
<
template
v-if=
"details?.remarksFile"
>
<view
class=
"fleetDescribe"
>
备注附件:
</view>
<view
class=
"describeCont"
>
<global-upload
:fileList=
"details.remarksFile"
:showUpload=
"false"
/>
</view>
</
template
>
</view>
<view
class=
"details-footer"
>
<view
class=
"fleetDescribe"
>
空地支援:
</view>
<
view
class
=
"describeCont"
>
{{
details
.
groundSupport
}}
<
/view
>
<view
class=
"describeCont"
>
{{ details.groundSupport || '无' }}
</view>
<
template
v-if=
"details?.supportFile"
>
<view
class=
"fleetDescribe"
>
空地支援附件:
</view>
<view
class=
"describeCont"
>
<global-upload
:fileList=
"details.supportFile"
:showUpload=
"false"
/>
</view>
</
template
>
</view>
<view
class=
"details-footer"
>
<view
class=
"fleetDescribe"
>
运行限制:
</view>
<
view
class
=
"describeCont"
>
{{
details
.
runLimitValue
}}
<
/view
>
<view
class=
"describeCont"
>
{{ details.runLimitValue || '无' }}
</view>
<view
class=
"fleetDescribe"
>
限制类型:
</view>
<view
class=
"describeCont"
>
{{ details.limitSectionValue || '无' }}
</view>
<view
class=
"fleetDescribe"
>
时间范围:
</view>
<view
class=
"describeCont"
>
{{ timeStampFormat(details.startTime, {format: 'YYYY-MM-DD'}) }}
至
{{ timeStampFormat(details.endTime, {format: 'YYYY-MM-DD'}) }}
</view>
<view
class=
"fleetDescribe"
>
限制类型备注:
</view>
<
view
class
=
"describeCont"
>
{{
details
.
limitRemarks
}}
<
/view
>
<view
class=
"describeCont"
>
{{ details.limitRemarks
|| '无'
}}
</view>
</view>
...
...
@@ -73,7 +115,8 @@ import { timeStampFormat } from 'mocp/utils/tool'
import
{
useGetDictByValue
}
from
'mocp/hooks/use-dict/useDict'
import
{
getFleetDetailApi
}
from
'mocp/api/fleet'
import
{
onLoad
}
from
'@dcloudio/uni-app'
import
{
fleetMapper
}
from
'mocp/utils/getFlightList'
import
{
fleetMapper
,
limitSectionList
}
from
'mocp/utils/getFlightList'
const
fleetStore
=
useFleetStore
()
const
{
detailsId
}
=
storeToRefs
(
fleetStore
)
...
...
@@ -88,6 +131,7 @@ const getFleetDetailList = async () => {
if
(
res
.
code
==
'200'
)
{
details
.
value
=
res
?.
data
if
(
details
.
value
.
runLimit
!=
''
)
details
.
value
.
runLimitValue
=
fleetMapper
[
details
.
value
.
runLimit
]
if
(
details
.
value
.
limitSection
!=
''
)
details
.
value
.
limitSectionValue
=
limitSectionList
[
details
.
value
.
limitSection
]
}
console
.
log
(
'details.value'
,
details
.
value
)
}
...
...
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