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
853ceb29
Commit
853ceb29
authored
Jul 18, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 提交
parent
542358e1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
52 additions
and
33 deletions
+52
-33
src/mocp/api/aog.js
+2
-10
src/mocp/hooks/use-dict/dict-data/aog.js
+2
-1
src/mocp/hooks/use-dict/dict-data/index.js
+1
-0
src/mocp/utils/http.js
+2
-1
src/pages/modules/mocp/panel/aog/list.vue
+15
-15
src/pages/modules/mocp/panel/aog/search.vue
+1
-1
src/pages/modules/mocp/panel/components/panel-navbar.vue
+5
-2
src/pages/modules/mocp/panel/constants/panel-navbar.scss
+5
-1
src/pages/modules/mocp/tab/index.vue
+1
-1
src/static/mocp/css/list.scss
+18
-1
No files found.
src/mocp/api/aog.js
View file @
853ceb29
import
{
http
}
from
'mocp/utils/http'
export
const
get
WorkTask
ListApi
=
(
data
,
config
)
=>
{
export
const
get
Aog
ListApi
=
(
data
,
config
)
=>
{
return
http
({
method
:
'POST'
,
url
:
'/workbench/getWorkTaskList'
,
data
,
config
})
}
export
const
WorkTaskIsSuccessApi
=
(
data
,
config
)
=>
{
return
http
({
method
:
'POST'
,
url
:
'/workbench/WorkTaskIsSuccess'
,
url
:
'/technical-support/getAogList'
,
data
,
config
})
...
...
src/mocp/hooks/use-dict/dict-data/aog.js
View file @
853ceb29
// 建议以文件名首字母作为前缀aog_
export
const
aog_state
=
[
{
label
:
'OPEN'
,
value
:
'1'
},
{
label
:
'CLOSE'
,
value
:
'2'
}
{
label
:
'跟踪'
,
value
:
'2'
},
{
label
:
'CLOSE'
,
value
:
'3'
}
]
src/mocp/hooks/use-dict/dict-data/index.js
View file @
853ceb29
...
...
@@ -3,3 +3,4 @@ export * from './assign-work'
export
*
from
'./move-decision'
export
*
from
'./technology-evaluation'
export
*
from
'./work-assignment'
export
*
from
'./aog'
src/mocp/utils/http.js
View file @
853ceb29
import
useUserStore
from
'mocp/store/user'
const
baseURL
=
'https://hna-platform.anyremote.cn'
// const baseURL = 'https://hna-platform.anyremote.cn'
const
baseURL
=
'https://moc.hnatechnic.com/api'
class
ServiceLoading
{
open
(
loading
)
{
...
...
src/pages/modules/mocp/panel/aog/list.vue
View file @
853ceb29
...
...
@@ -11,32 +11,31 @@
navRightType=
"icon"
navRightIcon=
"saixuan-01"
@
handleRightClick=
"handleRightClick"
:api=
"get
WorkTask
ListApi"
:api=
"get
Aog
ListApi"
:padding=
"24"
>
<template
#="
{ dataList }">
<view
class=
"item"
v-for=
"item in dataList"
:key=
"item.id"
@
tap=
"goDetails(item)"
>
<view
class=
"item-title"
>
<view
class=
"left"
>
<custom-state
:value=
"useGetDictByValue('wa_state', item.state)"
></custom-state>
<text
class=
"txt u-line-1"
v-if=
"item.machineNumber"
>
{{
item
.
machineNumber
}}
</text>
</view>
<view
class=
"right"
>
<global-tag
:type=
"useGetDictByValue('wa_isSuccessType', item.isSuccess)"
>
{{
useGetDictByValue
(
'wa_isSuccess'
,
item
.
isSuccess
)
}}
</global-tag>
<custom-state
:value=
"useGetDictByValue('aog_state', item.state)"
></custom-state>
<text
class=
"txt u-line-1"
v-if=
"item.aogNum"
>
{{
item
.
aogNum
}}
</text>
</view>
</view>
<view
class=
"item-content u-line-3"
>
{{
item
.
taskDescription
||
'无'
}}
{{
item
.
faultDesc
||
'无'
}}
</view>
<view
class=
"item-footer"
>
<view
class=
"label"
>
<global-icon
icon=
"calendar"
></global-icon>
<text
class=
"txt"
>
{{
timeStampFormat
(
item
.
feedbackTime
,
{
format
:
'YYYY/MM/DD'
}
)
}}
<view
class=
"left"
>
<text
class=
"txt u-line-1"
v-if=
"item.machineNumber"
>
{{
item
.
machineNumber
}}
</text>
<text
class=
"txt u-line-1"
v-if=
"item.model"
>
{{
item
.
model
}}
</text>
<text
class=
"txt u-line-1"
v-if=
"item.aviation"
>
{{
useGetDictByValue
(
''
,
item
.
aviation
,
{
data
:
baseStore
.
getAirlineSelect
}
)
}}
<
/text
>
<
/view
>
<
view
class
=
"right"
>
<
text
class
=
"txt u-line-1"
v
-
if
=
"item.terminal"
>
{{
item
.
terminal
}}
<
/text
>
<
/view
>
<
/view
>
<
/view
>
<
/template
>
...
...
@@ -45,13 +44,14 @@
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
{
useGetDictByValue
}
from
'mocp/hooks/use-dict/useDict'
import
{
storeToRefs
}
from
'pinia'
import
{
onUnload
}
from
'@dcloudio/uni-app'
import
{
getWorkTaskListApi
}
from
'mocp/api/work-assignment'
import
useAogStore
from
'mocp/store/aog'
import
{
getAogListApi
}
from
'mocp/api/aog'
import
useBaseStore
from
'mocp/store/base'
const
baseStore
=
useBaseStore
()
//跳转
const
aogStore
=
useAogStore
()
const
{
searchData
}
=
storeToRefs
(
aogStore
)
...
...
src/pages/modules/mocp/panel/aog/search.vue
View file @
853ceb29
...
...
@@ -3,7 +3,7 @@
<view
class=
"search-form"
>
<up-form
labelPosition=
"left"
labelWidth=
"auto"
>
<up-form-item
label=
"状态"
prop=
"state"
:borderBottom=
"true"
>
<global-picker
v-model=
"formData.state"
pickAlign=
"right"
clearable
dictkey=
"
wa
_state"
></global-picker>
<global-picker
v-model=
"formData.state"
pickAlign=
"right"
clearable
dictkey=
"
aog
_state"
></global-picker>
</up-form-item>
<up-form-item
label=
"机号"
prop=
"machineNumber"
:borderBottom=
"true"
>
<global-picker
pickAlign=
"right"
v-model=
"formData.machineNumber"
:options=
"deviceNumList"
clearable
filter
></global-picker>
...
...
src/pages/modules/mocp/panel/components/panel-navbar.vue
View file @
853ceb29
...
...
@@ -7,8 +7,11 @@
<view
class=
"navbar-box-weather"
v-if=
"weatherInfo"
>
<!--
<image
src=
"/static/mocp/image/panel/weather.png"
/>
-->
<view
class=
"info"
>
<view
class=
"place"
>
{{
baseStore
.
getTerminalObject
[
userStore
.
userInfo
?.
terminal
]
}}
</view>
<view
class=
"txt"
>
{{
weatherInfo
.
weatherInfoTxt
}}
{{
weatherInfo
.
temperature
}}
°
</view>
<view
class=
"place"
>
{{
baseStore
.
getTerminalObject
[
userStore
.
userInfo
?.
terminal
||
'WUH'
]
}}
</view>
<view
class=
"msg"
>
<up-parse
:content=
"weatherInfo.weatherInfoTxt"
></up-parse>
<view
class=
"txt"
>
{{
weatherInfo
.
temperature
}}
°
</view>
</view>
</view>
</view>
</view>
...
...
src/pages/modules/mocp/panel/constants/panel-navbar.scss
View file @
853ceb29
...
...
@@ -28,9 +28,13 @@
.place
{
font-size
:
28rpx
;
}
.msg
{
display
:
flex
;
justify-content
:
flex-end
;
align-items
:
center
;
}
.txt
{
margin-left
:
8rpx
;
font-size
:
24rpx
;
}
}
}
...
...
src/pages/modules/mocp/tab/index.vue
View file @
853ceb29
...
...
@@ -25,7 +25,7 @@ const baseStore = useBaseStore()
//天气信息
const
weatherInfo
=
ref
()
const
findWeatherSynopsesMessages
=
async
()
=>
{
const
res
=
await
findWeatherSynopsesMessagesApi
({
airportCode
:
userStore
.
userInfo
.
terminal
})
const
res
=
await
findWeatherSynopsesMessagesApi
({
airportCode
:
userStore
.
userInfo
.
terminal
||
'WUH'
})
if
(
res
.
code
==
200
&&
res
.
data
)
{
weatherInfo
.
value
=
res
.
data
[
res
.
data
.
length
-
1
]
uni
.
$emit
(
'sendWeatherInfo'
,
weatherInfo
.
value
)
...
...
src/static/mocp/css/list.scss
View file @
853ceb29
...
...
@@ -50,13 +50,30 @@
line-height
:
40rpx
;
}
&
-footer
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
16rpx
;
.label
{
display
:
flex
;
align-items
:
center
;
margin-top
:
16rpx
;
.txt
{
margin-left
:
16rpx
;
}
}
.left
{
color
:
$mocp-primary-6
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.txt
{
color
:
$mocp-text-5
;
font-size
:
28rpx
;
margin-left
:
16rpx
;
&
:first-child
{
margin-left
:
0
;
}
}
}
}
}
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