修复删除带来的列表页面数据为空未自动减少页码请求问题
This commit is contained in:
@@ -56,14 +56,14 @@
|
||||
<view style="height: 20rpx;"></view>
|
||||
<view class="u-p-30 all-list u-flex u-flex-wrap gap-20">
|
||||
<view class="all-list-item" :class="{active:statusItemIndex==statusData.allListSel}"
|
||||
@click="changeAllListSel(statusItemIndex)"
|
||||
@click="changeAllListSel(statusItemIndex,statusItem)"
|
||||
v-for="(statusItem,statusItemIndex) in statusData.allList" :key="statusItemIndex">
|
||||
{{statusItem.label}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-flex u-p-t-30 u-p-b-30 u-p-l-20 u-p-r-20 gap-20">
|
||||
<up-button @click="moreShowHide">取消</up-button>
|
||||
<up-button type="primary" @click="moreShowHide">确定</up-button>
|
||||
<up-button type="primary" @click="statusConfirm">确定</up-button>
|
||||
</view>
|
||||
</up-popup>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
watch
|
||||
} from 'vue';
|
||||
|
||||
const emits = defineEmits(['update:time', 'update:status','clearUser'])
|
||||
const emits = defineEmits(['update:time', 'update:status','clearUser','updateStatus'])
|
||||
|
||||
function userShowClose() {
|
||||
userShow.value = false
|
||||
@@ -187,7 +187,7 @@
|
||||
|
||||
function changeStatusSel(i) {
|
||||
statusData.sel = i
|
||||
emits('update:status', i)
|
||||
emits('updateStatus', i)
|
||||
}
|
||||
|
||||
function datePickerConfirm(e) {
|
||||
@@ -195,8 +195,15 @@
|
||||
emits('update:time', [e.start, e.end])
|
||||
}
|
||||
|
||||
function changeAllListSel(i) {
|
||||
function changeAllListSel(i,item) {
|
||||
statusData.allListSel = i
|
||||
console.log(i);
|
||||
}
|
||||
function statusConfirm(){
|
||||
const status=statusData.allList[statusData.allListSel].key
|
||||
statusData.sel=status
|
||||
emits('updateStatus',status)
|
||||
moreShowHide()
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user