Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
f552a6b9
提交
f552a6b9
authored
1月 07, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(bi/product/index.vue): bi 商品管理重构完成-包括单屏幕适配
同上
上级
16c93ed7
全部展开
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
82 行增加
和
24 行删除
+82
-24
element-ui.scss
src/assets/styles/element-ui.scss
+5
-0
index.scss
src/assets/styles/index.scss
+4
-0
index.vue
src/components/CategoryTree/index.vue
+0
-0
AppMain.vue
src/layout/components/AppMain.vue
+0
-1
index.vue
src/layout/index.vue
+32
-2
index.vue
src/views/bi/competitor/index.vue
+1
-0
index.vue
src/views/bi/product/index.vue
+39
-17
index.vue
src/views/bi/sale/index.vue
+1
-4
没有找到文件。
src/assets/styles/element-ui.scss
浏览文件 @
f552a6b9
...
@@ -91,6 +91,7 @@
...
@@ -91,6 +91,7 @@
color
:
var
(
--
el-color-primary
)
!
important
;
color
:
var
(
--
el-color-primary
)
!
important
;
}
}
// 覆盖默认样式
.el-select
{
.el-select
{
width
:
215px
;
width
:
215px
;
}
}
...
@@ -98,3 +99,7 @@
...
@@ -98,3 +99,7 @@
.el-tabs
{
.el-tabs
{
flex
:
1
;
flex
:
1
;
}
}
.el-form-item
{
margin-bottom
:
0
;
}
src/assets/styles/index.scss
浏览文件 @
f552a6b9
...
@@ -127,6 +127,10 @@ aside {
...
@@ -127,6 +127,10 @@ aside {
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
padding
:
20px
;
>
div
{
width
:
100%
;
}
}
}
.components-container
{
.components-container
{
...
...
src/components/CategoryTree/index.vue
浏览文件 @
f552a6b9
差异被折叠。
点击展开。
src/layout/components/AppMain.vue
浏览文件 @
f552a6b9
...
@@ -41,7 +41,6 @@ function addIframe() {
...
@@ -41,7 +41,6 @@ function addIframe() {
.app-main
{
.app-main
{
/* 50= navbar 50 */
/* 50= navbar 50 */
min-height
:
calc
(
100vh
-
50px
);
min-height
:
calc
(
100vh
-
50px
);
padding
:
20px
;
width
:
100%
;
width
:
100%
;
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/layout/index.vue
浏览文件 @
f552a6b9
...
@@ -108,7 +108,7 @@ function setLayout() {
...
@@ -108,7 +108,7 @@ function setLayout() {
// 开启头部固定以后,main的高度需要设置为100vh
// 开启头部固定以后,main的高度需要设置为100vh
.fixed-header
+
.app-main
{
.fixed-header
+
.app-main
{
min-height
:
100vh
;
min-height
:
100vh
;
padding-top
:
50px
+
20px
;
padding-top
:
50px
;
}
}
...
@@ -121,7 +121,7 @@ function setLayout() {
...
@@ -121,7 +121,7 @@ function setLayout() {
}
}
.fixed-header
+
.app-main
{
.fixed-header
+
.app-main
{
padding-top
:
84px
+
20px
;
padding-top
:
84px
;
}
}
}
}
...
@@ -137,4 +137,33 @@ function setLayout() {
...
@@ -137,4 +137,33 @@ function setLayout() {
.mobile
.fixed-header
{
.mobile
.fixed-header
{
width
:
100%
;
width
:
100%
;
}
}
// 有些页面高度固定就是 100 vh - 头部高度作为可视区域
// 例如:小 BI 分析中的商品管理页面,中间可用区域固定高度,不能撑开整个网页滚动
// 所以要动态计算高度
::v-deep
()
{
// 无头部固定,无头部 Tags-view
.client-fix-height
{
// 头部导航 50,上下内边距 20
height
:
calc
(
100vh
-
50px
-
40px
);
}
// 头部固定时
.fixed-header
+
.app-main
{
.client-fix-height
{
height
:
calc
(
100vh
-
50px
-
40px
)
!
important
;
}
}
// 有头部标签时
.hasTagsView
{
.fixed-header
+
.app-main
{
.client-fix-height
{
height
:
calc
(
100vh
-
50px
-
34px
-
40px
)
!
important
;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/bi/competitor/index.vue
浏览文件 @
f552a6b9
...
@@ -62,6 +62,7 @@ provide('activeName', activeName);
...
@@ -62,6 +62,7 @@ provide('activeName', activeName);
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
space-around
;
justify-content
:
space-around
;
width
:
100%
;
width
:
100%
;
margin-top
:
20px
;
.chart
{
.chart
{
flex
:
1
;
flex
:
1
;
...
...
src/views/bi/product/index.vue
浏览文件 @
f552a6b9
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-row
:gutter=
"20"
<el-row
:gutter=
"20"
class=
"
row
"
>
class=
"
client-fix-height
"
>
<!--商品分类-->
<!--商品分类-->
<category-tree
:options=
"seriesOptions"
<category-tree
:options=
"seriesOptions"
:defaultProps=
"defaultProps"
:defaultProps=
"defaultProps"
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
@
search=
"handleQuery"
@
search=
"handleQuery"
:colSpan=
"4"
></category-tree>
:colSpan=
"4"
></category-tree>
<!--商品数据-->
<!--商品数据-->
<el-col
:span=
"
18
"
<el-col
:span=
"
20
"
:xs=
"24"
:xs=
"24"
class=
"right_col"
>
class=
"right_col"
>
<el-form
:model=
"queryParams"
<el-form
:model=
"queryParams"
...
@@ -63,8 +63,7 @@
...
@@ -63,8 +63,7 @@
align=
"left"
align=
"left"
key=
"prdCode"
key=
"prdCode"
prop=
"prdCode"
prop=
"prdCode"
v-if=
"columns[0].visible"
v-if=
"columns[0].visible"
/>
width=
"150"
/>
<el-table-column
label=
"商品名字"
<el-table-column
label=
"商品名字"
align=
"left"
align=
"left"
key=
"prdName"
key=
"prdName"
...
@@ -76,20 +75,17 @@
...
@@ -76,20 +75,17 @@
key=
"series"
key=
"series"
prop=
"series"
prop=
"series"
v-if=
"columns[2].visible"
v-if=
"columns[2].visible"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
/>
width=
"150"
/>
<el-table-column
label=
"条码"
<el-table-column
label=
"条码"
align=
"left"
align=
"left"
key=
"prdSpec"
key=
"prdSpec"
prop=
"prdSpec"
prop=
"prdSpec"
v-if=
"columns[3].visible"
v-if=
"columns[3].visible"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
/>
width=
"180"
/>
<el-table-column
label=
"售卖状态"
<el-table-column
label=
"售卖状态"
align=
"center"
align=
"center"
key=
"saleStatus"
key=
"saleStatus"
v-if=
"columns[4].visible"
v-if=
"columns[4].visible"
>
width=
"80"
>
<template
v-slot=
"scope"
>
<template
v-slot=
"scope"
>
<el-switch
v-model=
"scope.row.saleStatus"
<el-switch
v-model=
"scope.row.saleStatus"
active-value=
"1"
active-value=
"1"
...
@@ -99,18 +95,16 @@
...
@@ -99,18 +95,16 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
<el-table-column
label=
"操作"
align=
"center"
align=
"center"
width=
"160"
class-name=
"small-padding fixed-width"
class-name=
"small-padding fixed-width"
v-if=
"columns[5].visible"
>
v-if=
"columns[5].visible"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
<el-button
icon=
"el-icon-edit"
>
修改
</el-button>
type=
"text"
icon=
"el-icon-edit"
>
修改
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
v-show=
"total > 0"
<pagination
class=
"pagination"
v-show=
"total > 0"
:total=
"total"
:total=
"total"
v-model:page=
"queryParams.pageNum"
v-model:page=
"queryParams.pageNum"
v-model:limit=
"queryParams.pageSize"
v-model:limit=
"queryParams.pageSize"
...
@@ -182,7 +176,34 @@ getProductList()
...
@@ -182,7 +176,34 @@ getProductList()
<
style
scoped
<
style
scoped
lang=
"scss"
>
lang=
"scss"
>
::v-deep
.row
{
.app-container
{
>
.el-row
{
/* flex: 1; */
display
:
flex
;
padding
:
20px
;
background-color
:
var
(
--
el-bg-color-overlay
);
.right_col
{
flex
:
1
!
important
;
transition
:
all
.5s
;
display
:
flex
;
flex-direction
:
column
;
height
:
100%
;
.pagination
{
/* 没办法设置某个子元素单独在主轴排列方式,使用此方式可以 */
margin-top
:
auto
;
}
&
.el-col-20
{
width
:
83
.33333333%
;
max-width
:
none
;
}
}
}
}
/* ::v-deep .row {
height: 100%;
height: 100%;
display: flex;
display: flex;
...
@@ -195,5 +216,5 @@ getProductList()
...
@@ -195,5 +216,5 @@ getProductList()
}
}
}
}
}
}
*/
</
style
>
</
style
>
\ No newline at end of file
src/views/bi/sale/index.vue
浏览文件 @
f552a6b9
...
@@ -608,9 +608,9 @@ init()
...
@@ -608,9 +608,9 @@ init()
/* 套表 */
/* 套表 */
.excel_charts_item
{
.excel_charts_item
{
background-color
:
var
(
--
el-bg-color-overlay
);
background-color
:
var
(
--
el-bg-color-overlay
);
padding
:
20px
;
margin-top
:
20px
;
margin-top
:
20px
;
width
:
100%
;
width
:
100%
;
padding
:
20px
;
/* 图容器 */
/* 图容器 */
.echarts_wrap
{
.echarts_wrap
{
...
@@ -637,9 +637,6 @@ init()
...
@@ -637,9 +637,6 @@ init()
margin-top
:
0
;
margin-top
:
0
;
}
}
.el-form-item
{
margin-bottom
:
0
;
}
}
}
/* 新增套表 */
/* 新增套表 */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论