123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <template>
- <view class="dljt-page-box zhuanye-page">
- <MtaNavbar></MtaNavbar>
- <view class="dljt-container-box">
- <view class="dljt-page-title">教育教学</view>
- <view class="dljt-page-content-box">
- <view class="dljt-breadcrumb-box">
- <view class="breadcrumb-text" @click="handleGo()">首页</view>
- <icon class="breadcrumb-jt"></icon>
- <view class="breadcrumb-text">教育教学</view>
- <icon class="breadcrumb-jt"></icon>
- <view class="breadcrumb-active">专业建设</view>
- </view>
- <view class="zhuanye-list-box">
-
- <view class="zhuanye-item" :class="{active: data.type == 1}" @click="changeType(1)"><icon></icon><text>专业发展</text></view>
- <view class="zhuanye-item" :class="{active: data.type == 2}" @click="changeType(2)"><icon></icon><text>人培方案</text></view>
- <view class="zhuanye-item" :class="{active: data.type == 3}" @click="changeType(3)"><icon></icon><text>课程标准</text></view>
- <view class="zhuanye-item" :class="{active: data.type == 4}" @click="changeType(4)"><icon></icon><text>实训安全</text></view>
- <view class="zhuanye-item" :class="{active: data.type == 5}" @click="changeType(5)"><icon></icon><text>教材管理</text></view>
- </view>
-
- <MtaScrollViewVue :refreshFn="getList" :size="10" :other-option="{type: data.type}" ref="listRef">
- <template v-slot="{ list }">
- <view class="data-content-item" v-for="item in list" :key="item.id" @click="handleClick(item)">
- <view class="list-time-box">
- <view class="time-data">{{formatDateToYearMonthDay(item.createTime)[1]}}</view>
- <view class="time-year">{{formatDateToYearMonthDay(item.createTime)[0]}}</view>
- </view>
- <view class="list-title-box"> {{item.title}} </view>
- </view>
- </template>
- </MtaScrollViewVue>
- </view>
- <!-- 底部导航 -->
- <MtaFooter></MtaFooter>
- </view>
- </view>
- </template>
- <script setup>
- import {
- ref,
- reactive,
- nextTick
- } from "vue";
- import {
- onLoad
- } from "@dcloudio/uni-app"
- import * as httpApi from "@/api/common.js"
- import MtaScrollViewVue from "@/components/MtaScrollView/MtaScrollView.vue";
- import {
- formatDateToYearMonthDay,
- getStringByHtml3
- } from "@/utils/common.js"
- import MtaFooter from "@/components/MtaFooter.vue"
- const data = reactive({
- list: '',
- total: '',
- page: 1,
- size: 5,
- type: 1
- })
-
- const listRef = ref(null)
-
- onLoad(({type}) => {
- data.type = type || 1;
- })
- function handleClick(data) {
- uni.navigateTo({
- url: `/pages/jyjxZhuanyejiansheInfo/jyjxZhuanyejiansheInfo?id=${data.id}&type=${data.type}`
- })
- }
- function getList(data) {
- return httpApi.getJiaoyuZhuanyejiansheList(data)
- }
- function handleGo() {
- uni.navigateTo({
- url: '/pages/index/index'
- })
- }
-
- function changeType(code) {
- data.type = code;
- data.page = 1;
- nextTick(() => {
- listRef.value.onRefresh()
- })
- }
-
- function pageInit() {
- httpApi.getJiaoyuZhuanyejiansheList({page:data.page,size:data.size,type: data.type}).then(res => {
- data.list = res.data.data;
- data.total = res.data.total;
- })
- }
- </script>
- <style>
- </style>
|