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

View File

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

View File

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

View File

@ -20,10 +20,12 @@
></a-input-search> ></a-input-search>
</a-col> </a-col>
</a-row> </a-row>
<div class="ms-table-wrapper flex flex-col justify-between">
<div>
<a-table <a-table
:data="filterData" :data="filterData"
:pagination="false" :pagination="false"
:scroll="{ y: 386, x: 2400 }" :scroll="{ y: 500, x: 2400 }"
:expandable="expandable" :expandable="expandable"
:loading="loading" :loading="loading"
row-key="id" 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.tableColunmVersion')" data-index="pluginId" />
<a-table-column :title="t('system.plugin.tableColunmAuthorization')"> <a-table-column :title="t('system.plugin.tableColunmAuthorization')">
<template #cell="{ record }"> <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> </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" />
@ -109,10 +113,12 @@
/></span> /></span>
</template> </template>
</a-table> </a-table>
</div>
<div class="ms-footerNum" <div class="ms-footerNum"
>{{ t('system.plugin.totalNum') }}<span class="mx-2">{{ totalNum }}</span >{{ t('system.plugin.totalNum') }}<span class="mx-2">{{ totalNum }}</span
>{{ t('system.plugin.dataList') }}</div >{{ t('system.plugin.dataList') }}</div
> >
</div>
<UploadModel <UploadModel
v-model:visible="uploadVisible" v-model:visible="uploadVisible"
:originize-list="originizeList" :originize-list="originizeList"
@ -386,6 +392,12 @@
@apply bg-white; @apply bg-white;
} }
.ms-footerNum { .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> </style>