|  |  | 
 |  |  | 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; | 
 |  |  |  | 
 |  |  | 
 |  |  | let pageSize = 10; | 
 |  |  | const searchInput = ref("") | 
 |  |  | const editChild = ref(null) | 
 |  |  | const initChild = ref(null) | 
 |  |  |  | 
 |  |  | let currentLocType = ref(null) | 
 |  |  | let tableData = ref([]); | 
 |  |  | 
 |  |  |       message.error(result.msg); | 
 |  |  |     } | 
 |  |  |   }) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | const handleInit = (item) => { | 
 |  |  |   initChild.value.open = true; | 
 |  |  | } | 
 |  |  |  | 
 |  |  | const handleEdit = (item) => { | 
 |  |  | 
 |  |  |     </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> |