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
9a74632b
Commit
9a74632b
authored
Dec 23, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改权限
parent
0d2b38da
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 deletions
+0
-12
src/pages/modules/mocp/panel/unplanApply/list.vue
+0
-6
src/pages/modules/mocp/panel/unplanWarning/list.vue
+0
-6
No files found.
src/pages/modules/mocp/panel/unplanApply/list.vue
View file @
9a74632b
...
@@ -57,18 +57,12 @@ import { getParamNameByValue } from 'mocp/hooks/use-params/useParams'
...
@@ -57,18 +57,12 @@ import { getParamNameByValue } from 'mocp/hooks/use-params/useParams'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
{
unplanApplyListApi
}
from
'mocp/api/unplanApply'
import
{
unplanApplyListApi
}
from
'mocp/api/unplanApply'
import
useUnplanApplyStore
from
'mocp/store/unplanApply'
import
useUnplanApplyStore
from
'mocp/store/unplanApply'
import
useUserStore
from
'mocp/store/user'
const
userStore
=
useUserStore
()
//跳转
//跳转
const
unplanApplyStore
=
useUnplanApplyStore
()
const
unplanApplyStore
=
useUnplanApplyStore
()
const
{
searchData
}
=
storeToRefs
(
unplanApplyStore
)
const
{
searchData
}
=
storeToRefs
(
unplanApplyStore
)
const
goDetails
=
(
data
)
=>
{
const
goDetails
=
(
data
)
=>
{
if
(
data
.
applyStatus
==
'0'
&&
!
(
userStore
.
userInfo
.
id
==
data
.
createUser
||
userStore
.
userInfo
.
id
==
data
.
approver
))
{
return
uni
.
$mocpMessage
.
warning
(
'没有权限查看。!'
)
}
else
{
uni
.
$mocpJump
.
navigateTo
(
'/panel/unplanApply/details'
,
{
id
:
data
.
id
}
)
uni
.
$mocpJump
.
navigateTo
(
'/panel/unplanApply/details'
,
{
id
:
data
.
id
}
)
}
}
}
//筛选
//筛选
const
handleRightClick
=
()
=>
{
const
handleRightClick
=
()
=>
{
...
...
src/pages/modules/mocp/panel/unplanWarning/list.vue
View file @
9a74632b
...
@@ -57,18 +57,12 @@ import { unplanWarningListApi } from 'mocp/api/unplanWarning'
...
@@ -57,18 +57,12 @@ import { unplanWarningListApi } from 'mocp/api/unplanWarning'
import
useUnplanWarningStore
from
'mocp/store/unplanWarning'
import
useUnplanWarningStore
from
'mocp/store/unplanWarning'
import
{
getParamNameByValue
}
from
'mocp/hooks/use-params/useParams'
import
{
getParamNameByValue
}
from
'mocp/hooks/use-params/useParams'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useUserStore
from
'mocp/store/user'
const
userStore
=
useUserStore
()
//跳转
//跳转
const
unplanWarningStore
=
useUnplanWarningStore
()
const
unplanWarningStore
=
useUnplanWarningStore
()
const
{
searchData
}
=
storeToRefs
(
unplanWarningStore
)
const
{
searchData
}
=
storeToRefs
(
unplanWarningStore
)
const
goDetails
=
(
data
)
=>
{
const
goDetails
=
(
data
)
=>
{
if
(
data
.
applyStatus
==
'0'
&&
!
(
userStore
.
userInfo
.
id
==
data
.
createUser
||
userStore
.
userInfo
.
id
==
data
.
approver
))
{
return
uni
.
$mocpMessage
.
warning
(
'没有权限查看。!'
)
}
else
{
uni
.
$mocpJump
.
navigateTo
(
'/panel/unplanWarning/details'
,
{
id
:
data
.
id
}
)
uni
.
$mocpJump
.
navigateTo
(
'/panel/unplanWarning/details'
,
{
id
:
data
.
id
}
)
}
}
}
//筛选
//筛选
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