|
@@ -1,7 +1,7 @@
|
|
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
|
<template>
|
|
<template>
|
|
|
<MapView v-if="showCAD" class="w-full h-full" v-bind="selected" @close="showCAD = false"></MapView>
|
|
<MapView v-if="showCAD" class="w-full h-full" v-bind="selected" @close="showCAD = false"></MapView>
|
|
|
- <BasicTable v-else @register="registerMapTable" :rowSelection="rowSelection">
|
|
|
|
|
|
|
+ <BasicTable v-else @register="registerMapTable">
|
|
|
<template #resetBefore>
|
|
<template #resetBefore>
|
|
|
<!-- <a-button type="default" class="ml-8px" preIcon="mdi:download" @click="onExportXls"> 下载 </a-button> -->
|
|
<!-- <a-button type="default" class="ml-8px" preIcon="mdi:download" @click="onExportXls"> 下载 </a-button> -->
|
|
|
<a-button type="default" class="ml-8px" preIcon="mdi:plus" @click="handleOpenModal({})"> 新增 </a-button>
|
|
<a-button type="default" class="ml-8px" preIcon="mdi:plus" @click="handleOpenModal({})"> 新增 </a-button>
|
|
@@ -60,12 +60,6 @@
|
|
|
// dataSource: mockData,
|
|
// dataSource: mockData,
|
|
|
columns, // 绑定动态列
|
|
columns, // 绑定动态列
|
|
|
rowKey: 'mineCode',
|
|
rowKey: 'mineCode',
|
|
|
- rowSelection: {
|
|
|
|
|
- type: 'checkbox',
|
|
|
|
|
- onChange: (selectedRowKeys, selectedRows) => {
|
|
|
|
|
- console.log('选中了:', selectedRowKeys, selectedRows);
|
|
|
|
|
- },
|
|
|
|
|
- },
|
|
|
|
|
formConfig: {
|
|
formConfig: {
|
|
|
labelWidth: 120,
|
|
labelWidth: 120,
|
|
|
schemas: searchFormSchema.value, // 绑定动态搜索表单
|
|
schemas: searchFormSchema.value, // 绑定动态搜索表单
|
|
@@ -81,7 +75,7 @@
|
|
|
params: {},
|
|
params: {},
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
- const [registerMapTable, mapTable, { rowSelection }] = mapManageTable;
|
|
|
|
|
|
|
+ const [registerMapTable, mapTable] = mapManageTable;
|
|
|
// const { pause, resume } = useIntervalFn(() => mapTable.reload({ silence: true }), 60000);
|
|
// const { pause, resume } = useIntervalFn(() => mapTable.reload({ silence: true }), 60000);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -105,7 +99,7 @@
|
|
|
*/
|
|
*/
|
|
|
async function handleDeleteRecord(record: any) {
|
|
async function handleDeleteRecord(record: any) {
|
|
|
await deleteMineFile({ id: record.id });
|
|
await deleteMineFile({ id: record.id });
|
|
|
- message.error('删除成功');
|
|
|
|
|
|
|
+ message.success('删除成功');
|
|
|
await mapTable.reload();
|
|
await mapTable.reload();
|
|
|
}
|
|
}
|
|
|
|
|
|