index.js 444 B

12345678910111213141516171819202122
  1. import { getGuideList } from "../../../../core/utils/ywtService";
  2. Component({
  3. props: {},
  4. data: {
  5. clinicGuideList: []
  6. },
  7. didMount() {
  8. this.guideList()
  9. },
  10. methods: {
  11. async guideList(pageIndex = 1, pageSize = 50, hospitalId = 41) {
  12. const [err, result] = await getGuideList({pageIndex, pageSize, hospitalId});
  13. if(!err) {
  14. this.setData({
  15. clinicGuideList: result.list
  16. })
  17. }
  18. }
  19. },
  20. });