Compare commits

...

2 Commits

Author SHA1 Message Date
faiz 3cbb003b75 1 2024-07-29 16:19:45 +08:00
faiz 2769fb6b58 查询 2024-07-29 15:50:13 +08:00
1 changed files with 11 additions and 13 deletions

View File

@ -315,7 +315,7 @@
:total="total"
:page.sync="listQuery.page"
:limit.sync="listQuery.limit"
@pagination="getList"
@pagination="setMode"
/>
<el-dialog title="订单跟进" :visible.sync="dialogVisible">
@ -638,17 +638,11 @@ export default {
this.setQuery("os_status");
this.setQuery("times");
await this.getList();
this.setOneClickRepair();
await this.setOneClickRepair();
await this.getList();
this.getShortcutContent();
this.getAdminList();
},
watch: {
"listQuery.page": function (res) {
console.log(this.isSynchronization);
this.isSynchronization = false;
this.setOneClickRepair();
},
},
methods: {
setQuery(key) {
if (this.$route.query.hasOwnProperty(key)) {
@ -657,14 +651,18 @@ export default {
this.listQuery[key] = "";
}
},
setOneClickRepair() {
async setMode() {
await this.getList();
await this.setOneClickRepair();
await this.getList();
},
async setOneClickRepair() {
let arr = this.list.map((res) => {
return res.id;
});
this.onOneClickRepair({ id: arr.join() });
await this.onOneClickRepair({ id: arr.join() });
},
async getList($is_excel) {
if (this.isSynchronization) return;
this.listQuery.excel = null;
if ($is_excel == 1) {
this.listQuery.excel = 1;
@ -853,7 +851,7 @@ export default {
message: "同步完成",
type: "success",
});
this.getList();
// this.getList();
})
.catch((err) => {
this.$notify.error({