Commit 51c479ec by 前端

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

1 parent fcc81b63
...@@ -608,8 +608,7 @@ export default { ...@@ -608,8 +608,7 @@ export default {
color: #1d1d1d; color: #1d1d1d;
display: inline-block; display: inline-block;
// cursor: pointer; // cursor: pointer;
min-width: 250px; width: 250px;
max-width: 350px;
overflow: hidden; overflow: hidden;
/* 防止文本换行 */ /* 防止文本换行 */
white-space: nowrap; white-space: nowrap;
......
...@@ -243,7 +243,7 @@ export default { ...@@ -243,7 +243,7 @@ export default {
prop: "shopMerchantList", prop: "shopMerchantList",
html: true, html: true,
formatter: (cellValue) => { formatter: (cellValue) => {
if (cellValue.shopMerchantList) { if (cellValue.shopMerchantList && cellValue.shopMerchantList.length > 0) {
return cellValue.shopMerchantList.reduce( return cellValue.shopMerchantList.reduce(
(merchString, item) => { (merchString, item) => {
merchString = merchString =
...@@ -251,7 +251,7 @@ export default { ...@@ -251,7 +251,7 @@ export default {
`<p>${item.merchantName} ${item.merchantId}</p>` `<p>${item.merchantName} ${item.merchantId}</p>`
return merchString return merchString
}, },
"-" ""
) )
} else { } else {
return "-" return "-"
...@@ -283,7 +283,7 @@ export default { ...@@ -283,7 +283,7 @@ export default {
prop: "carBrandList", prop: "carBrandList",
html: true, html: true,
formatter: (cellValue) => { formatter: (cellValue) => {
if (cellValue.shopMerchantList) { if (cellValue.shopMerchantList && cellValue.shopMerchantList.length > 0) {
return cellValue.shopMerchantList.reduce( return cellValue.shopMerchantList.reduce(
(carBrandString, item) => { (carBrandString, item) => {
if (item.carBrandList) { if (item.carBrandList) {
...@@ -300,10 +300,10 @@ export default { ...@@ -300,10 +300,10 @@ export default {
} }
return carBrandString return carBrandString
}, },
"-" ""
) )
} else { } else {
return "" return "-"
} }
} }
}, },
...@@ -323,7 +323,7 @@ export default { ...@@ -323,7 +323,7 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.orderTime return cellValue.orderTime
? Util.dateFormate(cellValue.orderTime, "YYYY-MM-DD") ? 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!