Compare commits
2 Commits
8833257d31
...
3cbb003b75
Author | SHA1 | Date |
---|---|---|
faiz | 3cbb003b75 | |
faiz | 2769fb6b58 |
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue