Commit 1fc6591e authored by shangtx's avatar shangtx

Merge branch 'shang' into dev

parents 294b7eb5 5f5a437f
...@@ -114,12 +114,16 @@ const columns = [ ...@@ -114,12 +114,16 @@ const columns = [
title: "姓名", title: "姓名",
dataIndex: "realName", dataIndex: "realName",
width: 80, width: 80,
customRender: (value, row) => { customRender: (value, record) => {
const obj = { const obj = {
children: value, children: value,
attrs: {}, attrs: {},
}; };
obj.attrs.rowSpan = row.rowspan; obj.attrs.rowSpan = record.rowspan;
if (record.rowKey == "totaltotal") {
obj.attrs.colspan = 2;
obj.attrs.style = "font-weight: 600;";
}
return obj; return obj;
}, },
}, },
...@@ -135,6 +139,9 @@ const columns = [ ...@@ -135,6 +139,9 @@ const columns = [
if (record.rowKey.startsWith("total")) { if (record.rowKey.startsWith("total")) {
obj.attrs.style = "font-weight: 600;"; obj.attrs.style = "font-weight: 600;";
} }
if (record.rowKey == "totaltotal") {
obj.attrs.hidden = true;
}
return obj; return obj;
}, },
}, },
......
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