提交 ad7b8a83 authored 作者: lidongxu's avatar lidongxu

style(prd_tag): 商品标签页面_样式修复_新增

同上
上级 c723ba1b
...@@ -47,11 +47,31 @@ ...@@ -47,11 +47,31 @@
} }
// to fixed https://github.com/ElemeFE/element/issues/2461 // to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog { // 重写 dialog 样式,默认居中显示
transform: none; .el-overlay-dialog {
left: 0; display: flex;
position: relative; justify-content: center;
margin: 0 auto; align-items: center;
.el-dialog {
transform: none;
position: relative;
margin: 0 auto;
display: flex;
flex-direction: column;
height: 50vh;
.el-dialog__header{
height: 40px;
}
.el-dialog__body {
height: calc(50vh - 40px - 32px);
}
}
.el-dialog:not(.is-fullscreen) {
margin-top: 0 !important;
}
} }
// refine element ui upload // refine element ui upload
...@@ -106,9 +126,10 @@ ...@@ -106,9 +126,10 @@
// background-color: red !important; // background-color: red !important;
} }
.el-pagination{ .el-pagination {
font-size: var(--xl-fontsize) !important; font-size: var(--xl-fontsize) !important;
.number{
.number {
font-size: var(--xl-fontsize) !important; font-size: var(--xl-fontsize) !important;
} }
} }
\ No newline at end of file
...@@ -128,14 +128,9 @@ const rightChange = (val) => { ...@@ -128,14 +128,9 @@ const rightChange = (val) => {
display: flex; display: flex;
justify-content: center; justify-content: center;
/* 隐藏头部列表数量统计 */
.el-transfer-panel__header {
display: none;
}
.el-transfer { .el-transfer {
display: flex; display: flex;
align-items: center; height: 100%;
gap: 50px; gap: 50px;
width: 100%; width: 100%;
...@@ -146,15 +141,18 @@ const rightChange = (val) => { ...@@ -146,15 +141,18 @@ const rightChange = (val) => {
.el-transfer-panel { .el-transfer-panel {
flex: 1; flex: 1;
display: flex;
flex-direction: column;
/* 隐藏头部列表数量统计 */
.el-transfer-panel__header {
display: none;
}
.el-transfer-panel__body { .el-transfer-panel__body {
height: 500px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex: 1;
.el-transfer-panel__list {
flex: 1;
}
} }
} }
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-row :gutter="20" class="client-fix-height"> <el-row :gutter="20"
class="client-fix-height">
<!--商品分类--> <!--商品分类-->
<category-tree :options="tagsOptions" <category-tree :options="tagsOptions"
:defaultProps="defaultProps" :defaultProps="defaultProps"
...@@ -36,50 +37,48 @@ ...@@ -36,50 +37,48 @@
<el-table-column label="商品编码" <el-table-column label="商品编码"
prop="prdCode" /> prop="prdCode" />
<el-table-column label="商品名称" <el-table-column label="商品名称"
width="300" width="300"
prop="prdName" /> prop="prdName" />
<el-table-column label="系列名称" <el-table-column label="系列名称"
prop="series" /> prop="series" />
</el-table> </el-table>
<!-- 添加或修改商品-标签详情对话框 -->
<el-dialog :title="title"
v-model="open"
append-to-body>
<el-form ref="formRef"
:model="form"
:rules="rules"
label-width="120px">
<el-form-item label="标签名称"
prop="prdTagName">
<el-input v-model="form.prdTagName"
placeholder="请输入标签名称" />
</el-form-item>
<el-form-item label="系列和商品"
prop="seriesPrdMap">
<el-cascader v-model="form.seriesPrdMap"
v-if="open"
:options="seriesPrdOptions"
:props="props"
collapse-tags
clearable
filterable
popper-class="my_popper"></el-cascader>
</el-form-item>
</el-form>
<div slot="footer"
class="dialog-footer">
<el-button type="primary"
@click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
</el-col> </el-col>
</el-row> </el-row>
<!-- 添加或修改商品-标签详情对话框 -->
<el-dialog :title="title"
v-model="open">
<el-form ref="formRef"
:model="form"
:rules="rules"
label-width="120px">
<el-form-item label="标签名称"
prop="prdTagName">
<el-input v-model="form.prdTagName"
placeholder="请输入标签名称" />
</el-form-item>
<el-form-item label="系列和商品"
prop="seriesPrdMap">
<el-cascader v-model="form.seriesPrdMap"
v-if="open"
:options="seriesPrdOptions"
:props="props"
collapse-tags
clearable
filterable
popper-class="my_popper"></el-cascader>
</el-form-item>
</el-form>
<div slot="footer"
class="dialog-footer">
<el-button type="primary"
@click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script setup> <script setup>
// import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/gen/info";
import { getSeriesListAPI, getProductListAPI, createSeriesGoodsTagAPI, getSeriesGoodsTagListAPI, getPrdTagDetailAPI, deleteSeriesGoodsTagAPI } from '@/api'; import { getSeriesListAPI, getProductListAPI, createSeriesGoodsTagAPI, getSeriesGoodsTagListAPI, getPrdTagDetailAPI, deleteSeriesGoodsTagAPI } from '@/api';
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
...@@ -301,36 +300,52 @@ getSeriesGoodsTagList() ...@@ -301,36 +300,52 @@ getSeriesGoodsTagList()
.app-container { .app-container {
.el-row { .el-row {
background-color: var(--el-bg-color-overlay); background-color: var(--el-bg-color-overlay);
.right_col {
flex: 1 !important;
transition: all .5s;
display: flex;
flex-direction: column;
height: 100%;
.el-form-item {
margin-bottom: 0;
}
.pagination {
/* 没办法设置某个子元素单独在主轴排列方式,使用此方式可以 */
margin-top: auto;
}
&.el-col-10 {
width: 41.666666%;
max-width: none;
}
}
} }
.right_col { ::v-deep(.el-dialog) {
flex: 1 !important;
transition: all .5s;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%;
.el-form-item { .el-dialog__body {
margin-bottom: 0; display: flex;
} flex-direction: column;
.pagination { .el-form {
/* 没办法设置某个子元素单独在主轴排列方式,使用此方式可以 */ flex: 1;
margin-top: auto;
}
&.el-col-10 { .el-cascader {
width: 41.666666%; width: 100%;
max-width: none; }
}
} }
.dialog-footer {
align-self: flex-end;
}
} }
} }
</style> </style>
<style lang="scss">
.my_popper {
.el-scrollbar__wrap {
height: 400px !important;
}
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论