Commit 93c4ac4e by qinjianhui

fix: 问题修改

parent 746754ca
...@@ -1760,11 +1760,20 @@ const operationOrderColumns = [ ...@@ -1760,11 +1760,20 @@ const operationOrderColumns = [
render: (row: operateOrderListData) => { render: (row: operateOrderListData) => {
const list = parseOperationOrderImageAry(row.imageAry) const list = parseOperationOrderImageAry(row.imageAry)
if (!list.length) { if (!list.length) {
return <span /> return (
<div>
<el-image
src={row.variantImage}
style="width:50px;height:50px"
previewSrcList={[row.variantImage ?? '']}
previewTeleported
/>
</div>
)
} }
const urls = list.map((i) => i.url) const urls = list.map((i) => i.url)
return ( return (
<div style="display:flex;flex-wrap:wrap;gap:4px;justify-content:center"> <div style="display:flex;gap:4px;">
{list.map((img, idx) => ( {list.map((img, idx) => (
<el-image <el-image
key={idx} key={idx}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment