This commit is contained in:
faiz 2024-07-29 16:19:45 +08:00
parent 2769fb6b58
commit 3cbb003b75
1 changed files with 13 additions and 20 deletions

View File

@ -83,7 +83,7 @@
class="filter-item" class="filter-item"
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
@click="getMode" @click="getList"
> >
搜索 搜索
</el-button> </el-button>
@ -92,7 +92,7 @@
class="filter-item" class="filter-item"
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
@click="getMode(1)" @click="getList(1)"
> >
导出 导出
</el-button> </el-button>
@ -315,7 +315,7 @@
:total="total" :total="total"
:page.sync="listQuery.page" :page.sync="listQuery.page"
:limit.sync="listQuery.limit" :limit.sync="listQuery.limit"
@pagination="getList" @pagination="setMode"
/> />
<el-dialog title="订单跟进" :visible.sync="dialogVisible"> <el-dialog title="订单跟进" :visible.sync="dialogVisible">
@ -638,18 +638,11 @@ export default {
this.setQuery("os_status"); this.setQuery("os_status");
this.setQuery("times"); this.setQuery("times");
await this.getList(); await this.getList();
this.setOneClickRepair(); await this.setOneClickRepair();
await this.getList();
this.getShortcutContent(); this.getShortcutContent();
this.getAdminList(); this.getAdminList();
}, },
watch: {
"listQuery.page": function () {
// console.log(this.isSynchronization);
this.isSynchronization = false;
this.setOneClickRepair();
},
deep: true,
},
methods: { methods: {
setQuery(key) { setQuery(key) {
if (this.$route.query.hasOwnProperty(key)) { if (this.$route.query.hasOwnProperty(key)) {
@ -658,18 +651,18 @@ export default {
this.listQuery[key] = ""; this.listQuery[key] = "";
} }
}, },
setOneClickRepair() { async setMode() {
await this.getList();
await this.setOneClickRepair();
await this.getList();
},
async setOneClickRepair() {
let arr = this.list.map((res) => { let arr = this.list.map((res) => {
return res.id; return res.id;
}); });
this.onOneClickRepair({ id: arr.join() }); await this.onOneClickRepair({ id: arr.join() });
},
getMode(val) {
this.isSynchronization = false;
this.getList(val);
}, },
async getList($is_excel) { async getList($is_excel) {
if (this.isSynchronization) return;
this.listQuery.excel = null; this.listQuery.excel = null;
if ($is_excel == 1) { if ($is_excel == 1) {
this.listQuery.excel = 1; this.listQuery.excel = 1;
@ -858,7 +851,7 @@ export default {
message: "同步完成", message: "同步完成",
type: "success", type: "success",
}); });
this.getList(); // this.getList();
}) })
.catch((err) => { .catch((err) => {
this.$notify.error({ this.$notify.error({