fix: 修复样式bug

This commit is contained in:
wangdan-fit2cloud 2024-07-29 16:22:06 +08:00
parent ebe5e16593
commit d70aca6b8a
4 changed files with 26 additions and 16 deletions

View File

@ -149,19 +149,18 @@ function initMaxkbStyle(root){
left: 0; left: 0;
} }
#maxkb .maxkb-mask .maxkb-content { #maxkb .maxkb-mask .maxkb-content {
width: 45px; width: 50px;
height: 48px; height: 50px;
box-shadow: 1px 1px 1px 2000px rgba(0,0,0,.6); box-shadow: 1px 1px 1px 2000px rgba(0,0,0,.6);
border-radius: 50% 0 0 50%;
position: absolute; position: absolute;
right: 0; right: 0;
bottom: 38px; bottom: 30px;
z-index: 1000; z-index: 1000;
} }
#maxkb .maxkb-tips { #maxkb .maxkb-tips {
position: fixed; position: fixed;
bottom: 30px; bottom: 30px;
right: 60px; right: 66px;
padding: 22px 24px 24px; padding: 22px 24px 24px;
border-radius: 6px; border-radius: 6px;
color: #ffffff; color: #ffffff;
@ -229,8 +228,8 @@ function initMaxkbStyle(root){
bottom: 30px; bottom: 30px;
right: 0; right: 0;
cursor: pointer; cursor: pointer;
height:50px; height:30px;
width:50px; width:30px;
} }
#maxkb #maxkb-chat-container{ #maxkb #maxkb-chat-container{
z-index:10000;position: relative; z-index:10000;position: relative;

View File

@ -37,19 +37,19 @@
<div class="flex"> <div class="flex">
<span class="label">备注</span><span>{{ licenseInfo?.remark || '-' }}</span> <span class="label">备注</span><span>{{ licenseInfo?.remark || '-' }}</span>
</div> </div>
<div class="mt-16 flex align-center" v-if="user.showXpack()"> <div class="mt-16 mr-16 flex align-center" v-if="user.showXpack()">
<el-upload <el-upload
ref="uploadRef" ref="uploadRef"
action="#" action="#"
:auto-upload="false" :auto-upload="false"
:show-file-list="false" :show-file-list="false"
:on-change="onChange" :on-change="onChange"
v-hasPermission="new ComplexPermission(['ADMIN'], ['x-pack'], 'AND')" v-hasPermission="new Role('ADMIN')"
> >
<el-button class="border-primary">更新 License</el-button> <el-button class="border-primary">更新 License</el-button>
</el-upload> </el-upload>
<el-button class="border-primary ml-16" @click="toSupport">获取技术支持</el-button> <el-button class="border-primary" @click="toSupport">获取技术支持</el-button>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
@ -58,7 +58,7 @@
import { ref, computed, watch } from 'vue' import { ref, computed, watch } from 'vue'
import licenseApi from '@/api/license' import licenseApi from '@/api/license'
import { fromNowDate } from '@/utils/time' import { fromNowDate } from '@/utils/time'
import { ComplexPermission } from '@/utils/permission/type' import { Role } from '@/utils/permission/type'
import useStore from '@/stores' import useStore from '@/stores'
const { user } = useStore() const { user } = useStore()
const isDefaultTheme = computed(() => { const isDefaultTheme = computed(() => {

View File

@ -23,9 +23,15 @@
</el-form-item> </el-form-item>
<el-form-item label="对话头像" v-if="user.isEnterprise()"> <el-form-item label="对话头像" v-if="user.isEnterprise()">
<div class="flex mt-8"> <div class="flex mt-8">
<div class="border border-r-4 mr-16" style="width: 50px; height: 50px; padding: 8px"> <div class="border border-r-4 mr-16" style="padding: 8px">
<img v-if="imgUrl.avatar" :src="imgUrl.avatar" alt="" height="50px" /> <el-image
<LogoIcon v-else height="50px" /> v-if="imgUrl.avatar"
:src="imgUrl.avatar"
alt=""
fit="cover"
style="width: 50px; height: 50px; display: block"
/>
<LogoIcon v-else height="50px" style="width: 50px; height: 50px; display: block" />
</div> </div>
<el-upload <el-upload
@ -57,7 +63,12 @@
fit="cover" fit="cover"
style="width: 50px; height: 50px; display: block" style="width: 50px; height: 50px; display: block"
/> />
<img v-else src="@/assets/logo/logo.svg" height="50px" /> <img
v-else
src="@/assets/logo/logo.svg"
height="50px"
style="width: 50px; height: 50px; display: block"
/>
</div> </div>
<el-upload <el-upload

View File

@ -45,7 +45,7 @@
<el-scrollbar> <el-scrollbar>
<div class="p-24 pt-0"> <div class="p-24 pt-0">
<el-row v-if="model_split_list.length > 0" :gutter="15"> <el-row v-if="model_split_list.length > 0" :gutter="15">
<template v-for="(row, index) in model_split_list" :key="index"> <template v-for="row in model_split_list" :key="row.id">
<el-col <el-col
:xs="24" :xs="24"
:sm="24" :sm="24"