centaline-data-driven 1.2.87 → 1.2.88
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/src/Detail.vue +1 -1
- package/src/centaline/dynamicContact/src/dynamicContact.vue +3 -0
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +3 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +3 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +16 -1
- package/src/centaline/dynamicDtd/src/dynamicDtd.vue +1 -5
- package/src/centaline/dynamicForm/src/dynamicForm.vue +11 -2
- package/src/centaline/dynamicLayout/src/dynamicLayout.vue +9 -4
- package/src/centaline/dynamicRichText/src/dynamicRichText.vue +5 -3
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +6 -0
- package/src/centaline/dynamicSearchList/src/dynamicTableStats.vue +1 -1
- package/src/centaline/dynamicT/src/dynamicT.vue +11 -2
- package/src/centaline/loader/src/ctl/Base.js +3 -0
- package/src/centaline/loader/src/ctl/Dtd.js +2 -3
- package/src/centaline/loader/src/ctl/Router.js +3 -0
- package/src/centaline/loader/src/ctl/SearchScreen.js +5 -0
- package/src/centaline/loader/src/ctl/lib/Enum.js +18 -0
- package/src/centaline/mixins/dynamicElement.js +0 -1
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Detail.vue
CHANGED
|
@@ -258,6 +258,9 @@
|
|
|
258
258
|
let query = self.$common.objectToQueryStr(submitData);
|
|
259
259
|
window.open(field.action + query, "_blank");
|
|
260
260
|
}
|
|
261
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
262
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
263
|
+
}
|
|
261
264
|
else{
|
|
262
265
|
field.doAction(submitData, (data) => {
|
|
263
266
|
self.model.doAction(data,field);
|
|
@@ -399,6 +399,9 @@
|
|
|
399
399
|
let query = self.$common.objectToQueryStr(submitData);
|
|
400
400
|
window.open(field.action + query, "_blank");
|
|
401
401
|
}
|
|
402
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
403
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
404
|
+
}
|
|
402
405
|
else{
|
|
403
406
|
field.doAction(submitData, (data) => {
|
|
404
407
|
self.model.doAction(data,field);
|
|
@@ -584,6 +584,9 @@
|
|
|
584
584
|
let query = self.$common.objectToQueryStr(submitData);
|
|
585
585
|
window.open(field.action + query, "_blank");
|
|
586
586
|
}
|
|
587
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
588
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
589
|
+
}
|
|
587
590
|
else{
|
|
588
591
|
field.doAction(submitData, (data) => {
|
|
589
592
|
self.model.doAction(data,field);
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</el-popover>
|
|
71
71
|
</div>
|
|
72
72
|
<div ref="shortcutFollow" v-if="model.shortcutFollowForm!==undefined && model.shortcutFollowForm!==null" class="shortcutFollow" style="margin-top: 16px;">
|
|
73
|
-
<ct-form :source="model.shortcutFollowForm"></ct-form>
|
|
73
|
+
<ct-form :source="model.shortcutFollowForm" @submit="saveShortcutFollow"></ct-form>
|
|
74
74
|
</div>
|
|
75
75
|
<div class="tablist-info base-box">
|
|
76
76
|
<div class="details-tabs-box">
|
|
@@ -398,6 +398,9 @@
|
|
|
398
398
|
let query = self.$common.objectToQueryStr(submitData);
|
|
399
399
|
window.open(field.action + query, "_blank");
|
|
400
400
|
}
|
|
401
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
402
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
403
|
+
}
|
|
401
404
|
else{
|
|
402
405
|
field.doAction(submitData, (data) => {
|
|
403
406
|
self.model.doAction(data,field);
|
|
@@ -450,6 +453,18 @@
|
|
|
450
453
|
clickPrevHandler() {
|
|
451
454
|
this.$emit('clickPrevHandler');
|
|
452
455
|
},
|
|
456
|
+
saveShortcutFollow(){
|
|
457
|
+
var self=this;
|
|
458
|
+
self.model.tags1.forEach((v,i) => {
|
|
459
|
+
if(v.appID=='Follow'){
|
|
460
|
+
self.model.activeIndex1=i.toString();
|
|
461
|
+
self.listKey=self.listKey+1;
|
|
462
|
+
self.model.searchConditionApiTags1=v.searchConditionApiUrl||'';
|
|
463
|
+
self.model.searchDataApiTags1=v.searchDataApiUrl||'';
|
|
464
|
+
self.model.paramDataTags1 = v.paramData || '';
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
},
|
|
453
468
|
}
|
|
454
469
|
}
|
|
455
470
|
</script>
|
|
@@ -49,9 +49,7 @@
|
|
|
49
49
|
pickerOptions: this.getPickerOptions()
|
|
50
50
|
};
|
|
51
51
|
},
|
|
52
|
-
|
|
53
|
-
mounted() {
|
|
54
|
-
|
|
52
|
+
mounted() {
|
|
55
53
|
var self = this;
|
|
56
54
|
this.$nextTick(function () {
|
|
57
55
|
if (self.vmodel) {
|
|
@@ -70,10 +68,8 @@
|
|
|
70
68
|
},
|
|
71
69
|
watch: {
|
|
72
70
|
'model.value': function () {
|
|
73
|
-
|
|
74
71
|
},
|
|
75
72
|
'model.value1': function () {
|
|
76
|
-
|
|
77
73
|
},
|
|
78
74
|
},
|
|
79
75
|
methods: {
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
}
|
|
309
309
|
field.disabled = false;
|
|
310
310
|
self.model.pageDisabled= false;
|
|
311
|
-
});
|
|
311
|
+
},self.model.scripts);
|
|
312
312
|
}
|
|
313
313
|
//无值,触发submit事件
|
|
314
314
|
else {
|
|
@@ -399,6 +399,9 @@
|
|
|
399
399
|
let query = self.$common.objectToQueryStr(submitData);
|
|
400
400
|
window.open(field.action + query, "_blank");
|
|
401
401
|
}
|
|
402
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
403
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
404
|
+
}
|
|
402
405
|
else if (field.isExport) {
|
|
403
406
|
submitData = field.getActionPara(submitData).para;
|
|
404
407
|
self.model.export(field, submitData);
|
|
@@ -475,7 +478,13 @@
|
|
|
475
478
|
self.model.requiredHandle(field);
|
|
476
479
|
//self.model.validMrf(field);
|
|
477
480
|
|
|
478
|
-
if(field.
|
|
481
|
+
if(field.routerKeyForEnterKey){
|
|
482
|
+
var router =self.model.actionRouters.find((v) => {
|
|
483
|
+
return v.id === field.routerKeyForEnterKey;
|
|
484
|
+
});
|
|
485
|
+
self.clickHandler(router);
|
|
486
|
+
}
|
|
487
|
+
else if(field.onAfterChanged){
|
|
479
488
|
var router =self.model.actionRouters.find((v) => {
|
|
480
489
|
return v.id === field.onAfterChanged;
|
|
481
490
|
});
|
|
@@ -97,10 +97,15 @@
|
|
|
97
97
|
getValue(data, val) {
|
|
98
98
|
return val.split('.').reduce((data, currentVal) => {
|
|
99
99
|
var rtn = data[currentVal];
|
|
100
|
-
if (rtn
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
if (typeof rtn !== 'undefined') {
|
|
101
|
+
if (rtn.toString().indexOf('"') != -1) {
|
|
102
|
+
rtn = rtn.replace(/"/g, "'");
|
|
103
|
+
rtn = rtn.replace(/>/g, ">");
|
|
104
|
+
rtn = rtn.replace(/</g, "<");
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
rtn = "";
|
|
104
109
|
}
|
|
105
110
|
return rtn
|
|
106
111
|
}, data)
|
|
@@ -247,9 +247,11 @@
|
|
|
247
247
|
this.config.toolbars = [['help']];
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
else if (!this.model.lock) {
|
|
251
|
+
this.config.maximumWords = this.model && this.model.max ? parseFloat(this.model.max) : 5000;
|
|
252
|
+
this.config.serverUrl = this.model.action;
|
|
253
|
+
this.config.imageUrl = this.model.action;
|
|
254
|
+
}
|
|
253
255
|
},
|
|
254
256
|
computed: {
|
|
255
257
|
|
|
@@ -750,6 +750,9 @@
|
|
|
750
750
|
let query = self.$common.objectToQueryStr(submitData);
|
|
751
751
|
window.open(action + query, "_blank");
|
|
752
752
|
}
|
|
753
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
754
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
755
|
+
}
|
|
753
756
|
else {
|
|
754
757
|
//self.operationLoading = true;
|
|
755
758
|
|
|
@@ -928,6 +931,9 @@
|
|
|
928
931
|
let query = self.$common.objectToQueryStr(submitData);
|
|
929
932
|
window.open(action + query, "_blank");
|
|
930
933
|
}
|
|
934
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
935
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
936
|
+
}
|
|
931
937
|
else {
|
|
932
938
|
//self.operationLoading = true;
|
|
933
939
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
</el-input>
|
|
22
22
|
|
|
23
23
|
<span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
|
|
24
|
-
<ctQuickInputSos v-if="!model.lock && model.paramName" class="ct-flex-div-span" :pn="model.paramName" :action="api" @click="
|
|
24
|
+
<ctQuickInputSos v-if="!model.lock && model.paramName" class="ct-flex-div-span" :pn="model.paramName" :action="api" @click="quickSelect"></ctQuickInputSos>
|
|
25
25
|
</div>
|
|
26
26
|
<transition name="el-fade-in" class="ct-flex-div-span">
|
|
27
27
|
<span v-show="!valid" class="errorMessage ">
|
|
@@ -80,7 +80,16 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
search() {
|
|
83
|
-
if(this.model.autoSearch)
|
|
83
|
+
if(this.model.autoSearch) {
|
|
84
|
+
this.$emit('click');
|
|
85
|
+
}
|
|
86
|
+
else if(this.model.routerKeyForEnterKey){
|
|
87
|
+
this.changeHandler(this.model.value);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
quickSelect(v) {
|
|
91
|
+
this.model.value=v;
|
|
92
|
+
this.search();
|
|
84
93
|
},
|
|
85
94
|
},
|
|
86
95
|
}</script>
|
|
@@ -64,9 +64,8 @@ const Dtd = function (source, dateType) {
|
|
|
64
64
|
},
|
|
65
65
|
reset() {
|
|
66
66
|
this.formatValue = this.defaultFormat;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
source.code2 = this.formatValue[1];
|
|
67
|
+
rtn.value = this.formatValue[0];
|
|
68
|
+
rtn.value1 = this.formatValue[1];
|
|
70
69
|
},
|
|
71
70
|
getFormObj() {
|
|
72
71
|
var rtnFormObj = {};
|
|
@@ -98,6 +98,9 @@ const Router = function (source) {
|
|
|
98
98
|
get isSearchPageWithList() {
|
|
99
99
|
return source.pageStyle === Enum.PageStyle.SearchPageWithList;
|
|
100
100
|
},
|
|
101
|
+
get isOpenUrlInBrowse() {
|
|
102
|
+
return source.actionType === Enum.ActionType.OpenUrlInBrowse;
|
|
103
|
+
},
|
|
101
104
|
//打开页面(1Form,2SearchList(弹在tab),3Tab,4执行客户端脚本,5SearchList(弹出))
|
|
102
105
|
get navToNewPage() {
|
|
103
106
|
return source.navToNewPage;
|
|
@@ -48,6 +48,11 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
48
48
|
this._sourceFieldsArr = [];
|
|
49
49
|
|
|
50
50
|
for (let key in source.content.fields) {
|
|
51
|
+
if((source.content.fields[key].controlType===Enum.ControlType.DateRange
|
|
52
|
+
|| source.content.fields[key].controlType===Enum.ControlType.DateTimeRange)
|
|
53
|
+
&& source.content.fields[key].code2==undefined){
|
|
54
|
+
source.content.fields[key].code2='';
|
|
55
|
+
}
|
|
51
56
|
let field = source.content.fields[key];
|
|
52
57
|
this._sourceFieldsArr.push(field);
|
|
53
58
|
}
|
|
@@ -377,6 +377,21 @@ const Enum = {
|
|
|
377
377
|
/// 执行 拨打电话 的动作
|
|
378
378
|
/// </summary>
|
|
379
379
|
CallTel: 19,
|
|
380
|
+
|
|
381
|
+
/// <summary>
|
|
382
|
+
/// 弹出浮层 播放录音
|
|
383
|
+
/// </summary>
|
|
384
|
+
ListenVoice: 20,
|
|
385
|
+
|
|
386
|
+
/// <summary>
|
|
387
|
+
/// 弹出浮层 播放视频
|
|
388
|
+
/// </summary>
|
|
389
|
+
SeeVoice: 21,
|
|
390
|
+
|
|
391
|
+
/// <summary>
|
|
392
|
+
/// 在浏览器中打开一个 relationField 执行的URL
|
|
393
|
+
/// </summary>
|
|
394
|
+
OpenUrlInBrowse: 22,
|
|
380
395
|
},
|
|
381
396
|
|
|
382
397
|
/// <summary>
|
|
@@ -482,6 +497,9 @@ const Enum = {
|
|
|
482
497
|
Dropdown : 3
|
|
483
498
|
},
|
|
484
499
|
|
|
500
|
+
/// <summary>
|
|
501
|
+
/// 页面打开类型
|
|
502
|
+
/// </summary>
|
|
485
503
|
PageStyle:
|
|
486
504
|
{
|
|
487
505
|
/// <summary>
|
package/src/main.js
CHANGED
|
@@ -12,7 +12,7 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl: "http://10.88.22.
|
|
15
|
+
baseUrl: "http://10.88.22.13:7070/v1/form/router",
|
|
16
16
|
// baseUrl: "http://10.88.23.22:9999/v1/form/router",
|
|
17
17
|
// baseUrl: "http://10.88.22.69:8080/",
|
|
18
18
|
// flagRouterSelf: true,
|