|
@@ -823,9 +823,6 @@ export default {
|
|
|
data: data,
|
|
|
showSymbol: false,
|
|
|
lineStyle: { color: "#7a4e42", width: 2 },
|
|
|
- // animation: true,
|
|
|
- // animationDuration: 300,
|
|
|
- // animationEasing: "linear",
|
|
|
},
|
|
|
],
|
|
|
};
|
|
@@ -838,7 +835,7 @@ export default {
|
|
|
icon: "none",
|
|
|
duration: 1500,
|
|
|
});
|
|
|
- // return;
|
|
|
+ return;
|
|
|
}
|
|
|
this.breathShow = true;
|
|
|
this.$nextTick(() => {
|
|
@@ -868,27 +865,8 @@ export default {
|
|
|
const option = this.getOption(this.breathRpmList);
|
|
|
this.chartInstance.setOption(option, { notMerge: true });
|
|
|
},
|
|
|
-
|
|
|
- startLoop() {
|
|
|
- // 每 500ms 调用一次 receptHealth
|
|
|
- this.loopTimer = setInterval(() => {
|
|
|
- const val = Math.floor(Math.random() * 30);
|
|
|
- this.receptHealth(val);
|
|
|
- }, 300);
|
|
|
- },
|
|
|
- stopLoop() {
|
|
|
- if (this.loopTimer) {
|
|
|
- clearInterval(this.loopTimer);
|
|
|
- this.loopTimer = null;
|
|
|
- }
|
|
|
- },
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- this.startLoop(); // 页面加载后开始循环
|
|
|
- },
|
|
|
- beforeDestroy() {
|
|
|
- this.stopLoop(); // 页面销毁时停止循环
|
|
|
},
|
|
|
+
|
|
|
onShow() {
|
|
|
this.clientIdProp = uni.getStorageSync("clientIDetail");
|
|
|
this.isInitAlarm = true;
|