修复分页未带参数的bug

pull/59/head
smallchill 7 years ago
parent af23caa9d2
commit 47565fc035
  1. 8
      src/views/desk/notice.vue
  2. 4
      src/views/flow/follow.vue
  3. 4
      src/views/flow/manager.vue
  4. 4
      src/views/flow/model.vue
  5. 4
      src/views/monitor/log/api.vue
  6. 4
      src/views/monitor/log/error.vue
  7. 4
      src/views/monitor/log/usual.vue
  8. 4
      src/views/resource/oss.vue
  9. 4
      src/views/system/client.vue
  10. 7
      src/views/system/dept.vue
  11. 11
      src/views/system/dict.vue
  12. 4
      src/views/system/menu.vue
  13. 4
      src/views/system/param.vue
  14. 18
      src/views/system/role.vue
  15. 4
      src/views/system/tenant.vue
  16. 4
      src/views/system/user.vue
  17. 4
      src/views/work/claim.vue
  18. 4
      src/views/work/done.vue
  19. 4
      src/views/work/send.vue
  20. 4
      src/views/work/start.vue
  21. 4
      src/views/work/todo.vue

@ -40,6 +40,7 @@
data() {
return {
form: {},
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -189,6 +190,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -224,10 +226,10 @@
}
done();
},
currentChange(currentPage){
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize){
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
@ -243,7 +245,7 @@
}
values.releaseTimeRange = null;
}
getList(page.currentPage, page.pageSize, values).then(res => {
getList(page.currentPage, page.pageSize, Object.assign(values, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -50,6 +50,7 @@
selectionId: '',
processInstanceId: '',
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -150,6 +151,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -162,7 +164,7 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
followList(page.currentPage, page.pageSize, params).then(res => {
followList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -115,6 +115,7 @@
form: {},
selectionId: '',
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -221,6 +222,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -310,7 +312,7 @@
...params,
category: (params.category) ? flowCategory(params.category) : null
}
managerList(page.currentPage, page.pageSize, values).then(res => {
managerList(page.currentPage, page.pageSize, Object.assign(values, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -124,6 +124,7 @@
form: {},
selectionId: '',
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -199,6 +200,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -294,7 +296,7 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
modelList(page.currentPage, page.pageSize, params).then(res => {
modelList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -25,6 +25,7 @@
return {
form: {},
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -107,6 +108,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
beforeOpen(done, type) {
@ -124,7 +126,7 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getApiList(page.currentPage, page.pageSize, params).then(res => {
getApiList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -25,6 +25,7 @@
return {
form: {},
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -114,6 +115,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
beforeOpen(done, type) {
@ -131,7 +133,7 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getErrorList(page.currentPage, page.pageSize, params).then(res => {
getErrorList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -25,6 +25,7 @@
return {
form: {},
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -106,6 +107,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
beforeOpen(done, type) {
@ -123,7 +125,7 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getUsualList(page.currentPage, page.pageSize, params).then(res => {
getUsualList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -54,6 +54,7 @@
data() {
return {
form: {},
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -218,6 +219,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -278,7 +280,7 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getList(page.currentPage, page.pageSize, params).then(res => {
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -36,6 +36,7 @@
data() {
return {
form: {},
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -230,6 +231,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -272,7 +274,7 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getList(page.currentPage, page.pageSize, params).then(res => {
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -49,6 +49,7 @@
return {
form: {},
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -249,6 +250,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -269,9 +271,8 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getList(page.currentPage, page.pageSize, params).then(res => {
const data = res.data.data;
this.data = data;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
this.data = res.data.data;
getDeptTree().then(res => {
const data = res.data.data;
const index = this.$refs.crud.findColumnIndex("parentId");

@ -44,6 +44,7 @@
return {
form: {},
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -191,6 +192,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -226,16 +228,15 @@
}
done();
},
currentChange(currentPage){
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize){
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getList(page.currentPage, page.pageSize, params).then(res => {
const data = res.data.data;
this.data = data;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
this.data = res.data.data;
getDictTree().then(res => {
const data = res.data.data;
const index = this.$refs.crud.findColumnIndex("parentId");

@ -80,6 +80,7 @@
return {
form: {},
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -434,6 +435,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -590,7 +592,7 @@
...params,
menuId: this.scopeMenuId,
}
getListScope(page.currentPage, page.pageSize, values).then(res => {
getListScope(page.currentPage, page.pageSize, Object.assign(values, this.query)).then(res => {
const data = res.data.data;
this.pageScope.total = data.total;
this.dataScope = data.records;

@ -37,6 +37,7 @@
return {
form: {},
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -149,6 +150,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -183,7 +185,7 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getList(page.currentPage, page.pageSize, params).then(res => {
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -65,16 +65,7 @@
</template>
<script>
import {
getList,
remove,
update,
add,
grant,
grantTree,
getRole,
getRoleTree,
} from "@/api/system/role";
import {add, getList, getRole, getRoleTree, grant, grantTree, remove, update,} from "@/api/system/role";
import {mapGetters} from "vuex";
import website from '@/config/website';
@ -93,6 +84,7 @@
menuTreeObj: [],
scopeTreeObj: [],
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -270,6 +262,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -322,9 +315,8 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getList(page.currentPage, page.pageSize, params).then(res => {
const data = res.data.data;
this.data = data;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
this.data = res.data.data;
getRoleTree().then(res => {
const data = res.data.data;
const index = this.$refs.crud.findColumnIndex("parentId");

@ -37,6 +37,7 @@
return {
form: {},
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -169,6 +170,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -203,7 +205,7 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getList(page.currentPage, page.pageSize, params).then(res => {
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -79,6 +79,7 @@
return {
form: {},
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -328,6 +329,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -399,7 +401,7 @@
this.page.pageSize = pageSize;
},
onLoad(page, params = {}) {
getList(page.currentPage, page.pageSize, params).then(res => {
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -73,6 +73,7 @@
form: {},
selectionId: '',
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -148,6 +149,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -188,7 +190,7 @@
...params,
category: (params.category) ? flowCategory(params.category) : null
}
claimList(page.currentPage, page.pageSize, values).then(res => {
claimList(page.currentPage, page.pageSize, Object.assign(values, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -66,6 +66,7 @@
form: {},
selectionId: '',
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -141,6 +142,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -164,7 +166,7 @@
...params,
category: (params.category) ? flowCategory(params.category) : null
}
doneList(page.currentPage, page.pageSize, values).then(res => {
doneList(page.currentPage, page.pageSize, Object.assign(values, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -70,6 +70,7 @@
form: {},
selectionId: '',
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -151,6 +152,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -174,7 +176,7 @@
...params,
category: (params.category) ? flowCategory(params.category) : null
}
sendList(page.currentPage, page.pageSize, values).then(res => {
sendList(page.currentPage, page.pageSize, Object.assign(values, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -74,6 +74,7 @@
form: {},
selectionId: '',
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -154,6 +155,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -177,7 +179,7 @@
...params,
category: (params.category) ? flowCategory(params.category) : null
}
startList(page.currentPage, page.pageSize, values).then(res => {
startList(page.currentPage, page.pageSize, Object.assign(values, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

@ -73,6 +73,7 @@
form: {},
selectionId: '',
selectionList: [],
query: {},
page: {
pageSize: 10,
currentPage: 1,
@ -148,6 +149,7 @@
this.onLoad(this.page);
},
searchChange(params) {
this.query = params;
this.onLoad(this.page, params);
},
selectionChange(list) {
@ -174,7 +176,7 @@
...params,
category: (params.category) ? flowCategory(params.category) : null
}
todoList(page.currentPage, page.pageSize, values).then(res => {
todoList(page.currentPage, page.pageSize, Object.assign(values, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;

Loading…
Cancel
Save