fix(系统设置): 修改插件删除和部分styles调整

This commit is contained in:
xinxin.wu 2023-08-11 16:57:10 +08:00 committed by f2c-ci-robot[bot]
parent 1cebd44f5b
commit eaba620fde
3 changed files with 45 additions and 19 deletions

View File

@ -25,7 +25,7 @@
<a-table <a-table
:data="filterData" :data="filterData"
:pagination="false" :pagination="false"
:scroll="{ y: 500, x: 2400 }" :scroll="{ y: 480, x: 2400 }"
:expandable="expandable" :expandable="expandable"
:loading="loading" :loading="loading"
row-key="id" row-key="id"
@ -33,7 +33,7 @@
@expand="handleExpand" @expand="handleExpand"
> >
<template #columns> <template #columns>
<a-table-column fixed="left" :title="t('system.plugin.tableColunmName')"> <a-table-column :width="300" fixed="left" :title="t('system.plugin.tableColunmName')" :ellipsis="true">
<template #cell="{ record }"> <template #cell="{ record }">
{{ record.name }} <span class="text-[--color-text-4]">({{ (record.pluginForms || []).length }})</span> {{ record.name }} <span class="text-[--color-text-4]">({{ (record.pluginForms || []).length }})</span>
</template> </template>
@ -79,8 +79,18 @@
</a-tooltip> </a-tooltip>
</template> </template>
</a-table-column> </a-table-column>
<a-table-column :title="t('system.plugin.tableColunmDescription')" data-index="fileName" /> <a-table-column
<a-table-column :title="t('system.plugin.tableColunmVersion')" data-index="pluginId" /> :title="t('system.plugin.tableColunmDescription')"
data-index="fileName"
:width="300"
:ellipsis="true"
/>
<a-table-column
:title="t('system.plugin.tableColunmVersion')"
data-index="pluginId"
:width="300"
:ellipsis="true"
/>
<a-table-column :title="t('system.plugin.tableColunmAuthorization')"> <a-table-column :title="t('system.plugin.tableColunmAuthorization')">
<template #cell="{ record }"> <template #cell="{ record }">
<span>{{ <span>{{
@ -89,7 +99,7 @@
</template> </template>
</a-table-column> </a-table-column>
<a-table-column :title="t('system.plugin.tableColunmCreatedBy')" data-index="createUser" /> <a-table-column :title="t('system.plugin.tableColunmCreatedBy')" data-index="createUser" />
<a-table-column :title="t('system.plugin.tableColunmUpdateTime')"> <a-table-column :title="t('system.plugin.tableColunmUpdateTime')" :width="200">
<template #cell="{ record }"> <template #cell="{ record }">
<span>{{ getTime(record.updateTime) }}</span> <span>{{ getTime(record.updateTime) }}</span>
</template> </template>
@ -246,7 +256,7 @@
}, },
onBeforeOk: async () => { onBeforeOk: async () => {
try { try {
deletePluginReq(record.id); await deletePluginReq(record.id);
Message.success(t('system.plugin.deletePluginSuccess')); Message.success(t('system.plugin.deletePluginSuccess'));
loadData(); loadData();
} catch (error) { } catch (error) {
@ -373,6 +383,7 @@
<style scoped lang="less"> <style scoped lang="less">
:deep(.arco-table-tr-expand .arco-table-td) { :deep(.arco-table-tr-expand .arco-table-td) {
padding: 0;
background: none; background: none;
} }
:deep(.arco-table-tr-expand .arco-table-cell) { :deep(.arco-table-tr-expand .arco-table-cell) {
@ -386,14 +397,20 @@
:deep(.collapsebtn) { :deep(.collapsebtn) {
padding: 0 1px; padding: 0 1px;
border: 1px solid var(--color-text-4); border: 1px solid var(--color-text-4);
border-radius: 3px;
@apply bg-white; @apply bg-white;
} }
:deep(.expand) { :deep(.expand) {
padding: 0 1px; padding: 0 1px;
border: 1px solid rgb(var(--primary-5)); border: 1px solid rgb(var(--primary-5));
border-radius: 3px;
@apply bg-white; @apply bg-white;
} }
:deep(.arco-table-expand-btn) { :deep(.arco-table-expand-btn) {
width: 16px;
height: 16px;
border-width: 2px;
border-radius: 3px;
@apply bg-white; @apply bg-white;
} }
.ms-footerNum { .ms-footerNum {
@ -405,4 +422,10 @@
height: calc(100vh - 236px); height: calc(100vh - 236px);
min-height: 400px; min-height: 400px;
} }
:deep(.arco-table-tr .arco-table-td) {
height: 54px !important;
}
.ms-table-expand :deep(.arco-scrollbar-container + .arco-scrollbar-track-direction-vertical) {
left: 0 !important;
}
</style> </style>

View File

@ -2,8 +2,8 @@
<a-scrollbar <a-scrollbar
:style="{ :style="{
'overflow': 'auto', 'overflow': 'auto',
'min-height': '40px', 'min-height': '54px',
'max-height': '120px', 'max-height': '270px',
}" }"
> >
<div class="ms-scroll"> <div class="ms-scroll">
@ -44,8 +44,8 @@
padding: 0 !important; padding: 0 !important;
} }
.ms-self { .ms-self {
height: 40px; height: 54px;
line-height: 40px; line-height: 54px;
border-bottom: 1px solid var(--color-text-n8); border-bottom: 1px solid var(--color-text-n8);
@apply flex items-center align-middle leading-6; @apply flex items-center align-middle leading-6;
} }

View File

@ -1,15 +1,15 @@
/* stylelint-disable order/properties-order */ /* stylelint-disable order/properties-order */
<template> <template>
<MsCard simple> <MsCard simple>
<a-alert :closable="true"> <div class="wrapper flex flex-col justify-between">
<div> <a-alert :closable="true" class="mb-4">
{{ t('system.plugin.alertDescribe') }} <div>
<a class="mx-1" href="javascript:;">{{ t('system.plugin.viewTable') }}</a {{ t('system.plugin.alertDescribe') }}
>{{ t('system.plugin.downAddress') }} <a class="mx-1" href="javascript:;">{{ t('system.plugin.viewTable') }}</a
<a class="mx-1" href="https://github.com/metersphere" target="_blank">{{ t('system.plugin.goDownload') }} </a> >{{ t('system.plugin.downAddress') }}
</div> <a class="mx-1" href="https://github.com/metersphere" target="_blank">{{ t('system.plugin.goDownload') }} </a>
</a-alert> </div>
<div class="mt-4"> </a-alert>
<pluginTable /> <pluginTable />
</div> </div>
</MsCard> </MsCard>
@ -27,4 +27,7 @@
a { a {
color: rgb(var(--primary-5)); color: rgb(var(--primary-5));
} }
.wrapper {
width: 100%;
}
</style> </style>