centaline-data-driven 1.6.36 → 1.6.38

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.6.36",
3
+ "version": "1.6.38",
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.6.38
2
+ 2024-03-21
3
+
4
+ 优化
5
+
6
+ 上传组件,多个时,去掉提示
7
+
8
+ iti控件清除X居中处理
9
+
10
+ 多选带搜索控件在查询列表修改为直接传code1到api
11
+
12
+ # v1.6.37
13
+ 2024-02-14
14
+
15
+ 优化
16
+
17
+ 列表添加行样式字段rowStyle,支持自定义行样式、行字体样式
18
+
1
19
  # v1.6.36
2
20
  2024-01-17
3
21
 
@@ -31,11 +31,14 @@
31
31
 
32
32
  <!-- CCES -->
33
33
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
34
- <ct-searchlist :apiParam="para" :searchConditionApi="'/contractmanage/ContractList/getLayoutOfSearch'" :searchDataApi="'/contractmanage/ContractList/getList'"></ct-searchlist>
34
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/contractmanage/ContractList/getLayoutOfSearch'" :searchDataApi="'/contractmanage/ContractList/getList'"></ct-searchlist> -->
35
35
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/sunexpensemanage/sunexpenserecordlist/getLayoutOfSearch'" :searchDataApi="'/sunexpensemanage/sunexpenserecordlist/getList'"></ct-searchlist> -->
36
- <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/ProjectCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/ProjectCustomerList/getList'"></ct-searchlist> -->
37
36
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/workwxmanage/WorkWXApplicationList/getLayoutOfSearch'" :searchDataApi="'/workwxmanage/WorkWXApplicationList/getList'"></ct-searchlist> -->
38
37
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/UrgentResponsiblePersonList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/UrgentResponsiblePersonList/getList'"></ct-searchlist> -->
38
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/ProjectCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/ProjectCustomerList/getList'"></ct-searchlist> -->
39
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/MyCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/MyCustomerList/getList'"></ct-searchlist> -->
40
+ <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/CustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/CustomerList/getList'"></ct-searchlist>
41
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
39
42
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
40
43
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
41
44
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/EntranceNoticeInfoList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/EntranceNoticeInfoList/getList'"></ct-searchlist> -->
@@ -52,8 +52,7 @@
52
52
  <tr v-for="(row,rowindex) in model.listData" :key="rowindex"
53
53
  v-if="pageRowMin <= rowindex && rowindex <= pageRowMax"
54
54
  :ref="'rows.'+rowindex" @click="rowClickHandle($event,rowindex)"
55
- class="ct-tr"
56
- :style="row.$style">
55
+ class="ct-tr">
57
56
  <td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td" :class="[model.tdClass]" align="center">
58
57
  <label v-if="!model.rightMulti || row[model.rightMulti] == 1" class="el-checkbox is-checked"><span class="el-checkbox__input" :class="rowCheckClass(row)">
59
58
  <span class="el-checkbox__inner"></span>
@@ -903,19 +903,7 @@ export default {
903
903
  window.uploads = { count: 0, length: uploads.length };
904
904
  }
905
905
  if (uploads.length > 1) {
906
- window.uploads.count = window.uploads.count + 1;
907
- window.uploads.length = uploads.length;
908
-
909
- if (window.uploads.count == window.uploads.length) {
910
- window.uploads = null;
911
-
912
- self.$message({
913
- message: "存在多个上传组件,请点击上传!",
914
- type: 'info',
915
- showClose: true,
916
- });
917
- return false;
918
- }
906
+
919
907
  }
920
908
  else if (uploads.length == 1) {
921
909
  window.uploads = null;
@@ -1065,11 +1065,12 @@
1065
1065
  fun(submitData, title, self.model);
1066
1066
  }
1067
1067
  }
1068
+
1069
+ if(typeof field.onClick !== 'undefined'){
1070
+ self.$common.excute.call(self.model.scripts, field.onClick)
1071
+ }
1068
1072
 
1069
1073
  if (field.isSubmit && field.flagVerifyData) {
1070
- if(typeof field.onClick !== 'undefined'){
1071
- self.$common.excute.call(self.model.scripts, field.onClick)
1072
- }
1073
1074
  if(!self.validExcute()){
1074
1075
  return;
1075
1076
  }
@@ -13,13 +13,7 @@
13
13
  class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
14
14
  <input style="text-align:left;width:100%" class="el-range-input" :placeholder="model.attrs.placeholder1"
15
15
  v-model="model.value" @change="changeHandler($event)" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value','decimals')"
16
- :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
17
-
18
- <!-- <span class="el-input__suffix el-input--mini" v-if="showClear.input1">
19
- <span class="el-input__suffix-inner ct-close">
20
- <i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event,'input1','value')"></i>
21
- </span>
22
- </span> -->
16
+ :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
23
17
  </div>
24
18
  <span style="width:5%" class="el-range-separator">-</span>
25
19
  <div :style="{'width':model.unitName && model.unitName.length == 1 ? '45%':(model.unitName && model.unitName.length == 3) ?'50%':(model.unitName && model.unitName.length == 5) ?'60%': ''}" class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
