Browse Source

0319

master
领悟 4 months ago
parent
commit
b256170965
  1. 6
      src/App.vue
  2. 3
      src/utils/index.js
  3. 12
      src/views/Patient/components/patient-detail.vue

6
src/App.vue

@ -146,8 +146,8 @@
firstAidId
} = this.patientData;
if (!firstAidId) return;
this.queryMessage();
await this.handMessageQuery();
// this.queryMessage();
// await this.handMessageQuery();
this.request = 0;
this.utils.AnimationFrame.create(
@ -270,7 +270,7 @@
//
console.log('十秒');
this.request = n + 1;
// await this.handMessageQuery();
await this.handMessageQuery();
}
},
},

3
src/utils/index.js

@ -276,7 +276,8 @@ function calculateAge(idCard) {
let age = now.getFullYear() - birth.getFullYear();
// 如果生日还没过,年龄减一
if (now.getMonth() < birth.getMonth() || (now.getMonth() === birth.getMonth() && now.getDate() < birth.getDate())) {
if (now.getMonth() < birth.getMonth() || (now.getMonth() === birth.getMonth() && now.getDate() < birth
.getDate())) {
age--;
}

12
src/views/Patient/components/patient-detail.vue

@ -254,7 +254,17 @@
this.authEdit = false
this.$message.success('更新成功');
// this.$router.push('/firstaid/thrombolysis')
this.getMessageQuery(0, data.firstAidId)
// this.getMessageQuery(0, data.firstAidId)
this.request = 0;
this.utils.AnimationFrame.create(
'timerTask',
10000,
true,
(min) => {
// console.log('min', min)
this.getMessageQuery(min);
}
);
this.$router.push({
name: 'Thrombolysis',
query: {

Loading…
Cancel
Save