dbaearch 增加状态筛选条件,及接口增加状态筛选字段,

col字段增加排序功能
This commit is contained in:
任珮宇 2023-10-28 18:01:55 +08:00
parent 56918f36c1
commit 1972d1666c
2 changed files with 109 additions and 72 deletions

View File

@ -89,8 +89,7 @@ export const JeecgListMixin = {
if (res.success) { if (res.success) {
//update-begin---author:zhangyafei Date:20201118 for适配不分页的数据列表------------ //update-begin---author:zhangyafei Date:20201118 for适配不分页的数据列表------------
this.dataSource = res.result.records || res.result; this.dataSource = res.result.records || res.result;
if(res.result.total) if (res.result.total) {
{
this.ipagination.total = res.result.total; this.ipagination.total = res.result.total;
} else { } else {
this.ipagination.total = 0; this.ipagination.total = 0;
@ -126,7 +125,8 @@ export const JeecgListMixin = {
sqp['superQueryMatchType'] = this.superQueryMatchType sqp['superQueryMatchType'] = this.superQueryMatchType
} }
var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters); var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters);
param.field = this.getQueryField(); // param.field = this.getQueryField();
param.field = this.isorter.column;
param.pageNo = this.ipagination.current; param.pageNo = this.ipagination.current;
param.pageSize = this.ipagination.pageSize; param.pageSize = this.ipagination.pageSize;
return filterObj(param); return filterObj(param);
@ -237,6 +237,7 @@ export const JeecgListMixin = {
this.$refs.modalForm.disableSubmit = false; this.$refs.modalForm.disableSubmit = false;
}, },
handleTableChange(pagination, filters, sorter) { handleTableChange(pagination, filters, sorter) {
console.log("sortersorter", sorter);
//分页、排序、筛选变化时触发 //分页、排序、筛选变化时触发
//TODO 筛选 //TODO 筛选
console.log(pagination) console.log(pagination)

View File

@ -75,6 +75,7 @@ const columns = [
title: 'Col.Stop', title: 'Col.Stop',
align: 'left', align: 'left',
dataIndex: 'collectStop', dataIndex: 'collectStop',
sorter: true,
width: 170, width: 170,
}, },
{ {
@ -434,7 +435,7 @@ export default {
allowClear: true, allowClear: true,
}, },
style: { style: {
width: '264px', width: '207px',
}, },
}, },
{ {
@ -465,7 +466,7 @@ export default {
}, },
}, },
style: { style: {
width: '19%', width: '16%',
}, },
}, },
{ {
@ -481,8 +482,43 @@ export default {
}, },
style: { style: {
paddingRight: 0, paddingRight: 0,
marginRight: '22px', marginRight: '8px',
width: '19%', width: '13%',
},
},
{
label: 'Status',
type: 'custom-select',
name: 'status',
props: {
options: [
{
label: 'U',
value: 'U',
},
{
label: 'A',
value: 'A',
},
{
label: 'P',
value: 'P',
},
{
label: 'R',
value: 'R',
},
{
label: 'F',
value: 'F',
},
],
allowClear: true,
},
style: {
width: '14%',
marginRight: '10px',
}, },
}, },
] ]