1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <view class="dljt-page-box">
- <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-active">下载中心</view>
- </view>
- <view>
- <!-- 查询 -->
- <view>
- <uni-data-select v-model="data.activeId" :localdata="data.treeList"></uni-data-select>
- <button @click="handleClick">查询</button>
- </view>
- <view>
- <view>序号</view>
- <view>类别</view>
- <view>文件</view>
- <view>文件下载</view>
- </view>
- <MtaScrollViewVue ref="myRef" :refreshFn="getList" :size="10"
- :otherOption="{classifyId: data.activeId}">
- <template v-slot="{ list }">
- <view class="xyry-item-row" v-for="(item,index) in list" :key="item.id">
- <view>{{index+1}}</view>
- <view>{{item.classifyName}}</view>
- <view>{{item.title}}</view>
- <view @click="handleDownFile(item)">下载</view>
- </view>
- </template>
- </MtaScrollViewVue>
- </view>
- </view>
- <!-- 底部导航 -->
- <MtaFooter></MtaFooter>
- </view>
- </view>
- </template>
- <script setup>
- import {
- ref,
- reactive
- } from "vue";
- import {
- onLoad
- } from "@dcloudio/uni-app"
- import * as httpApi from "@/api/common.js"
- import MtaScrollViewVue from "@/components/MtaScrollView/MtaScrollView.vue";
- import MtaFooter from "@/components/MtaFooter.vue"
- const myRef = ref(null);
- const data = reactive({
- content: '',
- activeId: null,
- treeList: []
- })
- onLoad(() => {
- pageInit();
- })
- function handleDownFile(item) {
- window.location.href = item.pdfUrl
- }
- function getList(data) {
- return httpApi.getCommonZsjyXXazaiList(data)
- }
- function handleClick() {
- myRef.value.onRefresh()
- }
- function pageInit() {
- httpApi.getCommonZsjyXXazaiTree().then(res => {
- data.treeList = res.data.children.map(item => {
- return {
- value: item.id,
- text: item.lable
- }
- });
- })
- httpApi.getCommonZsjyXXazaiList(data).then(res => {})
- }
- </script>
- <style>
- </style>
|