部署牧安云哨
This commit is contained in:
@@ -170,13 +170,13 @@ export function useColumns<T = SystemUserApi.SystemUser>(
|
||||
field: 'online',
|
||||
slots: { default: 'status' },
|
||||
title: '当前状态',
|
||||
width: 100,
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
field: 'device_type',
|
||||
slots: { default: 'deviceType' },
|
||||
title: '设备类型',
|
||||
width: 100,
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
field: 'dept_name',
|
||||
@@ -192,15 +192,6 @@ export function useColumns<T = SystemUserApi.SystemUser>(
|
||||
title: '可用性',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
cellRender: {
|
||||
attrs: { beforeChange: onIsSuperUserChange },
|
||||
name: onIsSuperUserChange ? 'CellSwitch' : 'CellTag',
|
||||
},
|
||||
field: 'is_superuser',
|
||||
title: '管理员',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
field: 'remark',
|
||||
title: '备注',
|
||||
@@ -256,6 +247,15 @@ export function useColumns<T = SystemUserApi.SystemUser>(
|
||||
title: '创建时间',
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
cellRender: {
|
||||
attrs: { beforeChange: onIsSuperUserChange },
|
||||
name: onIsSuperUserChange ? 'CellSwitch' : 'CellTag',
|
||||
},
|
||||
field: 'is_superuser',
|
||||
title: '管理员',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
field: 'operation',
|
||||
title: '操作',
|
||||
|
||||
@@ -202,8 +202,8 @@ let ws: null | WebSocket = null;
|
||||
|
||||
function createWs(token: string) {
|
||||
ws = new WebSocket(
|
||||
// `wss://ai.ronsunny.cn:8090/ai/iot/ws/device-status?token=${token}`,
|
||||
`ws://127.0.0.1:13011/iot/ws/device-status?token=${token}`,
|
||||
`wss://ai.ronsunny.cn:8090/ai/iot/ws/device-status?token=${token}`,
|
||||
// `ws://127.0.0.1:13011/iot/ws/device-status?token=${token}`,
|
||||
);
|
||||
wsState.ws = ws;
|
||||
|
||||
|
||||
@@ -172,7 +172,8 @@ function createWs(token: string) {
|
||||
}
|
||||
|
||||
ws = new WebSocket(
|
||||
`ws://127.0.0.1:13011/iot/ws/sentinel_record?token=${token}`,
|
||||
// `ws://127.0.0.1:13011/iot/ws/sentinel_record?token=${token}`,
|
||||
`wss://ai.ronsunny.cn:8090/ai/iot/ws/sentinel_record?token=${token}`,
|
||||
);
|
||||
|
||||
ws.onmessage = (e) => {
|
||||
|
||||
Reference in New Issue
Block a user