centaline-data-driven 1.6.38 → 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 +1 -1
- package/release-log.md +20 -0
- package/src/Form.vue +2 -2
- package/src/SearchList.vue +4 -3
- package/src/centaline/browseIframe/src/browseIframe.vue +3 -0
- package/src/centaline/dynamicCompound/src/dynamicCompound.vue +9 -1
- package/src/centaline/dynamicContact/src/dynamicContact.vue +4 -3
- package/src/centaline/dynamicFile/src/dynamicFile.vue +8 -4
- package/src/centaline/dynamicForm/src/dynamicForm.vue +6 -3
- package/src/centaline/dynamicMapBaidu/src/dynamicMapBaidu.vue +7 -2
- package/src/centaline/dynamicPhotoSelect/src/dynamicPhotoSelect.vue +6 -1
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +6 -1
- package/src/centaline/dynamicSearchList/src/dynamicTableStats.vue +10 -6
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListOne.vue +3 -0
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListTab.vue +3 -0
- package/src/centaline/dynamicT/src/dynamicT.vue +4 -1
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +6 -1
- package/src/centaline/loader/src/ctl/Compound.js +43 -0
- package/src/centaline/loader/src/ctl/lib/Enum.js +5 -0
- package/src/centaline/progress/src/progress.vue +11 -6
- package/src/main.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +1052 -940
- 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.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
|
+
|
|
14
|
+
# v1.6.39
|
|
15
|
+
2024-04-07
|
|
16
|
+
|
|
17
|
+
优化
|
|
18
|
+
|
|
19
|
+
表单再弹出表单内存泄漏优化
|
|
20
|
+
|
|
1
21
|
# v1.6.38
|
|
2
22
|
2024-03-21
|
|
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
|
@@ -36,8 +36,8 @@
|
|
|
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
|
-
|
|
40
|
-
<ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/CustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/CustomerList/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
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> -->
|
|
43
43
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/commissionquery/properformanceszjjbreport/getLayoutOfSearch'" :searchDataApi="'/commissionquery/properformanceszjjbreport/getList'"></ct-searchlist> -->
|
|
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
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/system/AreaList/getLayoutOfSearch'" :searchDataApi="'/system/AreaList/getList'"></ct-searchlist> -->
|
|
48
49
|
<!-- CCES -->
|
|
49
50
|
|
|
50
51
|
<!-- <ct-searchlist :apiParam="para"
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
// appRootUrl:'http://10.88.22.13:6060/onecard-api/',
|
|
167
168
|
appRootUrl:'',
|
|
168
169
|
para:{
|
|
169
|
-
type: "
|
|
170
|
+
type: "left",
|
|
170
171
|
"deleteRight": 0,
|
|
171
172
|
"editRight": 0,
|
|
172
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
|
|
89
|
+
self.parentModel.self.clickHandler(router);
|
|
82
90
|
}
|
|
83
91
|
|
|
84
92
|
self.$forceUpdate();
|
|
@@ -84,6 +84,9 @@ export default {
|
|
|
84
84
|
this.setCss();
|
|
85
85
|
})
|
|
86
86
|
},
|
|
87
|
+
destroyed (){
|
|
88
|
+
window.removeEventListener('resize', this.setCss);
|
|
89
|
+
},
|
|
87
90
|
methods: {
|
|
88
91
|
load(data) {
|
|
89
92
|
var self = this;
|
|
@@ -95,9 +98,7 @@ export default {
|
|
|
95
98
|
}
|
|
96
99
|
this.setCss();
|
|
97
100
|
this.$nextTick(() => {
|
|
98
|
-
window.addEventListener(
|
|
99
|
-
self.setCss();
|
|
100
|
-
});
|
|
101
|
+
window.addEventListener('resize', this.setCss);
|
|
101
102
|
});
|
|
102
103
|
},
|
|
103
104
|
focusHandle: function () {
|
|
@@ -330,11 +330,9 @@ export default {
|
|
|
330
330
|
},
|
|
331
331
|
deactivated() {
|
|
332
332
|
document.addEventListener('paste', this.ListenerPaste);
|
|
333
|
-
|
|
334
333
|
},
|
|
335
334
|
mounted() {
|
|
336
335
|
document.addEventListener('paste', this.ListenerPaste);
|
|
337
|
-
|
|
338
336
|
},
|
|
339
337
|
created() {
|
|
340
338
|
var self = this;
|
|
@@ -385,7 +383,7 @@ export default {
|
|
|
385
383
|
}).then(() => {
|
|
386
384
|
this.model.deleteFile(file, false);
|
|
387
385
|
this.selfValidExcute("remove");
|
|
388
|
-
setTimeout(() => {
|
|
386
|
+
this.timeoutHandle1=setTimeout(() => {
|
|
389
387
|
this.QRCodeLocate();
|
|
390
388
|
}, 1080);
|
|
391
389
|
|
|
@@ -505,7 +503,7 @@ export default {
|
|
|
505
503
|
file.loadProgress = parseInt(event.percent); // 动态获取文件上传进度
|
|
506
504
|
if (file.loadProgress >= 100) {
|
|
507
505
|
file.loadProgress = 100;
|
|
508
|
-
setTimeout(() => {
|
|
506
|
+
this.timeoutHandle2=setTimeout(() => {
|
|
509
507
|
file.progressFlag = false;
|
|
510
508
|
}, 1000); // 一秒后关闭进度条
|
|
511
509
|
}
|
|
@@ -914,6 +912,12 @@ export default {
|
|
|
914
912
|
},
|
|
915
913
|
beforeDestroy() {
|
|
916
914
|
clearTimeout(this.qrtimer);
|
|
915
|
+
if(this.timeoutHandle1){
|
|
916
|
+
clearTimeout(this.timeoutHandle1)
|
|
917
|
+
}
|
|
918
|
+
if(this.timeoutHandle2){
|
|
919
|
+
clearTimeout(this.timeoutHandle2)
|
|
920
|
+
}
|
|
917
921
|
window.removeEventListener('scroll', this.QRCodeLocate, true)
|
|
918
922
|
//销毁粘贴事件监听器
|
|
919
923
|
document.removeEventListener('paste', this.ListenerPaste)
|
|
@@ -259,7 +259,10 @@
|
|
|
259
259
|
this.computeScroll();
|
|
260
260
|
},
|
|
261
261
|
destroyed (){
|
|
262
|
-
this.$off();
|
|
262
|
+
this.$off();
|
|
263
|
+
if(this.timeoutHandle){
|
|
264
|
+
clearTimeout(this.timeoutHandle)
|
|
265
|
+
}
|
|
263
266
|
if(this.$el.parentNode)this.$el.parentNode.removeChild(this.$el);
|
|
264
267
|
if (typeof this.model.scripts !== 'undefined') {
|
|
265
268
|
this.model.scripts.formData.form = null;
|
|
@@ -281,7 +284,7 @@
|
|
|
281
284
|
computeScroll(){
|
|
282
285
|
this.$nextTick(() => {
|
|
283
286
|
let parentDom=this.$el.parentElement;
|
|
284
|
-
if (parentDom.scrollHeight > parentDom.clientHeight
|
|
287
|
+
if (parentDom && parentDom.scrollHeight > parentDom.clientHeight
|
|
285
288
|
&& this.model && (!this.model.isHorizontalLayout || this.flagScroll)) {
|
|
286
289
|
this.isScroll = true;
|
|
287
290
|
}
|
|
@@ -1462,7 +1465,7 @@
|
|
|
1462
1465
|
timeOut = 300;//展开折叠有个时间并影响滚动条位置,故需要延迟
|
|
1463
1466
|
}
|
|
1464
1467
|
|
|
1465
|
-
setTimeout(function () {
|
|
1468
|
+
self.timeoutHandle=setTimeout(function () {
|
|
1466
1469
|
if (f.$el.offsetParent && f.$el.offsetParent.offsetParent) {
|
|
1467
1470
|
let total = f.$el.offsetParent.offsetParent.offsetTop;
|
|
1468
1471
|
if (f.$el.offsetParent.offsetParent.offsetParent === null
|
|
@@ -58,6 +58,11 @@
|
|
|
58
58
|
rtnPoint:null,
|
|
59
59
|
};
|
|
60
60
|
},
|
|
61
|
+
destroyed (){
|
|
62
|
+
if(this.timeoutHandle){
|
|
63
|
+
clearTimeout(this.timeoutHandle)
|
|
64
|
+
}
|
|
65
|
+
},
|
|
61
66
|
methods: {
|
|
62
67
|
handler ({BMap, map}) {
|
|
63
68
|
var self=this;
|
|
@@ -93,8 +98,8 @@
|
|
|
93
98
|
this.markerLabel=this.apiParam.address;
|
|
94
99
|
}
|
|
95
100
|
|
|
96
|
-
if(this.apiParam.lng && this.apiParam.lat){
|
|
97
|
-
setTimeout(() => {
|
|
101
|
+
if(this.apiParam.lng && this.apiParam.lat){
|
|
102
|
+
self.timeoutHandle=setTimeout(() => {
|
|
98
103
|
//偏移处理
|
|
99
104
|
self.center.lng = self.apiParam.lng;
|
|
100
105
|
self.center.lat = self.apiParam.lat;
|
|
@@ -116,6 +116,11 @@ export default {
|
|
|
116
116
|
}
|
|
117
117
|
//});
|
|
118
118
|
},
|
|
119
|
+
destroyed (){
|
|
120
|
+
if(this.timeoutHandle){
|
|
121
|
+
clearTimeout(this.timeoutHandle)
|
|
122
|
+
}
|
|
123
|
+
},
|
|
119
124
|
methods: {
|
|
120
125
|
load(data) {
|
|
121
126
|
this.max = data.max ? data.max : 99999;
|
|
@@ -175,7 +180,7 @@ export default {
|
|
|
175
180
|
showClose:true,
|
|
176
181
|
});
|
|
177
182
|
self.valid = false;
|
|
178
|
-
setTimeout(() => {
|
|
183
|
+
self.timeoutHandle=setTimeout(() => {
|
|
179
184
|
self.valid = true;
|
|
180
185
|
}, 3000);
|
|
181
186
|
photoList = photoList.slice(0, this.model.max);
|
|
@@ -53,7 +53,12 @@
|
|
|
53
53
|
elTableHeight: 0,
|
|
54
54
|
selectCount:0
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
},
|
|
57
|
+
destroyed (){
|
|
58
|
+
if(this.$refs.multipleTable && this.$refs.multipleTable.bodyWrapper){
|
|
59
|
+
this.$refs.multipleTable.bodyWrapper.removeEventListener('scroll', this.scrollHandle);
|
|
60
|
+
}
|
|
61
|
+
},
|
|
57
62
|
methods: {
|
|
58
63
|
load(data) {
|
|
59
64
|
this.loadingOne=false;
|
|
@@ -123,12 +123,12 @@ export default {
|
|
|
123
123
|
iconSort: require("../../../assets/sort.png"),
|
|
124
124
|
};
|
|
125
125
|
},
|
|
126
|
+
destroyed (){
|
|
127
|
+
window.removeEventListener('resize', this.resize);
|
|
128
|
+
},
|
|
126
129
|
mounted() {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
window.addEventListener('resize', function () {
|
|
130
|
-
self.showWidth = self.$refs.tableStatistics && self.$refs.tableStatistics.offsetWidth || document.body.clientWidth;
|
|
131
|
-
});
|
|
130
|
+
this.resize();
|
|
131
|
+
window.addEventListener('resize', this.resize);
|
|
132
132
|
},
|
|
133
133
|
methods: {
|
|
134
134
|
replabel(labelName) {
|
|
@@ -293,7 +293,11 @@ export default {
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
return model;
|
|
296
|
-
}
|
|
296
|
+
},
|
|
297
|
+
resize(){
|
|
298
|
+
var self = this;
|
|
299
|
+
self.showWidth = self.$refs.tableStatistics && self.$refs.tableStatistics.offsetWidth || document.body.clientWidth;
|
|
300
|
+
},
|
|
297
301
|
},
|
|
298
302
|
watch: {
|
|
299
303
|
showWidth: function (newVal, oldVal) {
|
|
@@ -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>
|
|
@@ -121,6 +121,9 @@
|
|
|
121
121
|
this.$el = null;
|
|
122
122
|
if(this.timeoutHandle){
|
|
123
123
|
clearTimeout(this.timeoutHandle)
|
|
124
|
+
}
|
|
125
|
+
if(this.model && this.model.forbiddenWords){
|
|
126
|
+
this.$refs.inputText.$el.removeEventListener('scroll',this.scrollHandler,true);
|
|
124
127
|
}
|
|
125
128
|
},
|
|
126
129
|
mounted() {
|
|
@@ -233,6 +233,11 @@
|
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
235
|
},
|
|
236
|
+
destroyed (){
|
|
237
|
+
if(this.timeoutHandle){
|
|
238
|
+
clearTimeout(this.timeoutHandle)
|
|
239
|
+
}
|
|
240
|
+
},
|
|
236
241
|
deactivated(){
|
|
237
242
|
this.downloadUrl="";
|
|
238
243
|
},
|
|
@@ -294,7 +299,7 @@
|
|
|
294
299
|
else {
|
|
295
300
|
self.downloadUrl = self.getDownloadUrl(url) + "?download=1&" + Math.random();
|
|
296
301
|
}
|
|
297
|
-
setTimeout(function () {
|
|
302
|
+
self.timeoutHandle=setTimeout(function () {
|
|
298
303
|
self.downloadLoading = false;
|
|
299
304
|
}, 1000);
|
|
300
305
|
},
|
|
@@ -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
|
}
|
|
@@ -44,6 +44,14 @@ export default {
|
|
|
44
44
|
deactivated(){
|
|
45
45
|
this.downloadUrl="";
|
|
46
46
|
},
|
|
47
|
+
destroyed (){
|
|
48
|
+
if(this.timeoutHandle1){
|
|
49
|
+
clearTimeout(this.timeoutHandle1)
|
|
50
|
+
}
|
|
51
|
+
if(this.timeoutHandle2){
|
|
52
|
+
clearTimeout(this.timeoutHandle2)
|
|
53
|
+
}
|
|
54
|
+
},
|
|
47
55
|
methods: {
|
|
48
56
|
load() {
|
|
49
57
|
},
|
|
@@ -89,11 +97,8 @@ export default {
|
|
|
89
97
|
else {
|
|
90
98
|
self.downloadUrl = data.content + "?" + Math.random();
|
|
91
99
|
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// window.open(data.content, "_blank");
|
|
95
|
-
// });
|
|
96
|
-
setTimeout(() => {
|
|
100
|
+
}
|
|
101
|
+
self.timeoutHandle1=setTimeout(() => {
|
|
97
102
|
self.$emit('finished', data);
|
|
98
103
|
}, 800);
|
|
99
104
|
}
|
|
@@ -102,7 +107,7 @@ export default {
|
|
|
102
107
|
}
|
|
103
108
|
}
|
|
104
109
|
else {
|
|
105
|
-
setTimeout(() => {
|
|
110
|
+
self.timeoutHandle2=setTimeout(() => {
|
|
106
111
|
self.getApiData();
|
|
107
112
|
}, 1000);
|
|
108
113
|
}
|
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.eyJsb2dpbl91c2VyX2tleSI6ImY1MGUyMTk2LTA3MjUtNDc3NS1iMjU0LTA1MmEyM2I3NWIwZiJ9.wOVpO974fdap7nW1JZeG3rGaMGDY6ktlRzHWwJPXXtYxpXeBtDaRgBRwnol9x5jGlEHmsGckEIBgfksSivbOYg',
|
|
80
80
|
};
|
|
81
81
|
},
|
|
82
82
|
// 请求完成事件,可判断是否登录过期执行响应操作
|