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
88fdd0e9
Commit
88fdd0e9
authored
Oct 14, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 防风害待办修改
parent
ea88335d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
+29
-6
src/pages/modules/mocp/panel/my-toDo/components/WindDamageManagement.vue
+28
-5
src/pages/modules/mocp/panel/windDamageManagement/operateDetails.vue
+1
-1
No files found.
src/pages/modules/mocp/panel/my-toDo/components/WindDamageManagement.vue
View file @
88fdd0e9
...
...
@@ -32,12 +32,12 @@
]"
>
</up-swipe-action-item>
</up-swipe-action>
<view
class=
"item"
@
tap=
"goDetails(item, option
.id
)"
>
<view
class=
"item"
@
tap=
"goDetails(item, option)"
>
<view
class=
"item-title"
>
<view
class=
"left"
>
<custom-state
:value=
"useGetDictByValue('wdm_isOpen', item.isOpen)"
></custom-state>
<view
style=
"margin-left: 12rpx"
>
<global-tag
type=
"primary"
border
:background=
"false"
>
巡场检查单
</global-tag>
<global-tag
type=
"primary"
border
:background=
"false"
>
{{
taskList
[
option
.
taskType
].
name
}}
</global-tag>
</view>
</view>
<view
class=
"right"
>
...
...
@@ -88,6 +88,28 @@ import useBaseStore from 'mocp/store/base'
import
{
ref
}
from
'vue'
import
{
onUnload
}
from
'@dcloudio/uni-app'
const
taskList
=
{
1
:
{
index
:
0
,
name
:
'巡场检查单'
,
url
:
'/panel/windDamageManagement/patrolDetails'
},
2
:
{
index
:
1
,
name
:
'操作单'
,
url
:
'/panel/windDamageManagement/operateDetails'
},
3
:
{
index
:
2
,
name
:
'系留单'
,
url
:
'/panel/windDamageManagement/mooringDetails'
},
4
:
{
index
:
3
,
name
:
'防沙尘暴签署单'
,
url
:
'/panel/windDamageManagement/sandstormDetails'
}
}
const
userStore
=
useUserStore
()
const
baseStore
=
useBaseStore
()
const
myToDoStore
=
useMyToDoStore
()
...
...
@@ -100,11 +122,12 @@ const ps = defineProps({
}
})
//跳转
const
goDetails
=
(
data
,
basicId
)
=>
{
windDamageManagementStore
.
setState
(
'basicId'
,
basicId
)
const
goDetails
=
(
data
,
option
)
=>
{
windDamageManagementStore
.
setState
(
'tabIndex'
,
taskList
[
option
.
taskType
].
index
)
windDamageManagementStore
.
setState
(
'basicId'
,
option
.
id
)
windDamageManagementStore
.
setState
(
'weatherId'
,
data
.
id
)
windDamageManagementStore
.
setState
(
'weatherSource'
,
data
.
weatherSource
)
uni
.
$mocpJump
.
navigateTo
(
'/panel/windDamageManagement/patrolDetails'
)
uni
.
$mocpJump
.
navigateTo
(
taskList
[
option
.
taskType
].
url
)
}
//删除
const
handleDelete
=
(
data
)
=>
{
...
...
src/pages/modules/mocp/panel/windDamageManagement/operateDetails.vue
View file @
88fdd0e9
<
template
>
<global-page
:padding=
"24"
title=
"防风害
巡场检查
单"
title=
"防风害
操作
单"
:showFooterBtn=
"getBasicVo.rxStatus == '0'"
footerBtnText=
"接收"
@
handleFooterClick=
"handleFooterClick"
...
...
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