Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
c60735d9
提交
c60735d9
authored
10月 28, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(display_schedule/*): 修改:AP 计划上报,部分列超出宽度不显示省略号问题修复
上级
65b07095
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
41 行增加
和
13 行删除
+41
-13
index.vue
src/views/promotion/components/CommonPlan/index.vue
+25
-7
display.vue
src/views/promotion/display_schedule/tabs/display.vue
+5
-1
schedule.vue
src/views/promotion/display_schedule/tabs/schedule.vue
+9
-3
schedule_dis.vue
src/views/promotion/display_schedule/tabs/schedule_dis.vue
+1
-1
snack.vue
src/views/promotion/display_schedule/tabs/snack.vue
+1
-1
没有找到文件。
src/views/promotion/components/CommonPlan/index.vue
浏览文件 @
c60735d9
...
...
@@ -3,8 +3,8 @@
<el-form-item>
<el-radio-group
v-model=
"operation"
@
change=
"checkTableColumns"
>
<el-radio-button
label=
"
平铺
模式"
value=
"
平铺
模式"
/>
<el-radio-button
label=
"
展示
模式"
value=
"
展示
模式"
/>
<el-radio-button
label=
"填报模式"
value=
"填报模式"
/>
</el-radio-group>
...
...
@@ -12,7 +12,7 @@
<right-toolbar
v-model:showSearch=
"showSearch"
@
queryTable=
"getTableList()"
:columns=
"chooseColumns"
:showColumnsType=
"operation === '
平铺
模式' ? 'tree' : 'checkbox'"
:showColumnsType=
"operation === '
展示
模式' ? 'tree' : 'checkbox'"
:defaultCheckedKeys=
"visibleProps"
>
</right-toolbar>
</el-row>
...
...
@@ -56,11 +56,15 @@
<div
v-else-if=
"col.type === 'formula'"
>
{{
col
.
func
(
row
)
}}
</div>
<div
v-else
>
{{
row
[
col
.
prop
]
||
'-'
}}
<div
v-else
class=
"overflow_wrap"
>
<!-- 超出部分显示省略号 -->
<span>
{{
row
[
col
.
prop
]
||
'-'
}}
</span>
</div>
</div>
<!--
平铺
模式 -->
<!--
展示
模式 -->
<div
v-else
>
{{
row
[
col
.
prop
]
||
'-'
}}
</div>
</
template
>
</el-table-column>
...
...
@@ -76,7 +80,7 @@
<
script
setup
>
import
{
h
}
from
'vue'
/*************** 操作类型 ***************/
const
operation
=
ref
(
'
平铺
模式'
);
const
operation
=
ref
(
'
展示
模式'
);
// const operation = ref('填报模式');
const
tableRef
=
ref
(
null
)
...
...
@@ -288,4 +292,17 @@ const getTableList = () => {
padding
:
15px
0
;
}
}
/* 超出部分显示省略号 */
.overflow_wrap
{
width
:
100%
;
/* 固定宽度 */
white-space
:
nowrap
;
/* 不换行 */
overflow
:
hidden
;
/* 隐藏超出部分 */
text-overflow
:
ellipsis
;
/* 显示省略号 */
display
:
inline-block
;
}
</
style
>
\ No newline at end of file
src/views/promotion/display_schedule/tabs/display.vue
浏览文件 @
c60735d9
...
...
@@ -240,6 +240,7 @@
{
label
:
"渠道大类"
,
prop
:
"channelDl"
,
showOverflowTooltip
:
true
,
visible
:
true
,
type
:
'string'
,
fill
:
false
,
...
...
@@ -248,6 +249,7 @@
{
label
:
"渠道小类"
,
prop
:
"channelXl"
,
showOverflowTooltip
:
true
,
visible
:
true
,
type
:
'string'
,
fill
:
false
,
...
...
@@ -258,12 +260,14 @@
prop
:
"storeType"
,
visible
:
true
,
type
:
'string'
,
showOverflowTooltip
:
true
,
fill
:
false
,
width
:
90
},
{
label
:
"系统业态"
,
prop
:
"systemFormat"
,
showOverflowTooltip
:
true
,
visible
:
true
,
type
:
'string'
,
fill
:
false
,
...
...
@@ -873,7 +877,7 @@
// 计算列具体数据
const
updateColumns
=
(
operation
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
operation
===
'
平铺
模式'
)
{
if
(
operation
===
'
展示
模式'
)
{
chooseColumns
.
value
=
baseColumns
.
value
tableColumns
.
value
=
baseColumns
.
value
.
flatMap
(
item
=>
{
if
(
item
.
children
)
{
...
...
src/views/promotion/display_schedule/tabs/schedule.vue
浏览文件 @
c60735d9
...
...
@@ -104,7 +104,7 @@
type
:
"string"
,
fill
:
true
,
fixed
:
'left'
,
width
:
2
25
width
:
2
00
},
{
label
:
"经销商类型"
,
...
...
@@ -162,11 +162,13 @@
type
:
"string"
,
fill
:
true
,
fixed
:
'left'
,
width
:
180
showOverflowTooltip
:
true
,
width
:
100
},
{
label
:
"系统类型"
,
prop
:
"lineType"
,
showOverflowTooltip
:
true
,
visible
:
true
,
type
:
"string"
,
fill
:
false
,
...
...
@@ -174,6 +176,7 @@
},
{
label
:
"渠道大类"
,
showOverflowTooltip
:
true
,
prop
:
"channelDl"
,
visible
:
true
,
type
:
"string"
,
...
...
@@ -183,6 +186,7 @@
{
label
:
"渠道小类"
,
prop
:
"channelXl"
,
showOverflowTooltip
:
true
,
visible
:
true
,
type
:
"string"
,
fill
:
false
,
...
...
@@ -190,6 +194,7 @@
},
{
label
:
"系统业态"
,
showOverflowTooltip
:
true
,
prop
:
"lineLf"
,
visible
:
true
,
type
:
"string"
,
...
...
@@ -222,6 +227,7 @@
{
label
:
"档期计划-促销规格"
,
prop
:
"plannedPromotionSpec"
,
showOverflowTooltip
:
true
,
visible
:
true
,
type
:
"string"
,
fill
:
false
,
...
...
@@ -1001,7 +1007,7 @@
// 计算列具体数据
const
updateColumns
=
(
operation
)
=>
{
// 保存用户选择的列配置
if
(
operation
===
'
平铺
模式'
)
{
if
(
operation
===
'
展示
模式'
)
{
chooseColumns
.
value
=
baseColumns
.
value
tableColumns
.
value
=
baseColumns
.
value
.
flatMap
(
item
=>
{
if
(
item
.
children
)
{
...
...
src/views/promotion/display_schedule/tabs/schedule_dis.vue
浏览文件 @
c60735d9
...
...
@@ -712,7 +712,7 @@
// 计算列具体数据
const
updateColumns
=
(
operation
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
operation
===
'
平铺
模式'
)
{
if
(
operation
===
'
展示
模式'
)
{
chooseColumns
.
value
=
baseColumns
.
value
tableColumns
.
value
=
baseColumns
.
value
.
flatMap
(
item
=>
{
if
(
item
.
children
)
{
...
...
src/views/promotion/display_schedule/tabs/snack.vue
浏览文件 @
c60735d9
...
...
@@ -448,7 +448,7 @@
// 计算列具体数据
const
updateColumns
=
(
operation
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
operation
===
'
平铺
模式'
)
{
if
(
operation
===
'
展示
模式'
)
{
chooseColumns
.
value
=
baseColumns
.
value
tableColumns
.
value
=
baseColumns
.
value
.
flatMap
(
item
=>
{
if
(
item
.
children
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论