refactor(sis): 移动电梯楼层授权功能
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
@@ -25,7 +25,6 @@ import { commonDownloadExcel } from '#/utils/file/download';
|
||||
|
||||
import elevatorInfoModal from './elevatorInfo-modal.vue';
|
||||
import { columns, querySchema } from './data';
|
||||
import floorAuthModal from './floorAuth-modal.vue';
|
||||
|
||||
const formOptions: VbenFormProps = {
|
||||
commonConfig: {
|
||||
@@ -89,10 +88,6 @@ const [ElevatorInfoModal, modalApi] = useVbenModal({
|
||||
connectedComponent: elevatorInfoModal,
|
||||
});
|
||||
|
||||
const [FloorAuthModal, floorAuthModalApi] = useVbenModal({
|
||||
connectedComponent: floorAuthModal,
|
||||
});
|
||||
|
||||
function handleAdd() {
|
||||
modalApi.setData({});
|
||||
modalApi.open();
|
||||
@@ -128,11 +123,6 @@ function handleDownloadExcel() {
|
||||
});
|
||||
}
|
||||
|
||||
function handleAuth(row: Required<ElevatorInfoForm>) {
|
||||
floorAuthModalApi.setData({ unitId: row.unitId, elevatorId: row.elevatorId });
|
||||
floorAuthModalApi.open();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -165,8 +155,6 @@ function handleAuth(row: Required<ElevatorInfoForm>) {
|
||||
</template>
|
||||
<template #action="{ row }">
|
||||
<Space>
|
||||
<ghost-button @click.stop="handleAuth(row)">楼层授权</ghost-button>
|
||||
|
||||
<ghost-button
|
||||
v-access:code="['sis:elevatorInfo:edit']"
|
||||
@click.stop="handleEdit(row)"
|
||||
@@ -191,6 +179,5 @@ function handleAuth(row: Required<ElevatorInfoForm>) {
|
||||
</template>
|
||||
</BasicTable>
|
||||
<ElevatorInfoModal @reload="tableApi.query()" />
|
||||
<FloorAuthModal @reload="tableApi.query()" />
|
||||
</Page>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user