巴林闲侠 2 years ago
parent
commit
82a381345d
  1. 16
      web/client/src/sections/install/containers/system.jsx

16
web/client/src/sections/install/containers/system.jsx

@ -61,7 +61,6 @@ const Example = (props) => {
dispatch(install.getProjectAppList(query)).then((res) => {// dispatch(install.getProjectAppList(query)).then((res) => {//
setAppList(res.payload.data) setAppList(res.payload.data)
}) })
console.log('user', user);
}, []) }, [])
useEffect(() => { useEffect(() => {
getProjectPomsList(); getProjectPomsList();
@ -224,12 +223,21 @@ const Example = (props) => {
) )
} }
}, },
{
title: '映射类型',
dataIndex: "mappingClass",
key: 'mappingClass',
render: (_, row) => {
let data = { wisdom: '智慧类', monitor: '监测类', other: '其他' }
return data[row.mappingClass]
}
},
{ {
title: '关联时间', title: '关联时间',
dataIndex: "createTime", dataIndex: "createTime",
key: 'time', key: 'time',
render: (_, row) => { render: (_, row) => {
return moment(row.createTime).format("YYYY-MM-DD HH:mm:ss")||'无'; return moment(row.createTime).format("YYYY-MM-DD HH:mm:ss") || '无';
} }
}, },
{ {
@ -237,7 +245,7 @@ const Example = (props) => {
dataIndex: "updateTime", dataIndex: "updateTime",
key: 'updateTime', key: 'updateTime',
render: (_, row) => { render: (_, row) => {
return (row.updateTime?moment(row.updateTime).format("YYYY-MM-DD HH:mm:ss"):moment(row.createTime).format("YYYY-MM-DD HH:mm:ss")); return (row.updateTime ? moment(row.updateTime).format("YYYY-MM-DD HH:mm:ss") : moment(row.createTime).format("YYYY-MM-DD HH:mm:ss"));
} }
}, },
{ {
@ -245,7 +253,7 @@ const Example = (props) => {
dataIndex: "pepUserName", dataIndex: "pepUserName",
key: 'pepUserName', key: 'pepUserName',
render: (_, row) => { render: (_, row) => {
return row.pepUserName||'无' return row.pepUserName || '无'
} }
}, },
{ {

Loading…
Cancel
Save