Просмотр исходного кода

:zap: 修复分页未带参数的bug

smallchill 7 лет назад
Родитель
Сommit
47565fc035

+ 5 - 3
src/views/desk/notice.vue

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

+ 3 - 1
src/views/flow/follow.vue

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

+ 3 - 1
src/views/flow/manager.vue

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

+ 3 - 1
src/views/flow/model.vue

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

+ 3 - 1
src/views/monitor/log/api.vue

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

+ 3 - 1
src/views/monitor/log/error.vue

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

+ 3 - 1
src/views/monitor/log/usual.vue

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

+ 3 - 1
src/views/resource/oss.vue

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

+ 3 - 1
src/views/system/client.vue

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

+ 4 - 3
src/views/system/dept.vue

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

+ 6 - 5
src/views/system/dict.vue

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

+ 3 - 1
src/views/system/menu.vue

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

+ 3 - 1
src/views/system/param.vue

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

+ 5 - 13
src/views/system/role.vue

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

+ 3 - 1
src/views/system/tenant.vue

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

+ 3 - 1
src/views/system/user.vue

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

+ 3 - 1
src/views/work/claim.vue

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

+ 3 - 1
src/views/work/done.vue

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

+ 3 - 1
src/views/work/send.vue

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

+ 3 - 1
src/views/work/start.vue

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

+ 3 - 1
src/views/work/todo.vue

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