| | |
| | | </a-menu-item> |
| | | </a-menu> |
| | | |
| | | <a-config-provider :locale="zhCN"> |
| | | <div class="device-table-wrap table flex-display flex-column"> |
| | | <a-table :columns="columns" :data-source="data.device" :pagination="paginationProp" @change="refreshData" |
| | | row-key="device_sn" :expandedRowKeys="expandRows" |
| | |
| | | :device="currentDevice"> |
| | | </DeviceHmsDrawer> |
| | | </div> |
| | | </a-config-provider> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import zhCN from 'ant-design-vue/es/locale/zh_CN' |
| | | import { ColumnProps, TableState } from 'ant-design-vue/lib/table/interface' |
| | | import { h, onMounted, reactive, ref, UnwrapRef } from 'vue' |
| | | import { IPage } from '/@/api/http/type' |
| | |
| | | } |
| | | type Pagination = TableState['pagination'] |
| | | |
| | | const workspaceId = computed(() => store.state.common.projectId) |
| | | const workspaceId = computed(() => store.state.common.projectId || localStorage.getItem(ELocalStorageKey.WorkspaceId)) |
| | | const editableData: UnwrapRef<Record<string, Device>> = reactive({}) |
| | | const current = ref([EDeviceTypeName.Aircraft]) |
| | | |