jyjxShiziduiwu.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view class="dljt-page-box">
  3. <MtaNavbar></MtaNavbar>
  4. <view class="dljt-container-box">
  5. <view class="dljt-page-title">教育教学</view>
  6. <view class="dljt-page-content-box">
  7. <view class="dljt-breadcrumb-box">
  8. <view class="breadcrumb-text" @click="handleGo()">首页</view>
  9. <icon class="breadcrumb-jt"></icon>
  10. <view class="breadcrumb-active">师资队伍</view>
  11. </view>
  12. <MtaScrollViewVue :refreshFn="getList">
  13. <template v-slot="{ list }">
  14. <view class="data-content-item" v-for="item in list" :key="item.id" @click="handleClick(item)">
  15. <view class="list-time-box">
  16. <view class="time-data">{{formatDateToYearMonthDay(item.createTime)[1]}}</view>
  17. <view class="time-year">{{formatDateToYearMonthDay(item.createTime)[0]}}</view>
  18. </view>
  19. <view class="list-title-box"> {{item.title}} </view>
  20. </view>
  21. </template>
  22. </MtaScrollViewVue>
  23. </view>
  24. <!-- 底部导航 -->
  25. <MtaFooter></MtaFooter>
  26. </view>
  27. </view>
  28. </template>
  29. <script setup>
  30. import {
  31. ref,
  32. reactive
  33. } from "vue";
  34. import {
  35. onLoad
  36. } from "@dcloudio/uni-app"
  37. import * as httpApi from "@/api/common.js"
  38. import MtaScrollViewVue from "@/components/MtaScrollView/MtaScrollView.vue";
  39. import {
  40. formatDateToYearMonthDay,
  41. getStringByHtml3
  42. } from "@/utils/common.js"
  43. import MtaFooter from "@/components/MtaFooter.vue"
  44. const data = reactive({
  45. list: '',
  46. total: '',
  47. page: 1,
  48. size: 5
  49. })
  50. function handleClick(data) {
  51. uni.navigateTo({
  52. url: `/pages/dqgzDangjiangongzuoInfo/dqgzDangjiangongzuoInfo?id=${data.id}`
  53. })
  54. }
  55. function getList(data) {
  56. return httpApi.getJiaoyuShiziList(data)
  57. }
  58. function handleGo() {
  59. uni.navigateTo({
  60. url: '/pages/index/index'
  61. })
  62. }
  63. function pageInit() {
  64. httpApi.getJiaoyuShiziList({page:data.page,size:data.size}).then(res => {
  65. data.list = res.data.data;
  66. data.total = res.data.total;
  67. })
  68. }
  69. </script>
  70. <style>
  71. </style>