doway-coms 2.1.9 → 2.2.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.1.9",
3
+ "version": "2.2.1",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -289,7 +289,7 @@
289
289
  :popupAddName="scope.column.params.popupAddName"
290
290
  :popupAddPath="scope.column.params.popupAddPath"
291
291
  :allowAutoClear="scope.column.params.allowAutoClear"
292
- @preSearch="(searchInfo) => preSearch(searchInfo, scope)"
292
+ @preSearch="(searchInfo,repeatRowInfo,row,api) => preSearch(searchInfo, scope,null,api)"
293
293
  @selectChanged="cellValueChange(scope)"
294
294
  @confirmMultiSelect="
295
295
  (pulldownView, selectRows) =>
@@ -2603,8 +2603,8 @@ export default {
2603
2603
 
2604
2604
  return errorMsgList
2605
2605
  },
2606
- preSearch(searchInfo, scope, scopeRow) {
2607
- this.$emit('preSearch', searchInfo, scope, scopeRow)
2606
+ preSearch(searchInfo, scope, scopeRow,api) {
2607
+ this.$emit('preSearch', searchInfo, scope, scopeRow,api)
2608
2608
  },
2609
2609
  pulldownBtnClick(btn) {
2610
2610
  this.$emit('pulldownBtnClick', btn)
@@ -237,6 +237,9 @@ export default {
237
237
  operator: 'and',
238
238
  expressions: [],
239
239
  },
240
+ newApiObj:{
241
+ newApi:''
242
+ }
240
243
  }
241
244
  },
242
245
  props: {
@@ -844,7 +847,7 @@ export default {
844
847
  values: [],
845
848
  }
846
849
  //查询之前从外部组件构造其他的条件
847
- this.$emit('preSearch', postExpression, repeatRowInfo, this.row)
850
+ this.$emit('preSearch', postExpression, repeatRowInfo, this.row,this,newApiObj)
848
851
  let postData = {
849
852
  fields: this.fetchFields,
850
853
  begin:
@@ -993,6 +996,9 @@ export default {
993
996
  },
994
997
  getPostApi(postData) {
995
998
  let tempApi = this.api
999
+ if(this.newApiObj.newApi){
1000
+ tempApi=this.newApiObj.newApi
1001
+ }
996
1002
  if (this.api.indexOf('?') > 0) {
997
1003
  tempApi = this.api.substring(0, this.api.indexOf('?'))
998
1004
  let tempExtenParams = this.api.substring(this.api.indexOf('?') + 1)