办事进度
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<input placeholder="请输入需要搜索的内容" placeholder-style="color:rgba(255,255,255,0.5)" v-model="param" @confirm="reset" :focus="focus" confirm-type="search" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progressList-list">
|
||||
<div class="item" v-for="(item, index) in list" :key="index" hover-class="bg-hover" @click="$linkTo('./progressDetail?id=' + item.id)">
|
||||
<div class="top">
|
||||
@@ -29,7 +30,8 @@
|
||||
<span :style="{ color: mapColor(item.approvalStatus) }">{{ $dict.getLabel('approvalStatus', item.approvalStatus) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length"></AiEmpty>
|
||||
|
||||
<AiEmpty description="暂无数据" v-if="!list.length"></AiEmpty>
|
||||
|
||||
<!-- <u-loadmore :status="loadingStatus" :margin-top="30" :margin-bottom="30" color="#999" font-size="26"/> -->
|
||||
</div>
|
||||
@@ -38,7 +40,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'myPlan',
|
||||
name: 'AppMyPlan',
|
||||
appName: '办事进度',
|
||||
data() {
|
||||
return {
|
||||
@@ -49,7 +51,7 @@ export default {
|
||||
focus: false,
|
||||
param: '',
|
||||
list: [],
|
||||
loadingStatus: 'loadmore',
|
||||
// loadingStatus: 'loadmore',
|
||||
iconList: {
|
||||
0: 'icon1',
|
||||
1: 'icon2',
|
||||
@@ -73,7 +75,7 @@ export default {
|
||||
methods: {
|
||||
reset() {
|
||||
this.current = 0
|
||||
this.loadingStatus = 'loading'
|
||||
// this.loadingStatus = 'loading'
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.getList()
|
||||
@@ -89,9 +91,9 @@ export default {
|
||||
},
|
||||
|
||||
getList() {
|
||||
if (this.loadingStatus === 'nomore') return
|
||||
// if (this.loadingStatus === 'nomore') return
|
||||
|
||||
this.loadingStatus = 'loading'
|
||||
// this.loadingStatus = 'loading'
|
||||
this.$instance
|
||||
.post(`/app/approv-alapply-info/xcx-list`, null, {
|
||||
params: {
|
||||
@@ -102,11 +104,11 @@ export default {
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
if (!res.data.records.length) {
|
||||
if (this.current === 0) this.list = []
|
||||
this.loadingStatus = 'nomore'
|
||||
return false
|
||||
}
|
||||
// if (!res.data.records.length) {
|
||||
// if (this.current === 0) this.list = []
|
||||
// this.loadingStatus = 'nomore'
|
||||
// return false
|
||||
// }
|
||||
|
||||
const data = res.data.records.map((item) => {
|
||||
return item
|
||||
@@ -116,11 +118,11 @@ export default {
|
||||
this.list.push(...data)
|
||||
|
||||
this.current = this.current + 1
|
||||
this.loadingStatus = 'loadmore'
|
||||
// this.loadingStatus = 'loadmore'
|
||||
|
||||
if (this.list.length < 10) {
|
||||
this.loadingStatus = 'nomore'
|
||||
}
|
||||
// if (this.list.length < 10) {
|
||||
// this.loadingStatus = 'nomore'
|
||||
// }
|
||||
}
|
||||
})
|
||||
},
|
||||
Reference in New Issue
Block a user