|
|
@@ -17,7 +17,7 @@
|
|
|
<a-row :gutter="16" style="margin-top: 16px">
|
|
|
<a-col :span="24">
|
|
|
<a-card title="当前状态" :bordered="false" class="panel">
|
|
|
- <a-descriptions :column="2" bordered size="small">
|
|
|
+ <a-descriptions :column="isMobile ? 1 : 2" bordered size="small">
|
|
|
<a-descriptions-item label="extractKey">
|
|
|
<a-tag :color="status?.extract_key_configured ? 'green' : 'orangered'">
|
|
|
{{ status?.extract_key_configured ? '已配置' : '未配置' }}
|
|
|
@@ -138,13 +138,16 @@
|
|
|
</a-button>
|
|
|
</a-space>
|
|
|
</template>
|
|
|
+ <div class="table-wrap">
|
|
|
<a-table
|
|
|
v-model:selected-keys="selectedLogKeys"
|
|
|
row-key="id"
|
|
|
+ class="table"
|
|
|
:row-selection="{ type: 'checkbox', showCheckedAll: true }"
|
|
|
:data="logData"
|
|
|
:loading="logLoading"
|
|
|
:bordered="false"
|
|
|
+ :scroll="{ x: TABLE_SCROLL_X }"
|
|
|
:pagination="{
|
|
|
showPageSize: true,
|
|
|
showJumper: true,
|
|
|
@@ -191,6 +194,7 @@
|
|
|
</a-table-column>
|
|
|
</template>
|
|
|
</a-table>
|
|
|
+ </div>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
</a-skeleton>
|
|
|
@@ -209,7 +213,10 @@ import {
|
|
|
getAdminLepaoProxyResources
|
|
|
} from '@/api/lepao'
|
|
|
|
|
|
-const { tableFixed } = useResponsiveTable()
|
|
|
+const { isMobile, tableFixed } = useResponsiveTable()
|
|
|
+
|
|
|
+/** 列宽合计(含勾选列与摘要列最小宽度),保证小屏可横向滚动 */
|
|
|
+const TABLE_SCROLL_X = 1200
|
|
|
|
|
|
const pageLoading = ref(false)
|
|
|
const logLoading = ref(false)
|
|
|
@@ -531,4 +538,35 @@ onMounted(async () => {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
+.table-wrap {
|
|
|
+ width: 100%;
|
|
|
+ overflow-x: auto;
|
|
|
+ -webkit-overflow-scrolling: touch;
|
|
|
+}
|
|
|
+
|
|
|
+.table {
|
|
|
+ min-width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 768px) {
|
|
|
+ .lepao-proxy-page {
|
|
|
+ padding: 12px 12px 24px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .log-card :deep(.arco-card-header) {
|
|
|
+ flex-wrap: wrap;
|
|
|
+ gap: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .log-card :deep(.arco-card-header-extra) {
|
|
|
+ width: 100%;
|
|
|
+ margin-left: 0 !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .log-card :deep(.arco-card-header-extra .arco-space) {
|
|
|
+ flex-wrap: wrap;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
</style>
|