|
|
@@ -36,7 +36,7 @@
|
|
|
@reset="handleTableReset"
|
|
|
>
|
|
|
<template #left>
|
|
|
- <a-button v-hasPermi="['config:station:add']" type="primary" @click="openForm()"><BearJiaIcon icon="plus-outlined"/>新增</a-button>
|
|
|
+ <a-button v-hasPermi="['config:station:add']" type="primary" style="display:none" @click="openForm()"><BearJiaIcon icon="plus-outlined"/>新增</a-button>
|
|
|
<a-button v-hasPermi="['config:station:remove']" danger type="primary" :disabled="selectedRowKeys.length <= 0" @click="handleBatchDelete"><BearJiaIcon icon="delete-outlined"/>删除</a-button>
|
|
|
<a-button v-hasPermi="['config:station:export']" @click="handleExport"><BearJiaIcon icon="export-outlined"/>导出</a-button>
|
|
|
</template>
|
|
|
@@ -293,6 +293,8 @@ const handleDeleteRecord = (record) => {
|
|
|
Modal.confirm({
|
|
|
title: '确认删除',
|
|
|
content: '确认删除该场站?',
|
|
|
+ okText: '确定',
|
|
|
+ cancelText: '取消',
|
|
|
onOk: async () => {
|
|
|
await delStation(record.id);
|
|
|
message.success('删除成功');
|
|
|
@@ -308,6 +310,8 @@ const handleBatchDelete = () => {
|
|
|
Modal.confirm({
|
|
|
title: '确认删除',
|
|
|
content: `确认删除选中的 ${selectedRowKeys.value.length} 条数据?`,
|
|
|
+ okText: '确定',
|
|
|
+ cancelText: '取消',
|
|
|
onOk: async () => {
|
|
|
await delStation(selectedRowKeys.value);
|
|
|
message.success('删除成功');
|