Browse Source

堆芯

master
maochaoying 2 years ago
parent
commit
4a700d195b
  1. 4
      .env
  2. 10
      src/components/Nuclear.vue
  3. 24
      src/components/User.vue

4
.env

@ -1,4 +1,4 @@
VITE_BASE_URL=http://192.168.1.194:8899
# VITE_BASE_URL=http://192.168.1.194:8899
VITE_WEBSOCKET_JAVA_URL=ws://192.168.1.194:8899/websocket/nuclear
VITE_WEBSOCKET_CAMERA_URL=ws://127.0.0.1:8899/websocket/nuclear
VITE_WEBSOCKET_CAMERA_URL=ws://192.168.1.194:8081/ws/cmd
@ -11,7 +11,7 @@ VITE_HOST_URL=http://192.168.1.194:8081/
# VITE_WEBSOCKET_CAMERA_URL=ws://127.0.0.1:8081/ws/cmd
# VITE_HOST_URL=http://127.0.0.1:8081/
# VITE_BASE_URL=http://192.168.1.111:8899
VITE_BASE_URL=http://192.168.1.111:8899
# VITE_WEBSOCKET_JAVA_URL=ws://192.168.1.111:8899/websocket/nuclear
# # VITE_WEBSOCKET_CAMERA_URL=ws://127.0.0.1:8899/websocket/nuclear
# VITE_WEBSOCKET_CAMERA_URL=ws://192.168.1.111:8899/ws/cmd

10
src/components/Nuclear.vue

@ -217,6 +217,16 @@ export default {
title: '所属核电站',
},
{
colKey: 'brightness',
title: '通道亮度',
cell: (h, { row }) => (row.brightness ? row.brightness : '--'),
},
{
colKey: 'exposure',
title: '曝光时间',
cell: (h, { row }) => (row.exposure ? row.exposure : '--'),
},
{
title: '操作',
cell: (h, { row }) => (
<div>

24
src/components/User.vue

@ -144,16 +144,20 @@ export default {
},
{
title: '操作',
cell: (h, { row }) => (
<div>
<t-button
theme="danger"
onClick={() => this.delUser(row.username)}
>
删除
</t-button>
</div>
),
cell: (h, { row }) => {
if (row.username != 'admin') {
return (
<div>
<t-button
theme="danger"
onClick={() => this.delUser(row.username)}
>
删除
</t-button>
</div>
)
}
},
},
],
}

Loading…
Cancel
Save