From c477dcc0ab4fe679f682f342d1ac8725fcb4d852 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期二, 10 九月 2024 13:37:50 +0800
Subject: [PATCH] #

---
 zy-asrs-admin/src/views/base/locTypeBind/index.vue |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-admin/src/views/base/locTypeBind/index.vue b/zy-asrs-admin/src/views/base/locTypeBind/index.vue
index 4490c60..fa9de93 100644
--- a/zy-asrs-admin/src/views/base/locTypeBind/index.vue
+++ b/zy-asrs-admin/src/views/base/locTypeBind/index.vue
@@ -5,6 +5,7 @@
 import { message, Modal } from 'ant-design-vue';
 import { logout } from '@/config.js';
 import EditView from './edit.vue'
+import InitView from './init.vue'
 import { formatMessage } from '@/utils/localeUtils.js';
 const context = getCurrentInstance()?.appContext.config.globalProperties;
 
@@ -15,6 +16,7 @@
 let pageSize = 10;
 const searchInput = ref("")
 const editChild = ref(null)
+const initChild = ref(null)
 
 let currentLocType = ref(null)
 let tableData = ref([]);
@@ -133,6 +135,10 @@
       message.error(result.msg);
     }
   })
+}
+
+const handleInit = (item) => {
+  initChild.value.open = true;
 }
 
 const handleEdit = (item) => {
@@ -259,12 +265,13 @@
     </a-card>
 
     <a-card style="flex: 10;">
+      <InitView ref="initChild" @tableReload="handleTableReload" />
       <EditView ref="editChild" @tableReload="handleTableReload" />
       <div class="table-header">
         <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '璇疯緭鍏�')"
           style="width: 200px;" @search="onSearch" />
         <div class="table-header-right">
-          <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.init', '鍒濆鍖�') }}</a-button>
+          <a-button @click="handleInit(null)" type="primary">{{ formatMessage('page.init', '鍒濆鍖�') }}</a-button>
           <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '娣诲姞') }}</a-button>
           <a-button @click="handleExport">{{ formatMessage('page.export', '瀵煎嚭') }}</a-button>
         </div>

--
Gitblit v1.9.1