centaline-data-driven 1.6.39 → 1.6.41
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 +1 -1
- package/release-log.md +20 -0
- package/src/Form.vue +2 -2
- package/src/SearchList.vue +3 -2
- package/src/centaline/dynamicCompound/src/dynamicCompound.vue +9 -1
- package/src/centaline/dynamicFile/src/dynamicFile.vue +4 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +1 -1
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +3 -1
- package/src/centaline/dynamicT/src/dynamicT.vue +1 -1
- package/src/centaline/loader/src/ctl/Compound.js +43 -0
- package/src/centaline/loader/src/ctl/File.js +7 -1
- package/src/centaline/loader/src/ctl/lib/Enum.js +5 -0
- package/src/main.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +16059 -16164
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
# v1.6.41
|
|
2
|
+
2024-05-07
|
|
3
|
+
|
|
4
|
+
优化
|
|
5
|
+
|
|
6
|
+
附件上传添加上传文件大小的限制[code2,单位M],默认不限制
|
|
7
|
+
|
|
8
|
+
# v1.6.40
|
|
9
|
+
2024-04-10
|
|
10
|
+
|
|
11
|
+
优化
|
|
12
|
+
|
|
13
|
+
多行文本禁用样式修改
|
|
14
|
+
|
|
15
|
+
Compound复合组件优化:
|
|
16
|
+
1. 支持onChange
|
|
17
|
+
2. 支持onAfterChanged
|
|
18
|
+
3. 支持获取ParentFieldValue
|
|
19
|
+
4. 支持locked锁定
|
|
20
|
+
|
|
1
21
|
# v1.6.39
|
|
2
22
|
2024-04-07
|
|
3
23
|
|
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="'/
|
|
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
|
-
"
|
|
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
|
}
|
package/src/SearchList.vue
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
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> -->
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/employeelist/getLayoutOfSearch'" :searchDataApi="'/employeelist/getList'"></ct-searchlist> -->
|
|
47
47
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/estatemanage/estatlist/getLayoutOfSearch'" :searchDataApi="'/estatemanage/estatlist/getList'"></ct-searchlist> -->
|
|
48
48
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/system/AreaList/getLayoutOfSearch'" :searchDataApi="'/system/AreaList/getList'"></ct-searchlist> -->
|
|
49
|
+
<ct-searchlist :apiParam="para" :searchConditionApi="'/selectionactivitymanage/EvaluationActWorksList/getLayoutOfSearch'" :searchDataApi="'/selectionactivitymanage/EvaluationActWorksList/getListOfSearchModel'"></ct-searchlist>
|
|
49
50
|
<!-- CCES -->
|
|
50
51
|
|
|
51
52
|
<!-- <ct-searchlist :apiParam="para"
|
|
@@ -167,7 +168,7 @@
|
|
|
167
168
|
// appRootUrl:'http://10.88.22.13:6060/onecard-api/',
|
|
168
169
|
appRootUrl:'',
|
|
169
170
|
para:{
|
|
170
|
-
type: "
|
|
171
|
+
type: "left",
|
|
171
172
|
"deleteRight": 0,
|
|
172
173
|
"editRight": 0,
|
|
173
174
|
"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
|
|
89
|
+
self.parentModel.self.clickHandler(router);
|
|
82
90
|
}
|
|
83
91
|
|
|
84
92
|
self.$forceUpdate();
|
|
@@ -490,6 +490,10 @@ export default {
|
|
|
490
490
|
handleDownload(file) {
|
|
491
491
|
},
|
|
492
492
|
handleChange(file, fileList) {
|
|
493
|
+
if (this.model.maxSize && file.size > this.model.maxSize) {
|
|
494
|
+
this.$message.error(`文件大小不能超过 ${this.model.maxSize / (1024 * 1024)}MB`);
|
|
495
|
+
fileList.pop(); // 移除不符合要求的文件
|
|
496
|
+
}
|
|
493
497
|
this.changeHandler(this.model.value);
|
|
494
498
|
},
|
|
495
499
|
//上传之前的钩子
|
|
@@ -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
|
|
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
|
}
|
|
@@ -612,7 +612,13 @@ const box = function (source, fileSourceList, router, optionApi,videoPlayIconUrl
|
|
|
612
612
|
configurable: true
|
|
613
613
|
});
|
|
614
614
|
return rtnFormObj;
|
|
615
|
-
}
|
|
615
|
+
},
|
|
616
|
+
get maxSize() {
|
|
617
|
+
if(source.code2){
|
|
618
|
+
return source.code2 * 1024 * 1024;
|
|
619
|
+
}
|
|
620
|
+
return null;
|
|
621
|
+
},
|
|
616
622
|
};
|
|
617
623
|
rtn = base.copy(Base(data), rtn);
|
|
618
624
|
rtn = base.copy(rtn, valid.Init(rtn));
|
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":"
|
|
79
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
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.eyJsb2dpbl91c2VyX2tleSI6IjI1ZjYwYTJkLWEwNmMtNGRmNy1iNTQ1LTY1YTAwNjk5ZGI2OSJ9.8J9_ATCF2DYDE1wVr5cGoJgT9kNf1kajqkYtcr2se6s44PPMWOGaIzmpzVQTm1_Q9WD9laGM2BtKcfK2n2_aiw',
|
|
80
80
|
};
|
|
81
81
|
},
|
|
82
82
|
// 请求完成事件,可判断是否登录过期执行响应操作
|