Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 95db8d38
authored
Jan 16, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.49' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V4.49
2 parents
71da5594
d5cb1dc2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
20 deletions
components/HomeFrame/components/saveRecord.vue
mixin/record/recorder.js
mixin/record/uploader.js
utils/recordManager/TempRecord.js
components/HomeFrame/components/saveRecord.vue
View file @
95db8d3
...
...
@@ -62,7 +62,7 @@ export default {
data
()
{
return
{
errorTip
:
false
,
receptionList
:
[{
receptionList
:
Object
.
freeze
(
[{
label
:
'成交'
,
value
:
1
},
...
...
@@ -70,8 +70,8 @@ export default {
label
:
'战败'
,
value
:
0
}
],
formObject
:
[{
]
)
,
formObject
:
Object
.
freeze
(
[{
label
:
"车主姓名"
,
placeholder
:
'车主姓名'
,
key
:
'customerName'
,
...
...
@@ -108,7 +108,7 @@ export default {
popKey
:
"employeeBoxVisible"
,
placeholder
:
'请选择'
,
},
],
]
)
,
focusIndex
:
-
1
,
customerInfo
:{}
}
...
...
mixin/record/recorder.js
View file @
95db8d3
...
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-12-26 10:03:54
* @LastEditors: limin
* @LastEditTime: 2025-01-
09 11:05:10
* @LastEditTime: 2025-01-
15 21:23:38
* @FilePath: \gl_tape\mixin\record\recorder.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -112,7 +112,9 @@ export default {
stop
()
{
this
.
endWatchClick
()
this
.
record
.
clearLoopTimer
()
this
.
audioManager
.
stop
()
if
(
this
.
audioManager
.
isRecording
){
this
.
audioManager
.
stop
()
}
},
handler
(
params
,
fn
)
{
if
(
!
this
.
audioManager
.
isRecording
)
return
...
...
mixin/record/uploader.js
View file @
95db8d3
...
...
@@ -40,18 +40,21 @@ export default {
},
methods
:
{
async
init
()
{
// await this.checkDB()
// 初始化 WebView
this
.
wv
=
await
this
.
initWebview
()
this
.
interval
=
UPLOAD_INTERVAL
// 初始化操作队列
this
.
operationQueue
=
new
OperationQueue
()
this
.
timeoutManager
=
new
TimeoutManager
()
// 开始轮询
this
.
startPolling
()
// uni.$logger.local.error({ extra : { key: 'data', value: {'abc':123,'sss':456,'GDF':888} }, msg:'test', tag : { key: 'tag', value: 'tagtest' } })
// uni.$logger.local.getFiles('20240905','2024-09/05')
// uni.$logger.local.removeOverDays(1)
try
{
// 初始化 WebView
this
.
wv
=
await
this
.
initWebview
()
this
.
interval
=
UPLOAD_INTERVAL
// 初始化操作队列
this
.
operationQueue
=
new
OperationQueue
()
this
.
timeoutManager
=
new
TimeoutManager
()
// 开始轮询
this
.
startPolling
()
// uni.$logger.local.error({ extra : { key: 'data', value: {'abc':123,'sss':456,'GDF':888} }, msg:'test', tag : { key: 'tag', value: 'tagtest' } })
// uni.$logger.local.getFiles('20240905','2024-09/05')
// uni.$logger.local.removeOverDays(1)
}
catch
(
error
)
{
this
.
reportError
(
`【上传管理Uploader】初始化失败 error:
${
error
.
message
}
`
,
error
.
message
)
}
},
/**
* 订阅事件
...
...
@@ -691,7 +694,7 @@ export default {
* 清除 timer
*/
canclePromises
()
{
this
.
timeoutManager
.
cancelAllTasks
()
this
.
timeoutManager
?
.
cancelAllTasks
()
this
.
endTask
()
},
off
()
{
...
...
utils/recordManager/TempRecord.js
View file @
95db8d3
...
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2025-01-02 18:49:17
* @LastEditors: limin
* @LastEditTime: 2025-01-
06 19:37:32
* @LastEditTime: 2025-01-
15 22:01:56
* @FilePath: \gl_tape\utils\recordManager\TempRecord.js
*/
import
utils
from
'../utils'
...
...
@@ -53,6 +53,7 @@ class TempRecord {
}
async
save
(
record
=
this
.
record
)
{
try
{
if
(
!
record
)
throw
new
Error
(
'记录对象为空'
)
uni
.
$logger
.
local
.
info
(
'〖接待记录Record〗 == 开始持久化记录 =='
+
JSON
.
stringify
(
record
))
this
.
clearLoopTimer
()
await
this
.
saveTempFile
(
record
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment