Browse Source

空值显示

master
xingyongchun 2 years ago
parent
commit
0995023934
  1. 32
      web/client/src/sections/homePage/containers/index.js
  2. 14
      web/client/src/sections/personnel/containers/index.js

32
web/client/src/sections/homePage/containers/index.js

@ -91,7 +91,7 @@ function Management(props) {
dataIndex: "post_people",
hideInSearch: true,
render: (dom, record) => {
return record.post_people
return record.post_people;
},
},
{
@ -99,9 +99,8 @@ function Management(props) {
key: "md",
dataIndex: "md",
hideInSearch: true,
width: 150,
render: (dom, record) => {
return record.md
return <div>{record.md=='undefined'?'--' :record.md}</div>;
},
},
{
@ -110,47 +109,52 @@ function Management(props) {
dataIndex: "td",
hideInSearch: true,
render: (dom, record) => {
return record.td
return <div>{record.td=='undefined'?'--' :record.td}</div>;
},
},{
},
{
title: "周三",
key: "wd",
dataIndex: "wd",
hideInSearch: true,
render: (dom, record) => {
return record.wd
return <div>{record.wd=='undefined'?'--' :record.wd}</div>;
},
},{
},
{
title: "周四",
key: "thd ",
dataIndex: "thd ",
hideInSearch: true,
render: (dom, record) => {
return record.thd
return <div>{record.thd=='undefined'?'--' :record.thd}</div>;
},
},{
},
{
title: "周五",
key: "fd",
dataIndex: "fd",
hideInSearch: true,
render: (dom, record) => {
return record.fd
return <div>{record.fd=='undefined'?'--' :record.fd}</div>;
},
},{
},
{
title: "周六",
key: "sd",
dataIndex: "sd",
hideInSearch: true,
render: (dom, record) => {
return record.sd
return <div>{record.sd=='undefined'?'--' :record.sd}</div>;
},
},{
},
{
title: "周日",
key: "ssd",
dataIndex: "ssd",
hideInSearch: true,
render: (dom, record) => {
return record.ssd
return <div>{record.ssd=='undefined'?'--' :record.ssd}</div>;
},
},
];

14
web/client/src/sections/personnel/containers/index.js

@ -46,7 +46,7 @@ export const Default = (props) => {
dataIndex: "md",
hideInSearch: true,
render: (dom, record) => {
return <div>{record.md || ""}</div>;
return <div>{record.md=='undefined'?'--' :record.md}</div>;
},
},
{
@ -55,7 +55,7 @@ export const Default = (props) => {
dataIndex: "td",
hideInSearch: true,
render: (dom, record) => {
return <div>{record.td || ""}</div>;
return <div>{record.td=='undefined'?'--' :record.td}</div>;
},
},
{
@ -64,7 +64,7 @@ export const Default = (props) => {
dataIndex: "wd",
hideInSearch: true,
render: (dom, record) => {
return record.wd;
return <div>{record.wd=='undefined'?'--' :record.wd}</div>;
},
},
{
@ -73,7 +73,7 @@ export const Default = (props) => {
dataIndex: "thd ",
hideInSearch: true,
render: (dom, record) => {
return record.thd;
return <div>{record.thd=='undefined'?'--' :record.thd}</div>;
},
},
{
@ -82,7 +82,7 @@ export const Default = (props) => {
dataIndex: "fd",
hideInSearch: true,
render: (dom, record) => {
return record.fd;
return <div>{record.fd=='undefined'?'--' :record.fd}</div>;
},
},
{
@ -91,7 +91,7 @@ export const Default = (props) => {
dataIndex: "sd",
hideInSearch: true,
render: (dom, record) => {
return record.sd;
return <div>{record.sd=='undefined'?'--' :record.sd}</div>;
},
},
{
@ -100,7 +100,7 @@ export const Default = (props) => {
dataIndex: "ssd",
hideInSearch: true,
render: (dom, record) => {
return <div>{record.ssd==undefined?'' :record.ssd}</div>;
return <div>{record.ssd=='undefined'?'--' :record.ssd}</div>;
},
},
{

Loading…
Cancel
Save