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