调整样式

This commit is contained in:
aixianling
2024-06-24 17:59:21 +08:00
parent 18dd1937ce
commit 5c29d7ca5d

View File

@@ -43,10 +43,10 @@
</template> </template>
</ai-search-bar> </ai-search-bar>
<ai-table :tableData="gropList" :total="page.total" :current.sync="page.current" :size.sync="page.size" <ai-table :tableData="gropList" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@getList="getTableData" :col-configs="colConfigs" :dict="dict"> @getList="getTableData" :col-configs="colConfigs" :dict="dict" height="calc(100% - 64px)">
<el-table-column label="操作" slot="options" align="center" width="100"> <el-table-column label="操作" slot="options" align="center" width="100">
<template v-slot="{row}"> <template v-slot="{row}">
<el-button type="text" @click="$router.push({hash:'#add',query:{id:row.id}})">详情</el-button> <el-button v-if="row.aiEnable==1" type="text" @click="$router.push({hash:'#add',query:{id:row.id}})">详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</ai-table> </ai-table>
@@ -60,9 +60,11 @@
<script> <script>
import {mapState} from 'vuex' import {mapState} from 'vuex'
import coDetail from "./coDetail.vue"; import coDetail from "./coDetail.vue";
import AiCard from "dui/packages/layout/AiCard.vue";
export default { export default {
name: 'AppCorpOverview', name: 'AppCorpOverview',
components: {AiCard},
label: '企微概览', label: '企微概览',
props: { props: {
dict: Object, dict: Object,
@@ -132,7 +134,6 @@ export default {
if (res.data) { if (res.data) {
res.data.map((item) => { res.data.map((item) => {
item.name = item.name + `(${item.total})` item.name = item.name + `(${item.total})`
item.leaf = !/0{10}$/.test(item.id)
}) })
resolve(res.data) resolve(res.data)
} }
@@ -205,12 +206,12 @@ export default {
.ai-search-ba { .ai-search-ba {
margin-top: 10px; margin-top: 10px;
} }
.ai-table {
margin-top: 0 !important;
}
} }
} }
.ai-table {
height: calc(100% - 44px);
margin-top: 0 !important;
}
} }
} }
@@ -263,5 +264,13 @@ export default {
padding-bottom: 20px; padding-bottom: 20px;
} }
} }
.table {
background: #fff;
box-shadow: 0 4px 6px -2px rgba(15, 15, 21, 0.15);
border-radius: 2px;
padding: 16px;
height: calc(100% - 133px);
}
} }
</style> </style>