领悟 4 months ago
parent
commit
ef8c5c5b5f
  1. 19
      src/views/thrombolysis/components/throm-before4.vue
  2. 19
      src/views/thrombolysis/components/throm-interfere-informed.vue

19
src/views/thrombolysis/components/throm-before4.vue

@ -177,7 +177,8 @@
queryConsentResult, queryConsentResult,
thTime, thTime,
uploadBase64, uploadBase64,
queryVideo queryVideo,
queryBook
} from 'api'; } from 'api';
export default { export default {
name: 'ThromBefor4', name: 'ThromBefor4',
@ -270,6 +271,7 @@
created() { created() {
// console.log('book', this.book) // console.log('book', this.book)
this.queryVideo() this.queryVideo()
// this.queryBook()
this.content = this.book.find((item) => item.type === 0)?.content || ''; this.content = this.book.find((item) => item.type === 0)?.content || '';
// console.log(this.content); // console.log(this.content);
}, },
@ -384,6 +386,20 @@
// //
} }
}, },
async queryBook() {
let res = await queryBook({
type: 0
});
const {
data,
code,
msg
} = res;
console.log('溶栓 book', data)
if (code === 200) {
this.setBook(data);
}
},
async queryConsentResult() { async queryConsentResult() {
const { const {
firstAidId firstAidId
@ -399,6 +415,7 @@
msg msg
} = res; } = res;
if (code === 200) { if (code === 200) {
console.log('result 溶栓', data)
this.utils.merge(this.informed, data); this.utils.merge(this.informed, data);
} }
}, },

19
src/views/thrombolysis/components/throm-interfere-informed.vue

@ -183,7 +183,8 @@
queryConsentResult, queryConsentResult,
thTime, thTime,
uploadBase64, uploadBase64,
queryVideo queryVideo,
queryBook
} from 'api'; } from 'api';
export default { export default {
name: 'ThromBefor4', name: 'ThromBefor4',
@ -276,6 +277,7 @@
created() { created() {
// console.log('book', this.book) // console.log('book', this.book)
this.queryVideo() this.queryVideo()
// this.queryBook(); //
this.content = this.book.find((item) => item.type === 1)?.content || ''; this.content = this.book.find((item) => item.type === 1)?.content || '';
// console.log(this.content); // console.log(this.content);
}, },
@ -296,6 +298,18 @@
uploadImage() { uploadImage() {
}, },
async queryBook() {
let res = await queryBook({type: 1});
const {
data,
code,
msg
} = res;
console.log('介入 book', data)
if (code === 200) {
this.setBook(data);
}
},
async queryVideo() { async queryVideo() {
let res = await queryVideo(); let res = await queryVideo();
@ -323,7 +337,7 @@
...informed, ...informed,
firstAidId, firstAidId,
templateText: this.content, templateText: this.content,
type: 0, type: 1,
}); });
const { const {
code, code,
@ -405,6 +419,7 @@
msg msg
} = res; } = res;
if (code === 200) { if (code === 200) {
console.log('result 溶栓',this.informed, data)
this.utils.merge(this.informed, data); this.utils.merge(this.informed, data);
} }
}, },

Loading…
Cancel
Save