centaline-data-driven 1.6.39 → 1.6.40

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.39",
3
+ "version": "1.6.40",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,16 @@
1
+ # v1.6.40
2
+ 2024-04-10
3
+
4
+ 优化
5
+
6
+ 多行文本禁用样式修改
7
+
8
+ Compound复合组件优化:
9
+ 1. 支持onChange
10
+ 2. 支持onAfterChanged
11
+ 3. 支持获取ParentFieldValue
12
+ 4. 支持locked锁定
13
+
1
14
  # v1.6.39
2
15
  2024-04-07
3
16
 
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="'/salemanage/ContractByPoint/readDetail'" :apiParam="apiParam" :topHeight="topHeight" :documentHeight="'600px'"></ct-form>
4
+ <ct-form :api="'/customermanage/customerReg/getCustomerInfoLayoutOfBrowse'" :apiParam="apiParam" :topHeight="topHeight" :documentHeight="'600px'"></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
- "commissionMode":1,"contractId":"202406181443110093F2F8AADD6B96EA","propertyId":"20180321102126B4B8B65EFBD6613722","searchFields":{"fields":[{"fieldName1":"CompanyPath","groupName":"CompanyPath","operation":1,"searchDataType":1,"searchValue1":"001"},{"fieldName1":"EmpID","groupName":"EmpID","operation":1,"searchDataType":1,"searchValue1":"2016080115594575A1A2EFB5B823B8A4"},{"fieldName1":"DeptPath","groupName":"DeptPath","operation":1,"searchDataType":1,"searchValue1":"001.200"},{"fieldName1":"type","groupName":"type","operation":1,"searchDataType":1,"searchValue1":"left"},{"fieldName1":"EstateID","groupName":"EstateID","operation":2,"searchDataType":3,"searchValue1":"201005121336088B888053DAF3FAD603"},{"fieldName1":"ContractDateStar","fieldName2":"ContractDateEnd","groupName":"ContractDateStar","operation":5,"searchDataType":4,"searchValue1":"2023-11-01","searchValue2":""}]},"pageAttribute":{"pageIndex":1},"columnName":"contractDate","actionType":3
15
+ "customerId":"f8befff6-2c2a-402f-a879-80b80653aa96","customerCode":"4412c652-702d-4286-a227-e9cd407f5aca","searchFields":{"fields":[{"fieldName1":"EmpId","groupName":"EmpId","operation":2,"searchDataType":3,"searchValue1":"2411120940038E8B1C87525447179987"},{"fieldName1":"ReceptionStatus","groupName":"ReceptionStatus","operation":2,"searchDataType":1,"searchValue1":"1"},{"fieldName1":"SearchArea","groupName":"SearchArea","operation":2,"searchDataType":1,"searchValue1":"1"}]},"pageAttribute":{"pageIndex":1},"columnName":"custName","actionType":1,"pageStyle":2,"pageOnly":true
16
16
  },
17
17
  topHeight:10,
18
18
  }
@@ -31,12 +31,12 @@
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
36
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/workwxmanage/WorkWXApplicationList/getLayoutOfSearch'" :searchDataApi="'/workwxmanage/WorkWXApplicationList/getList'"></ct-searchlist> -->
37
37
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/UrgentResponsiblePersonList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/UrgentResponsiblePersonList/getList'"></ct-searchlist> -->
38
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> -->
39
+ <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/MyCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/MyCustomerList/getList'"></ct-searchlist>
40
40
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/CustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/CustomerList/getList'"></ct-searchlist> -->
41
41
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
42
42
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
@@ -167,7 +167,7 @@
167
167
  // appRootUrl:'http://10.88.22.13:6060/onecard-api/',
168
168
  appRootUrl:'',
