centaline-data-driven 1.3.51 → 1.3.52

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.51",
3
+ "version": "1.3.52",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -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', {
@@ -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) {
@@ -704,7 +711,8 @@
704
711
  apiParam: submitData,
705
712
  singleSelectio: singleSelectio,
706
713
  width: router.dialogWidth + 'px',
707
- height: (router.dialogHeight || 500) + 'px'
714
+ height: (router.dialogHeight || 500) + 'px',
715
+ documentHeight:self.documentHeight,
708
716
  },
709
717
  on: {
710
718
  submit(option) {
@@ -751,8 +759,8 @@
751
759
  i++;
752
760
 
753
761
  if (!jump) {
754
- if (this.model.isHorizontalLayout) {//水平布局
755
- this.activeName = f.model.collapseName.toString()==='-1'?self.activeName:f.model.collapseName.toString();
762
+ if (self.model.isHorizontalLayout) {//水平布局
763
+ self.activeName = f.model.collapseName.toString()==='-1'?self.activeName:f.model.collapseName.toString();
756
764
  jump = true;
757
765
  }
758
766
  else {//垂直布局
@@ -827,6 +835,11 @@
827
835
  }
828
836
  return submitData;
829
837
  },
838
+ setCss() {
839
+ if(this.topHeight>-1){
840
+ this.minHeight=(document.documentElement.clientHeight-this.topHeight-20)+'px';
841
+ }
842
+ },
830
843
  }
831
844
  }
832
845
  </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" :isIframe="isIframe" @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,12 +63,11 @@
62
63
  String,
63
64
  default:'searchlist'
64
65
  },
66
+ documentHeight:{
67
+ String,
68
+ default: 'auto',
69
+ },
65
70
  },
66
- data() {
67
- return {
68
- isIframe: false,
69
- };
70
- },
71
71
  created() {
72
72
  this.model = this.vmodel;
73
73
  this.screenPara=this.apiParam;
@@ -120,6 +120,7 @@
120
120
  selectIndex:-1,
121
121
  rowCount:0,
122
122
  detailKey:0,
123
+ isIframe: false,
123
124
  }
124
125
  },
125
126
  methods: {
@@ -195,6 +195,10 @@ export default {
195
195
  Boolean,
196
196
  default: false,
197
197
  },
198
+ documentHeight:{
199
+ String,
200
+ default: 'auto',
201
+ },
198
202
  },
199
203
  computed: {},
200
204
  data() {
@@ -216,7 +220,6 @@ export default {
216
220
  rightShadow: -1, //右阴影个数
217
221
  currentRow: null,
218
222
  colHasWidth: {}, //有无列宽集合
219
- test: true,
220
223
  firstRow: 0, //展示出来可视的第一行号
221
224
  pageRowMin: 0, //页面实际的第一行号
222
225
  pageRowMax: 100, //页面实际的第后行号
@@ -957,12 +960,12 @@ export default {
957
960
  {
958
961
  component: field.navToNewPageName,
959
962
  attrs: {
960
- //source: data.content,
961
963
  api: action,
962
964
  apiParam: field.getActionPara(submitData).para,
963
965
  showTitle: false,
964
966
  width: field.dialogWidth + "px",
965
967
  height: field.dialogHeight + "px",
968
+ documentHeight:self.documentHeight,
966
969
  },
967
970
  on: {
968
971
  submit(ev) {
@@ -1035,6 +1038,7 @@ export default {
1035
1038
  apiParam: submitData,
1036
1039
  width: field.dialogWidth + "px",
1037
1040
  height: field.dialogHeight + "px",
1041
+ documentHeight:self.documentHeight,
1038
1042
  },
1039
1043
  on: {
1040
1044
  refreshParent() {
package/src/main.js CHANGED
@@ -41,10 +41,11 @@ Vue.use(centaline, {
41
41
  // 获取请求头
42
42
  getRequestHeaders: function () {
43
43
  return {
44
- oldToken: '925105ab-273a-4d9e-bb9c-83dca3282a8a',
44
+ oldToken: '2a10f2e1-de17-4ceb-a3cf-b33a7b18515e',
45
45
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEKg0AQRP9laxe8u3X31i6epslHyMkpmCpEhYSQf48h2tnnFa8YBmZeMC0dlCAbeKCdVjfwQDutMaRiuMGTSkBicuhN8BiIA53rxoWqhgz6xw1Kw5w7ESeUwRjnX2A112-wTP390j__ce46j-vsIAN5ch1alrSWhTCqRiRbJEtc-MQM7w8AAAD__w.dYqgv0MHo3uvKDGcRKsCZt4UCdSl1qVTNQt628giu6k',
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
  };