style(系统设置): 修改插件样式

This commit is contained in:
xinxin.wu 2023-08-09 18:13:43 +08:00 committed by 刘瑞斌
parent a0164afb64
commit 7fb4c513fe
4 changed files with 116 additions and 92 deletions

View File

@ -59,6 +59,14 @@
<a-button type="outline" class="arco-btn-outline--secondary" size="mini" @click="editHanlder(item)">{{
t('organization.service.edit')
}}</a-button>
<a-button
v-if="item.isConfig"
type="outline"
class="arco-btn-outline--secondary"
size="mini"
@click="resetHanlder(item)"
>{{ t('organization.service.reset') }}</a-button
>
</a-space>
<span>
<a-tooltip v-if="!item.isConfig" :content="t('organization.service.unconfiguredTip')" position="br">
@ -155,6 +163,8 @@
const editHanlder = (item: any) => {
serviceVisible.value = true;
};
const resetHanlder = (item: any) => {};
onMounted(() => {
setTimeout(() => {
const result = JSON.stringify([

View File

@ -22,6 +22,7 @@ export default {
'organization.service.configured': 'Configured',
'organization.service.methodOfAuthentication': 'Method of authentication',
'organization.service.edit': 'Edit',
'organization.service.reset': 'Reset',
'organization.service.unconfiguredTip': 'Not configured yet. Configure and open on the edit page',
'organization.service.batchActionAddUsergroup': 'Add to usergroup',
'organization.service.tableEnable': 'Enabled',

View File

@ -18,6 +18,7 @@ export default {
'organization.service.configured': '已配置',
'organization.service.methodOfAuthentication': '认证方式',
'organization.service.edit': '编辑',
'organization.service.reset': '重置',
'organization.service.unconfiguredTip': '暂未配置,可在编辑页配置并开启',
'organization.service.batchActionAddUsergroup': '添加至用户组',
'organization.service.tableEnable': '正常',

View File

@ -20,10 +20,12 @@
></a-input-search>
</a-col>
</a-row>
<div class="ms-table-wrapper flex flex-col justify-between">
<div>
<a-table
:data="filterData"
:pagination="false"
:scroll="{ y: 386, x: 2400 }"
:scroll="{ y: 500, x: 2400 }"
:expandable="expandable"
:loading="loading"
row-key="id"
@ -77,7 +79,9 @@
<a-table-column :title="t('system.plugin.tableColunmVersion')" data-index="pluginId" />
<a-table-column :title="t('system.plugin.tableColunmAuthorization')">
<template #cell="{ record }">
<span>{{ record.xpack ? t('system.plugin.uploadOpenSource') : t('system.plugin.uploadCompSource') }}</span>
<span>{{
record.xpack ? t('system.plugin.uploadOpenSource') : t('system.plugin.uploadCompSource')
}}</span>
</template>
</a-table-column>
<a-table-column :title="t('system.plugin.tableColunmCreatedBy')" data-index="createUser" />
@ -109,10 +113,12 @@
/></span>
</template>
</a-table>
</div>
<div class="ms-footerNum"
>{{ t('system.plugin.totalNum') }}<span class="mx-2">{{ totalNum }}</span
>{{ t('system.plugin.dataList') }}</div
>
</div>
<UploadModel
v-model:visible="uploadVisible"
:originize-list="originizeList"
@ -386,6 +392,12 @@
@apply bg-white;
}
.ms-footerNum {
@apply absolute bottom-0 mt-4 text-sm text-slate-500;
height: 22px;
line-height: 22px;
@apply mt-4 text-sm text-slate-500;
}
.ms-table-wrapper {
height: calc(100vh - 236px);
min-height: 400px;
}
</style>