123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <template>
- <view class="container">
- <page-title>牵头领导及部门</page-title>
- <view class="cards-list">
- <view class="card" v-for="(item,index) in projectList" :key="index">
- <card-title :numerator="index+1" :denominator="listTotal" isSpecial></card-title>
- <view class="card-name">
- <view class="card-name-title">
- <text class="card-name-description">所属单位</text>
- </view>
- <text class="card-name-text">{{item.unitName || "--"}}</text>
- </view>
- <view class="card-item">
- <view class="card-item-name">所属科室</view>
- <view class="card-item-content">{{item.departName || "--"}}</view>
- </view>
- <view class="card-item">
- <view class="card-item-name">建设地点</view>
- <view class="card-item-content">{{item.buildAddress || "--"}}</view>
- </view>
- <view class="card-item">
- <view class="card-item-name">领导姓名</view>
- <view class="card-item-content">{{item.userName || "--"}}</view>
- </view>
- </view>
- </view>
- <empty-show v-if="projectList.length===0"></empty-show>
- <u-loading-page :loading="loading"></u-loading-page>
- </view>
- </template>
- <script setup>
- import {
- ref
- } from 'vue';
- import {
- onLoad,
- onUnload,
- onPullDownRefresh,
- onReachBottom,
- onPageScroll
- } from "@dcloudio/uni-app";
- import {
- getProjectLeadlist,
- } from "@/api/work/projectInfo.js";
- import {
- addFocus,
- cancelFocus
- } from "@/api/work/focus.js";
- function backToBefore() {
- uni.reLaunch({
- url: "/pages/index"
- });
- };
- let scrollTop = ref(0)
- let loading = ref(true)
-
- let searchInfo = ref({
-
-
- subId: ''
- })
-
- let moreListFlag = true
-
- let projectList = ref([]);
- let listTotal = ref(0);
- function getList() {
-
- loading.value = true
-
- getProjectLeadlist(searchInfo.value).then(res => {
- loading.value = false
- projectList.value = projectList.value.concat(res.data.list);
-
-
-
- }).catch(() => {
- loading.value = false
- })
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- onLoad((options) => {
-
-
-
-
-
-
-
-
- console.log(options);
- searchInfo.value.subId = options.subId
- getList();
- });
- onUnload(() => {
-
- })
- onPageScroll((e) => {
- scrollTop.value = e.scrollTop
- })
- onPullDownRefresh(() => {
-
- projectList.value = [];
- moreListFlag = true;
- try {
- getList();
- } finally {
- uni.stopPullDownRefresh()
- }
- })
-
-
-
-
-
-
-
-
-
-
-
- </script>
- <style lang="scss" scoped>
- </style>
|