@@ -27,7 +21,7 @@
27
21
  v-model="model.value1" @change="changeHandler($event);" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value1','decimals1')"
28
22
  :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
29
23
  </div>
30
- <span class="el-input__suffix el-input--mini is-show-Span" v-if="showClear.input2">
24
+ <span class="el-input__suffix el-input--mini is-show-Span" v-if="showClear.input2">
31
25
  <span class="el-input__suffix-inner ct-close">
32
26
  <i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event,'input2')"></i>
33
27
  </span>
@@ -58,7 +52,6 @@
58
52
  return {
59
53
  isFocus: false,
60
54
  showClear:{input1:false,input2:false},
61
-
62
55
  }
63
56
  },
64
57
  created() {
@@ -145,13 +138,12 @@
145
138
  mouseOutHandle: function (id) {
146
139
  this.showClear[id]=false;
147
140
  },
148
- isShowClear(id)
149
- {
141
+ isShowClear(id){
150
142
  if ((this.model['value'] !== '' || this.model['value1'] !== '') && this.model.clearable) {
151
143
  this.showClear[id]=true;
152
144
  }
153
145
  else {
154
- this.showClear[id]=false;
146
+ this.showClear[id]=false;
155
147
  }
156
148
  },
157
149
  search() {
@@ -163,7 +155,7 @@
163
155
  <style scoped>
164
156
  .el-input__suffix {
165
157
  right: -4px;
166
- top:-1px;
158
+ top:-7px;
167
159
  }
168
160
 
169
161
  span.ct-unitname.el-input__suffix.el-input__suffix-inner {
@@ -75,7 +75,7 @@
75
75
  <!--可视区域的行数据-->
76
76
  <tr v-for="(row, rowindex) in model.listData" :key="rowindex"
77
77
  v-if="from == 'form' || pageRowMin <= rowindex && rowindex <= pageRowMax" :ref="'rows.' + rowindex"
78
- @click="rowClickHandle($event, rowindex)" class="ct-tr" :style="row.$style">
78
+ @click="rowClickHandle($event, rowindex)" class="ct-tr" :style="row.rowStyle">
79
79
  <td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td"
80
80
  :class="[model.tdClass, rowindex === model.selectIndex ? 'select' : null,]" align="center">
81
81
  <label v-if="!model.rightMulti || $common.getDataOfUpperLower(row, model.rightMulti) == 1"
@@ -2537,6 +2537,10 @@ export default {
2537
2537
  background-color: #ddd !important;
2538
2538
  }
2539
2539
 
2540
+ .ct-searchtable .ct-tr{
2541
+ background-color: #ffffff;
2542
+ }
2543
+
2540
2544
  .ct-searchtable .ct-tr>.ct-td {
2541
2545
  /*border: 1px solid #e7e8eb;
2542
2546
  border-bottom: 1px solid #e7e8eb;
@@ -2544,7 +2548,7 @@ export default {
2544
2548
  border-left: 1px solid #e7e8eb;*/
2545
2549
  padding: 2px 20px;
2546
2550
  cursor: default;
2547
- background-color: #ffffff;
2551
+ /* background-color: #ffffff; */
2548
2552
  // color: var(--centalineBlack);
2549
2553
  }
2550
2554
 
@@ -2694,10 +2698,12 @@ export default {
2694
2698
 
2695
2699
  .ct-table .left-fixation {
2696
2700
  position: sticky;
2701
+ background-color: inherit;
2697
2702
  }
2698
2703
 
2699
2704
  .ct-table .right-fixation {
2700
2705
  position: sticky;
2706
+ background-color: inherit;
2701
2707
  }
2702
2708
 
2703
2709
  .ct-table .left-fixation-th {
@@ -25,7 +25,7 @@
25
25
  <ctSelectOptionVertical :model="model" @click="selectOption($event)" @dataUpdated="dataUpdated()"></ctSelectOptionVertical>
26
26
  </div>
27
27
  <input slot="reference" v-bind="model.attrs" :placeholder="tagsPlaceholder"
28
- ref="ct-input" class="" :style="{height:inputHeight + 'px','line-height':inputLineHeight + 'px'}"
28
+ ref="ct-input" class="" :style="{height:inputHeight + 'px','line-height':inputLineHeight + 'px','font-size': 'small'}"
29
29
  :class="model.lock ? 'ct-is-disabled' : 'ct-input_inner'"
30
30
  @focus="focusHandle" @blur="blurHandle" @click="clickHandle"
31
31
  :disabled="model.lock" />
@@ -461,6 +461,7 @@
461
461
  }
462
462
  .ct-tags-value-label {
463
463
  /* padding-left: 15px; */
464
+ font-size: small;
464
465
  }
465
466
  .h26{
466
467
  height: 26px;
@@ -421,6 +421,9 @@ const Base = function (source) {
421
421
  get lazyLoad() {
422
422
  return source.lazyLoad;
423
423
  },
424
+ get vueComponentName() {
425
+ return source.vueComponentName;
426
+ },
424
427
  };
425
428
 
426
429
  return rtn;
@@ -435,6 +435,9 @@ const Router = function (source) {
435
435
  get flagAsync() {
436
436
  return source.flagAsync;
437
437
  },
438
+ get vueComponentName() {
439
+ return source.vueComponentName;
440
+ },
438
441
  };
439
442
  return rtn;
440
443
  }
@@ -770,11 +770,11 @@ const SearchScreen = function (source, callBack, screenPara, prevParam) {
770
770
  //判断控件是否需要单独处理searchValue1
771
771
  isHandle(type){
772
772
  let result=false;
773
- switch (type)
774
- {
773
+ switch (type) {
775
774
  case Enum.ControlType.CheckBoxList://复选列表
776
- result=true;
777
- break;
775
+ case Enum.ControlType.MultiSelectWithSearch:
776
+ result=true;
777
+ break;
778
778
  default:
779
779
  result=false;
780
780
  break;
@@ -789,11 +789,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
789
789
  //设置行样式
790
790
  setStyleRow(rows) {
791
791
  rows.forEach((row) => {
792
- if (!row.$style) {
793
- row.$style = {};
794
- }
795
792
  if (rtn.rowColorColumn && row[rtn.rowColorColumn]) {
796
- row.$style.color = row[rtn.rowColorColumn];
793
+ row.rowStyle = row.rowStyle + ";color:" + row[rtn.rowColorColumn] + ";";
797
794
  }
798
795
  });
799
796
  },
@@ -295,6 +295,16 @@ const Enum = {
295
295
  /// 月份区间
296
296
  /// </summary>
297
297
  MonthRange: 59,
298
+
299
+ /// <summary>
300
+ /// 数值输入框带+/-按钮
301
+ /// </summary>
302
+ NumberWithPlusAndMinus: 60,
303
+
304
+ /**
305
+ * VUE 前端子定义组件,组件名在 Field.vueComponentName 属性里定义
306
+ */
307
+ VueCustomizedComponent:61,
298
308
 
299
309
  },
300
310
 
@@ -638,6 +648,14 @@ const Enum = {
638
648
  * 在系统弹层打开
639
649
  */
640
650
  LayerInSystem:120,
651
+ /**
652
+ * 在弹层打开 前端的VUE组件, 组件名称放在action参数里
653
+ */
654
+ OpenVueComponentInLayer:121,
655
+ /**
656
+ * 在tab页打开 前端的VUE组件, 组件名称放在action参数里
657
+ */
658
+ OpenVueComponentInTab:122,
641
659
  },
642
660
 
643
661
  /// <summary>
package/src/main.js CHANGED
@@ -75,8 +75,8 @@ Vue.use(centaline, {
75
75
  EstateInfo: '{"estateId":"1c581b7c-d629-4670-8a7c-6d622860bc58","estateName":"0%E9%87%91%E9%9A%85%E4%BA%91%E7%AD%91%E5%A4%A9%E6%B4%A5","estDeptPath":"009.014.001.001"}',
76
76
  estateId: '',
77
77
 
78
- authObject: '{"currentEstate":{},"platform":1,"osVersion":"","clientVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"588NJK","time":1733886962541,"sign":"7cb413ac60ed50fe406c9b91c8d4a836","systemSource":"CCESU","empNo":"hqxtgl","empId":"2411121446336B97FBEB7FD54905A903"}',
79
- AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImVjMmUyY2Q1LWYzNmItNDc1YS04N2FjLWRjM2VkMjE1MzJjZSJ9.Uu8mB1VxYvTcDzkCXH0WrUOd9YdlJLGvW3Ae1i67fcnWrU8HhLKoXHgvFPDuzo8rp5QDM0LdQMLgXkER5zrWaw',
78
+ authObject: '{"currentEstate":{},"platform":1,"osVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"FLNd7t","time":1742453755758,"sign":"dcf9d289a261a3a63bfb8f29a699ac1e","systemSource":"CCESU","empNo":"maopp","empId":"2411120940038E8B1C87525447179987","clientVersion":"24.11.4.1","empName":"%E6%AF%9B%E7%AE%A1%E7%90%86","roleName":"%E9%9B%86%E5%9B%A2IT%E7%AE%A1%E7%90%86%E5%91%98","deptFullName":"%E6%9C%AA%E5%8C%B9%E9%85%8DCCHR%E4%B8%ADHROC%E9%83%A8%E9%97%A8%2F%E9%9B%86%E5%9B%A2IT"}',
79
+ AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImNkMTM3NTZjLTE2YWQtNGZjNi05OWRjLTFlMjljOTllYjcyZiJ9.QXAIvKUIg-Rdc9wZibPxuJlJZeVTQQCR7U8eiNJzqdcVD1mb45GL6xgTfdYBQ6sdw673VyzFrhSErEj1mCQeKQ',
80
80
  };
81
81
  },
82
82
  // 请求完成事件,可判断是否登录过期执行响应操作