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
d2964920
Commit
d2964920
authored
Dec 20, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 我的待办修复
parent
d36f7fbc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
src/mocp/store/my-toDo.js
+19
-0
src/pages/modules/mocp/panel/my-toDo/index.vue
+3
-3
No files found.
src/mocp/store/my-toDo.js
View file @
d2964920
...
@@ -14,6 +14,25 @@ const useMyToDoStore = defineStore('myToDo', {
...
@@ -14,6 +14,25 @@ const useMyToDoStore = defineStore('myToDo', {
}
}
},
},
getters
:
{
getters
:
{
getTypeNum
(
state
)
{
let
num
=
0
if
(
state
.
assignWorkNum
>
0
)
{
num
++
}
if
(
state
.
appraisalRecordNum
>
0
)
{
num
++
}
if
(
state
.
moveDecisionNum
>
0
)
{
num
++
}
if
(
state
.
technologyEvaluationNum
>
0
)
{
num
++
}
if
(
state
.
windDamageManagementNum
>
0
)
{
num
++
}
return
num
},
getTotal
(
state
)
{
getTotal
(
state
)
{
const
total
=
const
total
=
state
.
assignWorkNum
+
state
.
appraisalRecordNum
+
state
.
moveDecisionNum
+
state
.
technologyEvaluationNum
+
state
.
windDamageManagementNum
state
.
assignWorkNum
+
state
.
appraisalRecordNum
+
state
.
moveDecisionNum
+
state
.
technologyEvaluationNum
+
state
.
windDamageManagementNum
...
...
src/pages/modules/mocp/panel/my-toDo/index.vue
View file @
d2964920
...
@@ -32,12 +32,12 @@ import useMyToDoStore from 'mocp/store/my-toDo'
...
@@ -32,12 +32,12 @@ import useMyToDoStore from 'mocp/store/my-toDo'
import
{
storeToRefs
}
from
'pinia'
import
{
storeToRefs
}
from
'pinia'
const
{
windowHeight
,
safeAreaInsets
}
=
uni
.
getSystemInfoSync
()
const
{
windowHeight
,
safeAreaInsets
}
=
uni
.
getSystemInfoSync
()
const
myToDoStore
=
useMyToDoStore
()
const
{
getTotal
,
getTypeNum
}
=
storeToRefs
(
myToDoStore
)
//内容高度-nav高度-底部安全区-底部安全区
//内容高度-nav高度-底部安全区-底部安全区
const
getHeight
=
computed
(()
=>
{
const
getHeight
=
computed
(()
=>
{
return
windowHeight
-
44
-
safeAreaInsets
?.
top
-
safeAreaInsets
?.
bottom
-
75
*
5
+
'px'
return
windowHeight
-
44
-
safeAreaInsets
?.
top
-
safeAreaInsets
?.
bottom
-
75
*
getTypeNum
.
value
+
'px'
})
})
const
myToDoStore
=
useMyToDoStore
()
const
{
getTotal
}
=
storeToRefs
(
myToDoStore
)
//全部清除
//全部清除
const
show
=
ref
(
false
)
const
show
=
ref
(
false
)
const
handleRightClick
=
()
=>
{
const
handleRightClick
=
()
=>
{
...
...
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