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
fbf9bc9f
Commit
fbf9bc9f
authored
Jul 30, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bug修复
parent
7f8f1a83
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
15 deletions
+35
-15
src/mocp/api/mco.js
+2
-2
src/mocp/store/mco.js
+1
-11
src/mocp/utils/http.js
+1
-1
src/pages/modules/mocp/panel/mco/feed-back.vue
+24
-1
src/pages/modules/mocp/panel/mco/step-back.vue
+7
-0
No files found.
src/mocp/api/mco.js
View file @
fbf9bc9f
...
...
@@ -18,10 +18,10 @@ export const getMcoDetailsApi = (data, config) => {
})
}
export
const
add
BackApi
=
(
data
,
config
)
=>
{
export
const
get
BackApi
=
(
data
,
config
)
=>
{
return
http
({
method
:
'POST'
,
url
:
'/workbench/
add
Back'
,
url
:
'/workbench/
get
Back'
,
data
,
config
})
...
...
src/mocp/store/mco.js
View file @
fbf9bc9f
...
...
@@ -80,16 +80,6 @@ const useMcoStore = defineStore('mco', {
}
},
// 配置持久化
persist
:
{
// 调整为兼容多端的API
storage
:
{
setItem
(
key
,
value
)
{
uni
.
setStorageSync
(
key
,
value
)
},
getItem
(
key
)
{
return
uni
.
getStorageSync
(
key
)
}
}
}
persist
:
false
})
export
default
useMcoStore
src/mocp/utils/http.js
View file @
fbf9bc9f
import
useUserStore
from
'mocp/store/user'
const
baseURL
=
'https://hna-platform.anyremote.cn'
//测试
// const baseURL = 'https://moc.hnatechnic.com/api'//生产
// const baseURL = 'https://moc.hnatechnic.com/api'
//生产
class
ServiceLoading
{
open
(
loading
)
{
...
...
src/pages/modules/mocp/panel/mco/feed-back.vue
View file @
fbf9bc9f
...
...
@@ -11,6 +11,13 @@
<up-cell
title=
"工作人"
:value=
"getFeedBackDetails.staff || '-'"
></up-cell>
<up-cell
title=
"总实际工时"
:value=
"getFeedBackDetails.actualWork || '-'"
></up-cell>
<up-cell
title=
"反馈内容"
:label=
"getFeedBackDetails.content || '无'"
></up-cell>
<up-cell
title=
"附件"
>
<
template
#
label
>
<view
style=
"margin-top: 16rpx"
>
<global-upload
:fileList=
"contentFile"
:showUpload=
"false"
></global-upload>
</view>
</
template
>
</up-cell>
</up-cell-group>
</view>
</template>
...
...
@@ -20,9 +27,25 @@
<
script
setup
>
import
{
storeToRefs
}
from
'pinia'
import
useMcoStore
from
'mocp/store/mco'
import
{
onLoad
}
from
'@dcloudio/uni-app'
import
{
ref
}
from
'vue'
import
{
getBackApi
}
from
'mocp/api/mco'
const
mcoStore
=
useMcoStore
()
const
{
getFeedBackDetails
}
=
storeToRefs
(
mcoStore
)
const
{
getFeedBackDetails
,
feedBackType
,
details
}
=
storeToRefs
(
mcoStore
)
//获取文件
const
contentFile
=
ref
()
const
getBack
=
async
()
=>
{
const
res
=
await
getBackApi
({
stepType
:
feedBackType
.
value
,
mcoNumber
:
details
.
value
?.
mcoNumber
},
{
loading
:
true
})
if
(
res
.
code
==
200
)
{
contentFile
.
value
=
res
.
data
[
0
].
contentFile
}
else
{
uni
.
$mocpMessage
.
error
(
res
.
message
)
}
}
onLoad
(()
=>
{
getBack
()
})
</
script
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
...
...
src/pages/modules/mocp/panel/mco/step-back.vue
View file @
fbf9bc9f
...
...
@@ -21,6 +21,13 @@
<up-cell
title=
"工作人"
:value=
"getStepBackDetails.staff || '-'"
></up-cell>
<up-cell
title=
"实际工时"
:value=
"getStepBackDetails.actualWork || '-'"
></up-cell>
<up-cell
title=
"反馈内容"
:label=
"getStepBackDetails.content || '无'"
></up-cell>
<up-cell
title=
"附件"
>
<
template
#
label
>
<view
style=
"margin-top: 16rpx"
>
<global-upload
:fileList=
"getStepBackDetails.contentFile"
:showUpload=
"false"
></global-upload>
</view>
</
template
>
</up-cell>
</up-cell-group>
</view>
</template>
...
...
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