From 6b6f00cae647a1dae999a4a1a3b87512f16c76f6 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 29 二月 2024 11:46:33 +0800
Subject: [PATCH] 整理
---
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