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 {
});
});
this.$store.dispatch("setCarBrandsList", carBrandList);
uni.$storage.set("carBrandList", carBrandList);
})
const { carBrand } = this
if (carBrand) {
......
......@@ -67,6 +67,7 @@ export default {
})
.then((res) => {
this.$store.dispatch("setEmployeeList", res);
uni.$storage.set("employeeList", res || []);
})
},
handleSelect (item) {
......
......@@ -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();
},
};
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!