centaline-data-driven 1.5.42 → 1.5.44

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.42",
3
+ "version": "1.5.44",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## v1.5.44
2
+ 2023-08-04
3
+
4
+ 优化
5
+
6
+ 列表底部右侧增加companyName
7
+
8
+ ## v1.5.43
9
+ 2023-08-03
10
+
11
+ 优化
12
+
13
+ 客户列表右侧边栏tabs和详情页tabs栏选中定位功能优化
14
+
1
15
  ## v1.5.42
2
16
  2023-07-31
3
17
 
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="'/api/data-driven-file/downTemplate'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/api/third-dept-tran/transaction/task'" :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
- "key":"excel:12be9cb7-fd3a-4f82-a583-d7e240dc7aab"
15
+ "stepId":"1686982560817586178","businessId":"1686982455918043138","actionType":1,"pageStyle":2,"pageOnly":true
16
16
  },
17
17
  topHeight:10,
18
18
  }
@@ -62,11 +62,11 @@
62
62
  :searchStatsApi="'/PropertyRETList/getListStats'">
63
63
  </ct-searchlist> -->
64
64
 
65
- <ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'"
65
+ <!-- <ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'"
66
66
  :searchDataApi="'/PropertyOFIList/getListOfSearchModel'"
67
67
  :searchCategoryApi="'/PropertyOFIList/getLayoutOfSearchCategory'"
68
68
  :searchStatsApi="'/PropertyOFIList/getListStats'">
69
- </ct-searchlist>
69
+ </ct-searchlist> -->
70
70
 
71
71
  <!-- <ct-searchlist :searchConditionApi="'/EstateList/getLayoutOfSearch'" :searchDataApi="'/EstateList/getListOfSearchModel'"></ct-searchlist> -->
72
72
 
@@ -76,7 +76,7 @@
76
76
 
77
77
  <!-- <ct-searchlist :searchConditionApi="'/CustomerImportList/getLayoutOfSearch'" :searchDataApi="'/CustomerImportList/getListOfSearchModel'"></ct-searchlist> -->
78
78
 
79
- <!-- <ct-searchlist :searchConditionApi="'/CustomerList/getLayoutOfSearch'" :searchStatsApi="'/CustomerList/getListStats'" :searchDataApi="'/CustomerList/getListOfSearchModel'"></ct-searchlist> -->
79
+ <ct-searchlist :searchConditionApi="'/CustomerList/getLayoutOfSearch'" :searchStatsApi="'/CustomerList/getListStats'" :searchDataApi="'/CustomerList/getListOfSearchModel'"></ct-searchlist>
80
80
 
81
81
  <!-- <ct-searchlist :searchConditionApi="'/CallTaskList/getLayoutOfSearch'" :searchDataApi="'/CallTaskList/getListOfSearchModel'"></ct-searchlist> -->
82
82
 
@@ -247,7 +247,7 @@ export default {
247
247
  this.model.getTags2List(0);
248
248
  }
