Browse Source

bug修改

release_1.2.1
wenlele 2 years ago
parent
commit
8f2f0eb0ed
  1. 2
      code/VideoAccess-VCMP/web/client/src/sections/application/actions/application.js
  2. 21
      code/VideoAccess-VCMP/web/client/src/sections/application/containers/applicationCenter.jsx

2
code/VideoAccess-VCMP/web/client/src/sections/application/actions/application.js

@ -24,7 +24,7 @@ export function putApplication (data) {
actionType: "PUT_APPLICATION",
data,
url: `${ApiTable.putApplication}`,
msg: { option: data?.forbidden ? "启用" : "禁用" }, //禁用摄像头
msg: { option: data?.forbidden ? "禁用" : "启用" }, //禁用摄像头
reducer: {},
});
}

21
code/VideoAccess-VCMP/web/client/src/sections/application/containers/applicationCenter.jsx

@ -48,9 +48,17 @@ const ApplicationCenter = (props) => {
dataIndex: "name",
key: "name",
render: (text, r, index) => {
return r?.name.length > 8 ? `${r?.name.substr(0, 8)}...` : r?.name
return r?.name.length > 8 ? <Popover
position='top'
content={
<article style={{ padding: 12 }}>
{r?.name}
</article>
}
>{
`${r?.name.substr(0, 8)}...`}
</Popover> : r?.name
},
},
{
title: "APPID",
@ -142,7 +150,7 @@ const ApplicationCenter = (props) => {
dataIndex: "createTime",
key: "createTime",
render: (_, r, index) => {
return r?.createUser?.name
return moment(r.createTime).format("YYYY-MM-DD HH:mm:ss");
},
},
{
@ -150,7 +158,7 @@ const ApplicationCenter = (props) => {
dataIndex: "createUserId",
key: "account",
render: (_, r, index) => {
return moment(r.createTime).format("YYYY-MM-DD HH:MM:SS");
return r?.createUser?.name
},
},
{
@ -158,8 +166,9 @@ const ApplicationCenter = (props) => {
dataIndex: "type",
key: "applicationType",
render: (_, r, index) => {
const type = r?.type?.map((item, index) => item + ';')
return type
const types = { web: 'web', app: 'app', wxapp: '小程序', other: '其他' }
return r?.type?.map((item, index) => types[item] + ';')
},
},
];

Loading…
Cancel
Save