From c6fbd0327644559baf534467ae1cc8a853212e7d Mon Sep 17 00:00:00 2001 From: jiang <893224616@qq.com> Date: 星期一, 18 七月 2022 17:09:35 +0800 Subject: [PATCH] 增加用户管理功能。管理员可以添加删除用户、修改用户密码、重置pushkey --- web_src/src/components/live.vue | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/web_src/src/components/live.vue b/web_src/src/components/live.vue index 797be84..1f2d6ca 100644 --- a/web_src/src/components/live.vue +++ b/web_src/src/components/live.vue @@ -107,20 +107,24 @@ console.log(idx); this.clear(idx.substring(idx.length - 1)) }, - clickEvent: function (data) { - if (data.channelId && data.subCount == 0) { - this.sendDevicePush(data) + clickEvent: function (device, data, isCatalog) { + if (data.channelId && !isCatalog) { + if (device.online === 0) { + this.$message.error('璁惧绂荤嚎!涓嶅厑璁哥偣鎾�'); + }else { + this.sendDevicePush(data) + } } }, - contextMenuEvent: function (data) { + contextMenuEvent: function (device, event, data, isCatalog) { }, //閫氱煡璁惧涓婁紶濯掍綋娴� sendDevicePush: function (itemData) { - if (itemData.status === 0) { - this.$message.error('璁惧绂荤嚎!'); - return - } + // if (itemData.status === 0) { + // this.$message.error('璁惧绂荤嚎!'); + // return + // } this.save(itemData) let deviceId = itemData.deviceId; // this.isLoging = true; -- Gitblit v1.8.0