fix: 样式优化

This commit is contained in:
leiqiaochu 2023-03-23 17:03:03 +08:00
parent 6d0e50a203
commit 0e26f1e638
5 changed files with 26 additions and 9 deletions

View File

@ -48,6 +48,8 @@
</div> </div>
</div> </div>
</div> </div>
</template>
<template #content>
<div style="padding-top: 10px"> <div style="padding-top: 10px">
<j-descriptions size="small" :column="4"> <j-descriptions size="small" :column="4">
<j-descriptions-item <j-descriptions-item

View File

@ -2,7 +2,7 @@
<template> <template>
<j-form layout="vertical" :model="form" ref="formBasicRef"> <j-form layout="vertical" :model="form" ref="formBasicRef">
<j-row :span="24" :gutter="24"> <j-row :span="24" :gutter="24">
<j-col :span="10"> <j-col :span="12">
<j-form-item <j-form-item
label="系统名称" label="系统名称"
name="title" name="title"
@ -193,7 +193,7 @@
</j-col> </j-col>
</j-row> </j-row>
</j-col> </j-col>
<j-col :span="14"> <j-col :span="12">
<j-form-item label="登录背景图"> <j-form-item label="登录背景图">
<div class="upload-image-warp-back"> <div class="upload-image-warp-back">
<div class="upload-image-border-back"> <div class="upload-image-border-back">

View File

@ -183,6 +183,7 @@ defineExpose({
flex: 1 1 auto; flex: 1 1 auto;
font-weight: 700; font-weight: 700;
font-size: 16px; font-size: 16px;
text-align: center;
} }
} }
.role-item-content { .role-item-content {

View File

@ -20,7 +20,7 @@
</j-col> </j-col>
</j-row> </j-row>
<j-form-item label="级别" name="level"> <j-form-item label="级别" name="level">
<j-radio-group v-model:value="form.level"> <j-radio-group v-model:value="form.level" class="levelSelect">
<j-radio-button <j-radio-button
v-for="(item, index) in levelOption" v-for="(item, index) in levelOption"
:key="index" :key="index"
@ -199,7 +199,11 @@ queryData();
<style lang="less" scoped> <style lang="less" scoped>
.ant-radio-button-wrapper { .ant-radio-button-wrapper {
margin: 10px 15px 0 0; margin: 10px 15px 0 0;
width: 125px; width: 20%;
height: 100%; height: 100%;
} }
.levelSelect{
display: flex;
width: 100%;
}
</style> </style>

View File

@ -62,8 +62,8 @@
</span> </span>
</Ellipsis> </Ellipsis>
<j-row :gutter="24"> <j-row :gutter="24">
<j-col :span="8"> <j-col :span="8" class="content-left">
<div class="content-des-title"> <div class="content-left-title">
{{ titleMap.get(slotProps.targetType) }} {{ titleMap.get(slotProps.targetType) }}
</div> </div>
<Ellipsis <Ellipsis
@ -73,7 +73,7 @@
> >
</j-col> </j-col>
<j-col :span="8"> <j-col :span="8">
<div class="content-des-title"> <div class="content-right-title">
最近告警时间 最近告警时间
</div> </div>
<Ellipsis <Ellipsis
@ -87,7 +87,7 @@
> >
</j-col> </j-col>
<j-col :span="8"> <j-col :span="8">
<div class="content-des-title">状态</div> <div class="content-right-title">状态</div>
<BadgeStatus <BadgeStatus
:status="slotProps.state.value" :status="slotProps.state.value"
:statusName="{ :statusName="{
@ -287,7 +287,7 @@ const orgCol = [
}, },
]; ];
let params = ref({ let params:any = ref({
sorts: [{ name: 'alarmTime', order: 'desc' }], sorts: [{ name: 'alarmTime', order: 'desc' }],
terms: [], terms: [],
}); });
@ -432,4 +432,14 @@ const closeLog = () => {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.content-left{
border-right: .2px solid rgba(0,0,0,0.2);
}
.content-right-title{
color: #666;
font-size: 12px
}
.content-left-title{
font-size: 18px
}
</style> </style>