修改健康宣教

This commit is contained in:
shidongli 2024-05-31 14:46:09 +08:00
parent f6531e6cf2
commit 81857d528e
2 changed files with 17 additions and 6 deletions

View File

@ -9,3 +9,12 @@ export function getList(query) {
params: query params: query
}) })
} }
// 查询宣教列表
export function signnodegetNodeListByPatient(query) {
return request({
url: '/manage/signnode/getNodeListByPatient',
method: 'get',
params: query
})
}

View File

@ -13,7 +13,7 @@
<div class="bodytop"> <div class="bodytop">
<div class="titletop">文章模板:{{ categoryItem.propagandaTitle }}</div> <div class="titletop">文章模板:{{ categoryItem.propagandaTitle }}</div>
<div class="titledata">{{ categoryItem.propagandaTitle }}</div> <div class="titledata">{{ categoryItem.propagandaTitle }}</div>
<img :src="baseUrl + categoryItem.detailInfo.propagandaCoverPath" alt="" /> <img :src="baseUrl + categoryItem.propagandaCoverPath" alt="" />
<div class="know">知识卡片</div> <div class="know">知识卡片</div>
<div v-html="categoryItem.propagandaContent"></div> <div v-html="categoryItem.propagandaContent"></div>
</div> </div>
@ -24,6 +24,7 @@
</template> </template>
<script> <script>
import { import {
signnodegetNodeListByPatient,
getList getList
} from '@/api/manage/healthEducation' } from '@/api/manage/healthEducation'
export default { export default {
@ -54,12 +55,13 @@ export default {
}, },
info() { info() {
this.query.patientId = this.$route.query.patientId this.query.patientId = this.$route.query.patientId
getList(this.query).then(res => { signnodegetNodeListByPatient(this.query).then(res => {
if (res.data.length > 0) { if (res.data.length > 0) {
res.data.forEach(e => { res.data.forEach(e => {
e.nodeList.forEach(el => { this.categorylist.push(e.detailInfo)
this.categorylist.push(el) // e.detailInfo.forEach(el => {
}) // this.categorylist.push(el)
// })
}) })
this.categoryItem = this.categorylist[0] this.categoryItem = this.categorylist[0]
} }
@ -152,4 +154,4 @@ export default {
} }
} }
} }
</style> </style>