centaline-data-driven 1.3.36 → 1.3.37

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.36",
3
+ "version": "1.3.37",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  <script>
12
12
  export default {
13
- name: 'App',
13
+ name: 'DataDrivenForm',
14
14
  data() {
15
15
  return {
16
16
  apiParam:{
@@ -341,9 +341,6 @@ const common = {
341
341
  else if (parent.$options.name === 'DataDrivendetail') {
342
342
  return parent;
343
343
  }
344
- else if (parent.$options.name === 'App') {
345
- return parent;
346
- }
347
344
  else {
348
345
  return this.getParentPane(parent);
349
346
  }
@@ -10,7 +10,7 @@
10
10
  <span>{{ model.fields1Dic.EstateName.value }}</span>
11
11
  <span> {{ model.fields1Dic.BuildingName.value }}</span>
12
12
  <span>{{ model.fields1Dic.RoomNo.value }}</span>
13
- <img :src="model.fields1Dic.FavoriteUrl.value" alt="" class="collection"/>
13
+ <img :src="model.actionRouterFavorite.imgUrl" alt="" @click="fieldClickHandler(model.actionRouterFavorite, $event)" class="collection" />
14
14
  </div>
15
15
  <div class="title-other">
16
16
  <span>{{ model.fields1Dic.PropertyNo.label }}{{ model.fields1Dic.PropertyNo.value }}</span>
@@ -646,6 +646,9 @@ export default {
646
646
  loadBaseInfo() {
647
647
  this.model.loadBaseInfo();
648
648
  },
649
+ loadFavorite() {
650
+ this.model.loadFavorite();
651
+ },
649
652
  handleClick(tab, event) {
650
653
  let i = tab.index;
651
654
  if (this.model.tags2 && this.model.tags2[i]) {
@@ -697,7 +700,11 @@ export default {
697
700
  });
698
701
  callBack = "loadOperation";
699
702
  }
700
-
703
+ if (router == undefined && this.model.actionRouterFavorite) {
704
+ if (field.id === this.model.actionRouterFavorite.id) {
705
+ router = this.model.actionRouterFavorite;
706
+ }
707
+ }
701
708
  if (router) {
702
709
  if (field.isSubmitDataFromSelf) {
703
710
  router.submitFormField.forEach((v) => {
@@ -712,6 +719,9 @@ export default {
712
719
  if(router.id=="PropertyEdit"){
713
720
  callBack="loadBaseInfo"
714
721
  }
722
+ else if (router.id == "Favorite") {
723
+ callBack = "loadFavorite"
724
+ }
715
725
  }
716
726
 
717
727
  if (callBack) {
@@ -721,6 +731,9 @@ export default {
721
731
  else if(callBack=='loadBaseInfo'){
722
732
  this.routerClickHandler(router, submitData, self.loadBaseInfo);
723
733
  }
734
+ else if (callBack == 'loadFavorite') {
735
+ this.routerClickHandler(router, submitData, self.loadFavorite);
736
+ }
724
737
  }
725
738
  else {
726
739
  this.routerClickHandler(router, submitData);
@@ -794,6 +807,11 @@ export default {
794
807
  });
795
808
  self.$common.closeDialog(dialogOption.dialog);
796
809
  },
810
+ closeDialog(ev) {
811
+ if (field.id == "Favorite" && callBack) {
812
+ callBack();
813
+ }
814
+ }
797
815
  },
798
816
  },
799
817
  ],
@@ -10,7 +10,7 @@
10
10
  <span>{{ model.fields1Dic.EstateName.value }}</span>
11
11
  <span> {{ model.fields1Dic.BuildingName.value }}</span>
12
12
  <span>{{ model.fields1Dic.RoomNo.value }}</span>
13
- <img :src="model.fields1Dic.FavoriteUrl.value" alt="" @click="fieldClickHandler(model.actionRouterFavorite, $event)" class="collection" />
13
+ <img :src="model.actionRouterFavorite.imgUrl" alt="" @click="fieldClickHandler(model.actionRouterFavorite, $event)" class="collection" />
14
14
  </div>
15
15
  <div class="title-other">
16
16
  <span>{{ model.fields1Dic.PropertyNo.label }}{{ model.fields1Dic.PropertyNo.value }}</span>