多影响量

This commit is contained in:
caozehui
2026-06-16 13:24:21 +08:00
parent f2d7156b4f
commit 6c191aa96f
2 changed files with 58 additions and 13 deletions

View File

@@ -3,19 +3,19 @@
<el-carousel height="600px" :autoplay="false" ref="carouselRef" indicator-position="none"> <el-carousel height="600px" :autoplay="false" ref="carouselRef" indicator-position="none">
<el-carousel-item :name="0" style="height: 100%; overflow-y: auto"> <el-carousel-item :name="0" style="height: 100%; overflow-y: auto">
<div class="dialog-content"> <div class="dialog-content">
<el-tabs type="border-card" class="right-tabs"> <el-tabs type="border-card" class="test-tabs">
<el-tab-pane label="检测"> <el-tab-pane label="检测">
<!-- 全局设置菜单内容 --> <!-- 全局设置菜单内容 -->
<div style="height: 295px"> <div class="test-pane-scroll">
<el-radio-group v-model="form.subType"> <el-radio-group v-model="form.subType" class="test-radio-group">
<el-radio <el-radio
v-for="item in tabChildren" v-for="item in tabChildren"
:key="item" :key="item"
:label="item.label" :label="item.label"
:value="item.code" :value="item.code"
border border
style="margin: 0 0 10px 10px" class="test-radio-item"
/> />
<!-- <el-radio v-for="item in tabChildren" :value="item.value" border>{{ item.label }}</el-radio> --> <!-- <el-radio v-for="item in tabChildren" :value="item.value" border>{{ item.label }}</el-radio> -->
</el-radio-group> </el-radio-group>
</div> </div>
@@ -121,7 +121,7 @@
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-tabs type="border-card" class="right-tabs" style="height: 100%"> <el-tabs type="border-card" class="settings-tabs" style="height: 100%">
<el-tab-pane label="全局设置菜单"> <el-tab-pane label="全局设置菜单">
<!-- 全局设置菜单内容 --> <!-- 全局设置菜单内容 -->
<div style="height: 295px; width: 170px"> <div style="height: 295px; width: 170px">
@@ -734,4 +734,48 @@ defineExpose({ open })
background-color: var(--el-color-primary); background-color: var(--el-color-primary);
color: var(--el-color-white); color: var(--el-color-white);
} }
.test-tabs {
flex: 0 0 250px;
width: 250px;
min-width: 250px;
}
.settings-tabs {
flex: 0 0 auto;
}
.test-pane-scroll {
height: 295px;
display: flex;
justify-content: flex-start;
align-items: flex-start;
overflow-x: auto;
overflow-y: auto;
}
.test-radio-group {
display: flex;
align-items: flex-start;
min-width: 100%;
flex-direction: column;
}
.left-tabs {
flex: 1 1 auto;
min-width: 0;
}
:deep(.test-radio-group .el-radio) {
width: max-content;
max-width: none;
}
:deep(.test-radio-group .test-radio-item) {
margin: 0 0 10px 0;
}
:deep(.test-radio-group .el-radio__label) {
white-space: nowrap;
}
</style> </style>

View File

@@ -287,7 +287,8 @@ const setTree = async (data, data1) => {
const convertToOptions = (dictTree: Dict.ResDictTree[]): CascaderOption[] => { const convertToOptions = (dictTree: Dict.ResDictTree[]): CascaderOption[] => {
return dictTree.map(item => ({ return dictTree.map(item => ({
value: item.id, value: item.id,
code: item.code.split('-')[1] || item.code.split('-')[0], // code: item.code.split('-')[1] || item.code.split('-')[0],
code:item.code.substring(item.code.indexOf('-')+1,item.code.length),
label: item.name, label: item.name,
children: item.children ? convertToOptions(item.children) : undefined children: item.children ? convertToOptions(item.children) : undefined
})) }))