centaline-data-driven 1.5.44 → 1.5.46

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.5.44",
3
+ "version": "1.5.46",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## v1.5.46
2
+ 2023-08-08
3
+
4
+ 优化
5
+
6
+ 右侧弹窗关闭后需要支持刷新列表行数据
7
+
8
+ ## v1.5.45
9
+ 2023-08-08
10
+
11
+ 优化
12
+
13
+ tableStats组件宽度计算优化和更多图标鼠标移上样式优化
14
+
15
+ 参数缓存关闭后报错处理
16
+
17
+ 列表小于1024打开后,再放大时,右侧没有显示处理
18
+
1
19
  ## v1.5.44
2
20
  2023-08-04
3
21
 
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div id="app-Tree" style="height:100%;position: fixed;width:100%">
3
3
  <ct-treelist :flagsearch="true" :apiParam="apiParam" :leftWidth="'280'"
4
- :searchConditionApi="'/DepartmentList/getLayoutOfSearch'"
5
- :searchDataApi="'/DepartmentList/getListOfSearchModel'" @loaded="loaded"></ct-treelist>
4
+ :searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'"
5
+ :searchDataApi="'/SystemParameterCatalogList/getListOfSearchModel'" @loaded="loaded"></ct-treelist>
6
6
  <ct-dialog-list></ct-dialog-list>
7
7
  </div>
8
8
  </template>
@@ -339,7 +339,7 @@ export default {
339
339
  let self = this;
340
340
  this.$nextTick(() => {
341
341
  if (this.$refs.main) {
342
- if (this.model.routerForQRCode) {
342
+ if (this.model && this.model.routerForQRCode) {
343
343
  this.topWidth = this.$refs.main.clientWidth - 140;
344
344
  }
345
345
  else {
@@ -636,6 +636,9 @@ export default {
636
636
  if (field.id != "Favorite") {
637
637
  self.$emit('simpleRouterclickHandler', field, ev);
638
638
  }
639
+ },
640
+ closeDialog(ev) {
641
+ self.$emit('simpleRouterclickHandler', field, ev);
639
642
  }
640
643
  }
641
644
  }]
@@ -668,6 +671,7 @@ export default {
668
671
  if (field.id == "Favorite" && callBack) {
669
672
  callBack();
670
673
  }
674
+ self.$emit('simpleRouterclickHandler', field, ev);
671
675
  }
672
676
  }
673
677
  }]
@@ -504,6 +504,9 @@ export default {
504
504
  if (field.id != "Favorite") {
505
505
  self.$emit('simpleRouterclickHandler', field, ev);
506
506
  }
507
+ },
508
+ closeDialog(ev) {
509
+ self.$emit('simpleRouterclickHandler', field, ev);
507
510
  }
508
511
  }
509
512
  }]
@@ -536,6 +539,7 @@ export default {
536
539
  if (field.id == "Favorite" && callBack) {
537
540
  callBack();
538
541
  }
542
+ self.$emit('simpleRouterclickHandler', field, ev);
539
543
  }
540
544
  }
541
545
  }]
@@ -503,6 +503,9 @@ export default {
503
503
  if (field.id != "Favorite") {
504
504
  self.$emit('simpleRouterclickHandler', field, ev);
505
505
  }
506
+ },
507
+ closeDialog(ev) {
508
+ self.$emit('simpleRouterclickHandler', field, ev);
506
509
  }
507
510
  }
508
511
  }]
@@ -535,6 +538,7 @@ export default {
535
538
  if (field.id == "Favorite" && callBack) {
536
539
  callBack();
537
540
  }
541
+ self.$emit('simpleRouterclickHandler', field, ev);
538
542
  }
539
543
  }
540
544
  }]
@@ -151,6 +151,7 @@
151
151
  }
152
152
  if(this.$refs.table){
153
153
  this.$refs.table.resetScrollActivated();
154
+ this.$refs.table.setTableHeight();
154
155
  }
155
156
  })
156
157
  },
@@ -228,11 +229,29 @@
228
229
  }
229
230
  },
