From 43942a545271345ce26e40d82bb97138c5ea7611 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 28 六月 2024 13:54:51 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 admin/src/views/platform/set/index.vue |   25 ++++++++-----------------
 1 files changed, 8 insertions(+), 17 deletions(-)

diff --git a/admin/src/views/platform/set/index.vue b/admin/src/views/platform/set/index.vue
index 9c2c790..106df34 100644
--- a/admin/src/views/platform/set/index.vue
+++ b/admin/src/views/platform/set/index.vue
@@ -82,10 +82,12 @@
       @current-change="getList"
       :pagination="pagination"
     />
-    <el-dialog
+    <GlobalWindow
       :title="param.id ? '缂栬緫鏈堝彴閰嶇疆' : '鏂板鏈堝彴閰嶇疆'"
       :visible.sync="isShowEdit"
       width="600px"
+      :confirm-working="subLoading"
+      @confirm="handleSub"
     >
       <el-form
         :model="param"
@@ -152,27 +154,26 @@
           <span class="ml10">鍒嗛挓</span>
         </el-form-item>
       </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button @click="isShowEdit = false">鍙栨秷</el-button>
-        <el-button type="primary" @click="handleSub">纭畾</el-button>
-      </span>
-    </el-dialog>
+    </GlobalWindow>
   </div>
 </template>
 
 <script>
 import Pagination from '@/components/common/Pagination'
 import QueryForm from '@/components/common/QueryForm'
+import GlobalWindow from '@/components/common/GlobalWindow'
 import { getPlatform, PlatformEdit, PlatformDel } from '@/api'
 export default {
   components: {
     Pagination,
-    QueryForm
+    QueryForm,
+    GlobalWindow
   },
   data () {
     return {
       filters: {},
       loading: false,
+      subLoading: false,
       queryFormConfig: {
         formItems: [
           {
@@ -218,16 +219,6 @@
           this.getList()
           this.$tip.success('鍒犻櫎鎴愬姛')
         })
-      })
-    },
-    handleSub () {
-      const { param } = this
-      PlatformEdit({
-        ...param
-      }).then(res => {
-        this.isShowEdit = false
-        this.$tip.success('鎻愪氦鎴愬姛')
-        this.getList()
       })
     },
     changeStatus (item) {

--
Gitblit v1.9.3