| | |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | notice: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | }, |
| | | computed: { |
| | | title() { |
| | |
| | | option: { key_r, index, option }, |
| | | } = this; |
| | | // 通过index获得它在flag数组中的index |
| | | if (index!=undefined) { |
| | | if (index != undefined) { |
| | | let propIdx = Math.floor(index / 25); |
| | | let prop_key_r = key_r[propIdx]; |
| | | let _key_r = datas[prop_key_r]; |
| | |
| | | setModeControl(params) |
| | | .then((res) => { |
| | | let { code, data, msg } = res.data; |
| | | if (code && data && this.notice) { |
| | | this.$notify({ |
| | | title: "注意", |
| | | message: |
| | | "监控管理模式已被置为'手动'模式, 若需要切换需要手动操作", |
| | | type: "warning", |
| | | }); |
| | | } |
| | | this.$layer.close(loading); |
| | | this.$message(msg); |
| | | }) |