Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
95fffa10
提交
95fffa10
authored
12月 03, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(promotion): 修改:店内执行上报_非当月是灰色背景
上级
758981bd
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
26 行增加
和
3 行删除
+26
-3
index.vue
...romotion/display_schedule/components/SearchList/index.vue
+1
-1
index.vue
...ews/promotion/display_schedule/components/Table/index.vue
+25
-2
没有找到文件。
src/views/promotion/display_schedule/components/SearchList/index.vue
浏览文件 @
95fffa10
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
clearable
>
clearable
>
<el-option
label=
"全部"
<el-option
label=
"全部"
value=
""
/>
value=
""
/>
<el-option
label=
"未
填写
"
<el-option
label=
"未
执行
"
value=
"未执行"
/>
value=
"未执行"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
...
src/views/promotion/display_schedule/components/Table/index.vue
浏览文件 @
95fffa10
...
@@ -42,7 +42,8 @@
...
@@ -42,7 +42,8 @@
class=
"auto-fit-header-table"
class=
"auto-fit-header-table"
v-loading=
"isLoading"
v-loading=
"isLoading"
show-overflow-tooltip
show-overflow-tooltip
:class=
"{ 'cell-no-padding': operation === '填报模式' }"
>
:class=
"{ 'cell-no-padding': operation === '填报模式' }"
:row-style=
"tableRowStyle"
>
<
template
v-for=
"col in tableColumns"
>
<
template
v-for=
"col in tableColumns"
>
<el-table-column
v-if=
"col.visible"
<el-table-column
v-if=
"col.visible"
:label=
"col.label"
:label=
"col.label"
...
@@ -72,7 +73,7 @@
...
@@ -72,7 +73,7 @@
<!-- 自定义渲染内容单元格 -->
<!-- 自定义渲染内容单元格 -->
<div
v-if=
"col.render"
<div
v-if=
"col.render"
class=
"cell-style"
>
class=
"cell-style"
>
<component
:is=
"col.render(h, row, col
)"
/>
<component
:is=
"col.render(h, row, col, !isCurrentMonth(row.salesMonth)
)"
/>
</div>
</div>
<!-- 公式计算 -->
<!-- 公式计算 -->
<div
v-else-if=
"col.type === 'formula'"
>
<div
v-else-if=
"col.type === 'formula'"
>
...
@@ -270,6 +271,28 @@ const handleDialogClose = () => {
...
@@ -270,6 +271,28 @@ const handleDialogClose = () => {
// 然后关闭弹窗
// 然后关闭弹窗
showTableInDialog
.
value
=
false
showTableInDialog
.
value
=
false
}
}
/*************** 非当月置灰行 ***************/
// 获取当前月份的函数
const
getCurrentMonth
=
()
=>
{
const
now
=
new
Date
();
const
year
=
now
.
getFullYear
();
const
month
=
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
);
return
`
${
year
}
-
${
month
}
`
;
};
// 检查是否为当前月的函数
const
isCurrentMonth
=
(
salesMonth
)
=>
{
return
salesMonth
===
getCurrentMonth
();
};
// 行样式函数
const
tableRowStyle
=
({
row
})
=>
{
if
(
!
isCurrentMonth
(
row
.
salesMonth
))
{
return
{
backgroundColor
:
'#f5f7fa'
};
// 灰色背景
}
return
{};
};
</
script
>
</
script
>
<
style
scoped
<
style
scoped
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论