Browse Source

09-14 改bug

haodingding 1 year ago
parent
commit
e61443d981
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/views/system/device/index.vue

+ 7 - 7
src/views/system/device/index.vue

@@ -918,7 +918,7 @@ export default {
             this.$modal.msgError('SOS设置失败')
           }
         })
-      } else if (Object.keys(this.intervalForm).length && this.settingPage == 'sos') {
+      } else if (Object.keys(this.intervalForm).length && this.settingPage == 'measureInterval') {
         let obj = {}
         obj.facility_id = this.setUser.fid
         obj.device_id_code = this.setUser.deviceId
@@ -938,7 +938,7 @@ export default {
             this.$modal.msgError('测量间隔设置失败')
           }
         })
-      } else if (Object.keys(this.pedoForm).length && this.settingPage == 'sos') {
+      } else if (Object.keys(this.pedoForm).length && this.settingPage == 'stepCount') {
         let is_open = this.pedoForm.isopen ? 1 : 0
         let obj = {}
         obj.facility_id = this.setUser.fid
@@ -959,7 +959,7 @@ export default {
             this.$modal.msgError('计步设置失败')
           }
         })
-      } else if (Object.keys(this.telForm).length && this.settingPage == 'sos') {
+      } else if (Object.keys(this.telForm).length && this.settingPage == 'contacts') {
         let arr = []
         if (this.telForm.tel1 && this.telForm.name1) {
           arr.push({ telno: this.telForm.tel1, name: this.telForm.name1 })
@@ -989,7 +989,7 @@ export default {
             this.$modal.msgError('通讯录设置失败')
           }
         })
-      } else if (Object.keys(this.onoffForm).length && this.settingPage == 'sos') {
+      } else if (Object.keys(this.onoffForm).length && this.settingPage == 'timeOnOff') {
         this.onoffForm.is_open = this.onoffForm.is_open ? 1 : 0
         let obj = {}
         obj.facility_id = this.setUser.fid
@@ -1010,7 +1010,7 @@ export default {
             this.$modal.msgError('定时开关机设置失败')
           }
         })
-      } else if (Object.keys(this.wearForm).length && this.settingPage == 'sos') {
+      } else if (Object.keys(this.wearForm).length && this.settingPage == 'wearNotice') {
         this.wearForm.is_open = this.wearForm.is_open ? 1 : 0
         let obj = {}
         obj.facility_id = this.setUser.fid
@@ -1031,7 +1031,7 @@ export default {
             this.$modal.msgError('定时开关机设置失败')
           }
         })
-      } else if (this.clockList.length && this.settingPage == 'sos') {
+      } else if (this.clockList.length && this.settingPage == 'clock') {
         this.clockList.map(item => {
           if (item.weeks.length) {
             item.type = 3
@@ -1058,7 +1058,7 @@ export default {
             this.$modal.msgError('闹钟设置失败')
           }
         })
-      } else if (Object.keys(this.fallForm).length && this.settingPage == 'sos') {
+      } else if (Object.keys(this.fallForm).length && this.settingPage == 'fallNotice') {
         this.fallForm.is_open = this.onoffForm.is_open ? 1 : 0
         let obj = {}
         obj.facility_id = this.setUser.fid