feat: 网站列可编辑显示 (#6090)

This commit is contained in:
zhengkunwang 2024-08-11 22:42:48 +08:00 committed by GitHub
parent 62dfae8fc8
commit e0f628c59f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,6 +44,15 @@
></el-option> ></el-option>
</el-select> </el-select>
<TableSearch @search="search()" v-model:searchName="req.name" /> <TableSearch @search="search()" v-model:searchName="req.name" />
<div class="!ml-2.5">
<fu-table-column-select
:columns="columns"
trigger="hover"
:title="$t('commons.table.selectColumn')"
popper-class="popper-class"
:only-icon="true"
/>
</div>
</template> </template>
<template v-if="nginxIsExist && !openNginxConfig" #main> <template v-if="nginxIsExist && !openNginxConfig" #main>
<ComplexTable <ComplexTable
@ -53,6 +62,8 @@
@search="search()" @search="search()"
:class="{ mask: nginxStatus != 'Running' }" :class="{ mask: nginxStatus != 'Running' }"
:heightDiff="370" :heightDiff="370"
:columns="columns"
localKey="websiteColumn"
> >
<el-table-column <el-table-column
:label="$t('commons.table.name')" :label="$t('commons.table.name')"
@ -172,7 +183,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('website.sslExpireDate')" width="150px"> <el-table-column :label="$t('website.sslExpireDate')" prop="sslExpireDate" width="150px">
<template #default="{ row }"> <template #default="{ row }">
<el-tag v-if="row.protocol == 'HTTPS'" :type="row.sslStatus"> <el-tag v-if="row.protocol == 'HTTPS'" :type="row.sslStatus">
{{ dateFormatSimple(row.sslExpireDate) }} {{ dateFormatSimple(row.sslExpireDate) }}
@ -265,6 +276,7 @@ const data = ref();
let groups = ref<Group.GroupInfo[]>([]); let groups = ref<Group.GroupInfo[]>([]);
const dataRef = ref(); const dataRef = ref();
const domains = ref<Website.Domain[]>([]); const domains = ref<Website.Domain[]>([]);
const columns = ref([]);
const paginationConfig = reactive({ const paginationConfig = reactive({
cacheSizeKey: 'website-page-size', cacheSizeKey: 'website-page-size',