formui-vue2-vistastory 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@
11
11
  v-bind:removeFileds="[]"
12
12
  v-bind:queryParams="queryParams"
13
13
  v-bind:fieldGroupType="1"
14
- v-on:updateQueryParams="goByParam"
14
+ v-on:updateQueryParams="updateQueryParams"
15
15
  v-on:search="queryData">
16
16
  <template v-slot:btns="slotProps">
17
17
  </template>
@@ -76,6 +76,7 @@ export default {
76
76
 
77
77
  this.loadData()
78
78
  },
79
+
79
80
  beforeRouteUpdate(to) {
80
81
  this.queryParams.pageNo = to.query.pageNo
81
82
  this.loadData()
@@ -85,17 +86,32 @@ export default {
85
86
  this.queryParams.pageNo = data - 1
86
87
  this.goByParam()
87
88
  },
89
+ updateQueryParams: function (queryParams) {
90
+ this.queryParams = queryParams
91
+
92
+ },
88
93
  goByParam() {
89
- delete this.queryParams.methodName
94
+ let that=this
95
+ delete this.queryParams.methodName
96
+ // delete this.queryParams['tableName']
97
+ let paramJson=JSON.parse(JSON.stringify(this.queryParams))
98
+ // console.log('path:'+that.$route.path)
99
+ let srcPath=that.$route.path;
90
100
  this.$router.push({
91
- query: this.queryParams
92
- })
101
+ path: that.$route.path+'1'
102
+ });
103
+ this.$router.replace({
104
+ path:srcPath,
105
+ query:paramJson
106
+ });
107
+
108
+
93
109
  },
94
110
  queryData(queryParams) {
95
111
  if (queryParams) {
96
112
  this.queryParams = queryParams
97
113
  }
98
-
114
+ this.goByParam()
99
115
  this.$refs['formUiTableRef'].loadData(this.queryParams)
100
116
  },
101
117
  loadData(queryParamsUpdate) {
@@ -110,7 +126,7 @@ export default {
110
126
  }
111
127
 
112
128
  formuiService.getFormUiSimpleTable(this,this.queryParams, (resp) => {
113
- console.log('resp', resp)
129
+ //console.log('resp', resp)
114
130
  this.tableConfig = resp
115
131
  }, (err) => {})
116
132
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "formui-vue2-vistastory",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "formui-vue2-vistastory",
5
5
  "author": "vistastory <vistastory@126.com>",
6
6
  "private": false,
@@ -16,7 +16,7 @@
16
16
  "moment": "^2.24.0",
17
17
  "qs": "^6.6.0",
18
18
  "vue": "^2.5.2",
19
- "vue-router": "^3.5.1",
19
+ "vue-router": "^3.6.5",
20
20
  "vuex": "^3.1.1"
21
21
  },
22
22
  "devDependencies": {