diff --git a/src/components/Panel/Panel.vue b/src/components/Panel/Panel.vue
index 46f133a..463cf05 100644
--- a/src/components/Panel/Panel.vue
+++ b/src/components/Panel/Panel.vue
@@ -21,7 +21,7 @@
{{ maintenanceDose }}
-
+
{{ info }}
@@ -32,6 +32,7 @@
+
@@ -54,15 +55,18 @@ export default {
},
lists: ['呼叫', '分诊', '一线', '采血', '心电', 'CT', '二线', '谈话', '签字', '团注', '介入', '置鞘', '病房'],
info: '呼叫',
+ cirAni: false,
+ cirTimer: null,
};
},
computed: mapState('messages', ['weightMessage', 'bolusDose', 'maintenanceDose', 'thrombolyticDose', 'startMessages', 'rfidMessage']),
watch: {
rfidMessage(val) {
- if (this.startMessages || val.step === '0') {
+ if (this.startMessages || val.step === '0' || val.type - 0 === 0) {
this.percent = 0;
this.percentA = 0;
this.info = '呼叫';
+ this.startCirAni();
this.setStartMessages(false);
} else {
if ((val.step || val.step === '0') && val.step - 0 >= (this.percent * 12) / 100 && val.step - 0 <= 12) {
@@ -79,11 +83,27 @@ export default {
this.percent = 0;
this.percentA = 0;
this.info = '呼叫';
+ this.startCirAni(val);
this.setStartMessages(false);
}
},
},
- methods: { ...mapMutations('messages', ['setStartMessages']) },
+ methods: {
+ ...mapMutations('messages', ['setStartMessages']),
+ startCirAni(val) {
+ console.log('val: ', val);
+ if (!this.cirTimer) {
+ const that = this;
+ this.cirTimer = setInterval(() => {
+ that.cirAni = !that.cirAni;
+ }, 500);
+ setTimeout(() => {
+ clearInterval(that.cirTimer);
+ that.cirTimer = null;
+ }, 3100);
+ }
+ },
+ },
// mounted() {
// const that = this;
// var add = setInterval(function() {
@@ -100,6 +120,17 @@ export default {