Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
54456110
提交
54456110
authored
12月 05, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(promotion/display_schedule_dashboard): 修复:店内执行看板_城市经理列无数据情况
上级
538b50e7
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
82 行增加
和
38 行删除
+82
-38
display_schedule_dashboard.js
src/api/promotion/display_schedule_dashboard.js
+9
-1
index.vue
...ion/display_schedule_dashboard/components/Table/index.vue
+7
-1
display.vue
...ews/promotion/display_schedule_dashboard/tabs/display.vue
+11
-6
schedule.vue
...ws/promotion/display_schedule_dashboard/tabs/schedule.vue
+11
-6
schedule_dis.vue
...romotion/display_schedule_dashboard/tabs/schedule_dis.vue
+11
-6
six_little_diamonds.vue
...n/display_schedule_dashboard/tabs/six_little_diamonds.vue
+11
-6
snack.vue
...views/promotion/display_schedule_dashboard/tabs/snack.vue
+11
-6
three_two_seconds.vue
...ion/display_schedule_dashboard/tabs/three_two_seconds.vue
+11
-6
没有找到文件。
src/api/promotion/display_schedule_dashboard.js
浏览文件 @
54456110
import
request
from
'@/utils/request'
// 查询,店内执行上报-看板
// 查询,店内执行上报-看板
(大区战区)
export
const
getDisplayScheduleDashboardList
=
(
params
)
=>
{
return
request
({
url
:
'/operation/sales/ap_report/query/dept_cm'
,
params
})
}
// 查询,店内执行上报-看板(城市经理)
export
const
getDisplayScheduleDashboardListArea
=
(
params
)
=>
{
return
request
({
url
:
'/operation/sales/ap_report/query/store_cm'
,
params
})
}
\ No newline at end of file
src/views/promotion/display_schedule_dashboard/components/Table/index.vue
浏览文件 @
54456110
...
...
@@ -3,7 +3,7 @@
<!-- 操作类型 -->
<el-row>
<el-form-item>
<el-radio-group
v-model=
"operation"
>
<el-radio-group
v-model=
"operation"
@
change=
"handleChange"
>
<el-radio-button
label=
"大区战区-分析"
value=
"大区战区-分析"
v-hasPermi=
"['promotion:dashboard:list-show']"
/>
...
...
@@ -69,6 +69,8 @@ const props = defineProps({
}
})
const
emit
=
defineEmits
([
'getTableList'
])
/*************** 工具栏 ***************/
const
operation
=
ref
(
''
);
// 切换平铺/填报模式
const
tableRef
=
ref
(
null
)
...
...
@@ -113,6 +115,10 @@ watch(operation, (newVal) => {
immediate
:
true
})
// 切换操作类型时触发的函数
const
handleChange
=
(
newVal
)
=>
{
emit
(
'getTableList'
,
newVal
)
}
</
script
>
...
...
src/views/promotion/display_schedule_dashboard/tabs/display.vue
浏览文件 @
54456110
...
...
@@ -21,7 +21,7 @@
<
script
setup
lang=
"jsx"
>
import
CustomTable
from
'../components/Table'
import
{
getDisplayScheduleDashboardList
}
from
'@/api'
import
{
getDisplayScheduleDashboardList
,
getDisplayScheduleDashboardListArea
}
from
'@/api'
import
{
getDisplayConfig
}
from
'./data.jsx'
import
{
parseTime
}
from
'@/utils'
...
...
@@ -41,15 +41,20 @@
const
total
=
ref
(
0
)
// 筛选列表数据
const
getTableList
=
async
()
=>
{
const
getTableList
=
async
(
operation
)
=>
{
isLoading
.
value
=
true
const
res
=
await
getDisplayScheduleDashboardList
({
const
res
=
await
(
operation
===
'大区战区-分析'
?
getDisplayScheduleDashboardList
:
getDisplayScheduleDashboardListArea
)
({
...
queryParams
,
salesMonth
:
parseTime
(
queryParams
.
salesMonth
,
'{y}-{m}'
)
})
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
if
(
operation
===
'大区战区-分析'
)
{
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
}
else
{
// 合并城市经理结构为扁平化
tableData
.
value
=
res
.
data
}
isLoading
.
value
=
false
}
getTableList
()
...
...
src/views/promotion/display_schedule_dashboard/tabs/schedule.vue
浏览文件 @
54456110
...
...
@@ -22,7 +22,7 @@
<
script
setup
lang=
"jsx"
>
import
CustomTable
from
'../components/Table'
import
{
getDisplayScheduleDashboardList
}
from
'@/api'
import
{
getDisplayScheduleDashboardList
,
getDisplayScheduleDashboardListArea
}
from
'@/api'
import
{
parseTime
}
from
'@/utils'
import
{
getSchedulePlanConfig
}
from
'./data.jsx'
...
...
@@ -74,15 +74,20 @@
const
total
=
ref
(
0
)
// 筛选列表数据
const
getTableList
=
async
()
=>
{
const
getTableList
=
async
(
operation
)
=>
{
isLoading
.
value
=
true
const
res
=
await
getDisplayScheduleDashboardList
({
const
res
=
await
(
operation
===
'大区战区-分析'
?
getDisplayScheduleDashboardList
:
getDisplayScheduleDashboardListArea
)
({
...
queryParams
,
salesMonth
:
parseTime
(
queryParams
.
salesMonth
,
'{y}-{m}'
)
})
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
if
(
operation
===
'大区战区-分析'
)
{
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
}
else
{
// 合并城市经理结构为扁平化
tableData
.
value
=
res
.
data
}
isLoading
.
value
=
false
}
getTableList
()
...
...
src/views/promotion/display_schedule_dashboard/tabs/schedule_dis.vue
浏览文件 @
54456110
...
...
@@ -21,7 +21,7 @@
<
script
setup
lang=
"jsx"
>
import
CustomTable
from
'../components/Table'
import
{
getDisplayScheduleDashboardList
}
from
'@/api'
import
{
getDisplayScheduleDashboardList
,
getDisplayScheduleDashboardListArea
}
from
'@/api'
import
{
parseTime
}
from
'@/utils'
import
{
getScheduleDisConfig
}
from
'./data'
...
...
@@ -70,15 +70,20 @@
const
total
=
ref
(
0
)
// 筛选列表数据
const
getTableList
=
async
()
=>
{
const
getTableList
=
async
(
operation
)
=>
{
isLoading
.
value
=
true
const
res
=
await
getDisplayScheduleDashboardList
({
const
res
=
await
(
operation
===
'大区战区-分析'
?
getDisplayScheduleDashboardList
:
getDisplayScheduleDashboardListArea
)
({
...
queryParams
,
salesMonth
:
parseTime
(
queryParams
.
salesMonth
,
'{y}-{m}'
)
})
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
if
(
operation
===
'大区战区-分析'
)
{
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
}
else
{
// 合并城市经理结构为扁平化
tableData
.
value
=
res
.
data
}
isLoading
.
value
=
false
}
getTableList
()
...
...
src/views/promotion/display_schedule_dashboard/tabs/six_little_diamonds.vue
浏览文件 @
54456110
...
...
@@ -21,7 +21,7 @@
<
script
setup
lang=
"jsx"
>
import
CustomTable
from
'../components/Table'
import
{
getDisplayScheduleDashboardList
}
from
'@/api'
import
{
getDisplayScheduleDashboardList
,
getDisplayScheduleDashboardListArea
}
from
'@/api'
import
{
getSixLittleDiamondsConfig
}
from
'./data.jsx'
import
{
parseTime
}
from
'@/utils'
...
...
@@ -70,15 +70,20 @@
const
total
=
ref
(
0
)
// 筛选列表数据
const
getTableList
=
async
()
=>
{
const
getTableList
=
async
(
operation
)
=>
{
isLoading
.
value
=
true
const
res
=
await
getDisplayScheduleDashboardList
({
const
res
=
await
(
operation
===
'大区战区-分析'
?
getDisplayScheduleDashboardList
:
getDisplayScheduleDashboardListArea
)
({
...
queryParams
,
salesMonth
:
parseTime
(
queryParams
.
salesMonth
,
'{y}-{m}'
)
})
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
if
(
operation
===
'大区战区-分析'
)
{
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
}
else
{
// 合并城市经理结构为扁平化
tableData
.
value
=
res
.
data
}
isLoading
.
value
=
false
}
getTableList
()
...
...
src/views/promotion/display_schedule_dashboard/tabs/snack.vue
浏览文件 @
54456110
...
...
@@ -21,7 +21,7 @@
<
script
setup
lang=
"jsx"
>
import
CustomTable
from
'../components/Table'
import
{
getDisplayScheduleDashboardList
}
from
'@/api'
import
{
getDisplayScheduleDashboardList
,
getDisplayScheduleDashboardListArea
}
from
'@/api'
import
{
parseTime
}
from
'@/utils'
import
{
getSnackCofing
}
from
'./data.jsx'
;
...
...
@@ -66,15 +66,20 @@
const
total
=
ref
(
0
)
// 筛选列表数据
const
getTableList
=
async
()
=>
{
const
getTableList
=
async
(
operation
)
=>
{
isLoading
.
value
=
true
const
res
=
await
getDisplayScheduleDashboardList
({
const
res
=
await
(
operation
===
'大区战区-分析'
?
getDisplayScheduleDashboardList
:
getDisplayScheduleDashboardListArea
)
({
...
queryParams
,
salesMonth
:
parseTime
(
queryParams
.
salesMonth
,
'{y}-{m}'
)
})
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
if
(
operation
===
'大区战区-分析'
)
{
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
}
else
{
// 合并城市经理结构为扁平化
tableData
.
value
=
res
.
data
}
isLoading
.
value
=
false
}
getTableList
()
...
...
src/views/promotion/display_schedule_dashboard/tabs/three_two_seconds.vue
浏览文件 @
54456110
...
...
@@ -21,7 +21,7 @@
<
script
setup
lang=
"jsx"
>
import
CustomTable
from
'../components/Table'
import
{
getDisplayScheduleDashboardList
}
from
'@/api'
import
{
getDisplayScheduleDashboardList
,
getDisplayScheduleDashboardListArea
}
from
'@/api'
import
{
getThreeTwoSecondsConfig
}
from
'./data.jsx'
import
{
parseTime
}
from
'@/utils'
...
...
@@ -72,15 +72,20 @@
const
total
=
ref
(
0
)
// 筛选列表数据
const
getTableList
=
async
()
=>
{
const
getTableList
=
async
(
operation
)
=>
{
isLoading
.
value
=
true
const
res
=
await
getDisplayScheduleDashboardList
({
const
res
=
await
(
operation
===
'大区战区-分析'
?
getDisplayScheduleDashboardList
:
getDisplayScheduleDashboardListArea
)
({
...
queryParams
,
salesMonth
:
parseTime
(
queryParams
.
salesMonth
,
'{y}-{m}'
)
})
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
if
(
operation
===
'大区战区-分析'
)
{
// 合并战区大区结构为扁平化
const
{
zq
,
dq
}
=
res
.
data
tableData
.
value
=
[...
zq
,
...
dq
]
}
else
{
// 合并城市经理结构为扁平化
tableData
.
value
=
res
.
data
}
isLoading
.
value
=
false
}
getTableList
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论