From 311613fe8bae8934de3484674aeea5ecfb5c7171 Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Thu, 15 Sep 2022 17:34:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=9A=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E5=88=A0=E9=99=A4=20=E6=B7=BB=E5=8A=A0=20=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/video/site/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/iot/video/site/index.vue b/src/views/iot/video/site/index.vue index 39da5c35..25614f8a 100644 --- a/src/views/iot/video/site/index.vue +++ b/src/views/iot/video/site/index.vue @@ -937,7 +937,7 @@ export default { const recordIds = row.recordId || this.ids; this.$confirm( // '是否确认删除站点监控编号为"' + recordIds + '"的数据项?', - "是否删除该选项(删除后该站点下的所有摄像头将会被删除)", + "是否删除该选项", "警告", { confirmButtonText: "确定", @@ -948,9 +948,13 @@ export default { .then(function () { return delSite(recordIds); }) - .then(() => { + .then((data) => { + if (data.msg === 'ok') { + this.msgSuccess('删除成功'); + } else { + this.msgError('删除失败,当前站点存在摄像头!'); + } this.getList(); - this.msgSuccess("删除成功"); }) .catch(function () {}); },