fix:终端设备界面修改
This commit is contained in:
@@ -13,6 +13,16 @@
|
|||||||
:body-style="{ flex: 1, overflow: 'hidden' }"
|
:body-style="{ flex: 1, overflow: 'hidden' }"
|
||||||
class="flex-col-stretch sm:flex-1-hidden card-wrapper"
|
class="flex-col-stretch sm:flex-1-hidden card-wrapper"
|
||||||
>
|
>
|
||||||
|
<template #extra>
|
||||||
|
<TableHeaderOperation
|
||||||
|
v-model:columns="columnChecks"
|
||||||
|
:loading="loading"
|
||||||
|
:not-show-add="true"
|
||||||
|
:show-delete="false"
|
||||||
|
@refresh="getData"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
<ATable
|
<ATable
|
||||||
ref="wrapperEl"
|
ref="wrapperEl"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
@@ -47,7 +57,8 @@ import { computed, shallowRef, watch } from 'vue';
|
|||||||
import { useElementSize } from '@vueuse/core';
|
import { useElementSize } from '@vueuse/core';
|
||||||
import { fetchTerminalList } from '@/service/api/auth';
|
import { fetchTerminalList } from '@/service/api/auth';
|
||||||
import { Card as ACard, Table as ATable } from 'ant-design-vue';
|
import { Card as ACard, Table as ATable } from 'ant-design-vue';
|
||||||
import TerminalSearch from '@/views/device/terminal/modules/terminal-search.vue';
|
import TerminalSearch from './modules/terminal-search.vue';
|
||||||
|
|
||||||
|
|
||||||
const wrapperEl = shallowRef<HTMLElement | null>(null);
|
const wrapperEl = shallowRef<HTMLElement | null>(null);
|
||||||
const { height: wrapperElHeight } = useElementSize(wrapperEl);
|
const { height: wrapperElHeight } = useElementSize(wrapperEl);
|
||||||
@@ -59,6 +70,7 @@ const scrollConfig = computed(() => ({
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
columns,
|
columns,
|
||||||
|
columnChecks,
|
||||||
data,
|
data,
|
||||||
loading,
|
loading,
|
||||||
getData,
|
getData,
|
||||||
|
|||||||
Reference in New Issue
Block a user