Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
9675297c
提交
9675297c
authored
12月 29, 2024
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(layout/appmain): 修复飞书客户端_首页Panel暗黑模式无效问题
同标题
上级
3853c14d
显示空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
52 行增加
和
30 行删除
+52
-30
.env.development
.env.development
+2
-2
element-ui.scss
src/assets/styles/element-ui.scss
+5
-0
variables.module.scss
src/assets/styles/variables.module.scss
+8
-2
index.vue
src/components/ECharts/GroupLegend/index.vue
+3
-3
index.vue
src/components/LevitatedSphere/index.vue
+1
-1
AppMain.vue
src/layout/components/AppMain.vue
+1
-1
index.vue
src/views/bi/competitor/cmm/index.vue
+4
-3
index.vue
src/views/bi/competitor/index.vue
+7
-1
GradientArea.vue
src/views/bi/competitor/sycm_store/GradientArea.vue
+1
-0
index.vue
src/views/bi/competitor/sycm_store/index.vue
+18
-15
PanelGroup.vue
src/views/dashboard/PanelGroup.vue
+2
-2
没有找到文件。
.env.development
浏览文件 @
9675297c
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
VITE_APP_TITLE = 王小卤-链路中心
VITE_APP_TITLE = 王小卤-链路中心
# 基地址
# 基地址
VITE_APP_BASE_API = '/dev-api'
#
VITE_APP_BASE_API = '/dev-api'
# VITE_APP_BASE_API = '/qllan'
# VITE_APP_BASE_API = '/qllan'
# VITE_APP_BASE_API = '/bclan'
# VITE_APP_BASE_API = '/bclan'
#
VITE_APP_BASE_API = '/home'
VITE_APP_BASE_API = '/home'
# 开发环境配置
# 开发环境配置
VITE_APP_ENV = 'development'
VITE_APP_ENV = 'development'
...
...
src/assets/styles/element-ui.scss
浏览文件 @
9675297c
...
@@ -94,3 +94,7 @@
...
@@ -94,3 +94,7 @@
.el-dropdown
.el-dropdown-link
{
.el-dropdown
.el-dropdown-link
{
color
:
var
(
--
el-color-primary
)
!
important
;
color
:
var
(
--
el-color-primary
)
!
important
;
}
}
.el-select
{
width
:
215px
;
}
\ No newline at end of file
src/assets/styles/variables.module.scss
浏览文件 @
9675297c
...
@@ -82,15 +82,20 @@ $--color-info: #909399;
...
@@ -82,15 +82,20 @@ $--color-info: #909399;
// 高亮模式变量
// 高亮模式变量
html
{
html
{
--el-gray-1
:
rgba
(
0
,
0
,
0
,
0
.45
);
--el-gray-2
:
#666666
;
/* 主页背景 */
/* 主页背景 */
.app-main
{
.app-main
{
--el-bg-color
:
#f1f3f8
;
background-color
:
#f1f3f8
!
important
;
}
}
}
}
// 暗黑模式变量
// 暗黑模式变量
html
.dark
{
html
.dark
{
--el-gray-1
:
white
;
--el-gray-2
:
white
;
/* 默认通用 */
/* 默认通用 */
--el-bg-color
:
#141414
;
--el-bg-color
:
#141414
;
--el-bg-color-overlay
:
#1d1e1f
;
--el-bg-color-overlay
:
#1d1e1f
;
...
@@ -235,6 +240,6 @@ html.dark {
...
@@ -235,6 +240,6 @@ html.dark {
/* 主页背景 */
/* 主页背景 */
.app-main
{
.app-main
{
--el-bg-color
:
var
(
--
el-bg-color
)
;
background-color
:
var
(
--
el-bg-color
)
!
important
;
}
}
}
}
\ No newline at end of file
src/components/ECharts/GroupLegend/index.vue
浏览文件 @
9675297c
...
@@ -48,7 +48,7 @@ export default {
...
@@ -48,7 +48,7 @@ export default {
methods
:
{
methods
:
{
handleClick
(
item
)
{
handleClick
(
item
)
{
item
.
effective
=
!
item
.
effective
item
.
effective
=
!
item
.
effective
this
.
$emit
(
'click'
)
this
.
$emit
(
'click
Item
'
)
}
}
}
}
}
}
...
@@ -134,8 +134,8 @@ export default {
...
@@ -134,8 +134,8 @@ export default {
border
:
3px
solid
var
(
--
color
);
border
:
3px
solid
var
(
--
color
);
border-radius
:
50%
;
border-radius
:
50%
;
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
.5px
;
left
:
7
.
7
5px
;
left
:
7
.
4
5px
;
}
}
}
}
...
...
src/components/LevitatedSphere/index.vue
浏览文件 @
9675297c
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
}
}
::v-deep
.el-drawer__body
{
::v-deep
(
.el-drawer__body
)
{
padding
:
10px
;
padding
:
10px
;
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1fr
);
grid-template-columns
:
repeat
(
3
,
1fr
);
...
...
src/layout/components/AppMain.vue
浏览文件 @
9675297c
...
@@ -40,7 +40,7 @@ function addIframe() {
...
@@ -40,7 +40,7 @@ function addIframe() {
width
:
100%
;
width
:
100%
;
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
background
:
var
(
--
el-bg-color
);
background
-color
:
var
(
--
el-bg-color
);
}
}
.fixed-header
+
.app-main
{
.fixed-header
+
.app-main
{
...
...
src/views/bi/competitor/cmm/index.vue
浏览文件 @
9675297c
...
@@ -2,13 +2,14 @@
...
@@ -2,13 +2,14 @@
<div
class=
"chart_wrap"
>
<div
class=
"chart_wrap"
>
<el-form
:model=
"queryParams"
<el-form
:model=
"queryParams"
inline
inline
size=
"
small
"
>
size=
"
default
"
>
<el-form-item
label=
"直播间"
>
<el-form-item
label=
"直播间"
>
<el-select
v-model=
"queryParams.brandList"
<el-select
v-model=
"queryParams.brandList"
@
change=
"queryChangeFn"
@
change=
"queryChangeFn"
multiple
multiple
clearable
clearable
collapse-tags
>
collapse-tags
collapse-tags-tooltip
>
<el-option
v-for=
"str in brandList"
<el-option
v-for=
"str in brandList"
:label=
"str"
:label=
"str"
:value=
"str"
>
:value=
"str"
>
...
@@ -37,7 +38,7 @@
...
@@ -37,7 +38,7 @@
</el-form>
</el-form>
<div
class=
"chart_wrap"
>
<div
class=
"chart_wrap"
>
<group-legend
:legendData=
"chartData.legend"
<group-legend
:legendData=
"chartData.legend"
@
click=
"legendChangeFn"
></group-legend>
@
click
-item
=
"legendChangeFn"
></group-legend>
<line-charts
:chartData=
"chartData"
></line-charts>
<line-charts
:chartData=
"chartData"
></line-charts>
</div>
</div>
<levitated-sphere>
<levitated-sphere>
...
...
src/views/bi/competitor/index.vue
浏览文件 @
9675297c
...
@@ -6,7 +6,9 @@
...
@@ -6,7 +6,9 @@
:label=
"item.name"
:label=
"item.name"
:name=
"item.name"
:name=
"item.name"
lazy
>
lazy
>
<keep-alive>
<component
:is=
"item.component"
></component>
<component
:is=
"item.component"
></component>
</keep-alive>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
...
@@ -17,7 +19,11 @@ import cmm from './cmm'
...
@@ -17,7 +19,11 @@ import cmm from './cmm'
import
sycmStore
from
'./sycm_store'
import
sycmStore
from
'./sycm_store'
import
sycmPrd
from
'./sycm_prd'
import
sycmPrd
from
'./sycm_prd'
import
{
ref
}
from
'vue'
import
{
ref
}
from
'vue'
const
list
=
ref
([{
name
:
'蝉妈妈'
,
component
:
cmm
},
{
name
:
'生意参谋-竞店'
,
component
:
sycmStore
},
{
name
:
'生意参谋-竞品'
,
component
:
sycmPrd
}])
const
list
=
ref
([
{
name
:
'蝉妈妈'
,
component
:
cmm
},
{
name
:
'生意参谋-竞店'
,
component
:
sycmStore
},
{
name
:
'生意参谋-竞品'
,
component
:
sycmPrd
}
])
const
activeName
=
ref
(
list
.
value
[
0
].
name
)
const
activeName
=
ref
(
list
.
value
[
0
].
name
)
</
script
>
</
script
>
...
...
src/views/bi/competitor/sycm_store/GradientArea.vue
浏览文件 @
9675297c
...
@@ -53,6 +53,7 @@ export default {
...
@@ -53,6 +53,7 @@ export default {
this
.
initChart
()
this
.
initChart
()
})
})
},
},
beforeDestroy
()
{
beforeDestroy
()
{
if
(
!
this
.
chart
)
{
if
(
!
this
.
chart
)
{
return
return
...
...
src/views/bi/competitor/sycm_store/index.vue
浏览文件 @
9675297c
...
@@ -8,14 +8,15 @@
...
@@ -8,14 +8,15 @@
@
change=
"queryChangeFn"
@
change=
"queryChangeFn"
multiple
multiple
clearable
clearable
collapse-tags
>
collapse-tags
collapse-tags-tooltip
>
<el-option
v-for=
"str in brandList"
<el-option
v-for=
"str in brandList"
:label=
"str"
:label=
"str"
:value=
"str"
>
:value=
"str"
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"数据查看"
>
<
!--
<
el-form-item
label=
"数据查看"
>
<el-select
v-model=
"queryParams.typeList"
<el-select
v-model=
"queryParams.typeList"
@
change=
"queryChangeFn"
@
change=
"queryChangeFn"
multiple
multiple
...
@@ -37,25 +38,25 @@
...
@@ -37,25 +38,25 @@
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
@
change=
"queryChangeFn('date')"
>
@
change=
"queryChangeFn('date')"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
-->
</el-form>
</el-form>
<div
class=
"chart_wrap"
>
<div
class=
"chart_wrap"
>
<
gradient-area
:chartData=
"chartData"
></gradient-area
>
<
!--
<gradient-area
:chartData=
"chartData"
></gradient-area>
--
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
import
*
as
echarts
from
'echarts'
import
*
as
echarts
from
'echarts'
import
{
ref
,
reactive
}
from
'vue'
import
{
ref
,
reactive
,
nextTick
}
from
'vue'
import
GradientArea
from
'./GradientArea.vue'
;
import
GradientArea
from
'./GradientArea.vue'
;
import
{
getSycmListAPI
}
from
'@/api'
import
{
getSycmListAPI
}
from
'@/api'
import
{
generatorDayList
,
parseTime
,
getBrandColor
}
from
'@/utils'
import
{
generatorDayList
,
parseTime
,
getBrandColor
}
from
'@/utils'
const
queryParams
=
reactive
({
// 查询表单
const
queryParams
=
reactive
({
// 查询表单
brandList
:
[],
brandList
:
[],
date
:
[
new
Date
().
setDate
(
1
),
new
Date
().
setDate
((
new
Date
().
getDate
()
-
1
)
)],
date
:
[
new
Date
().
setDate
(
new
Date
().
getDate
()
-
30
),
new
Date
().
setDate
(
new
Date
().
getDate
()
-
1
)],
typeList
:
[]
//
typeList: []
})
})
const
brandList
=
ref
([])
// 直播间列表
const
brandList
=
ref
([])
// 直播间列表
const
typeList
=
ref
([
'支付买家数'
,
'交易增速'
,
'独立访客范围'
,
'流量增速'
])
const
typeList
=
ref
([
'支付买家数'
,
'交易增速'
,
'独立访客范围'
,
'流量增速'
])
...
@@ -194,18 +195,20 @@ const filterData = () => {
...
@@ -194,18 +195,20 @@ const filterData = () => {
}
}
// 默认打开页面请求一次所有数据,并保存在数据源
// 默认打开页面请求一次所有数据,并保存在数据源
(
async
function
init
()
{
(
function
init
()
{
// 初始化时间
nextTick
(
async
()
=>
{
allChartData
.
xAxis
=
generatorDayList
(
queryParams
.
date
[
0
],
queryParams
.
date
[
1
])
// // 初始化时间
// 请求数据
// allChartData.xAxis = generatorDayList(queryParams.date[0], queryParams.date[1])
const
data
=
await
getList
()
const
data
=
await
getList
()
// 初始化直播间列表
console
.
log
(
data
)
// 直播间列表
brandList
.
value
=
data
.
map
(
list
=>
list
[
0
].
platformStore
)
brandList
.
value
=
data
.
map
(
list
=>
list
[
0
].
platformStore
)
// 初始化筛选条件(默认请求第一个店铺的第一类型数据)
// 初始化筛选条件(默认请求第一个店铺的第一类型数据)
queryParams
.
brandList
=
[
data
[
0
][
0
].
platformStore
]
//
queryParams.brandList = [data[0][0].platformStore]
queryParams
.
typeList
=
[
typeList
.
value
[
0
]]
//
queryParams.typeList = [typeList.value[0]]
// 筛选图表数据
// 筛选图表数据
filterData
()
// filterData()
})
})();
})();
// 查询条件改变
// 查询条件改变
...
...
src/views/dashboard/PanelGroup.vue
浏览文件 @
9675297c
...
@@ -109,7 +109,7 @@ const handleSetLineChartData = () => {}
...
@@ -109,7 +109,7 @@ const handleSetLineChartData = () => {}
font-size
:
12px
;
font-size
:
12px
;
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
color
:
var
(
--
el-
text-color-primary
);
color
:
var
(
--
el-
gray-2
);
background
:
var
(
--
el-bg-color-overlay
);
background
:
var
(
--
el-bg-color-overlay
);
box-shadow
:
4px
4px
40px
rgba
(
0
,
0
,
0
,
.05
);
box-shadow
:
4px
4px
40px
rgba
(
0
,
0
,
0
,
.05
);
border-color
:
rgba
(
0
,
0
,
0
,
.05
);
border-color
:
rgba
(
0
,
0
,
0
,
.05
);
...
@@ -173,7 +173,7 @@ const handleSetLineChartData = () => {}
...
@@ -173,7 +173,7 @@ const handleSetLineChartData = () => {}
.card-panel-text
{
.card-panel-text
{
line-height
:
18px
;
line-height
:
18px
;
color
:
var
(
--
el-
text-color-primary
);
color
:
var
(
--
el-
gray-1
);
font-size
:
16px
;
font-size
:
16px
;
margin-bottom
:
12px
;
margin-bottom
:
12px
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论