|
@@ -58,7 +58,6 @@
|
|
|
<view class="btn1" @click="goMoreSetting">更多设置</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <alarModel v-if="isInitAlarm" />
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -68,7 +67,6 @@ export default {
|
|
|
devInfo: "",
|
|
|
devName: "",
|
|
|
position: "",
|
|
|
- isInitAlarm: "",
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -145,18 +143,12 @@ export default {
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.devInfo = JSON.parse(options.devInfo);
|
|
|
- this.isInitAlarm = true;
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.isInitAlarm = true;
|
|
|
this.getPosition(this.devInfo.installPosition);
|
|
|
},
|
|
|
- onUnload() {
|
|
|
- this.isInitAlarm = false;
|
|
|
- },
|
|
|
- onHide() {
|
|
|
- this.isInitAlarm = false;
|
|
|
- },
|
|
|
+ onUnload() {},
|
|
|
+ onHide() {},
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less">
|