centaline-data-driven 1.1.63 → 1.1.67

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.
Files changed (31) hide show
  1. package/build/centaline/centaline.path.js +1 -0
  2. package/package.json +1 -1
  3. package/src/Form.vue +1 -1
  4. package/src/SearchList.vue +12 -2
  5. package/src/SearchTree.vue +1 -1
  6. package/src/assets/vertical.png +0 -0
  7. package/src/centaline/css/common.css +2 -3
  8. package/src/centaline/css/max.css +18 -2
  9. package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +25 -9
  10. package/src/centaline/dynamicForm/src/dynamicForm.vue +12 -4
  11. package/src/centaline/dynamicHyperLinkList/index.js +11 -0
  12. package/src/centaline/dynamicHyperLinkList/src/dynamicHyperLinkList.vue +58 -0
  13. package/src/centaline/dynamicL/src/dynamicL.vue +1 -1
  14. package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +5 -2
  15. package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +42 -15
  16. package/src/centaline/dynamicSearchList/src/dynamicTableStats.vue +193 -0
  17. package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +1 -1
  18. package/src/centaline/dynamicSeg/src/dynamicSeg.vue +4 -7
  19. package/src/centaline/dynamicT/src/dynamicT.vue +1 -1
  20. package/src/centaline/dynamicTree/src/dynamicTreeList.vue +4 -3
  21. package/src/centaline/loader/src/ctl/Detail.js +19 -40
  22. package/src/centaline/loader/src/ctl/HyperLinkList.js +69 -0
  23. package/src/centaline/loader/src/ctl/SearchScreen.js +80 -2
  24. package/src/centaline/loader/src/ctl/SearchStats.js +133 -0
  25. package/src/centaline/loader/src/ctl/SearchTable.js +28 -19
  26. package/src/centaline/loader/src/ctl/lib/Enum.js +2 -0
  27. package/src/centaline/loader/src/ctl/lib/LibFunction.js +12 -0
  28. package/src/centaline/loader/src/ctl.js +2 -0
  29. package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
  30. package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
  31. package/src/centaline/dynamicSearchList/src/dynamicTableStatistics.vue +0 -41
@@ -10,6 +10,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
10
10
  $vue: null,
11
11
  isLoading: false,
12
12
  searchModel: searchModel,
13
+ searchStats: [],
13
14
  tableHeight: 350,
14
15
  defaultSearchData: defaultSearchData,
15
16
  pageIndex: 1,
@@ -22,8 +23,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
22
23
  source.title = v;
23
24
  },
24
25
  get flagShowTitle() {
25
- let v=false;
26
- if(source.flagShowTitle)v=source.flagShowTitle;
26
+ let v = false;
27
+ if (source.flagShowTitle) v = source.flagShowTitle;
27
28
  return v;
28
29
  },
