Commit 068943ae by 胡悦

Merge branch 'v1.0.7' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.7

2 parents 9a210971 2ed4fec3
...@@ -100,6 +100,7 @@ export default { ...@@ -100,6 +100,7 @@ export default {
}); });
}); });
this.$store.dispatch("setCarBrandsList", carBrandList); this.$store.dispatch("setCarBrandsList", carBrandList);
uni.$storage.set("carBrandList", carBrandList);
}) })
const { carBrand } = this const { carBrand } = this
if (carBrand) { if (carBrand) {
......
...@@ -67,6 +67,7 @@ export default { ...@@ -67,6 +67,7 @@ export default {
}) })
.then((res) => { .then((res) => {
this.$store.dispatch("setEmployeeList", res); this.$store.dispatch("setEmployeeList", res);
uni.$storage.set("employeeList", res || []);
}) })
}, },
handleSelect (item) { handleSelect (item) {
......
...@@ -161,8 +161,12 @@ export default { ...@@ -161,8 +161,12 @@ export default {
console.log(recordFileList, "recordFileList"); console.log(recordFileList, "recordFileList");
if (recordFileList.every((i) => i.status == undefined)) { if (recordFileList.every((i) => i.status == undefined)) {
const res = await uni.$api.commonApi.saveRecCustomer(record); const pathArr = recordFileList.map((i) => i.file);
console.log(res); const res = await uni.$api.commonApi.saveRecCustomer({
...record,
recordFileList: pathArr,
});
console.log(record, res, "record");
if (res) { if (res) {
uni.$recordManager.removeRecord(recordId); uni.$recordManager.removeRecord(recordId);
} }
...@@ -216,6 +220,7 @@ export default { ...@@ -216,6 +220,7 @@ export default {
*/ */
polling() { polling() {
console.log(this.snapshot.size, "this.snapshot.size"); console.log(this.snapshot.size, "this.snapshot.size");
if (this.snapshot === null) return;
if (this.snapshot.size == 0) { if (this.snapshot.size == 0) {
this.enQueue(); this.enQueue();
setTimeout(() => { setTimeout(() => {
...@@ -228,5 +233,13 @@ export default { ...@@ -228,5 +233,13 @@ export default {
this.uploadRecord(record); this.uploadRecord(record);
} }
}, },
stopPolling() {
this.snapshot.clear();
this.snapshot = null;
},
},
beforeDestroy() {
console.log("stopPolling");
this.stopPolling();
}, },
}; };
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!