perf: 修改 applet detail

This commit is contained in:
ibuler
2024-03-15 14:24:30 +08:00
parent 06cfed009a
commit f9cd35ac74
6 changed files with 14 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
<template>
<IBox :fa="fa" :title="title">
<el-form class="content" label-position="left" label-width="25%">
<el-form :label-width="labelWidth" class="content" label-position="left">
<el-form-item v-for="item in items" :key="item.key" :class="item.class" :label="item.key">
<span slot="label"> {{ formateLabel(item.key) }}</span>
<ItemValue :value="item.value" class="item-value" v-bind="item" />
@@ -35,6 +35,10 @@ export default {
align: {
type: String,
default: 'left'
},
labelWidth: {
type: String,
default: '25%'
}
},
methods: {

View File

@@ -1,6 +1,5 @@
import i18n from '@/i18n/i18n'
import empty from '@/layout/empty'
import store from '@/store'
export default [
{
@@ -122,8 +121,7 @@ export default [
meta: {
app: 'accounts',
name: 'AccountPushList',
resource: 'pushaccountautomation',
hidden: () => store.getters.publicSettings.LITE
resource: 'pushaccountautomation'
},
children: [
{
@@ -195,7 +193,6 @@ export default [
meta: {
title: i18n.t('AccountGatherList'),
app: 'accounts',
hidden: () => store.getters.publicSettings.LITE,
licenseRequired: true
},
children: [
@@ -269,7 +266,6 @@ export default [
meta: {
title: i18n.t('AccountChangeSecret'),
app: 'accounts',
hidden: () => store.getters.publicSettings.LITE,
licenseRequired: true
},
children: [
@@ -343,7 +339,6 @@ export default [
title: i18n.t('AccountBackup'),
app: 'accounts',
resource: 'accountbackupautomation',
hidden: () => store.getters.publicSettings.LITE,
licenseRequired: true
},
children: [

View File

@@ -1,6 +1,5 @@
import i18n from '@/i18n/i18n'
import empty from '@/layout/empty'
import store from '@/store'
const globalSubmenu = () => import('@/layout/globalOrg.vue')
@@ -55,7 +54,6 @@ export default [
title: i18n.t('AssetAclList'),
licenseRequired: true,
app: 'acls',
hidden: () => store.getters.publicSettings.LITE,
resource: 'loginassetacl'
},
children: [
@@ -151,7 +149,6 @@ export default [
licenseRequired: true,
app: 'acls',
disableOrgsChange: true,
hidden: () => store.getters.publicSettings.LITE,
resource: 'connectmethodacl'
},
children: [
@@ -191,8 +188,8 @@ export default [
meta: {
title: i18n.t('UserLoginAclList'),
app: 'acls',
licenseRequired: true,
resource: 'loginacl',
hidden: () => store.getters.publicSettings.LITE,
disableOrgsChange: true
},
children: [

View File

@@ -187,9 +187,9 @@ input[type=file] {
.el-col.el-col-sm-24 .ibox {
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
//&:last-child {
// margin-bottom: 0;
//}
}
.el-pagination {

View File

@@ -1,9 +1,9 @@
<template>
<el-row :gutter="20">
<el-col :md="8" :sm="24">
<AutoDetailCard :fields="detailFields" :object="object" :url="url" />
<el-col :lg="10" :md="10" :sm="24">
<AutoDetailCard :fields="detailFields" :object="object" :url="url" label-width="40%" />
</el-col>
<el-col :md="16" :sm="24">
<el-col :lg="14" :md="14" :sm="24">
<IBox title="README">
<vue-markdown v-if="object.readme" :source="object.readme" />
<span v-else>{{ $tc('NoData') }}</span>

View File

@@ -53,8 +53,7 @@ export default {
},
{
title: this.$t('UserAclLists'),
name: 'UserLoginAcl',
hidden: () => !vm.$hasPerm('acls.view_loginacl') || this.$store.getters.publicSettings.LITE
name: 'UserLoginAcl'
},
{
title: this.$t('UserSession'),