飞行器、订单部分分页bug修复
This commit is contained in:
parent
0b4b0802b2
commit
488f2a3b1b
@ -251,19 +251,8 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页-->
|
||||
<div class="pagination-container">
|
||||
<el-pagination
|
||||
:background="true"
|
||||
:current-page.sync="page.page"
|
||||
:page-size.sync="page.size"
|
||||
:layout="'total, sizes, prev, pager, next, jumper'"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:total="page.total"
|
||||
@size-change="crud.sizeChangeHandler"
|
||||
@current-change="crud.pageChangeHandler"
|
||||
/>
|
||||
</div>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -277,6 +266,7 @@ import { allScenic } from "@/api/system/scenic";
|
||||
import { get } from "@/api/system/dictDetail";
|
||||
import { upload } from "@/utils/upload";
|
||||
import { mapGetters } from "vuex";
|
||||
import pagination from '@crud/Pagination'
|
||||
import rrOperation from "@crud/RR.operation";
|
||||
// crud交由presenter持有
|
||||
const defaultForm = {
|
||||
@ -294,7 +284,7 @@ const defaultForm = {
|
||||
};
|
||||
export default {
|
||||
name: "aircraft",
|
||||
components: { udOperation },
|
||||
components: { udOperation, pagination },
|
||||
cruds() {
|
||||
return CRUD({
|
||||
title: "飞行器",
|
||||
@ -349,12 +339,6 @@ export default {
|
||||
dialogVisible: false,
|
||||
dialogImageUrl: "",
|
||||
uploadDisabled: false,
|
||||
// ini
|
||||
page: {
|
||||
page: 1,
|
||||
size: 10,
|
||||
total: 5,
|
||||
},
|
||||
areaOptions: [],
|
||||
scenicOptions: [],
|
||||
employeeOptions: [],
|
||||
@ -514,18 +498,14 @@ export default {
|
||||
return true;
|
||||
},
|
||||
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
// 设置分页参数
|
||||
this.crud.params.current = this.page.page;
|
||||
this.crud.params.size = this.page.size;
|
||||
|
||||
[CRUD.HOOK.beforeRefresh](crud, form) {
|
||||
// 设置查询参数
|
||||
this.crud.params.employeesId = this.query.employeesId;
|
||||
this.crud.params.areaId = this.query.areaId;
|
||||
this.crud.params.name = this.query.name;
|
||||
crud.query.current = crud.page.page;
|
||||
return true;
|
||||
},
|
||||
|
||||
[CRUD.HOOK.afterRefresh]() {
|
||||
// 更新分页数据
|
||||
const response = this.crud.data;
|
||||
|
@ -136,7 +136,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="pagination-container">
|
||||
<!-- <div class="pagination-container">
|
||||
<el-pagination
|
||||
:current-page.sync="taskPage.page"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
@ -146,7 +146,7 @@
|
||||
@size-change="handleTaskSizeChange"
|
||||
@current-change="handleTaskCurrentChange"
|
||||
/>
|
||||
</div>
|
||||
</div> -->
|
||||
</el-card>
|
||||
|
||||
<!-- 图片预览 -->
|
||||
|
@ -129,7 +129,7 @@ export default {
|
||||
async fetchData() {
|
||||
this.loading = true
|
||||
try {
|
||||
const response = await getSettleOrderList(this.query)
|
||||
const response = await getSettleOrderList({...this.page,...this.query})
|
||||
const operatorList = await getUserNameValue(0);
|
||||
|
||||
const operatorMap = new Map();
|
||||
|
Loading…
Reference in New Issue
Block a user