centaline-data-driven 1.3.51 → 1.3.54

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.54",
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="'/api/third-dept-tran/transaction/detail'" :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
+ originalTraId: "1562313224974503937", actionType: 3, pageStyle: 2, pageTitle: "成交报告", pageOnly: true
16
16
  },
17
17
  topHeight:10,
18
18
  }
@@ -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) {
@@ -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>
@@ -159,11 +159,17 @@
159
159
  return false;
160
160
  }
161
161
  }
162
+
162
163
  //是否是取消操作
163
164
  if (!isCancel) {
164
- if (app.model.currentRow.isNew) app.model.tableData.splice(index, 1);
165
- return row.isSet = !row.isSet;
165
+ if (app.model.currentRow.isNew) {
166
+ app.model.tableData.splice(index, 1);
167
+ }
168
+ row.isSet = !row.isSet;
169
+ app.itemKey = Math.random();
170
+ return ;
166
171
  }
172
+
167
173
  //提交数据
168
174
  if (row.isSet) {//保存
169
175
  if (app.fieldsValidExcute()) {
@@ -194,7 +200,7 @@
194
200
  app.model.currentRow.isNew = false;
195
201
  app.model.currentRow.index = index;
196
202
  app.model.currentRow.isSet = true;
197
- row.isSet = true;
203
+ row.isSet = true;
198
204
  app.itemKey = Math.random();
199
205
  }
200
206
  },
@@ -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() {
@@ -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,7 +12,7 @@ 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",
15
+ // baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
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/",
@@ -41,10 +41,11 @@ Vue.use(centaline, {
41
41
  // 获取请求头
42
42
  getRequestHeaders: function () {
43
43
  return {
44
- oldToken: '925105ab-273a-4d9e-bb9c-83dca3282a8a',
45
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEKg0AQRP9laxe8u3X31i6epslHyMkpmCpEhYSQf48h2tnnFa8YBmZeMC0dlCAbeKCdVjfwQDutMaRiuMGTSkBicuhN8BiIA53rxoWqhgz6xw1Kw5w7ESeUwRjnX2A112-wTP390j__ce46j-vsIAN5ch1alrSWhTCqRiRbJEtc-MQM7w8AAAD__w.dYqgv0MHo3uvKDGcRKsCZt4UCdSl1qVTNQt628giu6k',
44
+ oldToken: '77791819-ac7d-4a5d-bd16-5278b9f0b5d7',
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
  };