centaline-data-driven 1.3.45 → 1.3.48

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.45",
3
+ "version": "1.3.48",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Detail.vue CHANGED
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div id="appDetail" style="height:100%;">
3
- <ct-Detail :api="'PropertyOFI/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailOFI'"></ct-Detail>
3
+ <ct-Detail :api="'PropertyRET/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailRET'"></ct-Detail>
4
4
  <ct-dialog-list></ct-dialog-list>
5
5
  </div>
6
6
  </template>
package/src/Form.vue CHANGED
@@ -1,9 +1,7 @@
1
1
  <template>
2
2
  <div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
- <!-- <ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
4
3
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
5
- <ct-form :api="'/PropertyTrust/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
6
- <!-- <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form> -->
4
+ <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
7
5
  <ct-dialog-list></ct-dialog-list>
8
6
  </div>
9
7
  </template>
@@ -14,7 +12,11 @@
14
12
  data() {
15
13
  return {
16
14
  apiParam:{
17
- chanceID: "1508323251514904576", actionType: 2
15
+ actionType: 3,
16
+ originalTraId: "1556877589776220161",
17
+ pageOnly: true,
18
+ pageStyle: 2,
19
+ pageTitle: "成交报告"
18
20
  },
19
21
  topHeight:10,
20
22
  }
@@ -275,4 +275,8 @@
275
275
  background-color: #409EFF !important;
276
276
  border-color: #409EFF !important;
277
277
  } */
278
-
278
+ .ct-inputNumber .el-input-group {
279
+ display: flex;
280
+ justify-content: flex-start;
281
+ align-items: center;
282
+ }
@@ -32,7 +32,7 @@
32
32
  flex: 1; align-items: center; padding: 5px; border-radius: 5px;">
33
33
  </div>
34
34
  </div>
35
- <div class="head-but">
35
+ <div class="head-but" :key="actionRoutersKey">
36
36
  <div>
37
37
  <component class="max-report w93"
38
38
  v-if="model.actionRouters !== null && model.actionRouters[0] !== null"
@@ -553,6 +553,7 @@ export default {
553
553
  FlagStatistics: false,
554
554
  dropDownSelected: false,
555
555
  iconSort: require("../../../assets/sort.png"),
556
+ actionRoutersKey: Math.random(),
556
557
  };
557
558
  },
558
559
  mounted() {
@@ -588,7 +589,7 @@ export default {
588
589
  });
589
590
  },
