|
@@ -182,6 +182,11 @@
|
|
|
>导出</el-button
|
|
>导出</el-button
|
|
|
>
|
|
>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
|
+ <el-button type="primary" plain size="mini" @click="handleSync"
|
|
|
|
|
+ >同步</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-col>
|
|
|
|
|
|
|
|
<right-toolbar
|
|
<right-toolbar
|
|
|
:showSearch.sync="showSearch"
|
|
:showSearch.sync="showSearch"
|
|
@@ -538,6 +543,7 @@ import {
|
|
|
getCustomer,
|
|
getCustomer,
|
|
|
exportCustomer,
|
|
exportCustomer,
|
|
|
} from "@/api/qw/companyCustomer";
|
|
} from "@/api/qw/companyCustomer";
|
|
|
|
|
+import { syncKdzlMember } from "@/api/qw/importMember";
|
|
|
export default {
|
|
export default {
|
|
|
name: "Customer",
|
|
name: "Customer",
|
|
|
data() {
|
|
data() {
|
|
@@ -601,6 +607,12 @@ export default {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ handleSync() {
|
|
|
|
|
+ syncKdzlMember().then((res) => {
|
|
|
|
|
+ this.msgSuccess("正在同步中...");
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
getList() {
|
|
getList() {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
const params = this.addDateRange(this.queryParams, this.dateRange);
|
|
const params = this.addDateRange(this.queryParams, this.dateRange);
|