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
1a6bf4d4
Commit
1a6bf4d4
authored
Jan 10, 2025
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 海技值班
parent
b667fbc6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
src/pages/modules/mocp/login/index.vue
+6
-6
src/pages/modules/mocp/panel/dutyLog/details.vue
+8
-1
src/pages/modules/mocp/panel/dutyLog/edit.vue
+1
-8
No files found.
src/pages/modules/mocp/login/index.vue
View file @
1a6bf4d4
...
@@ -77,12 +77,12 @@ const handleLogin = async () => {
...
@@ -77,12 +77,12 @@ const handleLogin = async () => {
await
login
()
await
login
()
if
(
userStore
.
token
)
{
if
(
userStore
.
token
)
{
//加入席位权限
//加入席位权限
//
await getUserSeatList()
await
getUserSeatList
()
//
if (userStore.seatId) {
if
(
userStore
.
seatId
)
{
//
await Promise.all([getSeatPermission(), getConfigData()])
await
Promise
.
all
([
getSeatPermission
(),
getConfigData
()])
//
} else {
}
else
{
//
userStore.setState('seatPermission', [])
userStore
.
setState
(
'seatPermission'
,
[])
//
}
}
//跳转工作台
//跳转工作台
uni
.
$mocpJump
.
redirectTo
(
'/tab/index'
)
uni
.
$mocpJump
.
redirectTo
(
'/tab/index'
)
}
}
...
...
src/pages/modules/mocp/panel/dutyLog/details.vue
View file @
1a6bf4d4
<
template
>
<
template
>
<global-page
title=
"海技值班详情"
showNavRight
navRightType=
"button"
@
handleRightClick=
"navigateTo('/panel/dutyLog/edit')"
>
<global-page
title=
"海技值班详情"
showNavRight
:showNavRight=
"checkPermi('/dutyLog/edit')"
navRightType=
"button"
@
handleRightClick=
"navigateTo('/panel/dutyLog/edit')"
>
<template
v-if=
"details"
>
<template
v-if=
"details"
>
<view
class=
"mocp-title"
>
<view
class=
"mocp-title"
>
<view
class=
"mocp-color-text-5 time"
>
{{
timeStampFormat
(
details
.
dutyDate
,
{
format
:
'YYYY/MM/DD dddd'
}
)
}}
<
/view
>
<view
class=
"mocp-color-text-5 time"
>
{{
timeStampFormat
(
details
.
dutyDate
,
{
format
:
'YYYY/MM/DD dddd'
}
)
}}
<
/view
>
...
@@ -55,6 +61,7 @@ import { onLoad, onUnload } from '@dcloudio/uni-app'
...
@@ -55,6 +61,7 @@ import { onLoad, onUnload } from '@dcloudio/uni-app'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useDutyLogStore
from
'mocp/store/dutyLog'
import
useDutyLogStore
from
'mocp/store/dutyLog'
import
{
navigateTo
}
from
'mocp/utils/jump'
import
{
navigateTo
}
from
'mocp/utils/jump'
import
{
checkPermi
}
from
'mocp/utils/permission'
const
query
=
defineProps
([
'id'
])
const
query
=
defineProps
([
'id'
])
const
dutyLogStore
=
useDutyLogStore
()
const
dutyLogStore
=
useDutyLogStore
()
...
...
src/pages/modules/mocp/panel/dutyLog/edit.vue
View file @
1a6bf4d4
<
template
>
<
template
>
<global-page
<global-page
title=
"海技值班详情"
showNavRight
navRightType=
"button"
navRightText=
"保存"
@
handleRightClick=
"handleRightClick"
>
title=
"海技值班详情"
:showNavRight=
"checkPermi('/dutyLog/edit')"
navRightType=
"button"
navRightText=
"保存"
@
handleRightClick=
"handleRightClick"
>
<view
class=
"mocp-title"
>
<view
class=
"mocp-title"
>
<view
class=
"mocp-color-text-5 time"
>
{{
timeStampFormat
(
formData
.
dutyDate
,
{
format
:
'YYYY/MM/DD dddd'
}
)
}}
<
/view
>
<view
class=
"mocp-color-text-5 time"
>
{{
timeStampFormat
(
formData
.
dutyDate
,
{
format
:
'YYYY/MM/DD dddd'
}
)
}}
<
/view
>
<
global
-
tag
:
type
=
"useGetDictByValue('dl_statusColor', formData.status)"
>
<
global
-
tag
:
type
=
"useGetDictByValue('dl_statusColor', formData.status)"
>
...
@@ -101,7 +95,6 @@ import { handleSubmit, resetData, handleRightClick } from './constants/edit.func
...
@@ -101,7 +95,6 @@ import { handleSubmit, resetData, handleRightClick } from './constants/edit.func
import
{
useGetDictByValue
}
from
'mocp/hooks/use-dict/useDict'
import
{
useGetDictByValue
}
from
'mocp/hooks/use-dict/useDict'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useDutyLogStore
from
'mocp/store/dutyLog'
import
useDutyLogStore
from
'mocp/store/dutyLog'
import
{
checkPermi
}
from
'mocp/utils/permission'
const
dutyLogStore
=
useDutyLogStore
()
const
dutyLogStore
=
useDutyLogStore
()
const
{
details
}
=
storeToRefs
(
dutyLogStore
)
const
{
details
}
=
storeToRefs
(
dutyLogStore
)
...
...
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