|
@@ -64,7 +64,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button type="success" plain icon="el-icon-s-tools" size="mini"
|
|
|
- v-hasPermi="['system:manage:add']" @click="healthInterval = true">健康阈值设置</el-button>
|
|
|
+ v-hasPermi="['system:manage:add']" @click="getDeviceInterval">健康阈值设置</el-button>
|
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
@@ -680,7 +680,8 @@ import {
|
|
|
getDeviceSetting,
|
|
|
addClock,
|
|
|
getClock,
|
|
|
- deleteClock
|
|
|
+ deleteClock,
|
|
|
+ getInterval
|
|
|
}
|
|
|
from "@/api/system/device";
|
|
|
import { listProfile, getProfile } from "@/api/system/profile";
|
|
@@ -858,38 +859,38 @@ export default {
|
|
|
add_flag: true,
|
|
|
checkedFence: null,
|
|
|
items: [],
|
|
|
- // intervalRules: {
|
|
|
- // shouhuan_heart_max: [
|
|
|
- // {required: true, message: '请输入最大心率', trigger: 'blur'}
|
|
|
- // ],
|
|
|
- // shouhuan_heart_min: [
|
|
|
- // {required: true, message: '请输入最小心率', trigger: 'blur'}
|
|
|
- // ],
|
|
|
- // shouhuan_blood_high_max: [
|
|
|
- // {required: true, message: '请输入最大高压', trigger: 'blur'}
|
|
|
- // ],
|
|
|
- // shouhuan_blood_high_min: [
|
|
|
- // {required: true, message: '请输入最小高压', trigger: 'blur'}
|
|
|
- // ],
|
|
|
- // shouhuan_blood_low_max: [
|
|
|
- // {required: true, message: '请输入最大低压', trigger: 'blur'}
|
|
|
- // ],
|
|
|
- // shouhuan_blood_low_min: [
|
|
|
- // {required: true, message: '请输入最小低压', trigger: 'blur'}
|
|
|
- // ],
|
|
|
- // shouhuan_oxygen_max: [
|
|
|
- // {required: true, message: '请输入最大血氧', trigger: 'blur'}
|
|
|
- // ],
|
|
|
- // shouhuan_oxygen_min: [
|
|
|
- // {required: true, message: '请输入最小血氧', trigger: 'blur'}
|
|
|
- // ],
|
|
|
- // shouhuan_body_max: [
|
|
|
- // {required: true, message: '请输入最大体温', trigger: 'blur'}
|
|
|
- // ],
|
|
|
- // shouhuan_body_min: [
|
|
|
- // {required: true, message: '请输入最小体温', trigger: 'blur'}
|
|
|
- // ],
|
|
|
- // }
|
|
|
+ intervalRules: {
|
|
|
+ // shouhuan_heart_max: [
|
|
|
+ // {required: true, message: '请输入最大心率', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // shouhuan_heart_min: [
|
|
|
+ // {required: true, message: '请输入最小心率', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // shouhuan_blood_high_max: [
|
|
|
+ // {required: true, message: '请输入最大高压', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // shouhuan_blood_high_min: [
|
|
|
+ // {required: true, message: '请输入最小高压', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // shouhuan_blood_low_max: [
|
|
|
+ // {required: true, message: '请输入最大低压', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // shouhuan_blood_low_min: [
|
|
|
+ // {required: true, message: '请输入最小低压', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // shouhuan_oxygen_max: [
|
|
|
+ // {required: true, message: '请输入最大血氧', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // shouhuan_oxygen_min: [
|
|
|
+ // {required: true, message: '请输入最小血氧', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // shouhuan_body_max: [
|
|
|
+ // {required: true, message: '请输入最大体温', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // shouhuan_body_min: [
|
|
|
+ // {required: true, message: '请输入最小体温', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -996,6 +997,36 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ getDeviceInterval() {
|
|
|
+ this.healthInterval = true
|
|
|
+ getInterval().then(res => {
|
|
|
+ if (res && res.code == 200) {
|
|
|
+ res.data.map(item => {
|
|
|
+ if (item.useKey == 'shouhuan_heart_min' && item.useValue) {
|
|
|
+ this.$set(this.deviceInterval, 'shouhuan_heart_min', item.useValue)
|
|
|
+ } else if (item.useKey == 'shouhuan_heart_max' && item.useValue) {
|
|
|
+ this.$set(this.deviceInterval, 'shouhuan_heart_max', item.useValue)
|
|
|
+ } else if (item.useKey == 'shouhuan_blood_high_min' && item.useValue) {
|
|
|
+ this.$set(this.deviceInterval, 'shouhuan_blood_high_min', item.useValue)
|
|
|
+ } else if (item.useKey == 'shouhuan_blood_high_max' && item.useValue) {
|
|
|
+ this.$set(this.deviceInterval, 'shouhuan_blood_high_max', item.useValue)
|
|
|
+ } else if (item.useKey == 'shouhuan_blood_low_min' && item.useValue) {
|
|
|
+ this.$set(this.deviceInterval, 'shouhuan_blood_low_min', item.useValue)
|
|
|
+ } else if (item.useKey == 'shouhuan_blood_low_max' && item.useValue) {
|
|
|
+ this.$set(this.deviceInterval, 'shouhuan_blood_low_max', item.useValue)
|
|
|
+ } else if (item.useKey == 'shouhuan_oxygen_min' && item.useValue) {
|
|
|
+ this.$set(this.deviceInterval, 'shouhuan_oxygen_min', item.useValue)
|
|
|
+ } else if (item.useKey == 'shouhuan_oxygen_max' && item.useValue) {
|
|
|
+ this.$set(this.deviceInterval, 'shouhuan_oxygen_max', item.useValue)
|
|
|
+ } else if (item.useKey == 'shouhuan_body_min' && item.useValue) {
|
|
|
+ this.$set(this.deviceInterval, 'shouhuan_body_min', item.useValue)
|
|
|
+ } else if (item.useKey == 'shouhuan_body_max' && item.useValue) {
|
|
|
+ this.$set(this.deviceInterval, 'shouhuan_body_max', item.useValue)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
subDeviceInterval() {
|
|
|
setDeviceInterval(this.deviceInterval).then(res => {
|
|
|
if (res.code == 200) {
|