29
30
  get source() {
@@ -274,11 +275,11 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
274
275
  else {
275
276
  rtn._buttons = [];
276
277
  if (source.content.toolButtons) {
277
-
278
+
278
279
  source.content.toolButtons.forEach((v) => {
279
280
  var button = Router(v);
280
281
  button.is = "ct-btn";
281
- button.attrs = { size: "mini",class:'max-btn-gray'}
282
+ button.attrs = { size: "mini", class: 'max-btn-gray' }
282
283
  rtn._buttons.push(button);
283
284
  });
284
285
  }
@@ -422,10 +423,18 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
422
423
  //不需要禁用查询按钮
423
424
  // self.searchModel.setBtnLoading(true);
424
425
  }
426
+ var newSearchModel = common.deepClone(this.searchModel.searchData ? this.searchModel.searchData : {});
427
+ if (self.searchStats && self.searchStats.searchData && self.searchStats.searchData.fields) {
428
+
429
+ self.searchStats.searchData.fields.forEach((v) => {
430
+ newSearchModel.fields.push( v );
431
+ });
432
+ }
433
+
425
434
  Vue.prototype.$api.postHandler(common.globalUri(), {
426
435
  action: data,
427
436
  para: {
428
- searchFields: this.searchModel ? this.searchModel.searchData : {},
437
+ searchFields: newSearchModel ? newSearchModel: {},
429
438
  pageAttribute: this.pageData,
430
439
  flagSearch: true
431
440
  }
@@ -494,7 +503,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
494
503
  var searchFields = this.searchModel ? this.searchModel.searchData : { fields: [] };
495
504
  if (self.primaryKey) {
496
505
  searchFields.fields.push({
497
- fieldName1: self.primaryFieldMappingDBName?self.primaryFieldMappingDBName:self.primaryKey,
506
+ fieldName1: self.primaryFieldMappingDBName ? self.primaryFieldMappingDBName : self.primaryKey,
498
507
  groupName: self.primaryKey,
499
508
  operation: 2,
500
509
  searchDataType: 3,
@@ -505,7 +514,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
505
514
  action: data,
506
515
  para: {
507
516
  searchFields: searchFields,
508
- pageAttribute: { pageIndex: 1},
517
+ pageAttribute: { pageIndex: 1 },
509
518
  flagSearch: true
510
519
  }
511
520
  })
@@ -671,7 +680,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
671
680
  break;
672
681
  case Enum.ActionType.New://新增
673
682
  case Enum.ActionType.CloseTabThenNew://新增
674
-
683
+
675
684
  rtn.setStyleRow(response.content);
676
685
  response.content.forEach((nr) => {
677
686
  rtn.listData.unshift(nr);
@@ -679,7 +688,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
679
688
  rtn.dataDictionary = response.content;
680
689
 
681
690
  source.page.rows = source.page.rows + response.content.length;
682
- rtn.$vue.calculatingRowHeight()
691
+ rtn.$vue.calculatingRowHeight()
683
692
  break;
684
693
  case Enum.ActionType.Update://修改
685
694
  case Enum.ActionType.CloseTabThenUpdate://修改
@@ -739,24 +748,24 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
739
748
  rtn._scripts = base.common.eval(source.scripts);
740
749
  return rtn._scripts;
741
750
  }
742
- else{
743
- rtn._scripts={};
751
+ else {
752
+ rtn._scripts = {};
744
753
  return rtn._scripts;
745
754
  }
746
755
  }
747
756
  },
748
- formData:formData,
757
+ formData: formData,
749
758
  get tdClass() {
750
- let c='';
759
+ let c = '';
751
760
  if (source.content.lineType !== undefined && source.content.lineType !== null) {
752
- if (source.content.lineType===Enum.LineType.Vertical) {
753
- c='ct-td1';
761
+ if (source.content.lineType === Enum.LineType.Vertical) {
762
+ c = 'ct-td1';
754
763
  }
755
- else if (source.content.lineType===Enum.LineType.Horizon) {
756
- c='ct-td2';
764
+ else if (source.content.lineType === Enum.LineType.Horizon) {
765
+ c = 'ct-td2';
757
766
  }
758
- else if (source.content.lineType===Enum.LineType.Both) {
759
- c='ct-td3';
767
+ else if (source.content.lineType === Enum.LineType.Both) {
768
+ c = 'ct-td3';
760
769
  }
761
770
  }
762
771
  return c;
@@ -215,6 +215,8 @@ const Enum = {
215
215
  /// 复选
216
216
  /// </summary>
217
217
  CheckBox: 43,
218
+ /*带标签的超链接列表*/
219
+ HyperlinkListWithLabel:44,
218
220
  },
219
221
 
220
222
  //返回状态码
@@ -26,6 +26,7 @@ import Base from '../Base';
26
26
  import GM from '../GM';
27
27
  import File from '../File';
28
28
  import HyperLink from '../HyperLink';
29
+ import HyperLinkList from '../HyperLinkList';
29
30
  import PlaceHolder from '../PlaceHolder';
30
31
  import SensitiveEye from '../SensitiveEye';
31
32
  import Cb from '../Cb';
@@ -74,6 +75,13 @@ const LibFunction = {
74
75
  else if (field.controlType === Enum.ControlType.NumericRange) {
75
76
  field.width = field.width || 280;
76
77
  }
78
+ else if (field.controlType === Enum.ControlType.RadioButton) {
79
+ if(!field.displayLabelAfterSelected){
80
+ showLabel = false;
81
+ }
82
+ field.width = field.width || 300;
83
+ field.placeholder1 = field.placeholder1 || field.controlLabel || '';
84
+ }
77
85
  else {
78
86
  showLabel = false;
79
87
  field.width = field.width || 200;
@@ -287,6 +295,10 @@ const LibFunction = {
287
295
  item = HyperLink(field, moreActionRouter);
288
296
  item.is = 'ct-hyperLink';
289
297
  break;
298
+ case Enum.ControlType.HyperlinkListWithLabel://带标签的超链接列表
299
+ item = HyperLinkList(field);
300
+ item.is = 'ct-hyperLinkList';
301
+ break;
290
302
  case Enum.ControlType.PlaceHolder://占位控件
291
303
  item = PlaceHolder(field);
292
304
  item.is = 'ct-ph';
@@ -19,6 +19,7 @@ const loader = {
19
19
  Button: require("./ctl/Button.js").default,
20
20
  SearchScreen: require("./ctl/SearchScreen.js").default,
21
21
  SearchTable: require("./ctl/SearchTable.js").default,
22
+ SearchStats: require("./ctl/SearchStats.js").default,
22
23
  Form: require("./ctl/Form.js").default,
23
24
  Router: require("./ctl/Router.js").default,
24
25
  Tabs: require("./ctl/Tabs.js").default,
@@ -30,6 +31,7 @@ const loader = {
30
31
  Tree: require("./ctl/Tree.js").default,
31
32
  SearchCategory: require("./ctl/SearchCategory.js").default,
32
33
  HyperLink: require("./ctl/HyperLink.js").default,
34
+ HyperLinkList: require("./ctl/HyperLinkList.js").default,
33
35
  Detail: require("./ctl/Detail.js").default,
34
36
  };
35
37