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 ec7486fb
authored
Apr 15, 2025
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
日志
1 parent
423a638f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
components/HomeFrame/components/RecordList.vue
mixin/record/recorder.js
components/HomeFrame/components/RecordList.vue
View file @
ec7486f
...
@@ -252,6 +252,23 @@ export default {
...
@@ -252,6 +252,23 @@ export default {
this
.
showRecord
=
true
;
this
.
showRecord
=
true
;
delete
val
.
duration
delete
val
.
duration
delete
val
.
startTime
delete
val
.
startTime
const
{
maxUploadNum
=
10
}
=
uni
.
$storage
.
get
(
'mock_data'
)
if
(
val
.
recordUrlList
.
length
>
maxUploadNum
)
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
customerName
,
phoneNumber
,
carModel
,
salesName
}
=
val
||
{
}
const
{
name
}
=
userInfo
||
{
}
uni
.
$logger
.
error
({
msg
:
`员工: ${name
}
, 客户: ${customerName
}
`
,
extra
:
{
'手机号: '
:
phoneNumber
,
'姓名: '
:
customerName
,
'销售: '
:
salesName
,
'车型: '
:
carModel
,
'原因: '
:
'录音文件过长,数量'
+
val
.
recordUrlList
.
length
}
}
)
}
val
.
recordUrlList
=
val
.
recordUrlList
.
slice
(
0
,
maxUploadNum
)
await
this
.
recorder
.
save
(
val
)
await
this
.
recorder
.
save
(
val
)
this
.
getRecordNum
()
this
.
getRecordNum
()
await
this
.
getPreRecordFail
()
await
this
.
getPreRecordFail
()
...
...
mixin/record/recorder.js
View file @
ec7486f
/*
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-12-26 10:03:54
* @Date: 2024-12-26 10:03:54
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditors:
yangming@didihu.com.cn yangming
@didihu.com.cn
* @LastEditTime: 2025-0
3-11 19:15:28
* @LastEditTime: 2025-0
4-15 17:59:20
* @FilePath: \gl_tape\mixin\record\recorder.js
* @FilePath: \gl_tape\mixin\record\recorder.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -103,6 +103,7 @@ export default {
...
@@ -103,6 +103,7 @@ export default {
},
},
async
saveAndClearRecord
(
isNotSave
=
false
)
{
async
saveAndClearRecord
(
isNotSave
=
false
)
{
if
(
isNotSave
)
{
if
(
isNotSave
)
{
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 不保存记录! '
)
return
this
.
record
.
clearLocalRecord
()
return
this
.
record
.
clearLocalRecord
()
}
}
this
.
record
.
setReceptionEndTime
()
//设置接待结束时间
this
.
record
.
setReceptionEndTime
()
//设置接待结束时间
...
...
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