|
@@ -59,8 +59,8 @@
|
|
|
<!-- 分页 -->
|
|
<!-- 分页 -->
|
|
|
<a-pagination
|
|
<a-pagination
|
|
|
v-if="total > 0"
|
|
v-if="total > 0"
|
|
|
- :current="queryParam.pageIndex"
|
|
|
|
|
- :page-size="queryParam.pageSize"
|
|
|
|
|
|
|
+ :current="queryParam.current"
|
|
|
|
|
+ :page-size="queryParam.size"
|
|
|
:total="total"
|
|
:total="total"
|
|
|
:show-size-changer="true"
|
|
:show-size-changer="true"
|
|
|
:show-quick-jumper="true"
|
|
:show-quick-jumper="true"
|
|
@@ -123,7 +123,7 @@
|
|
|
const itemDatas = ref([])
|
|
const itemDatas = ref([])
|
|
|
// 响应式数据
|
|
// 响应式数据
|
|
|
const queryParam = reactive({
|
|
const queryParam = reactive({
|
|
|
- id: null,
|
|
|
|
|
|
|
+ id: undefined,
|
|
|
// level: null,
|
|
// level: null,
|
|
|
// subjectId: null,
|
|
// subjectId: null,
|
|
|
current: 1,
|
|
current: 1,
|
|
@@ -199,7 +199,7 @@
|
|
|
|
|
|
|
|
// 方法
|
|
// 方法
|
|
|
const submitForm = () => {
|
|
const submitForm = () => {
|
|
|
- queryParam.pageIndex = 1
|
|
|
|
|
|
|
+ queryParam.current = 1
|
|
|
search()
|
|
search()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -210,8 +210,8 @@
|
|
|
if (response) {
|
|
if (response) {
|
|
|
const data = response
|
|
const data = response
|
|
|
tableData.value = data.records || []
|
|
tableData.value = data.records || []
|
|
|
- total.value = data.total || 0
|
|
|
|
|
- queryParam.pageIndex = data.current || 1
|
|
|
|
|
|
|
+ total.value = data.total
|
|
|
|
|
+ queryParam.current = data.current
|
|
|
listLoading.value = false
|
|
listLoading.value = false
|
|
|
} else {
|
|
} else {
|
|
|
message.error(response.message || '获取数据失败')
|
|
message.error(response.message || '获取数据失败')
|
|
@@ -254,14 +254,15 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handlePageChange = (page, pageSize) => {
|
|
const handlePageChange = (page, pageSize) => {
|
|
|
- queryParam.pageIndex = page
|
|
|
|
|
- queryParam.pageSize = pageSize
|
|
|
|
|
|
|
+ queryParam.current = page
|
|
|
|
|
+ queryParam.size = pageSize
|
|
|
|
|
+ console.log("page",page,"pageSize",pageSize)
|
|
|
search()
|
|
search()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handlePageSizeChange = (current, size) => {
|
|
const handlePageSizeChange = (current, size) => {
|
|
|
- queryParam.pageIndex = 1
|
|
|
|
|
- queryParam.pageSize = size
|
|
|
|
|
|
|
+ queryParam.current = current
|
|
|
|
|
+ queryParam.size = size
|
|
|
search()
|
|
search()
|
|
|
}
|
|
}
|
|
|
const handleOk = (item) => {
|
|
const handleOk = (item) => {
|
|
@@ -277,7 +278,7 @@
|
|
|
console.log("选取了",item)
|
|
console.log("选取了",item)
|
|
|
modeTag.value = 'list'
|
|
modeTag.value = 'list'
|
|
|
itemDatas.value = []
|
|
itemDatas.value = []
|
|
|
- queryParam.pageIndex = 1
|
|
|
|
|
|
|
+ queryParam.current = 1
|
|
|
search()
|
|
search()
|
|
|
|
|
|
|
|
emit('handlerEx', null)
|
|
emit('handlerEx', null)
|