修改样式

main
陈博文 3 days ago
parent eb8a914eb6
commit 1bbfacbdfe

@ -60,6 +60,7 @@ const getTopOptions = () => {
type: 'shadow',
},
formatter: function (params) {
// console.log(params, 'params')
var res = params[0].name + '<br/>';
for (var i = 0; i < params.length; i++) {
res +=
@ -111,7 +112,6 @@ onMounted(async () => {
query: v.query,
})
.then((res) => {
console.log(v.query, res, 'res')
currentConfig.value[i].data = res.data.map((item) => ({
name: item.metric[v.nameKey],
value: item.value,

@ -92,21 +92,22 @@
grid-template-columns: repeat(5, 1fr);
gap: 12px;
li {
height: 80px;
// height: 80px;
flex-shrink: 0;
border-radius: 6px;
background: #f5f7fa;
padding: 16px;
padding: 14px;
display: flex;
align-items: center;
//&:hover {
// color: var(--el-color-primary);
// cursor: pointer;
//}
.avatar {
display: flex;
width: 48px;
height: 48px;
padding: 14px;
width: 30px;
height: 30px;
padding: 6px;
justify-content: center;
align-items: center;
flex-shrink: 0;
@ -117,16 +118,16 @@
rgba(255, 255, 255, 0) 0%,
#fff 100%
);
margin-right: 16px;
margin-right: 8px;
}
.count {
font-family: Roboto;
font-size: 20px;
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: 100%; /* 20px */
margin-top: 10px;
margin-top: 8px;
}
}
}

@ -110,13 +110,14 @@ const columns = [
},
{
title: '使用者角色',
dataIndex: 'nataskTypeme',
render: ({ taskType }) => taskType === 'big_model' ? '大模型' : '实训',
width: 100,
dataIndex: 'role',
render: ({ role }) => role || '/',
},
{
title: '用户名',
dataIndex: 'role',
render: ({ role }) => role || '/',
dataIndex: 'username',
render: ({ username }) => username || '/',
},
{
title: '所属资源池',

@ -1,5 +1,5 @@
<template>
<div id="content" :style="{ paddingLeft: hasParentWindow || isHome ? 0 : '20px' }">
<div id="content" :class="hasParentWindow && 'impose'">
<!-- <transition name="fade-transform" mode="out-in"> -->
<!-- <keep-alive> -->
<router-view />
@ -26,7 +26,15 @@ const isHome = computed(() => route.fullPath === '/admin/home');
margin: 0;
flex: 1;
overflow: auto;
height: 100%;
padding-left: 20px;
&.impose {
margin: 0 auto;
overflow: inherit;
max-width: 1200px;
padding-left: 0px;
}
}
</style>

Loading…
Cancel
Save