230
231
  resizeSearchList() {
232
+ if(document.body.clientWidth && document.body.clientWidth>=1024){
233
+ if(!this.flagSideBar && this.$refs.table){
234
+ this.flagSideBar=this.$refs.table.model.flagSideBar;
235
+ if(this.flagSideBar && this.flagSideBarOfData){
236
+ this.sideMenuClickHandler('close');
237
+ }
238
+ }
239
+ }
240
+ else{
241
+ this.flagSideBar=false;
242
+ this.sideBarStatus ='close';
243
+ this.sideBarRight=-this.sideBarWidth;
244
+ this.sideBarWidth=0;
245
+ this.searchWidth=0;
246
+ this.sideBarMenuRight=0;
247
+ }
248
+
231
249
  if(this.flagSideBar && this.flagSideBarOfData){
232
250
  if(this.sideBarStatus=='open' && this.$refs.main){
233
251
  this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
234
252
  }
235
253
  }
254
+
236
255
  if(this.$refs.main){
237
256
  this.listHeight=this.$refs.main.offsetHeight;
238
257
  if(this.$refs.detail){
@@ -1951,7 +1951,7 @@ export default {
1951
1951
  refreshFromSimple(field, data) {
1952
1952
  var self = this;
1953
1953
  if (field.isOpenForm) {
1954
- if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
1954
+ if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction && data) {
1955
1955
  self.model.doAction(data);
1956
1956
  }
1957
1957
  self.$forceUpdate();
@@ -1959,7 +1959,7 @@ export default {
1959
1959
  self.updateCurrentRow(field, data,true);
1960
1960
  }
1961
1961
  else {
1962
- if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
1962
+ if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction && data) {
1963
1963
  self.model.doAction({ responseData: data });
1964
1964
  }
1965
1965
  self.$forceUpdate();
@@ -152,7 +152,7 @@ export default {
152
152
  isHidden: true, //是否开启操作栏隐藏设置,默认开启
153
153
  showNum: 3, //如果isHidden为true时,个数大于3就会隐藏,默认是3
154
154
  appendId: "", //将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
155
- trigger: "hover", //触发方式,传值可查看Popper UI组件trigger属性
155
+ trigger: "click", //触发方式,传值可查看Popper UI组件trigger属性
156
156
  placement: "bottom-start", //方向,传值可查看Popper UI组件placement属性
157
157
  },
158
158
  iconSort: require("../../../assets/sort.png"),
@@ -160,11 +160,9 @@ export default {
160
160
  },
161
161
  mounted() {
162
162
  var self = this;
163
- self.showWidth =
164
- self.$refs.tableStatistics.offsetWidth || document.body.clientWidth;
165
- window.addEventListener('resize', function () {
166
- self.showWidth =
167
- self.$refs.tableStatistics.offsetWidth || document.body.clientWidth;
163
+ self.showWidth = self.$refs.tableStatistics && self.$refs.tableStatistics.offsetWidth || document.body.clientWidth;
164
+ window.addEventListener('resize', function () {
165
+ self.showWidth = self.$refs.tableStatistics && self.$refs.tableStatistics.offsetWidth || document.body.clientWidth;
168
166
  });
169
167
  },
170
168
  methods: {
@@ -249,10 +247,10 @@ export default {
249
247
  } else {
250
248
  moreWidth = 0;
251
249
  }
252
- if (self.showWidth < sumWidth + moreWidth) {
250
+ if (self.showWidth -i < sumWidth + moreWidth) {
253
251
  showIndex = i;
254
252
  break;
255
- } else if (self.showWidth < nextWidth + moreWidth) {
253
+ } else if (self.showWidth -i < nextWidth + moreWidth) {
256
254
  showIndex = i + 1;
257
255
  break;
258
256
  }
@@ -278,6 +276,7 @@ export default {
278
276
  handleClick(ev, obj, flagRefreshTable,type,index) {
279
277
  var self = this;
280
278
  self.flagClick=true;
279
+ self.FlagStatistics = false;
281
280
  self.selectStats = obj.key;
282
281
  var fields = self.model.searchData(
283
282
  obj.fieldName1,
@@ -433,6 +432,7 @@ export default {
433
432
  text-align: left;
434
433
  top: 2px;
435
434
  right: 0px;
435
+ cursor: pointer;
436
436
  }
437
437
  .my-icon-more {
438
438
  width: 14px;
@@ -93,6 +93,9 @@
93
93
  this.$refs.detail.$children[0].refreshPage();
94
94
  }
95
95
  }
96
+ if(this.$refs.table){
97
+ this.$refs.table.setTableHeight();
98
+ }
96
99
  })
97
100
  },
98
101
  data() {
@@ -211,6 +214,23 @@
211
214
  }
212
215
  },
213
216
  resizeSearchList() {
217
+ if(document.body.clientWidth && document.body.clientWidth>=1024){
218
+ if(!this.flagSideBar && this.$refs.table){
219
+ this.flagSideBar=this.$refs.table.model.flagSideBar;
220
+ if(this.flagSideBar && this.flagSideBarOfData){
221
+ this.sideMenuClickHandler('close');
222
+ }
223
+ }
224
+ }
225
+ else{
226
+ this.flagSideBar=false;
227
+ this.sideBarStatus ='close';
228
+ this.sideBarRight=-this.sideBarWidth;
229
+ this.sideBarWidth=0;
230
+ this.searchWidth=0;
231
+ this.sideBarMenuRight=0;
232
+ }
233
+
214
234
  if(this.flagSideBar && this.flagSideBarOfData){
215
235
  if(this.sideBarStatus=='open' && this.$refs.main){
216
236
  this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
@@ -186,7 +186,9 @@
186
186
  this.$emit('refreshParent');
187
187
  },
188
188
  resize() {
189
- this.listHeight=(this.$refs.main.offsetHeight-42)+'px';
189
+ if(this.$refs.main){
190
+ this.listHeight=(this.$refs.main.offsetHeight-42)+'px';
191
+ }
190
192
  if(this.$refs['searchlist'+this.activeIndex] && this.$refs['searchlist'+this.activeIndex][0]){
191
193
  this.$refs['searchlist'+this.activeIndex][0].resize();
192
194
  this.$refs['searchlist'+this.activeIndex][0].resizeSearchList();
@@ -43,7 +43,7 @@ export default {
43
43
  }
44
44
  });
45
45
  },
46
-
46
+ updateCurrentRow(field, ev){},
47
47
  search() {
48
48
  this.setTreeHeight();
49
49
  this.$refs.tree.search(this.$refs.treescreen.model);
package/src/main.js CHANGED
@@ -58,7 +58,7 @@ Vue.use(centaline, {
58
58
  return {
59
59
  oldToken: 'cd6060fd-36e5-47f1-8cb9-7fc6f61e645c',
60
60
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
61
- authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOwjAMRe-SuZZsx0mcbk3SLhyiakWGMiFoJRDi7oCAjZ03_OEt79_MeZtNa4p2KHmwkHt2ICU46IagkLIqJg5Wko7xA_yYLyORxEC-hy6GDOLFglJWyOKzDKW3ORXTmHo5mpZ8JCaLpI1ZpvUtiL1_ie1cT7t6_ce5w7o8s6zsVLBCdAFBWBxMhAFktpFxbxmJzf0BAAD__w.8j17kTENd-vwsdYlFXYHupmajMNlLNuXVuY2nIjs_fo"}',
61
+ authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEOgjAURf-lMy9p6aPvlY2-wuJHkAIlwckIJBrjv6tRN3fPcIeznHtT6z6oWkVuNEpnQdqyAoxUQdMRQxBmHUqyGLj3H-DHfOmNQU_GtdB4EkCHFtgIg6AT7GJrJURVqHw5qdo4b5CRNBZqSdtbWM_2JfY1nw_5-o9zx215Zj2lZFEbGGbUgKUfIc2ZIdPoHI5I05TV_QEAAP__.JcB2iXcfHNcB2eJQ_kEIhID-UXCMx-HDoIuv9ZIA33I"}',
62
62
 
63
63
  originalRequestURL: 'http://10.88.22.67:8080',
64
64
  EstateInfo: '{"estateId":"201806071109550C867184E8BCA56EC3","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',