centaline-data-driven 1.3.50 → 1.3.53

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.50",
3
+ "version": "1.3.53",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
3
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
4
- <ct-form :api="'/commissionmanage/apply'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/PropertyTrust/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
5
5
  <ct-dialog-list></ct-dialog-list>
6
6
  </div>
7
7
  </template>
@@ -12,7 +12,7 @@
12
12
  data() {
13
13
  return {
14
14
  apiParam:{
15
-
15
+ chanceID: "1", actionType: 2
16
16
  },
17
17
  topHeight:10,
18
18
  }
@@ -8,15 +8,15 @@
8
8
  :searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
9
9
  :searchDataApi="'/ProfileWorklistList/getListOfSearchModel'" :apiParam="para"></ct-searchlist> -->
10
10
 
11
- <!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'"
12
- :searchDataApi="'/api/third-dept-tran/tran-list'">
13
- </ct-searchlist> -->
11
+ <ct-searchlist :searchConditionApi="'/api/agenttrans/transactionList/getLayoutOfSearch'"
12
+ :searchDataApi="'/api/agenttrans/transactionList/getTableList'">
13
+ </ct-searchlist>
14
14
 
15
- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
15
+ <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
16
16
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
17
17
  :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
18
18
  :searchStatsApi="'/exampleList/getListStats'">
19
- </ct-searchlist>
19
+ </ct-searchlist> -->
20
20
 
21
21
  <ct-dialog-list></ct-dialog-list>
22
22
  </div>
@@ -152,8 +152,20 @@
152
152
  if(item.attrs.height){
153
153
  ph=parseInt(item.attrs.height.replace('px',''));
154
154
  }
155
- if(self.vmodel.pane && self.vmodel.pane.$el && self.vmodel.pane.$el.clientHeight<ph){
156
- item.attrs.height=(self.vmodel.pane.$el.clientHeight-60)+'px';
155
+
156
+ if(item.attrs.documentHeight && item.attrs.documentHeight!='auto'){
157
+ let dh=parseInt(item.attrs.documentHeight.replace('px',''));
158
+ if(dh<ph){
159
+ item.attrs.height=item.attrs.documentHeight;
160
+ }
161
+ }
162
+ else if(self.vmodel.pane && self.vmodel.pane.$el){
163
+ if(self.vmodel.pane.$el.clientHeight<ph) {
164
+ item.attrs.height=(self.vmodel.pane.$el.clientHeight-60)+'px';
165
+ }
166
+ if(item.component=='ct-form'){
167
+ item.attrs.documentHeight=(self.vmodel.pane.$el.clientHeight-60)+'px';
168
+ }
157
169
  }
158
170
 
159
171
  return h('div', {
@@ -848,8 +848,29 @@ export default {
848
848
  // if (typeof field.onClick !== 'undefined') {
849
849
  // verified = self.$common.excute.call(self.model.scripts, field.onClick);
850
850
  // }
851
-
852
- if (field.isOpenForm) {
851
+ if (field.isBrowseAttachment) {//浏览附件
852
+ var MediaAlbum = [
853
+ { albumName: self.model.title || "媒体", medias: [] },
854
+ ];
855
+ if (field.action) {
856
+ var callback = function (data) {
857
+ MediaAlbum[0].medias = data;
858
+ self.$common.viewerfile(field, MediaAlbum, 0, 0);
859
+ }
860
+ var vsubmitData = {
861
+ ...field.getActionPara(submitData).para,
862
+ ...submitData
863
+ };
864
+ self.model.getAction(field.action, vsubmitData, callback);
865
+ }
866
+ else {
867
+ submitData.mediaData.forEach((v) => {
868
+ MediaAlbum[0].medias.push(v);
869
+ });
870
+ self.$common.viewerfile(field, MediaAlbum, 0, 0);
871
+ }
872
+ }
873
+ else if (field.isOpenForm) {
853
874
  var dialogOption = {
854
875
  title: field.pageTitle,
855
876
  pane: self.$common.getParentPane(self),
@@ -10,7 +10,8 @@
10
10
  <!--头部元素-->
11
11
  <el-row v-if="collapseFieldsRow.length > 0">
12
12
  <el-col v-for="(col, index) in collapseFieldsRow[0]" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
13
- <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
13
+ <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
14
+ :fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight"
14
15
  @click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
15
16
  @input="inputHandler(col,$event)" @importComplete="importComplete"
16
17
  @popupSearchList="popupSearchListHandler"
@@ -24,7 +25,8 @@
24
25
  v-for="(item, index) in collapse" v-if="item.show !== false" :key="index">
25
26
  <el-row>
26
27
  <el-col v-for="(col, index) in collapseFieldsRow[index + 1]" :key="index" :span="col.colspan" v-if="col.show !== false" style="padding:5px">
27
- <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
28
+ <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
29
+ :fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight"
28
30
  @click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
29
31
  @input="inputHandler(col,$event)" @importComplete="importComplete"
30
32
  @popupSearchList="popupSearchListHandler"
@@ -43,7 +45,8 @@
43
45
  </template>
44
46
  <el-row>
45
47
  <el-col v-for="(col, index) in collapseFieldsRow[index + 1]" :key="index" :span="col.colspan" v-if="col.show !== false" style="padding:5px">
46
- <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
48
+ <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
49
+ :fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight"
47
50
  @click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
48
51
  @input="inputHandler(col,$event)" @importComplete="importComplete"
49
52
  @popupSearchList="popupSearchListHandler"
@@ -56,7 +59,8 @@
56
59
  <!--尾部元素-->
57
60
  <el-row v-if="independentItem.length > 0" style="margin-top: 20px;">
58
61
  <el-col v-for="(col, index) in independentItem" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
59
- <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
62
+ <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
63
+ :fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight"
60
64
  @click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)"
61
65
  @input="inputHandler(col,$event)" @importComplete="importComplete"
62
66
  @popupSearchList="popupSearchListHandler"
@@ -105,7 +109,11 @@
105
109
  showTitle: {
106
110
  type: Boolean,
107
111
  default: false
108
- }
112
+ },
113
+ documentHeight:{
114
+ String,
115
+ default: 'auto',
116
+ },
109
117
  },
110
118
  data() {
111
119
  return {
@@ -117,17 +125,16 @@
117
125
  collapseActiveNames: [],//默认展开的分组name
118
126
  collapseFieldsRow: [],//分组数组对应的行列布局
119
127
  independentItem: [],//最后一个独立分组的行列布局
120
- minHeight:'auto'
128
+ minHeight:'auto',
121
129
  };
122
130
  },
123
131
  mounted() {
124
132
  this.init();
125
- if(this.topHeight>-1){
126
- this.minHeight=(document.documentElement.clientHeight-this.topHeight-20)+'px';
127
- }
133
+ this.setCss();
128
134
  },
129
135
  updated(){
130
136
  if(this.$el.parentElement.scrollHeight>this.$el.parentElement.clientHeight
137
+ && this.model
131
138
  && !this.model.isHorizontalLayout){
132
139
  this.isScroll=true;
133
140
  }
@@ -356,12 +363,12 @@
356
363
  content: [{
357
364
  component: 'ct-form',
358
365
  attrs: {
359
- //ssource: data.content,
360
366
  api: field.action,
361
367
  apiParam: field.getActionPara(submitData).para,
362
368
  showTitle: false,
363
369
  width: field.dialogWidth + 'px',
364
- height: field.dialogHeight + 'px'
370
+ height: field.dialogHeight + 'px',
371
+ documentHeight:self.documentHeight,
365
372
  },
366
373
  on: {
367
374
  submit(ev) {
@@ -692,7 +699,8 @@
692
699
  self.$message.warning(checkMsg);
693
700
  return;
694
701
  }
695
-
702
+
703
+ submitData = router.getActionPara(submitData).para;
696
704
  var dialogOption = {
697
705
  title: router.pageTitle,
698
706
  pane: self.$common.getParentPane(self),
@@ -704,7 +712,8 @@
704
712
  apiParam: submitData,
705
713
  singleSelectio: singleSelectio,
706
714
  width: router.dialogWidth + 'px',
707
- height: (router.dialogHeight || 500) + 'px'
715
+ height: (router.dialogHeight || 500) + 'px',
716
+ documentHeight:self.documentHeight,
708
717
  },
709
718
  on: {
710
719
  submit(option) {
@@ -751,8 +760,8 @@
751
760
  i++;
752
761
 
753
762
  if (!jump) {
754
- if (this.model.isHorizontalLayout) {//水平布局
755
- this.activeName = f.model.collapseName.toString()==='-1'?self.activeName:f.model.collapseName.toString();
763
+ if (self.model.isHorizontalLayout) {//水平布局
764
+ self.activeName = f.model.collapseName.toString()==='-1'?self.activeName:f.model.collapseName.toString();
756
765
  jump = true;
757
766
  }
758
767
  else {//垂直布局
@@ -827,6 +836,11 @@
827
836
  }
828
837
  return submitData;
829
838
  },
839
+ setCss() {
840
+ if(this.topHeight>-1){
841
+ this.minHeight=(document.documentElement.clientHeight-this.topHeight-20)+'px';
842
+ }
843
+ },
830
844
  }
831
845
  }
832
846
  </script>
@@ -12,7 +12,8 @@
12
12
  :categoryLoaded="loaded.categoryLoaded" @search="search()" @saveShortcut="saveShortcut"
13
13
  @showTitle="showTitleScreenHandler"></ct-searchscreen>
14
14
 
15
- <ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" @loaded="tableLoaded"
15
+ <ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" :isIframe="isIframe" :documentHeight="documentHeight"
16
+ @loaded="tableLoaded"
16
17
  @toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate"
17
18
  @rowClickHandle="rowClickHandle" @scrollHandle="scrollHandle" @refreshRowHandle="refreshRowHandle" @doClosePopoverHandle="doClosePopoverHandle"
18
19
  @showTitle="showTitleHandler"></ct-searchtable>
@@ -62,6 +63,10 @@
62
63
  String,
63
64
  default:'searchlist'
64
65
  },
66
+ documentHeight:{
67
+ String,
68
+ default: 'auto',
69
+ },
65
70
  },
66
71
  created() {
67
72
  this.model = this.vmodel;
@@ -69,6 +74,9 @@
69
74
  if(this.searchCategoryApi){
70
75
  this.loaded.categoryLoaded=false;
71
76
  }
77
+ if(this.apiParam && this.apiParam.isIframe && this.apiParam.isIframe=='true'){
78
+ this.isIframe=true;
79
+ }
72
80
  },
73
81
  computed: {
74
82
  },
@@ -112,6 +120,7 @@
112
120
  selectIndex:-1,
113
121
  rowCount:0,
114
122
  detailKey:0,
123
+ isIframe: false,
115
124
  }
116
125
  },
117
126
  methods: {
@@ -191,6 +191,14 @@ export default {
191
191
  String,
192
192
  default: "searchlist",
193
193
  },
194
+ isIframe: {
195
+ Boolean,
196
+ default: false,
197
+ },
198
+ documentHeight:{
199
+ String,
200
+ default: 'auto',
201
+ },
194
202
  },
195
203
  computed: {},
196
204
  data() {
@@ -212,7 +220,6 @@ export default {
212
220
  rightShadow: -1, //右阴影个数
213
221
  currentRow: null,
214
222
  colHasWidth: {}, //有无列宽集合
215
- test: true,
216
223
  firstRow: 0, //展示出来可视的第一行号
217
224
  pageRowMin: 0, //页面实际的第一行号
218
225
  pageRowMax: 100, //页面实际的第后行号
@@ -953,12 +960,12 @@ export default {
953
960
  {
954
961
  component: field.navToNewPageName,
955
962
  attrs: {
956
- //source: data.content,
957
963
  api: action,
958
964
  apiParam: field.getActionPara(submitData).para,
959
965
  showTitle: false,
960
966
  width: field.dialogWidth + "px",
961
967
  height: field.dialogHeight + "px",
968
+ documentHeight:self.documentHeight,
962
969
  },
963
970
  on: {
964
971
  submit(ev) {
@@ -1031,6 +1038,7 @@ export default {
1031
1038
  apiParam: submitData,
1032
1039
  width: field.dialogWidth + "px",
1033
1040
  height: field.dialogHeight + "px",
1041
+ documentHeight:self.documentHeight,
1034
1042
  },
1035
1043
  on: {
1036
1044
  refreshParent() {
@@ -1091,6 +1099,9 @@ export default {
1091
1099
  let title = field.pageTitle == undefined ? field.label : field.pageTitle;
1092
1100
  submitData.actionType = field.actionType;
1093
1101
  var fun = self.$common.getDataDrivenOpts().handler[action];
1102
+ if(self.isIframe){
1103
+ submitData.isIframe=self.isIframe;
1104
+ }
1094
1105
  fun(submitData, title, self.$parent);
1095
1106
  }
1096
1107
  };
@@ -46,6 +46,15 @@ const Base = function (source) {
46
46
  set code1(v) {
47
47
  source.code1 = v;
48
48
  },
49
+ set code2(v) {
50
+ source.code2 = v;
51
+ },
52
+ set code3(v) {
53
+ source.code3 = v;
54
+ },
55
+ set code4(v) {
56
+ source.code4 = v;
57
+ },
49
58
  get value() {
50
59
  return source.code1;
51
60
  },
@@ -250,7 +250,8 @@ const Router = function (source) {
250
250
  jsonData: data
251
251
  }
252
252
  };
253
- } else {
253
+ }
254
+ else {
254
255
  data.actionType = rtn.actionType;
255
256
  data = Object.assign(data, rtn.queryPara);
256
257
  if (rtn.isDropdown && rtn.selectOptionCode) {
package/src/main.js CHANGED
@@ -12,8 +12,8 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- // baseUrl: "http://10.88.22.13:7070/v1/form/router",
16
- baseUrl: "http://10.88.23.25:9999/v1/form/router",
15
+ baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
+ // baseUrl: "http://10.88.23.25:9999/v1/form/router",
17
17
  // baseUrl: "http://10.88.22.40:8080/",
18
18
  // baseUrl: "http://tjcptest.centaline.com.cn/",
19
19
  // flagRouterSelf: true,
@@ -41,10 +41,11 @@ Vue.use(centaline, {
41
41
  // 获取请求头
42
42
  getRequestHeaders: function () {
43
43
  return {
44
- oldToken: '8ce4e917-2183-40d9-8b87-53ae45e1fc59',
45
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEKg0AQRP9laxe8u3X31i6epslHyMkpmCpEhYSQf48h2tnnFa8YBmZeMC0dlCAbeKCdVjfwQDutMaRiuMGTSkBicuhN8BiIA53rxoWqhgz6xw1Kw5w7ESeUwRjnX2A112-wTP390j__ce46j-vsIAN5ch1alrSWhTCqRiRbJEtc-MQM7w8AAAD__w.dYqgv0MHo3uvKDGcRKsCZt4UCdSl1qVTNQt628giu6k',
44
+ oldToken: '2a10f2e1-de17-4ceb-a3cf-b33a7b18515e',
45
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO-ydVbK2ou9TgdOaDhEZGNHChXKRwIh7k4QSZeeV4xGr5l5wThHqMCu4E5stG4Fd2KjJWJnyTR4dNYjG9Yo5AU9G8_nutH-VEMB-XGHiowhrcQKFdCH6ScUK_0V85iHS37-49xt6pdZHfUhx2RRkmLkjpbWOcYyBbmW7DhkB-8PAAAA__8.oX2sKPWfJx-cxaoLU5NyK7dX-vrkTDtyOuiONphQ-yI',
46
46
  originalRequestURL: 'http://10.88.22.67:8080',
47
47
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
48
+ estateId: '20210729104021C49F04B55C50F6AF58',
48
49
  authObject: '{"currentEstate":{"estateId":"20111122105652A2A701D48134542934","estateName":"%E9%BE%99%E5%85%89%E5%9F%8E"},"platform":1,"OSVersion":"","clientVersion":"","machineCode":""}',
49
50
  Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjdjZjU3ZDhlLTUzNDItNGFhZC1iYThjLTg3OGNjNTcwZTc5MCJ9.X_b6c_D69_IX8dvQ90cfOqIXi-hTy449sJvzFw_rsXbyVc9obiybHSDycdJ6bgdbJW94XRjbqj9hPwiWyL3XSg',
50
51
  };