vue2-client 1.7.9 → 1.7.10
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.
package/package.json
CHANGED
|
@@ -147,14 +147,6 @@ export default {
|
|
|
147
147
|
},
|
|
148
148
|
deep: true
|
|
149
149
|
},
|
|
150
|
-
fixedQueryForm: {
|
|
151
|
-
handler () {
|
|
152
|
-
this.$nextTick(() => {
|
|
153
|
-
this.refreshTable(true)
|
|
154
|
-
})
|
|
155
|
-
},
|
|
156
|
-
deep: true
|
|
157
|
-
},
|
|
158
150
|
queryParamsJson: {
|
|
159
151
|
handler () {
|
|
160
152
|
this.getConfigBySource()
|
|
@@ -343,6 +335,15 @@ export default {
|
|
|
343
335
|
refreshTable (toFirstPage = true) {
|
|
344
336
|
this.$refs.xTable.refresh(toFirstPage)
|
|
345
337
|
},
|
|
338
|
+
/**
|
|
339
|
+
* 设置固定查询表单
|
|
340
|
+
*/
|
|
341
|
+
setFixedQueryForm (form, isRefreshTable) {
|
|
342
|
+
this.fixedQueryForm = form
|
|
343
|
+
if (isRefreshTable) {
|
|
344
|
+
this.refreshTable(true)
|
|
345
|
+
}
|
|
346
|
+
}
|
|
346
347
|
}
|
|
347
348
|
}
|
|
348
349
|
</script>
|
|
@@ -129,7 +129,9 @@ export default {
|
|
|
129
129
|
// 取到表格携带的表单参数
|
|
130
130
|
const requestParameters = Object.assign({}, parameter)
|
|
131
131
|
// 取到父组件传入的表单参数
|
|
132
|
-
const conditionParams =
|
|
132
|
+
const conditionParams = {}
|
|
133
|
+
Object.assign(conditionParams, this.fixedQueryForm)
|
|
134
|
+
Object.assign(conditionParams, this.form)
|
|
133
135
|
// 如果传了燃气公司字段,则进行数据处理
|
|
134
136
|
if (conditionParams.orgName) {
|
|
135
137
|
requestParameters.orgName = conditionParams.orgName
|
package/vue.config.js
CHANGED