Merge remote-tracking branch 'origin/main' into practical-training
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/**管理员-系统指定角色KEY */
|
/**系统管理员-系统指定角色KEY */
|
||||||
export const ADMIN_ROLE_KEY = 'admin';
|
export const ADMIN_ROLE_KEY = 'system';
|
||||||
|
|
||||||
/**管理员-系统指定权限 */
|
/**系统管理员-系统指定权限 */
|
||||||
export const ADMIN_PERMISSION = '*:*:*';
|
export const ADMIN_PERMISSION = '*:*:*';
|
||||||
|
|||||||
@@ -277,6 +277,9 @@ function fnChangeData(data: any[], itemID: string) {
|
|||||||
if (men > 100) {
|
if (men > 100) {
|
||||||
men = +(men / 100).toFixed(2);
|
men = +(men / 100).toFixed(2);
|
||||||
}
|
}
|
||||||
|
if (men > 100) {
|
||||||
|
men = 100;
|
||||||
|
}
|
||||||
sysMemUsage = men;
|
sysMemUsage = men;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ let tableColumns: ColumnsType = [
|
|||||||
title: t('common.rowId'),
|
title: t('common.rowId'),
|
||||||
dataIndex: 'num',
|
dataIndex: 'num',
|
||||||
width: '50px',
|
width: '50px',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
const idxNum = (tablePagination.current - 1) * tablePagination.pageSize;
|
const idxNum = (tablePagination.current - 1) * tablePagination.pageSize;
|
||||||
return idxNum + opt.index + 1;
|
return idxNum + opt.index + 1;
|
||||||
@@ -54,17 +54,17 @@ let tableColumns: ColumnsType = [
|
|||||||
{
|
{
|
||||||
title: t('views.monitor.online.mettingId'),
|
title: t('views.monitor.online.mettingId'),
|
||||||
dataIndex: 'tokenId',
|
dataIndex: 'tokenId',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.monitor.online.account'),
|
title: t('views.monitor.online.account'),
|
||||||
dataIndex: 'userName',
|
dataIndex: 'userName',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.monitor.online.host'),
|
title: t('views.monitor.online.host'),
|
||||||
dataIndex: 'ipaddr',
|
dataIndex: 'ipaddr',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: t('views.monitor.online.loginDes'),
|
// title: t('views.monitor.online.loginDes'),
|
||||||
@@ -74,17 +74,17 @@ let tableColumns: ColumnsType = [
|
|||||||
{
|
{
|
||||||
title: t('views.monitor.online.os'),
|
title: t('views.monitor.online.os'),
|
||||||
dataIndex: 'os',
|
dataIndex: 'os',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.monitor.online.lib'),
|
title: t('views.monitor.online.lib'),
|
||||||
dataIndex: 'browser',
|
dataIndex: 'browser',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.monitor.online.loginTime'),
|
title: t('views.monitor.online.loginTime'),
|
||||||
dataIndex: 'loginTime',
|
dataIndex: 'loginTime',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
if (+opt.value <= 0) return '';
|
if (+opt.value <= 0) return '';
|
||||||
return parseDateToStr(+opt.value);
|
return parseDateToStr(+opt.value);
|
||||||
@@ -93,7 +93,7 @@ let tableColumns: ColumnsType = [
|
|||||||
{
|
{
|
||||||
title: t('common.operate'),
|
title: t('common.operate'),
|
||||||
key: 'tokenId',
|
key: 'tokenId',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -220,6 +220,12 @@ function fnModalVisibleByEdit(row?: Record<string, any>) {
|
|||||||
* 进行表达规则校验
|
* 进行表达规则校验
|
||||||
*/
|
*/
|
||||||
function fnModalEditOk(from: Record<string, any>) {
|
function fnModalEditOk(from: Record<string, any>) {
|
||||||
|
// 新增时刷新列表
|
||||||
|
if (!from.id) {
|
||||||
|
fnGetList();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// 编辑时局部更新信息
|
||||||
stateNeInfo(from.neType, from.neId)
|
stateNeInfo(from.neType, from.neId)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
// 找到编辑更新的网元
|
// 找到编辑更新的网元
|
||||||
|
|||||||
@@ -1252,7 +1252,7 @@ onMounted(() => {
|
|||||||
<a-form-item :label="t('views.neUser.sub.neType')" name="neId ">
|
<a-form-item :label="t('views.neUser.sub.neType')" name="neId ">
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="queryParams.neId"
|
v-model:value="queryParams.neId"
|
||||||
:options="dict.udmSubCNType"
|
:options="neOtions"
|
||||||
:placeholder="t('common.selectPlease')"
|
:placeholder="t('common.selectPlease')"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user