169
169
  para:{
170
- type: "top",
170
+ type: "left",
171
171
  "deleteRight": 0,
172
172
  "editRight": 0,
173
173
  "browseRight": 0,
@@ -74,11 +74,19 @@
74
74
  self.model.requiredHandle(field);
75
75
  //self.model.validMrf(field);
76
76
 
77
+ if (typeof field.change !== 'undefined') {
78
+ if (typeof this.parentModel.scripts !== 'undefined') {
79
+ this.parentModel.scripts.formData.setExcuteListData(this.parentModel.fields);
80
+ }
81
+ this.parentModel.scripts.$fd = field.id;
82
+ this.$common.excute.call(this.parentModel.scripts, field.change);
83
+ }
84
+
77
85
  if (field.onAfterChanged) {
78
86
  var router = self.model.actionRouters.find((v) => {
79
87
  return v.id === field.onAfterChanged;
80
88
  });
81
- self.$parent.$parent.$parent.$parent.clickHandler(router);
89
+ self.parentModel.self.clickHandler(router);
82
90
  }
83
91
 
84
92
  self.$forceUpdate();
@@ -284,7 +284,7 @@
284
284
  computeScroll(){
285
285
  this.$nextTick(() => {
286
286
  let parentDom=this.$el.parentElement;
287
- if (parentDom.scrollHeight > parentDom.clientHeight
287
+ if (parentDom && parentDom.scrollHeight > parentDom.clientHeight
288
288
  && this.model && (!this.model.isHorizontalLayout || this.flagScroll)) {
289
289
  this.isScroll = true;
290
290
  }
@@ -55,7 +55,9 @@
55
55
  }
56
56
  },
57
57
  destroyed (){
58
- if(this.$refs.multipleTable.bodyWrapper)this.$refs.multipleTable.bodyWrapper.removeEventListener('scroll', this.scrollHandle);
58
+ if(this.$refs.multipleTable && this.$refs.multipleTable.bodyWrapper){
59
+ this.$refs.multipleTable.bodyWrapper.removeEventListener('scroll', this.scrollHandle);
60
+ }
59
61
  },
60
62
  methods: {
61
63
  load(data) {
@@ -31,7 +31,7 @@
31
31
  </el-input>
32
32
  </el-popover>
33
33
 
34
- <div v-else class="textarea-box" ref="input">
34
+ <div v-else class="textarea-box" ref="input" :style="{'background-color':model.lock ? '#f5f7fa' : '','cursor':model.lock ? 'not-allowed' : ''}" >
35
35
  <div ref="highlights" v-if="model.forbiddenWords" class="backdrop hoverColor"
36
36
  :style="{'width':forbiddenWordsWidth+'px','height':forbiddenWordsHeight+'px','left':forbiddenWordsLeft+'px','top':forbiddenWordsTop+'px','overflow-y': model.rows===1?'hidden':'auto','overflow-x':'hidden'}">
37
37
  <div class="highlights" :style="{'line-height':model.rows===1?1:1.5,'white-space': model.rows===1?'nowrap':'pre-wrap'}" v-html="forbiddenWordsValue"></div>
@@ -22,6 +22,12 @@ const Compound = function (source, sourceParent) {
22
22
  set label(v) {
23
23
  source.controlLabel = v;
24
24
  },
25
+ get locked() {
26
+ return source.locked;
27
+ },
28
+ set locked(v) {
29
+ source.locked = v;
30
+ },
25
31
  _buttons: null,
26
32
  get buttons() {
27
33
  if (rtn._buttons !== null) {
@@ -84,6 +90,40 @@ const Compound = function (source, sourceParent) {
84
90
  });
85
91
  return rtnFormObj;
86
92
  },
93
+ getRefFieldPara(refFieldNameArr) {
94
+ let submitData = {};
95
+ var tempFormData = rtn.getFormObj();
96
+ refFieldNameArr.forEach((v) => {
97
+ submitData[v] = tempFormData[v];
98
+ });
99
+ return submitData;
100
+ },
101
+ getParentFieldPara(parentFieldNameArr) {
102
+ let submitData = {};
103
+ var tempFormData = rtn.getFormObj();
104
+ parentFieldNameArr.forEach((v) => {
105
+ let vs=v.split('.');
106
+ submitData[vs[vs.length-1]] = tempFormData[v];
107
+ if(submitData[vs[vs.length-1]]==undefined){
108
+ if(rtn.self && rtn.self.parentModel){
109
+ submitData[vs[vs.length-1]] = rtn.self.parentModel.getFormObj()[v];
110
+ }
111
+ }
112
+ });
113
+
114
+ if(JSON.stringify(submitData) == "{}"){
115
+ return '';
116
+ }
117
+ else{
118
+ if(parentFieldNameArr.length>1){
119
+ return JSON.stringify(submitData);
120
+ }
121
+ else{
122
+ let parentNameArr = parentFieldNameArr[0].split('.');
123
+ return submitData[parentNameArr[parentNameArr.length-1]];
124
+ }
125
+ }
126
+ },
87
127
  _compoundfieldsDic: null,//字典,方便取值
88
128
  get compoundfieldsDic() {
89
129
  if (rtn._compoundfieldsDic !== null) {
@@ -115,6 +155,9 @@ const Compound = function (source, sourceParent) {
115
155
  if (Index == 1 && item.label == "") {
116
156
  item.label = rtn.label;
117
157
  }
158
+ if(rtn.locked){
159
+ item.locked = rtn.locked;
160
+ }
118
161
  rtn.hiddenHandle(item);//是否隐藏关联组件
119
162
  rtn._fields.push(item);
120
163
  }
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":"","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.eyJsb2dpbl91c2VyX2tleSI6ImYzMzE1YTYwLWU1ODctNDE0NS05NzlkLTJhOWE3NzY1ZDU4OCJ9.r7qyJcVjrHhVmC4y81xuKrVp_CbexX4D1hraycg188aOCBg0IDVkTQqJENmAOF3D_WtbGB1Lm8ntb1gPflIVYA',
78
+ authObject: '{"currentEstate":{"estateId":"241113105409757BFF2887A7472E99D2","estateName":"U%E7%89%88%E6%A5%BC%E7%9B%98%E6%8C%89%E7%82%B9%E4%BD%8D","estDeptPath":"001.200.063.001"},"platform":1,"osVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"jijlB","time":1744183725353,"sign":"528fb9ea127871dacfda5d2e56abe364","systemSource":"CCESU","empNo":"maopp","empId":"2411120940038E8B1C87525447179987","clientVersion":"12.5","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.eyJsb2dpbl91c2VyX2tleSI6ImY1MGUyMTk2LTA3MjUtNDc3NS1iMjU0LTA1MmEyM2I3NWIwZiJ9.wOVpO974fdap7nW1JZeG3rGaMGDY6ktlRzHWwJPXXtYxpXeBtDaRgBRwnol9x5jGlEHmsGckEIBgfksSivbOYg',
80
80
  };
81
81
  },
82
82
  // 请求完成事件,可判断是否登录过期执行响应操作