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 068943ae
authored
Jul 02, 2024
by
胡悦
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
9a210971
2ed4fec3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
components/CarBrands.vue
components/Employee.vue
mixin/uploader.js
components/CarBrands.vue
View file @
068943a
...
...
@@ -100,6 +100,7 @@ export default {
});
});
this
.
$store
.
dispatch
(
"setCarBrandsList"
,
carBrandList
);
uni
.
$storage
.
set
(
"carBrandList"
,
carBrandList
);
})
const
{
carBrand
}
=
this
if
(
carBrand
)
{
...
...
components/Employee.vue
View file @
068943a
...
...
@@ -67,6 +67,7 @@ export default {
})
.
then
((
res
)
=>
{
this
.
$store
.
dispatch
(
"setEmployeeList"
,
res
);
uni
.
$storage
.
set
(
"employeeList"
,
res
||
[]);
})
},
handleSelect
(
item
)
{
...
...
mixin/uploader.js
View file @
068943a
...
...
@@ -161,8 +161,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 {
*/
polling
()
{
console
.
log
(
this
.
snapshot
.
size
,
"this.snapshot.size"
);
if
(
this
.
snapshot
===
null
)
return
;
if
(
this
.
snapshot
.
size
==
0
)
{
this
.
enQueue
();
setTimeout
(()
=>
{
...
...
@@ -228,5 +233,13 @@ export default {
this
.
uploadRecord
(
record
);
}
},
stopPolling
()
{
this
.
snapshot
.
clear
();
this
.
snapshot
=
null
;
},
},
beforeDestroy
()
{
console
.
log
(
"stopPolling"
);
this
.
stopPolling
();
},
};
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