From 4d78c837e336bca9d56e9fc10b268b11b68229f8 Mon Sep 17 00:00:00 2001 From: MrShi <1878285526@qq.com> Date: 星期一, 26 二月 2024 11:33:05 +0800 Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit --- admin/src/views/business/device.vue | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) diff --git a/admin/src/views/business/device.vue b/admin/src/views/business/device.vue index 38dc143..585e035 100644 --- a/admin/src/views/business/device.vue +++ b/admin/src/views/business/device.vue @@ -66,6 +66,7 @@ import Pagination from '@/components/common/Pagination' import OperaDeviceWindow from '@/components/business/OperaDeviceWindow' import { syncDevices } from '@/api/business/device' +import { memberSync } from '@/api/business/member' export default { name: 'Device', extends: BaseTable, @@ -91,22 +92,22 @@ }, methods: { synchronousData () { - this.$confirm('纭鍚屾鍚�?', '鎻愮ず', { - confirmButtonText: '纭畾', - cancelButtonText: '鍙栨秷', - type: 'warning' - }).then(() => { - syncDevices({}) - .then(res => { - this.$message({ - type: 'success', - message: '鍚屾鎴愬姛' + this.$dialog.actionConfirm('鎿嶄綔纭鎻愰啋', '鎮ㄧ‘璁ゅ悓姝ュ叏閮ㄤ俊鎭悧锛�') + .then(() => { + this.isWorking.delete = true + syncDevices({}) + .then(res => { + this.$tip.apiSuccess(res || '鍚屾鎴愬姛') + this.search() }) - this.search() - }) - }).catch(() => { - - }) + .catch(e => { + this.$tip.apiFailed(e) + }) + .finally(() => { + this.isWorking.delete = false + }) + }) + .catch(() => {}) } } } -- Gitblit v1.9.3