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 () {}); },