centaline-data-driven 1.3.29 → 1.3.32

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": "centaline-data-driven",
3
- "version": "1.3.29",
3
+ "version": "1.3.32",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -14,11 +14,7 @@
14
14
  data() {
15
15
  return {
16
16
  apiParam:{
17
- actionType: 3,
18
- originalTraId: "1547488795469586434",
19
- pageOnly: true,
20
- pageStyle: 2,
21
- pageTitle: "成交报告"
17
+ originalTraId:"1541678215431274497",actionType:3,pageStyle:2,pageTitle:"成交报告",pageOnly:true
22
18
  }
23
19
  }
24
20
  },
@@ -13,10 +13,10 @@
13
13
  </ct-searchlist>
14
14
 
15
15
  <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
16
- :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
17
- :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
18
- :searchStatsApi="'/exampleList/getListStats'"
19
- ></ct-searchlist> -->
16
+ :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
17
+ :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
18
+ :searchStatsApi="'/exampleList/getListStats'">
19
+ </ct-searchlist> -->
20
20
 
21
21
  <ct-dialog-list></ct-dialog-list>
22
22
  </div>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div v-loading="loading" :style="{width:pageWidth?pageWidth+'px':'100%',margin:'auto'}">
3
- <div v-if="model !== null && !loading" class="ct-form" :class="{'domDisabled':model.pageDisabled}">
3
+ <div v-if="model !== null && !loading" class="ct-form" :class="{'domDisabled':model.pageDisabled}" :key="formKey">
4
4
  <!--可根据场景判断显示el-card还是el-main-->
5
5
  <component :is="model.showTitle?'el-main':'el-card'">
6
6
  <div slot="header" class="clearfix" v-if="typeof model.title !== 'undefined' && model.flagShowTitle">
@@ -107,6 +107,7 @@
107
107
  isScroll: false,
108
108
  loading: true,
109
109
  activeName: '-1',
110
+ formKey:0,
110
111
  collapse: [],//分组数组
111
112
  collapseActiveNames: [],//默认展开的分组name
112
113
  collapseFieldsRow: [],//分组数组对应的行列布局
@@ -414,7 +415,16 @@
414
415
  }
415
416
  else if (field.isExport) {
416
417
  submitData = field.getActionPara(submitData).para;
417
- self.model.export(field, submitData);
418
+ if(field.flagAsync){
419
+ self.model.export(field, submitData);
420
+ }
421
+ else{
422
+ field.doAction(submitData, (data) => {
423
+ if(data.content){
424
+ window.open(data.content, "_blank");
425
+ }
426
+ });
427
+ }
418
428
  }
419
429
  else {
420
430
  submitData = field.getActionPara(submitData).para;
@@ -422,6 +432,14 @@
422
432
  if(field && field.changeCallBackFunName){
423
433
  self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
424
434
  }
435
+ else if(field.isRefersh){
436
+ self.collapse.splice(0, self.collapse.length);
437
+ self.collapseActiveNames.splice(0, self.collapseActiveNames.length);
438
+ self.collapseFieldsRow.splice(0, self.collapseFieldsRow.length);
439
+ self.independentItem.splice(0, self.independentItem.length);
440
+ self.load(self.loaderObj.Form(data.content));
441
+ self.formKey=self.formKey+1;
442
+ }
425
443
  else{
426
444
  self.model.doAction(data);
427
445
  }