|
@@ -10,7 +10,7 @@
|
|
|
color="primary"
|
|
|
size="small"
|
|
|
></v-pagination>
|
|
|
- <span style="color: #666;">共{{ props.total }}条数据</span>
|
|
|
+ <!-- <span style="color: #666;">共{{ props.total }}条数据</span>
|
|
|
<div class="search px-3">
|
|
|
<v-text-field
|
|
|
v-model="currentJump"
|
|
@@ -25,7 +25,7 @@
|
|
|
</div>
|
|
|
<div class="">
|
|
|
<v-btn color="primary" rounded class="half-button" @click="handleCurrentJump">跳转</v-btn>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -69,7 +69,7 @@ const props = defineProps({
|
|
|
const emit = defineEmits(['handleChange'])
|
|
|
|
|
|
const currentPage = ref(1)
|
|
|
-const currentJump = ref(null)
|
|
|
+// const currentJump = ref(null)
|
|
|
currentPage.value = props.page
|
|
|
|
|
|
watch(() => props.page, (newVal) => {
|
|
@@ -82,12 +82,12 @@ const pageLength = computed(() => {
|
|
|
const handleCurrentChange = () => {
|
|
|
emit('handleChange', currentPage.value)
|
|
|
}
|
|
|
-const handleCurrentJump = () => {
|
|
|
- if (currentJump.value > pageLength.value) currentJump.value = pageLength.value
|
|
|
- if (currentJump.value < 1) currentJump.value = 1
|
|
|
- currentPage.value = +currentJump.value
|
|
|
- emit('handleChange', currentPage.value)
|
|
|
-}
|
|
|
+// const handleCurrentJump = () => {
|
|
|
+// if (currentJump.value > pageLength.value) currentJump.value = pageLength.value
|
|
|
+// if (currentJump.value < 1) currentJump.value = 1
|
|
|
+// currentPage.value = +currentJump.value
|
|
|
+// emit('handleChange', currentPage.value)
|
|
|
+// }
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|