|
@@ -0,0 +1,41 @@
|
|
|
+<script setup>
|
|
|
+const router = useRouter()
|
|
|
+function cellClick(lc_id) {
|
|
|
+ router.push({ path: '/projectManager/projectFlowManger/detail', query: { lc_id } })
|
|
|
+}
|
|
|
+
|
|
|
+const listMyApplyFor = ref([])
|
|
|
+const loadingMyApplyFor = ref(false)
|
|
|
+const finishedMyApplyFor = ref(false)
|
|
|
+let pageMyApplyFor = 1
|
|
|
+function onLoadMyApplyFor() {
|
|
|
+ loadingMyApplyFor.value = true
|
|
|
+ request({
|
|
|
+ url: '/jdbg/xmgl_xmlc/index',
|
|
|
+ data: {
|
|
|
+ page: pageMyApplyFor,
|
|
|
+ limit: 20,
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ const data = res.data
|
|
|
+ listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
|
|
|
+ finishedMyApplyFor.value = data.total_page === pageMyApplyFor
|
|
|
+ pageMyApplyFor++
|
|
|
+ loadingMyApplyFor.value = false
|
|
|
+ })
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <van-list
|
|
|
+ v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
|
|
|
+ @load="onLoadMyApplyFor"
|
|
|
+ >
|
|
|
+ <van-cell v-for="(item, index) in listMyApplyFor" :key="item" @click="cellClick(item.lc_id)">
|
|
|
+ <template #title>
|
|
|
+ <span>{{ `${index + 1}.\u00A0\u00A0${item.lc_jd}` }}</span><span style="color: #1a7afd;">{{
|
|
|
+ `\u00A0\u00A0\u00A0${item.lc_sx}` }}</span>
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ </van-list>
|
|
|
+</template>
|