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 0eb86439
authored
Jul 02, 2024
by
yixinjj
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.7' of
http://192.168.3.233:8090/glsx/gl_tape
into v1.0.7
2 parents
8cbf4ab9
068943ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
12 deletions
mixin/uploader.js
pages/equity/detail/components/History.vue
mixin/uploader.js
View file @
0eb8643
...
...
@@ -162,8 +162,12 @@ export default {
console
.
log
(
recordFileList
,
"recordFileList"
);
if
(
recordFileList
.
every
((
i
)
=>
i
.
status
==
undefined
))
{
const
res
=
await
uni
.
$api
.
commonApi
.
saveRecCustomer
(
record
);
console
.
log
(
res
);
const
pathArr
=
recordFileList
.
map
((
i
)
=>
i
.
file
);
const
res
=
await
uni
.
$api
.
commonApi
.
saveRecCustomer
({
...
record
,
recordFileList
:
pathArr
,
});
console
.
log
(
record
,
res
,
"record"
);
if
(
res
)
{
uni
.
$recordManager
.
removeRecord
(
recordId
);
}
...
...
@@ -216,6 +220,7 @@ export default {
* 这个函数的目的是在一定条件下,通过持续轮询来执行上传记录的操作。它检查一个队列(snapshot)的大小。如果队列为空,它会等待十分钟(1000 毫秒 * 60 秒 * 10 分钟)后再次检查。如果队列中有记录,它会取出一条记录并上传它。
*/
polling
()
{
console
.
log
(
this
.
snapshot
.
size
,
"this.snapshot.size"
);
if
(
this
.
snapshot
===
null
)
return
;
uni
.
$isNetWork
().
then
(()
=>
{
if
(
this
.
snapshot
.
size
==
0
)
{
...
...
@@ -237,9 +242,9 @@ export default {
setTimeout
(()
=>
{
this
.
polling
();
},
interval
*
1000
);
},
onUnload
()
{
this
.
stopPolling
();
},
},
beforeDestroy
()
{
console
.
log
(
"stopPolling"
);
this
.
stopPolling
();
}
};
pages/equity/detail/components/History.vue
View file @
0eb8643
...
...
@@ -66,7 +66,7 @@ export default {
return
{
historyList
:
[],
isEnd
:
false
,
currentPage
:
1
,
pageNum
:
1
,
shopMerchantId
:
''
,
goodsName
:
null
}
...
...
@@ -81,11 +81,30 @@ export default {
this
.
$refs
?.
tabs
?.
tabClick
(
0
)
}
},
watchCarModel
:
{
immediate
:
true
,
handler
(
newval
)
{
console
.
log
(
newval
)
if
(
this
.
madiaId
==
4
)
{
this
.
historyList
=
uni
.
$storage
.
get
(
"historyList"
)
let
index
=
{
'问界M5'
:
'M5'
,
'问界M7'
:
'M7'
,
'问界M9'
:
'M9'
,
'奥迪RS 3'
:
'测试'
}[
newval
]
return
this
.
goodsName
=
index
||
null
}
}
}
},
computed
:
{
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
this
.
pageNum
=
1
},
watchCarModel
()
{
return
this
.
$store
.
state
.
user
.
customerInfo
.
carModel
}
},
mounted
()
{
if
(
this
.
show
)
this
.
init
()
...
...
@@ -94,20 +113,22 @@ export default {
init
()
{
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
);
this
.
shopMerchantId
=
shopMerchantId
this
.
getQuotationList
();
this
.
getQuotationList
(
true
);
},
async
getQuotationList
(
isSwitch
=
false
,
next
=
false
)
{
const
{
goodsName
,
shopMerchantId
,
currentPage
}
=
this
if
(
next
)
this
.
currentPage
++
const
{
goodsName
,
shopMerchantId
,
pageNum
}
=
this
if
(
next
)
++
this
.
pageNum
const
data
=
await
uni
.
$api
.
commonApi
.
getQuotationList
({
currentPage
,
pageNum
,
pageSize
:
18
,
merchantId
:
shopMerchantId
,
orderStatus
:
3
,
goodsName
})
console
.
log
(
data
.
list
,
'====='
)
if
(
isSwitch
)
{
this
.
historyList
=
data
.
list
uni
.
$storage
.
set
(
"historyList"
,
data
.
list
)
this
.
isEnd
=
false
}
else
{
if
(
data
.
list
.
length
>
0
)
{
...
...
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