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

46
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();
@ -225,28 +224,37 @@ const Example = (props) => {
} }
}, },
{ {
title: '关联时间', title: '映射类型',
dataIndex: "createTime", dataIndex: "mappingClass",
key: 'time', key: 'mappingClass',
render: (_, row) => { render: (_, row) => {
return moment(row.createTime).format("YYYY-MM-DD HH:mm:ss")||'无'; let data = { wisdom: '智慧类', monitor: '监测类', other: '其他' }
} return data[row.mappingClass]
}
},
{
title: '关联时间',
dataIndex: "createTime",
key: 'time',
render: (_, row) => {
return moment(row.createTime).format("YYYY-MM-DD HH:mm:ss") || '无';
}
}, },
{ {
title: '修改时间', title: '修改时间',
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"));
} }
}, },
{ {
title: '添加人员', title: '添加人员',
dataIndex: "pepUserName", dataIndex: "pepUserName",
key: 'pepUserName', key: 'pepUserName',
render: (_, row) => { render: (_, row) => {
return row.pepUserName||'无' return row.pepUserName || '无'
} }
}, },
{ {
title: "管理", title: "管理",

Loading…
Cancel
Save