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
6927af86
Commit
6927af86
authored
Jul 25, 2024
by
liujinbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
信息通报
parent
65168c2e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
12 deletions
+46
-12
src/pages/modules/mocp/panel/inforDisclosure/constants/inforDisclosure.scss
+7
-0
src/pages/modules/mocp/panel/inforDisclosure/list.vue
+39
-12
No files found.
src/pages/modules/mocp/panel/inforDisclosure/constants/inforDisclosure.scss
0 → 100644
View file @
6927af86
.inforDisTags
{
.txt
{
font-size
:
10px
;
}
}
\ No newline at end of file
src/pages/modules/mocp/panel/inforDisclosure/list.vue
View file @
6927af86
...
...
@@ -17,20 +17,40 @@
tabsWidth=
"50%"
>
<template
#="
{ dataList }">
<view
class=
"item"
v-for=
"item in dataList"
:key=
"item.id"
@
tap=
"goDetails(item)"
>
<view
v-for=
"item in dataList"
:key=
"item.id"
@
tap=
"goDetails(item)"
class=
"item"
>
<view
class=
"item-title"
>
<view
class=
"left"
>
<custom-state
:value=
"
useGetDictByValue('fleet_state', item.state)"
></custom-state
>
<custom-state
:value=
"
item.status.toUpperCase()"
/
>
<text
class=
"txt u-line-1 fleetTxt"
>
{{
item
.
info
}}
</text>
</view>
<view
class=
"right inforDisTags"
>
<global-tag
v-for=
"tagItem of item.tags"
:key=
"tagItem.text"
:type=
"tagItem.type"
class=
"txt"
>
{{
tagItem
.
text
}}
</global-tag>
<!--
<global-tag
type=
"success"
class=
"txt"
>
{{
getParamNameByValue
(
'MajorCategory'
,
item
.
majorCategory
)
}}
</global-tag>
<global-tag
type=
"info"
class=
"txt"
>
{{
getParamNameByValue
(
'McoCurrentState'
,
item
.
state
)
}}
</global-tag>
-->
</view>
</view>
<view
class=
"item-content u-line-3 fleetItemCont"
>
{{
item
.
faultDescribe
||
'无'
}}
<global-icon
icon=
"calendar"
></global-icon>
</view>
</view>
</
template
>
</global-page-swiper>
</template>
...
...
@@ -42,7 +62,8 @@ import useInforDisclosureStore from 'mocp/store/inforDisclosure'
import
{
storeToRefs
}
from
'pinia'
import
{
onUnload
}
from
'@dcloudio/uni-app'
import
{
getMocinfoListApi
}
from
'mocp/api/inforDisclosure'
import
{
getParamsByType
}
from
'mocp/hooks/use-params/useParams'
import
{
getParamNameByValue
,
getParamsByType
}
from
'mocp/hooks/use-params/useParams'
//跳转
const
inforDisclosure
=
useInforDisclosureStore
()
...
...
@@ -85,25 +106,33 @@ const localPagingCB = (data) => {
status
:
item
.
failureState
.
toString
()
===
'0'
?
'open'
:
item
.
failureState
.
toString
()
===
'1'
?
'close'
:
'作废'
,
tags
:
[{
tags
:
[
{
text
:
item
.
pid
===
'0'
?
'主项'
:
'子项'
,
type
:
item
.
pid
===
'0'
?
'primary'
:
'warning'
,
bg
:
item
.
pid
===
'0'
?
'blue'
:
'lightblue'
,
color
:
'white'
},
{
},
{
text
:
RetentionBasisList
[
item
.
guarantee
*
1
]?.
label
,
type
:
'primary'
,
bg
:
'#E9E9E9'
,
color
:
'rgba(0,0,0,.4)'
},
{
text
:
OperationPhaseList
[
item
.
functionInfo
*
1
]?.
label
,
type
:
'primary'
,
bg
:
'#E9E9E9'
,
color
:
'rgba(0,0,0,.4)'
},
{
},
{
text
:
ReleaseStatuList
[
item
.
rleaseState
]?.
label
,
type
:
'info'
,
bg
:
'#E9E9E9'
,
color
:
'rgba(0,0,0,.4)'
}],
}
],
id
:
item
.
id
}
})
console
.
log
(
'@@mappedData'
,
mappedData
)
console
.
log
(
'@@mappedData'
,
mappedData
[
0
]
)
return
mappedData
}
...
...
@@ -122,7 +151,5 @@ onUnload(() => {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'mocpStatic/css/list.scss'
;
//
@import
'./constants/fleet.scss'
;
@import
'./constants/inforDisclosure.scss'
;
</
style
>
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