Commit 51c479ec by 前端

驻店管理列表服务门店和品牌展示异常,编辑页面样式修复

1 parent fcc81b63
......@@ -608,8 +608,7 @@ export default {
color: #1d1d1d;
display: inline-block;
// cursor: pointer;
min-width: 250px;
max-width: 350px;
width: 250px;
overflow: hidden;
/* 防止文本换行 */
white-space: nowrap;
......
......@@ -243,7 +243,7 @@ export default {
prop: "shopMerchantList",
html: true,
formatter: (cellValue) => {
if (cellValue.shopMerchantList) {
if (cellValue.shopMerchantList && cellValue.shopMerchantList.length > 0) {
return cellValue.shopMerchantList.reduce(
(merchString, item) => {
merchString =
......@@ -251,7 +251,7 @@ export default {
`<p>${item.merchantName} ${item.merchantId}</p>`
return merchString
},
"-"
""
)
} else {
return "-"
......@@ -283,7 +283,7 @@ export default {
prop: "carBrandList",
html: true,
formatter: (cellValue) => {
if (cellValue.shopMerchantList) {
if (cellValue.shopMerchantList && cellValue.shopMerchantList.length > 0) {
return cellValue.shopMerchantList.reduce(
(carBrandString, item) => {
if (item.carBrandList) {
......@@ -300,10 +300,10 @@ export default {
}
return carBrandString
},
"-"
""
)
} else {
return ""
return "-"
}
}
},
......@@ -323,7 +323,7 @@ export default {
formatter: (cellValue) => {
return cellValue.orderTime
? Util.dateFormate(cellValue.orderTime, "YYYY-MM-DD")
: ""
: "-"
}
}
]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!