590
591
  methods: {
591
- showStats() {
592
+ showStats() {
592
593
  var self = this;
593
594
  this.$nextTick(function () {
594
595
  if (self.model.tags1.length > 0) {
@@ -625,7 +626,6 @@ export default {
625
626
  }
626
627
  });
627
628
  },
628
-
629
629
  load(data) {
630
630
  var self = this;
631
631
  this.model = data;
@@ -672,7 +672,8 @@ export default {
672
672
  if (v.type === 13) {
673
673
  collapseItemArr = [];
674
674
  col = 0;
675
- } else if (v.singleLine) {
675
+ }
676
+ else if (v.singleLine) {
676
677
  if (collapseItemArr.length > 0) {
677
678
  self.collapse.push(collapseItemArr);
678
679
  collapseItemArr = [];
@@ -681,7 +682,8 @@ export default {
681
682
  self.collapse.push(collapseItemArr);
682
683
  collapseItemArr = [];
683
684
  col = 0;
684
- } else if (v.spanCols) {
685
+ }
686
+ else if (v.spanCols) {
685
687
  collapseItemArr.push(v);
686
688
  col = col + v.spanCols;
687
689
  if (col === colCount || index === self.model.fields2Dic.length - 1) {
@@ -689,7 +691,8 @@ export default {
689
691
  collapseItemArr = [];
690
692
  col = 0;
691
693
  }
692
- } else {
694
+ }
695
+ else {
693
696
  collapseItemArr.push(v);
694
697
  col = col + 1;
695
698
  if (col === colCount || index === self.model.fields2Dic.length - 1) {
@@ -711,8 +714,11 @@ export default {
711
714
  lookOwner() {
712
715
  this.codeOwner = true;
713
716
  },
714
- loadBaseInfo() {
717
+ loadBaseInfo(field) {
715
718
  this.model.loadBaseInfo();
719
+ if(field.id == "PropertyChanceQuestion"){
720
+ this.loadOperation();
721
+ }
716
722
  },
717
723
  loadFavorite() {
718
724
  this.model.loadFavorite();
@@ -751,7 +757,7 @@ export default {
751
757
  window.localStorage.setItem("detailtagkey", this.model.tags1[i].appID); //存储
752
758
  }
753
759
  },
754
- handleDropDown(key, index) {
760
+ handleDropDown(key, index) {
755
761
  let i = index;
756
762
  this.model.activeIndex1 = (this.showData[0].length + i).toString();
757
763
  let dropDownData = this.showData[1];
@@ -798,7 +804,12 @@ export default {
798
804
  submitData[v] = self.model.fields1Dic[v].value;
799
805
  });
800
806
  }
801
- if(router.id=="PropertyEdit"){
807
+ if (router.id == "PropertyEdit"
808
+ || router.id == "QuestionAppeal"
809
+ || router.id == "PropertyChanceQuestion"
810
+ || router.id == "TranToActive"
811
+ || router.id == "TranToNotActive"
812
+ || router.id == "PropertyChanceTipOff") {
802
813
  callBack="loadBaseInfo"
803
814
  }
804
815
  else if (router.id == "Favorite") {
@@ -856,7 +867,7 @@ export default {
856
867
  submit(ev) {
857
868
  self.model.doAction(ev, field);
858
869
  if (callBack) {
859
- callBack();
870
+ callBack(field);
860
871
  }
861
872
  self.$common.closeDialog(dialogOption.dialog);
862
873
  },
@@ -900,8 +911,7 @@ export default {
900
911
  };
901
912
  self.$common.openDialog(dialogOption);
902
913
  }
903
- else if (field.isFormPageInTab) {
904
- // 外部框架tab页打开
914
+ else if (field.isFormPageInTab) {// 外部框架tab页打开
905
915
  submitData = field.getActionPara(submitData).para;
906
916
  self.$common
907
917
  .getDataDrivenOpts()
@@ -913,32 +923,28 @@ export default {
913
923
  field.dialogWidth
914
924
  );
915
925
  }
916
- else if (field.isSearchPageInTab) {
917
- // 外部框架tab页打开
926
+ else if (field.isSearchPageInTab) {// 外部框架tab页打开
918
927
  submitData = field.getActionPara(submitData).para;
919
928
  self.$common
920
929
  .getDataDrivenOpts()
921
930
  .handler.openTabSearch(field, submitData);
922
931
  }
923
- else if (field.isBrowserNewTab) {
924
- // 浏览器打开
932
+ else if (field.isBrowserNewTab) {// 浏览器打开
925
933
  submitData = field.getActionPara(submitData).para;
926
934
  let query = self.$common.objectToQueryStr(submitData);
927
935
  window.open(field.action + query, "_blank");
928
936
  }
929
- else if (field.isOpenUrlInBrowse) {
930
- // 浏览器打开
937
+ else if (field.isOpenUrlInBrowse) {// 浏览器打开
931
938
  window.open(submitData[field.submitFormField], "_blank");
932
939
  }
933
- else if (field.isSeeVoice) {
934
- //看视频
940
+ else if (field.isSeeVoice) {//看视频
935
941
  self.$common.browseVideo(field, submitData);
936
942
  }
937
943
  else {
938
944
  field.doAction(submitData, (data) => {
939
945
  self.model.doAction(data, field);
940
946
  if (callBack) {
941
- callBack();
947
+ callBack(field);
942
948
  }
943
949
  });
944
950
  }
@@ -32,7 +32,7 @@
32
32
  style="font-weight: bold;font-size: 13px; margin-top: 10px;background: rgb(236, 249, 255); flex: 1;align-items: center;padding: 5px;border-radius: 5px;">
33
33
  </div>
34
34
  </div>
35
- <div class="head-but">
35
+ <div class="head-but" :key="actionRoutersKey">
36
36
  <div>
37
37
  <component class="max-report w93"
38
38
  v-if=" model.actionRouters !== null && model.actionRouters[0] !== null"
@@ -155,11 +155,7 @@
155
155
  </div>
156
156
  </div>
157
157
  <div class="contacts-info base-box">
158
- <ct-contactList
159
- v-if="model.contactApiRouter !== null"
160
- :apiRouter="model.contactApiRouter"
161
- :key="'contact' + refershKey"
162
- ></ct-contactList>
158
+ <ct-contactList v-if="model.contactApiRouter !== null" :apiRouter="model.contactApiRouter" :key="'contact' + refershKey"></ct-contactList>
163
159
  </div>
164
160
  <div class="tablist-info base-box">
165
161
  <div class="details-tabs-box">
@@ -549,7 +545,8 @@ export default {
549
545
  showData: [],
550
546
  FlagStatistics: false,
551
547
  dropDownSelected: false,
552
- iconSort: require("../../../assets/sort.png"),
548
+ iconSort: require("../../../assets/sort.png"),
549
+ actionRoutersKey: Math.random(),
553
550
  };
554
551
  },
555
552
  mounted() {
@@ -656,10 +653,8 @@ export default {
656
653
  self.model.activeIndex1 = i.toString();
657
654
  if (self.model.tags1 && self.model.tags1[i]) {
658
655
  self.listKey = self.listKey + 1;
659
- self.model.searchConditionApiTags1 =
660
- self.model.tags1[i].searchConditionApiUrl || "";
661
- self.model.searchDataApiTags1 =
662
- self.model.tags1[i].searchDataApiUrl || "";
656
+ self.model.searchConditionApiTags1 = self.model.tags1[i].searchConditionApiUrl || "";
657
+ self.model.searchDataApiTags1 = self.model.tags1[i].searchDataApiUrl || "";
663
658
  self.model.paramDataTags1 = self.model.tags1[i].paramData || "";
664
659
  }
665
660
  }
@@ -729,8 +724,11 @@ export default {
729
724
  lookOwner() {
730
725
  this.codeOwner = true;
731
726
  },
732
- loadBaseInfo() {
727
+ loadBaseInfo(field) {
733
728
  this.model.loadBaseInfo();
729
+ if(field.id == "PropertyChanceQuestion"){
730
+ this.loadOperation();
731
+ }
734
732
  },
735
733
  loadFavorite() {
736
734
  this.model.loadFavorite();
@@ -819,7 +817,12 @@ export default {
819
817
  submitData[v] = self.model.fields1Dic[v].value;
820
818
  });
821
819
  }
822
- if (router.id == "PropertyEdit") {
820
+ if (router.id == "PropertyEdit"
821
+ || router.id == "QuestionAppeal"
822
+ || router.id == "PropertyChanceQuestion"
823
+ || router.id == "TranToActive"
824
+ || router.id == "TranToNotActive"
825
+ || router.id == "PropertyChanceTipOff") {
823
826
  callBack = "loadBaseInfo"
824
827
  }
825
828
  else if (router.id == "Favorite") {
@@ -880,7 +883,7 @@ export default {
880
883
  self.$common.viewerfile(field, MediaAlbum, 0, 0);
881
884
  }
882
885
  }
883
- else if (field.isOpenForm) {
886
+ else if (field.isOpenForm) {
884
887
  var dialogOption = {
885
888
  title: field.pageTitle,
886
889
  pane: self.$common.getParentPane(self),
@@ -898,7 +901,7 @@ export default {
898
901
  submit(ev) {
899
902
  self.model.doAction(ev, field);
900
903
  if (callBack) {
901
- callBack();
904
+ callBack(field);
902
905
  }
903
906
  self.$common.closeDialog(dialogOption.dialog);
904
907
  },
@@ -973,7 +976,7 @@ export default {
973
976
  field.doAction(submitData, (data) => {
974
977
  self.model.doAction(data, field);
975
978
  if (callBack) {
976
- callBack();
979
+ callBack(field);
977
980
  }
978
981
  });
979
982
  }
@@ -981,8 +984,7 @@ export default {
981
984
  //执行客户端脚本
982
985
  else {
983
986
  submitData = field.getActionPara(submitData).para;
984
- let title =
985
- field.pageTitle == undefined ? field.label : field.pageTitle;
987
+ let title = field.pageTitle == undefined ? field.label : field.pageTitle;
986
988
  submitData.actionType = field.actionType;
987
989
  var fun = self.$common.getDataDrivenOpts().handler[field.action];
988
990
  fun(submitData, title, null);
@@ -1012,53 +1014,33 @@ export default {
1012
1014
  clickNextHandler() {
1013
1015
  let key = "chanceID";
1014
1016
  if (this.parentModel && this.parentModel.$refs.table) {
1015
- let oldValue =
1016
- this.parentModel.$refs.table.model.listData[
1017
- this.parentModel.$refs.table.model.selectIndex
1018
- ][key];
1017
+ let oldValue = this.parentModel.$refs.table.model.listData[this.parentModel.$refs.table.model.selectIndex][key];
1019
1018
  this.parentModel.$refs.table.rowKeyDownHandle(null, 1);
1020
- let newValue =
1021
- this.parentModel.$refs.table.model.listData[
1022
- this.parentModel.$refs.table.model.selectIndex
1023
- ][key];
1019
+ let newValue = this.parentModel.$refs.table.model.listData[this.parentModel.$refs.table.model.selectIndex][key];
1024
1020
  if (oldValue !== newValue) {
1025
1021
  let parm = this.$common.cloneObject(this.apiParam);
1026
1022
  parm[key] = newValue;
1027
1023
  // this.loaderObj.Detail(this.api, parm, this.load);
1028
- this.$common
1029
- .getDataDrivenOpts()
1030
- .handler.refreshPropertyDetail(parm, this.parentModel,"PropertyDetailRET");
1024
+ this.$common.getDataDrivenOpts().handler.refreshPropertyDetail(parm, this.parentModel,"PropertyDetailRET");
1031
1025
  }
1032
1026
  }
1033
1027
  },
1034
1028
  clickPrevHandler() {
1035
1029
  let key = "chanceID";
1036
1030
  if (this.parentModel && this.parentModel.$refs.table) {
1037
- let oldValue =
1038
- this.parentModel.$refs.table.model.listData[
1039
- this.parentModel.$refs.table.model.selectIndex
1040
- ][key];
1031
+ let oldValue = this.parentModel.$refs.table.model.listData[this.parentModel.$refs.table.model.selectIndex][key];
1041
1032
  this.parentModel.$refs.table.rowKeyDownHandle(null, -1);
1042
- let newValue =
1043
- this.parentModel.$refs.table.model.listData[
1044
- this.parentModel.$refs.table.model.selectIndex
1045
- ][key];
1033
+ let newValue = this.parentModel.$refs.table.model.listData[this.parentModel.$refs.table.model.selectIndex][key];
1046
1034
  if (oldValue !== newValue) {
1047
1035
  let parm = this.$common.cloneObject(this.apiParam);
1048
1036
  parm[key] = newValue;
1049
1037
  // this.loaderObj.Detail(this.api, parm, this.load);
1050
- this.$common
1051
- .getDataDrivenOpts()
1052
- .handler.refreshPropertyDetail(parm, this.parentModel,"PropertyDetailRET");
1038
+ this.$common.getDataDrivenOpts().handler.refreshPropertyDetail(parm, this.parentModel,"PropertyDetailRET");
1053
1039
  }
1054
1040
  }
1055
1041
  },
1056
1042
  scrollHandle(ev) {
1057
- this.$emit(
1058
- "scrollHandle",
1059
- this.$refs.detail.scrollTop,
1060
- this.$refs.detail.scrollLeft
1061
- );
1043
+ this.$emit( "scrollHandle", this.$refs.detail.scrollTop, this.$refs.detail.scrollLeft);
1062
1044
  ev.cancelBubble = true;
1063
1045
  ev.stopPropagation();
1064
1046
  },
@@ -63,7 +63,7 @@
63
63
  @tableButtonClick="clickHandler"></component>
64
64
  </el-col>
65
65
  </el-row>
66
- <el-row v-if="model.links.findIndex((v)=>{return v.show}).length > -1" style="margin-top: 8px;">
66
+ <el-row v-if="model.links.findIndex((v)=>{return v.show}) > -1" style="margin-top: 8px;">
67
67
  <el-col :span="24" style="text-align:left">
68
68
  <component v-for="(btn, index) in model.links" :key="index" :is="btn.is" :vmodel="btn" @click="clickHandler" v-if="btn.show"></component>
69
69
  </el-col>
@@ -543,6 +543,9 @@
543
543
  on: {
544
544
  finished(data) {
545
545
  self.$common.closeDialog(dialogOption.dialog);
546
+ if(data.rtnMsg){
547
+ self.$message.info(data.rtnMsg);
548
+ }
546
549
  if(field && field.changeCallBackFunName){
547
550
  self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
548
551
  }
@@ -722,13 +725,13 @@
722
725
  self.$refs.Fields.forEach((f) => {
723
726
  if (f.model && typeof f.validExcute !== 'undefined') {
724
727
  if (!f.validExcute()) {
725
- if(i===0 && f.model.label){
728
+ if(i===0){
726
729
  if(f.model.is=="ct-file"){
727
730
  self.$message.error(f.validMessage);
728
731
  }
729
732
  else{
730
733
  if(f.validMessage){
731
- if(f.validMessage=='必填'){
734
+ if(f.validMessage=='必填' && f.model.label){
732
735
  self.$message.error('【'+f.model.label+'】'+f.validMessage);
733
736
  }
734
737
  else{
@@ -736,7 +739,9 @@
736
739
  }
737
740
  }
738
741
  else{
739
- self.$message.error('【'+f.model.label+'】不能为空!');
742
+ if(f.model.label){
743
+ self.$message.error('【'+f.model.label+'】不能为空!');
744
+ }
740
745
  }
741
746
  }
742
747
  }
@@ -916,6 +916,9 @@ export default {
916
916
  on: {
917
917
  finished() {
918
918
  self.$common.closeDialog(dialogOption.dialog);
919
+ if(data.rtnMsg){
920
+ self.$message.info(data.rtnMsg);
921
+ }
919
922
  self.getPage(1);
920
923
  },
921
924
  error(data) {
@@ -80,6 +80,9 @@ const Detail = function (source, para, callBack) {
80
80
  get labels() {
81
81
  return data.labels;
82
82
  },
83
+ set labels(v) {
84
+ data.labels=v;
85
+ },
83
86
  get fields1Dic() {
84
87
  if (rtn._fields1Dic !== null) {
85
88
  return rtn._fields1Dic;
@@ -207,6 +210,9 @@ const Detail = function (source, para, callBack) {
207
210
  }
208
211
  return rtn._actionRoutersAll;
209
212
  },
213
+ set actionRoutersAll(v) {
214
+ data.actionRouters=v;
215
+ },
210
216
  get actionRoutersShow() {
211
217
  if (rtn._actionRoutersShow !== null) {
212
218
  return rtn._actionRoutersShow;
@@ -535,6 +541,23 @@ const Detail = function (source, para, callBack) {
535
541
  rtn.fields1=response.content.fields1;
536
542
  rtn.fields2=response.content.fields2;
537
543
  rtn.$vue.loadFields();
544
+
545
+ rtn._actionRouterLabel=null;
546
+ rtn.labels=response.content.labels;
547
+
548
+ rtn._actionRoutersAll=null;
549
+ rtn._actionRoutersShow=null;
550
+ rtn._actionRouters=null;
551
+ rtn._actionRoutersMoreList=null;
552
+ rtn.actionRoutersAll=response.content.actionRouters;
553
+ rtn._actionRoutersAll = [];
554
+ response.content.actionRouters.forEach((v, i) => {
555
+ var router = Router(v);
556
+ router.is = "ct-btn";
557
+ router.attrs = { size: "mini" }
558
+ rtn._actionRoutersAll.push(router);
559
+ });
560
+ rtn.$vue.actionRoutersKey=Math.random();
538
561
  }
539
562
  }
540
563
  );
@@ -59,6 +59,9 @@ const box = function (source, fileSourceList, router, optionApi) {
59
59
  //简单分类
60
60
  getOptions(callBack) {
61
61
  var self = this;
62
+ if(!source.paramName1){
63
+ return false;
64
+ }
62
65
  if (self.optionModel.isInit) {
63
66
  return self.optionModel.options;
64
67
  }
@@ -90,8 +90,6 @@ const So = function (source, moreActionRouter) {
90
90
  //});
91
91
  Vue.prototype.$api.postHandler(common.globalUri(), params).then((response) => {
92
92
  if (response.rtnCode === 200) {
93
- response.content[0].toolTip="XXXXXXXXXXXXXXXXXXXX";
94
- response.content[1].toolTip="CCCCCCCCCCCCCCCCCCCC";
95
93
  self.options = response.content;
96
94
  }
97
95
  });
package/src/main.js CHANGED
@@ -41,7 +41,7 @@ Vue.use(centaline, {
41
41
  // 获取请求头
42
42
  getRequestHeaders: function () {
43
43
  return {
44
- oldToken: 'daed21af-8ae7-4bc0-8eb5-b6ae137c8e9c',
44
+ oldToken: '8ce4e917-2183-40d9-8b87-53ae45e1fc59',
45
45
  originalRequestURL: 'http://10.88.22.67:8080',
46
46
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
47
47
  Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE2OGI1YThjLThiZTUtNDQyZi04NTA4LWMyODY4N2NkYmEzMSJ9.Rk26QdZSUzDVdjdRxGxDApOt5W6KYjmyjmsXpWeZb5E5NwZjpXnHYwhYkKjNxIeyg--OV2UrzFa2SxGzZ-Wneg',