249
249
  if (typeof window.localStorage !== 'undefined') {
250
- var tagkey = window.localStorage.getItem('simpletagkey');
250
+ var tagkey = window.localStorage.getItem('simpleCustomertagkey');
251
251
  if (self.model.tags1) {
252
252
  for (var i = 0; i < self.model.tags1.length; i++) {
253
253
  if (tagkey == self.model.tags1[i].appID) {
@@ -270,13 +270,11 @@ export default {
270
270
  var nextWidth = 0;
271
271
  for (var i = 0; i < self.model.tags1.length; i++) {
272
272
  if (self.$refs["StatisticsItem" + i][0] && self.$refs["StatisticsItem" + i][0].offsetParent) {
273
- sumWidth = sumWidth + self.$refs["StatisticsItem" + i][0].offsetParent.offsetWidth;
274
- console.log('sumWidth',sumWidth);
273
+ sumWidth = sumWidth + self.$refs["StatisticsItem" + i][0].offsetParent.offsetWidth;;
275
274
  }
276
275
  if (i + 1 < self.model.tags1.length) {
277
276
  try {
278
277
  nextWidth = nextWidth + self.$refs["StatisticsItem" + (i + 1)][0].offsetParent.offsetWidth;
279
- console.log('nextWidth',nextWidth);
280
278
  } catch (e) { }
281
279
  }
282
280
  else {
@@ -301,9 +299,31 @@ export default {
301
299
  self.model.tags1.slice(0, tagShowIndex),
302
300
  self.model.tags1.slice(tagShowIndex),
303
301
  ];
302
+ var tagkey = window.localStorage.getItem('simpleCustomertagkey');
303
+ var tagindex= self.model.tags1.findIndex(
304
+ (v) => v.appID === tagkey
305
+ );
306
+ if(tagindex>=tagShowIndex){
307
+ //交换位置
308
+ var col= self.showData[1].filter(
309
+ (v) => v.appID === tagkey
310
+ );
311
+ if(col.length>0)
312
+ {
313
+ col=col[0];
314
+ }
315
+ var index=tagindex-tagShowIndex;
316
+ let lastItemIndex = self.showData[0].length - 1;
317
+ let lastItem = self.showData[0][lastItemIndex];
318
+ self.showData[0][lastItemIndex]=col;
319
+ self.showData[1][index]=lastItem;
320
+ self.model.activeIndex1 = lastItemIndex.toString();
321
+ self.model.tags1[lastItemIndex]=col;
322
+ self.model.tags1[lastItemIndex +1 +index]=lastItem;
323
+ }
304
324
  }
305
325
  else {
306
- self.showData = self.model.tags1;
326
+ self.showData = [self.model.tags1];
307
327
  }
308
328
  }
309
329
  });
@@ -424,14 +444,13 @@ export default {
424
444
  this.model.searchConditionApiTags1 = this.model.tags1[i].searchConditionAction || '';
425
445
  this.model.searchDataApiTags1 = this.model.tags1[i].searchDataAction || '';
426
446
  this.model.paramDataTags1 = this.model.tags1[i].paramData || '';
427
- window.localStorage.setItem("simpletagkey", this.model.tags1[i].appID);//存储
447
+ window.localStorage.setItem("simpleCustomertagkey", this.model.tags1[i].appID);//存储
428
448
  }
429
449
  },
430
450
  handleDropDown(col, index) {
431
451
  let i = index;
432
452
  // this.model.activeIndex1 = (this.showData[0].length + i).toString();
433
453
  let dropDownData = this.showData[1];
434
-
435
454
  this.dropDownSelected = true;
436
455
  if (dropDownData && dropDownData[i]) {
437
456
  this.listKey = this.listKey + 1;
@@ -449,7 +468,7 @@ export default {
449
468
  this.model.tags1[lastItemIndex]=col;
450
469
  this.model.tags1[lastItemIndex +1 +index]=lastItem;
451
470
 
452
- window.localStorage.setItem("detailtagkey", dropDownData[i].appID); //存储
471
+ window.localStorage.setItem("simpleCustomertagkey", col.appID); //存储
453
472
  }
454
473
  },
455
474
  fieldClickHandler(field) {
@@ -964,13 +983,13 @@ export default {
964
983
  right: -1px;
965
984
  }
966
985
 
967
- .el-dropdown-menu--mini .el-dropdown-menu__item {
986
+ .tabsMore.el-dropdown-menu--mini .el-dropdown-menu__item {
968
987
  font-size: 14px;
969
988
  font-weight: 700;
970
989
  color: #303133;
971
990
  }
972
- .el-dropdown-menu__item:focus,
973
- .el-dropdown-menu__item:not(.is-disabled):hover {
991
+ .tabsMore .el-dropdown-menu__item:focus,
992
+ .tabsMore .el-dropdown-menu__item:not(.is-disabled):hover {
974
993
  background-color: #fff;
975
994
  color: var(--chinaRed);
976
995
  border-bottom: 3px solid var(--chinaRed);
@@ -981,13 +1000,13 @@ export default {
981
1000
  color: var(--chinaRed);
982
1001
  border-bottom: 3px solid var(--chinaRed);
983
1002
  }
984
- .el-tabs__item {
1003
+ .base-box .el-tabs__item {
985
1004
  padding: 0 15px;
986
1005
  }
987
- .el-tabs--bottom .el-tabs__item.is-bottom:last-child,
988
- .el-tabs--bottom .el-tabs__item.is-top:last-child,
989
- .el-tabs--top .el-tabs__item.is-bottom:last-child,
990
- .el-tabs--top .el-tabs__item.is-top:last-child {
1006
+ .base-box .el-tabs--bottom .el-tabs__item.is-bottom:last-child,
1007
+ .base-box .el-tabs--bottom .el-tabs__item.is-top:last-child,
1008
+ .base-box .el-tabs--top .el-tabs__item.is-bottom:last-child,
1009
+ .base-box .el-tabs--top .el-tabs__item.is-top:last-child {
991
1010
  padding-right: 15px;
992
1011
  }
993
1012
  .svgIcon {
@@ -88,7 +88,6 @@ export default {
88
88
  }
89
89
  };
90
90
  self.apiRouter.doSearch(submitData, (res) => {
91
- console.log(res)
92
91
  if (res.rtnCode === 200 || res.isSuccess) {
93
92
  self.searchTable=res.content;
94
93
  }
@@ -562,6 +562,28 @@ export default {
562
562
  self.model.tags1.slice(0, showIndex),
563
563
  self.model.tags1.slice(showIndex),
564
564
  ];
565
+ var tagkey = window.localStorage.getItem('DetailOfiTagkey');
566
+ var tagindex= self.model.tags1.findIndex(
567
+ (v) => v.appID === tagkey
568
+ );
569
+ if(tagindex>=showIndex){
570
+ //交换位置
571
+ var col= self.showData[1].filter(
572
+ (v) => v.appID === tagkey
573
+ );
574
+ if(col.length>0)
575
+ {
576
+ col=col[0];
577
+ }
578
+ var index=tagindex-showIndex;
579
+ let lastItemIndex = self.showData[0].length - 1;
580
+ let lastItem = self.showData[0][lastItemIndex];
581
+ self.showData[0][lastItemIndex]=col;
582
+ self.showData[1][index]=lastItem;
583
+ self.model.activeIndex1 = lastItemIndex.toString();
584
+ self.model.tags1[lastItemIndex]=col;
585
+ self.model.tags1[lastItemIndex +1 +index]=lastItem;
586
+ }
565
587
  }
566
588
  else {
567
589
  self.showData = [self.model.tags1];
@@ -579,7 +601,7 @@ export default {
579
601
  this.model.getTags2List(0);
580
602
  }
581
603
  if (typeof window.localStorage !== "undefined") {
582
- var tagkey = window.localStorage.getItem("detailtagkey");
604
+ var tagkey = window.localStorage.getItem("DetailOfiTagkey");
583
605
  if(self.model.tags1){
584
606
  for (var i = 0; i < self.model.tags1.length; i++) {
585
607
  if (tagkey == self.model.tags1[i].appID) {
@@ -707,7 +729,7 @@ export default {
707
729
  this.model.searchDataApiTags1 = this.model.tags1[i].searchDataAction || "";
708
730
  this.model.paramDataTags1 = this.model.tags1[i].paramData || "";
709
731
  this.model.appIDTags1 = this.model.tags1[i].appID || "";
710
- window.localStorage.setItem("detailtagkey", this.model.tags1[i].appID); //存储
732
+ window.localStorage.setItem("DetailOfiTagkey", this.model.tags1[i].appID); //存储
711
733
  }
712
734
  },
713
735
  handleDropDown(col, index) {
@@ -731,7 +753,7 @@ export default {
731
753
  this.model.tags1[lastItemIndex]=col;
732
754
  this.model.tags1[lastItemIndex +1 +index]=lastItem;
733
755
 
734
- window.localStorage.setItem("detailtagkey", dropDownData[i].appID); //存储
756
+ window.localStorage.setItem("DetailOfiTagkey", col.appID); //存储
735
757
  }
736
758
  },
737
759
  fieldClickHandler(field) {
@@ -572,6 +572,28 @@ export default {
572
572
  self.model.tags1.slice(0, showIndex),
573
573
  self.model.tags1.slice(showIndex),
574
574
  ];
575
+ var tagkey = window.localStorage.getItem('DetailRetTagkey');
576
+ var tagindex= self.model.tags1.findIndex(
577
+ (v) => v.appID === tagkey
578
+ );
579
+ if(tagindex>=showIndex){
580
+ //交换位置
581
+ var col= self.showData[1].filter(
582
+ (v) => v.appID === tagkey
583
+ );
584
+ if(col.length>0)
585
+ {
586
+ col=col[0];
587
+ }
588
+ var index=tagindex-showIndex;
589
+ let lastItemIndex = self.showData[0].length - 1;
590
+ let lastItem = self.showData[0][lastItemIndex];
591
+ self.showData[0][lastItemIndex]=col;
592
+ self.showData[1][index]=lastItem;
593
+ self.model.activeIndex1 = lastItemIndex.toString();
594
+ self.model.tags1[lastItemIndex]=col;
595
+ self.model.tags1[lastItemIndex +1 +index]=lastItem;
596
+ }
575
597
  }
576
598
  else {
577
599
  self.showData = [self.model.tags1];
@@ -589,7 +611,7 @@ export default {
589
611
  this.model.getTags2List(0);
590
612
  }
591
613
  if (typeof window.localStorage !== "undefined") {
592
- var tagkey = window.localStorage.getItem("detailtagkey");
614
+ var tagkey = window.localStorage.getItem("DetailRetTagkey");
593
615
  if(self.model.tags1){
594
616
  for (var i = 0; i < self.model.tags1.length; i++) {
595
617
  if (tagkey == self.model.tags1[i].appID) {
@@ -717,7 +739,7 @@ export default {
717
739
  this.model.searchDataApiTags1 = this.model.tags1[i].searchDataAction || "";
718
740
  this.model.paramDataTags1 = this.model.tags1[i].paramData || "";
719
741
  this.model.appIDTags1 = this.model.tags1[i].appID || "";
720
- window.localStorage.setItem("detailtagkey", this.model.tags1[i].appID); //存储
742
+ window.localStorage.setItem("DetailRetTagkey", this.model.tags1[i].appID); //存储
721
743
  }
722
744
  },
723
745
  handleDropDown(col, index) {
@@ -742,7 +764,7 @@ export default {
742
764
  this.model.tags1[lastItemIndex]=col;
743
765
  this.model.tags1[lastItemIndex +1 +index]=lastItem;
744
766
 
745
- window.localStorage.setItem("detailtagkey", dropDownData[i].appID); //存储
767
+ window.localStorage.setItem("DetailRetTagkey", col.appID); //存储
746
768
  }
747
769
  },
748
770
  fieldClickHandler(field) {
@@ -92,7 +92,9 @@
92
92
  onChangeHandler: function (val) {
93
93
  this.changeHandler(this.model.value);
94
94
  this.isShowClear();
95
- this.model.value.dispatchEvent(new Event("val")); //更新v-model的值
95
+ if(this.model.value.dispatchEvent){
96
+ this.model.value.dispatchEvent(new Event("val")); //更新v-model的值
97
+ }
96
98
  },
97
99
  onBlurHandler:function(event){
98
100
  this.model.value = this.$common.numToFloat(this.model.value, this.model.decimals);//保留n位小数
@@ -193,7 +193,7 @@
193
193
 
194
194
  <ct-tabletip ref="listFooter" class="ct-search-table-list-footer" :tip="model.listFooter"
195
195
  v-if="!isLoading && !isLayout && model"></ct-tabletip>
196
- <ct-tabletip ref="footer" class="ct-search-table-footer" :tip="model.footer"
196
+ <ct-tabletip ref="footer" class="ct-search-table-footer" style="width: 100%;" :tip="model.footer+model.companyName"
197
197
  v-if="!isLoading && !isLayout && model"></ct-tabletip>
198
198
  <div ref="popupButton" v-if="flagPopupSearchlist"
199
199
  style="margin-top: 10px;width: 100%;display: inline-block;height: 30px;margin-bottom: 10px;">
@@ -329,22 +329,34 @@ const SearchScreen = function (source, callBack, screenPara, prevParam) {
329
329
  this.screen.forEach((v) => {
330
330
  if (v.type !== Enum.ControlType.Hidden) {
331
331
  var tempObj = common.deepClone(v.searchObj);
332
- if (that.isHandle(v.type)) {
333
- tempObj.searchValue1 = that.getNewSearchValue(tempObj);
334
- }
335
332
  if ((tempObj.searchValue1 && tempObj.searchValue1 !== '') || (tempObj.searchValue2 && tempObj.searchValue2 !== '')) {
336
- rtn.fields.push(tempObj);
333
+ if (that.isHandle(v.type)) {
334
+ tempObj.searchValue1 = that.getNewSearchValue(tempObj);
335
+ if(tempObj.searchValue1!==''){
336
+ rtn.fields.push(tempObj);
337
+ }
338
+ }
339
+ else{
340
+ rtn.fields.push(tempObj);
341
+ }
342
+
337
343
  }
338
344
  }
339
345
  });
340
346
  this.highScreen.forEach((v) => {
341
347
  if (v.type !== Enum.ControlType.Hidden) {
342
348
  var tempObj = common.deepClone(v.searchObj);
343
- if (that.isHandle(v.type)) {
344
- tempObj.searchValue1 = that.getNewSearchValue(tempObj);
345
- }
346
349
  if ((tempObj.searchValue1 && tempObj.searchValue1 !== '') || (tempObj.searchValue2 && tempObj.searchValue2 !== '')) {
347
- rtn.fields.push(tempObj);
350
+ if (that.isHandle(v.type)) {
351
+ tempObj.searchValue1 = that.getNewSearchValue(tempObj);
352
+ if(tempObj.searchValue1!==''){
353
+ rtn.fields.push(tempObj);
354
+ }
355
+ }
356
+ else {
357
+ rtn.fields.push(tempObj);
358
+ }
359
+
348
360
  }
349
361
  }
350
362
  });
@@ -29,6 +29,12 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
29
29
  if (source.flagShowTitle) v = source.flagShowTitle;
30
30
  return v;
31
31
  },
32
+ get companyName(){
33
+ if(source.companyName){
34
+ return '<span style="float: right;color:#999999;margin-right: 5px;">'+source.companyName+'</span>'|| '';
35
+ }
36
+ return '';
37
+ },
32
38
  get source() {
33
39
  return source;
34
40
  },
package/src/main.js CHANGED
@@ -56,9 +56,9 @@ Vue.use(centaline, {
56
56
  // 获取请求头
57
57
  getRequestHeaders: function () {
58
58
  return {
59
- oldToken: 'f328eca3-7e3d-41ef-beff-5533e83a8bb9',
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.eNrEjjsOwjAQBe-ydVbyZ-2108V20nCICIMthQqRRAIh7k4Q0NEzxSumeXOHec3QQnKdoDhojL0ySIkNdgM7DNE5ERRrCm70H_DHfBmlJM_S9th5jkiWNDoZHUaykYbU6xgSNFCuZ2il9cIKZS03MO2XtzDSqpdY53LZlds_4k7LtN0eFVUjWGI1B49UNOOWW5BE5my4lpoVPJ4AAAD__w.OX5oLp238UuHYjqOl2oF0wSleZV7Y500kQSjeRpTOIw"}',
61
+ authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOwjAMRe-SuZZsx0mcbk3SLhyiakWGMiFoJRDi7oCAjZ03_OEt79_MeZtNa4p2KHmwkHt2ICU46IagkLIqJg5Wko7xA_yYLyORxEC-hy6GDOLFglJWyOKzDKW3ORXTmHo5mpZ8JCaLpI1ZpvUtiL1_ie1cT7t6_ce5w7o8s6zsVLBCdAFBWBxMhAFktpFxbxmJzf0BAAD__w.8j17kTENd-vwsdYlFXYHupmajMNlLNuXVuY2nIjs_fo"}',
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"}',