修改健康宣教
This commit is contained in:
parent
f6531e6cf2
commit
81857d528e
@ -9,3 +9,12 @@ export function getList(query) {
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 查询宣教列表
|
||||
export function signnodegetNodeListByPatient(query) {
|
||||
return request({
|
||||
url: '/manage/signnode/getNodeListByPatient',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<div class="bodytop">
|
||||
<div class="titletop">文章模板:{{ 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 v-html="categoryItem.propagandaContent"></div>
|
||||
</div>
|
||||
@ -24,6 +24,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
signnodegetNodeListByPatient,
|
||||
getList
|
||||
} from '@/api/manage/healthEducation'
|
||||
export default {
|
||||
@ -54,12 +55,13 @@ export default {
|
||||
},
|
||||
info() {
|
||||
this.query.patientId = this.$route.query.patientId
|
||||
getList(this.query).then(res => {
|
||||
signnodegetNodeListByPatient(this.query).then(res => {
|
||||
if (res.data.length > 0) {
|
||||
res.data.forEach(e => {
|
||||
e.nodeList.forEach(el => {
|
||||
this.categorylist.push(el)
|
||||
})
|
||||
this.categorylist.push(e.detailInfo)
|
||||
// e.detailInfo.forEach(el => {
|
||||
// this.categorylist.push(el)
|
||||
// })
|
||||
})
|
||||
this.categoryItem = this.categorylist[0]
|
||||
}
|
||||
@ -152,4 +154,4 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user