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
a65e8f6b
Commit
a65e8f6b
authored
Jul 30, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 我的待办修改
parent
71427ba4
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
18 deletions
+31
-18
src/mocp/api/my-toDo.js
+2
-2
src/mocp/components/global-page/global-page.vue
+2
-0
src/mocp/store/my-toDo.js
+8
-9
src/mocp/store/user.js
+1
-1
src/pages/modules/mocp/panel/index.vue
+13
-1
src/pages/modules/mocp/panel/my-toDo/components/appraisal-record-list.vue
+1
-1
src/pages/modules/mocp/panel/my-toDo/components/assign-work-list.vue
+2
-2
src/pages/modules/mocp/panel/my-toDo/components/move-decision-list.vue
+1
-1
src/pages/modules/mocp/panel/my-toDo/components/technology-evaluation-list.vue
+1
-1
src/static/mocp/image/panel/wdgj.png
+0
-0
No files found.
src/mocp/api/my-toDo.js
View file @
a65e8f6b
import
{
http
}
from
'mocp/utils/http'
import
{
http
,
post
}
from
'mocp/utils/http'
//布置工作
export
const
getArrangeWorkListForAppApi
=
(
data
,
config
)
=>
{
return
http
({
return
post
({
method
:
'POST'
,
url
:
'/technical-support/getArrangeWorkListForApp'
,
data
,
...
...
src/mocp/components/global-page/global-page.vue
View file @
a65e8f6b
...
...
@@ -341,6 +341,8 @@ const queryList = (pageIndex, pageSize) => {
}
else
{
if
(
ps
.
localData
)
{
paging
.
value
?.
complete
(
ps
.
localData
||
[])
}
else
{
paging
.
value
?.
complete
(
true
)
}
es
(
'handleQuery'
,
{
pageIndex
,
pageSize
})
}
...
...
src/mocp/store/my-toDo.js
View file @
a65e8f6b
...
...
@@ -74,33 +74,32 @@ const useMyToDoStore = defineStore('myToDo', {
const
userStore
=
useUserStore
()
const
res
=
await
getArrangeWorkListForAppApi
({
pageIndex
:
1
,
pageSize
:
10
,
userId
:
userStore
.
userInfo
?.
id
})
if
(
res
.
code
==
200
)
{
this
.
assignWorkNum
=
res
.
total
||
0
this
.
assignWorkNum
=
parseInt
(
res
.
data
.
total
)
||
0
}
},
async
getRqmListForMobile
()
{
const
userStore
=
useUserStore
()
const
res
=
await
getRqmListForMobileApi
({
pageIndex
:
1
,
pageSize
:
10
,
userId
:
userStore
.
userInfo
?.
id
})
if
(
res
.
code
==
200
)
{
this
.
appraisalRecordNum
=
res
.
total
||
0
this
.
appraisalRecordNum
=
parseInt
(
res
.
total
)
||
0
}
},
async
getDecisiongetDecisionToDo
()
{
const
res
=
await
getDecisiongetDecisionToDoApi
({
pageIndex
:
1
,
pageSize
:
10
})
if
(
res
.
code
==
200
)
{
this
.
moveDecisionNum
=
res
.
total
||
0
this
.
moveDecisionNum
=
parseInt
(
res
.
data
.
total
)
||
0
}
},
async
getTechnicalEvaluationToDo
()
{
const
res
=
await
getTechnicalEvaluationToDoApi
({
pageIndex
:
1
,
pageSize
:
10
})
if
(
res
.
code
==
200
)
{
this
.
technologyEvaluationNum
=
res
.
total
||
0
this
.
technologyEvaluationNum
=
parseInt
(
res
.
data
.
total
)
||
0
}
},
initData
()
{
this
.
getArrangeWorkListForApp
()
this
.
getRqmListForMobile
()
this
.
getDecisiongetDecisionToDo
()
this
.
getTechnicalEvaluationToDo
()
async
initData
()
{
await
Promise
.
all
([
(
this
.
getArrangeWorkListForApp
(),
this
.
getRqmListForMobile
(),
this
.
getDecisiongetDecisionToDo
(),
this
.
getTechnicalEvaluationToDo
())
])
},
setState
(...
args
)
{
this
.
$patch
({
[
args
[
0
]]:
args
[
1
]
})
...
...
src/mocp/store/user.js
View file @
a65e8f6b
...
...
@@ -18,7 +18,7 @@ const menuList = ref([
{
id
:
13
,
name
:
'AOG任务'
,
icon
:
'AOG'
,
group
:
'运行品质'
,
default
:
true
,
count
:
0
,
url
:
'/panel/aog/search'
},
{
id
:
14
,
name
:
'MCO'
,
icon
:
'MCO'
,
group
:
'运行品质'
,
default
:
true
,
count
:
0
,
url
:
'/panel/mco/search'
},
{
id
:
15
,
name
:
'航班保障'
,
icon
:
'hbbz'
,
group
:
'运行品质'
,
default
:
true
,
count
:
0
,
url
:
'/panel/flight-support/list'
},
{
id
:
16
,
name
:
'我的跟机'
,
icon
:
'
khjl
'
,
group
:
'运行品质'
,
default
:
false
,
count
:
0
,
url
:
'/panel/supported-task/list'
}
{
id
:
16
,
name
:
'我的跟机'
,
icon
:
'
wdgj
'
,
group
:
'运行品质'
,
default
:
false
,
count
:
0
,
url
:
'/panel/supported-task/list'
}
])
const
useUserStore
=
defineStore
(
'user'
,
{
state
:
()
=>
{
...
...
src/pages/modules/mocp/panel/index.vue
View file @
a65e8f6b
<
template
>
<global-page
:showNavbar=
"false"
>
<global-page
:showNavbar=
"false"
refresherEnabled
@
handleQuery=
"handleQuery"
>
<!-- 导航栏 -->
<template
#
top
>
<image
class=
"page-bg"
src=
"/static/mocp/image/panel/page-bg.png"
/>
...
...
@@ -13,6 +13,18 @@
<
script
setup
>
import
PanelNavbar
from
'./components/panel-navbar.vue'
import
PanelMenu
from
'./components/panel-menu.vue'
import
useMyToDoStore
from
'mocp/store/my-toDo'
//刷新我的待办个数
const
myToDoStore
=
useMyToDoStore
()
const
handleQuery
=
async
()
=>
{
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
await
myToDoStore
.
initData
()
uni
.
hideLoading
()
}
</
script
>
<
style
lang=
"scss"
scoped
>
.page-bg
{
...
...
src/pages/modules/mocp/panel/my-toDo/components/appraisal-record-list.vue
View file @
a65e8f6b
...
...
@@ -56,7 +56,7 @@ const goDetails = (data) => {
})
}
const
handleQuery
=
({
res
})
=>
{
myToDoStore
.
setState
(
'appraisalRecordNum'
,
res
.
total
||
0
)
myToDoStore
.
setState
(
'appraisalRecordNum'
,
parseInt
(
res
.
total
)
||
0
)
}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
src/pages/modules/mocp/panel/my-toDo/components/assign-work-list.vue
View file @
a65e8f6b
...
...
@@ -57,7 +57,7 @@ import { storeToRefs } from 'pinia'
const
userStore
=
useUserStore
()
const
myToDoStore
=
useMyToDoStore
()
const
{
getAssignWorkNum
}
=
storeToRefs
(
myToDoStore
)
const
{
getAssignWorkNum
}
=
storeToRefs
(
myToDoStore
)
const
ps
=
defineProps
({
height
:
{
type
:
String
,
...
...
@@ -68,7 +68,7 @@ const goDetails = (data) => {
uni
.
$mocpJump
.
navigateTo
(
'/panel/assign-work/details'
,
{
id
:
data
.
id
}
)
}
const
handleQuery
=
({
res
}
)
=>
{
myToDoStore
.
setState
(
'assignWorkNum'
,
res
.
total
||
0
)
myToDoStore
.
setState
(
'assignWorkNum'
,
parseInt
(
res
.
data
.
total
)
||
0
)
}
<
/script
>
<
style
lang
=
"scss"
scoped
><
/style
>
src/pages/modules/mocp/panel/my-toDo/components/move-decision-list.vue
View file @
a65e8f6b
...
...
@@ -64,7 +64,7 @@ const goDetails = (data) => {
}
)
}
const
handleQuery
=
({
res
}
)
=>
{
myToDoStore
.
setState
(
'moveDecisionNum'
,
res
.
total
||
0
)
myToDoStore
.
setState
(
'moveDecisionNum'
,
parseInt
(
res
.
data
.
total
)
||
0
)
}
<
/script
>
<
style
lang
=
"scss"
scoped
><
/style
>
src/pages/modules/mocp/panel/my-toDo/components/technology-evaluation-list.vue
View file @
a65e8f6b
...
...
@@ -70,7 +70,7 @@ const goDetails = (data) => {
}
)
}
const
handleQuery
=
({
res
}
)
=>
{
myToDoStore
.
setState
(
'technologyEvaluationNum'
,
res
.
total
||
0
)
myToDoStore
.
setState
(
'technologyEvaluationNum'
,
parseInt
(
res
.
data
.
total
)
||
0
)
}
<
/script
>
<
style
lang
=
"scss"
scoped
><
/style
>
src/static/mocp/image/panel/wdgj.png
0 → 100644
View file @
a65e8f6b
1.83 KB
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