zhangzengfei
2022-09-02 8c2b6a50e1a357a97d8aafd9937e87088f8d91de
修改区域删除时的提示
2个文件已修改
13 ■■■■■ 已修改文件
src/views/hashrate/CameraManage/CameraRules/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/personalCenter/components/SubAccount.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hashrate/CameraManage/CameraRules/index.vue
@@ -489,10 +489,10 @@
      polyon.camera_id = this.Camera.cameraId
      savePolygon(polyon).then((rsp) => {
        if (rsp && rsp.success) {
          if (rsp.data.indexOf("失败") >= 0) {
          if (rsp.data.msg.indexOf("失败") >= 0) {
            this.$message({ type: "error", duration: 5000, message: rsp.data + " 区域已关联场景, 无法删除" })
          } else {
            this.$message.success(rsp.data)
            this.$message.success(rsp.data.msg)
          }
        }
        this.Camera.getPolygon()
src/views/personalCenter/components/SubAccount.vue
@@ -442,8 +442,12 @@
      this.smsEnable = false
      findTaskById({ id: row.id }).then((rsp) => {
        if (rsp && rsp.success && rsp.data != "") {
          this.smsSceneConfig = rsp.data.taskName.split(",")
          this.smsLevelConfig = rsp.data.level.split(",")
          if (rsp.data.taskName != "") {
            this.smsSceneConfig = rsp.data.taskName.split(",")
          }
          if (rsp.data.level != "") {
            this.smsLevelConfig = rsp.data.level.split(",")
          }
          this.smsEnable = rsp.data.enable
        }
      })
@@ -551,6 +555,7 @@
          // 编辑不提交密码
          if (this.isEditing) {
            delete json.password
            json.isChangePwd = false
          }
          if (typeof json.areaId === "string") {