centaline-data-driven 1.3.13 → 1.3.14
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/centaline/css/common.css +3 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +49 -88
- package/src/centaline/dynamicForm/src/dynamicForm.vue +5 -3
- package/src/centaline/loader/src/ctl/Form.js +6 -0
- 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
|
@@ -66,56 +66,14 @@
|
|
|
66
66
|
</div>
|
|
67
67
|
<div class="head-but">
|
|
68
68
|
<div>
|
|
69
|
-
<component
|
|
70
|
-
v-if="model.otherTradeActionRouter !== null"
|
|
71
|
-
v-bind="model.otherTradeActionRouter"
|
|
69
|
+
<component v-if="model.otherTradeActionRouter !== null" v-bind="model.otherTradeActionRouter"
|
|
72
70
|
class="max-default w93"
|
|
73
|
-
:is="model.otherTradeActionRouter.is"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
v-if="parentModel && parentModel.$refs && parentModel.$refs.table"
|
|
80
|
-
:class="{
|
|
81
|
-
domDisabled:
|
|
82
|
-
parentModel &&
|
|
83
|
-
parentModel.$refs.table &&
|
|
84
|
-
parentModel.$refs.table.model.selectIndex <= 0,
|
|
85
|
-
}"
|
|
86
|
-
@click="clickPrevHandler"
|
|
87
|
-
src="../../../assets/T.png"
|
|
88
|
-
alt=""
|
|
89
|
-
style="
|
|
90
|
-
width: 26px;
|
|
91
|
-
height: 26px;
|
|
92
|
-
vertical-align: bottom;
|
|
93
|
-
margin-left: 20px;
|
|
94
|
-
cursor: pointer;
|
|
95
|
-
"
|
|
96
|
-
/>
|
|
97
|
-
<img
|
|
98
|
-
v-if="parentModel && parentModel.$refs && parentModel.$refs.table"
|
|
99
|
-
:class="{
|
|
100
|
-
domDisabled:
|
|
101
|
-
parentModel &&
|
|
102
|
-
parentModel.$refs.table &&
|
|
103
|
-
parentModel.$refs.table.model.listData &&
|
|
104
|
-
parentModel.$refs.table.model.selectIndex ===
|
|
105
|
-
parentModel.$refs.table.model.listData.length - 1,
|
|
106
|
-
}"
|
|
107
|
-
@click="clickNextHandler"
|
|
108
|
-
src="../../../assets/B.png"
|
|
109
|
-
alt=""
|
|
110
|
-
style="
|
|
111
|
-
width: 26px;
|
|
112
|
-
height: 26px;
|
|
113
|
-
vertical-align: bottom;
|
|
114
|
-
margin-left: 15px;
|
|
115
|
-
margin-right: 13px;
|
|
116
|
-
cursor: pointer;
|
|
117
|
-
"
|
|
118
|
-
/>
|
|
71
|
+
:is="model.otherTradeActionRouter.is" :vmodel="model.otherTradeActionRouter" :api="model.optionApi"
|
|
72
|
+
@click="fieldClickHandler(model.otherTradeActionRouter, $event)"></component>
|
|
73
|
+
<img :class="{domDisabled:flagDisabledPrev,}" @click="clickPrevHandler"
|
|
74
|
+
src="../../../assets/T.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left: 20px;cursor: pointer;"/>
|
|
75
|
+
<img :class="{domDisabled:flagDisabledNext,}" @click="clickNextHandler"
|
|
76
|
+
src="../../../assets/B.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left: 15px;margin-right: 13px;cursor: pointer;"/>
|
|
119
77
|
</div>
|
|
120
78
|
<div class="mt5">
|
|
121
79
|
<component
|
|
@@ -140,19 +98,8 @@
|
|
|
140
98
|
></component>
|
|
141
99
|
</div>
|
|
142
100
|
<div class="mt5">
|
|
143
|
-
<button
|
|
144
|
-
|
|
145
|
-
class="
|
|
146
|
-
el-button el-button--info el-button--mini
|
|
147
|
-
max-report
|
|
148
|
-
rel
|
|
149
|
-
w93
|
|
150
|
-
"
|
|
151
|
-
v-if="
|
|
152
|
-
model.actionRoutersMoreList !== null &&
|
|
153
|
-
model.actionRoutersMoreList.length > 0
|
|
154
|
-
"
|
|
155
|
-
>
|
|
101
|
+
<button type="button" class="el-button el-button--info el-button--mini max-report rel w93"
|
|
102
|
+
v-if="model.actionRoutersMoreList !== null && model.actionRoutersMoreList.length > 0">
|
|
156
103
|
<img src="../../../assets/dian.png" alt="" class="report" />
|
|
157
104
|
<ul class="report-cont">
|
|
158
105
|
<li
|
|
@@ -336,23 +283,13 @@
|
|
|
336
283
|
<div class="tablist-info base-box">
|
|
337
284
|
<div class="details-tabs-box">
|
|
338
285
|
<el-tabs :value="model.activeIndex1" @tab-click="handleSelect">
|
|
339
|
-
<el-tab-pane
|
|
340
|
-
v-for="(col, index) in model.tags1"
|
|
341
|
-
:key="col.appID"
|
|
342
|
-
:index="index.toString()"
|
|
343
|
-
:name="index.toString()"
|
|
344
|
-
>
|
|
286
|
+
<el-tab-pane v-for="(col, index) in model.tags1" :key="col.appID" :index="index.toString()" :name="index.toString()">
|
|
345
287
|
<div slot="label" v-html="col.appName"></div>
|
|
346
288
|
</el-tab-pane>
|
|
347
289
|
</el-tabs>
|
|
348
|
-
<ct-searchlist
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
:apiParam="model.paramDataTags1"
|
|
352
|
-
:flagFocus="false"
|
|
353
|
-
:searchConditionApi="model.searchConditionApiTags1"
|
|
354
|
-
:searchDataApi="model.searchDataApiTags1"
|
|
355
|
-
></ct-searchlist>
|
|
290
|
+
<ct-searchlist v-if="model.searchConditionApiTags1" :key="'list' + listKey.toString() + refershKey" style="min-height: 420px;"
|
|
291
|
+
:apiParam="model.paramDataTags1" :flagFocus="false" :searchConditionApi="model.searchConditionApiTags1" :searchDataApi="model.searchDataApiTags1">
|
|
292
|
+
</ct-searchlist>
|
|
356
293
|
</div>
|
|
357
294
|
</div>
|
|
358
295
|
<div
|
|
@@ -657,16 +594,33 @@ export default {
|
|
|
657
594
|
allIn: false,
|
|
658
595
|
refershKey: 0,
|
|
659
596
|
listKey: 0,
|
|
597
|
+
flagDisabledPrev:false,
|
|
598
|
+
flagDisabledNext:false,
|
|
660
599
|
};
|
|
661
600
|
},
|
|
662
601
|
mounted() {
|
|
663
602
|
var self = this;
|
|
664
603
|
this.$nextTick(function () {
|
|
604
|
+
if(self.parentModel && self.parentModel.$refs && self.parentModel.$refs.table){
|
|
605
|
+
if(self.parentModel.$refs.table.model.selectIndex <= 0){
|
|
606
|
+
self.flagDisabledPrev=true;
|
|
607
|
+
}
|
|
608
|
+
if(self.parentModel.$refs.table.model.listData && self.parentModel.$refs.table.model.selectIndex ===self.parentModel.$refs.table.model.listData.length - 1){
|
|
609
|
+
self.flagDisabledNext=true;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
else{
|
|
613
|
+
self.flagDisabledPrev=true;
|
|
614
|
+
self.flagDisabledNext=true;
|
|
615
|
+
}
|
|
616
|
+
|
|
665
617
|
if (self.vmodel) {
|
|
666
618
|
self.load(self.vmodel);
|
|
667
|
-
}
|
|
619
|
+
}
|
|
620
|
+
else if (typeof self.source !== "undefined") {
|
|
668
621
|
self.loaderObj.Detail(self.source, null, self.load);
|
|
669
|
-
}
|
|
622
|
+
}
|
|
623
|
+
else if (typeof self.api !== "undefined") {
|
|
670
624
|
self.loaderObj.Detail(self.api, self.apiParam, self.load);
|
|
671
625
|
}
|
|
672
626
|
});
|
|
@@ -881,7 +835,8 @@ export default {
|
|
|
881
835
|
],
|
|
882
836
|
};
|
|
883
837
|
self.$common.openDialog(dialogOption);
|
|
884
|
-
}
|
|
838
|
+
}
|
|
839
|
+
else if (field.isOpenList) {
|
|
885
840
|
var dialogOption = {
|
|
886
841
|
title: field.pageTitle,
|
|
887
842
|
pane: self.$common.getParentPane(self),
|
|
@@ -909,7 +864,8 @@ export default {
|
|
|
909
864
|
],
|
|
910
865
|
};
|
|
911
866
|
self.$common.openDialog(dialogOption);
|
|
912
|
-
}
|
|
867
|
+
}
|
|
868
|
+
else if (field.isFormPageInTab) {
|
|
913
869
|
// 外部框架tab页打开
|
|
914
870
|
submitData = field.getActionPara(submitData).para;
|
|
915
871
|
self.$common
|
|
@@ -921,24 +877,29 @@ export default {
|
|
|
921
877
|
self.model,
|
|
922
878
|
field.dialogWidth
|
|
923
879
|
);
|
|
924
|
-
}
|
|
880
|
+
}
|
|
881
|
+
else if (field.isSearchPageInTab) {
|
|
925
882
|
// 外部框架tab页打开
|
|
926
883
|
submitData = field.getActionPara(submitData).para;
|
|
927
884
|
self.$common
|
|
928
885
|
.getDataDrivenOpts()
|
|
929
886
|
.handler.openTabSearch(field, submitData);
|
|
930
|
-
}
|
|
887
|
+
}
|
|
888
|
+
else if (field.isBrowserNewTab) {
|
|
931
889
|
// 浏览器打开
|
|
932
890
|
submitData = field.getActionPara(submitData).para;
|
|
933
891
|
let query = self.$common.objectToQueryStr(submitData);
|
|
934
892
|
window.open(field.action + query, "_blank");
|
|
935
|
-
}
|
|
893
|
+
}
|
|
894
|
+
else if (field.isOpenUrlInBrowse) {
|
|
936
895
|
// 浏览器打开
|
|
937
896
|
window.open(submitData[field.submitFormField], "_blank");
|
|
938
|
-
}
|
|
897
|
+
}
|
|
898
|
+
else if (field.isSeeVoice) {
|
|
939
899
|
//看视频
|
|
940
900
|
self.$common.browseVideo(field, submitData);
|
|
941
|
-
}
|
|
901
|
+
}
|
|
902
|
+
else {
|
|
942
903
|
field.doAction(submitData, (data) => {
|
|
943
904
|
self.model.doAction(data, field);
|
|
944
905
|
if (callBack) {
|
|
@@ -950,8 +911,7 @@ export default {
|
|
|
950
911
|
//执行客户端脚本
|
|
951
912
|
else {
|
|
952
913
|
submitData = field.getActionPara(submitData).para;
|
|
953
|
-
let title =
|
|
954
|
-
field.pageTitle == undefined ? field.label : field.pageTitle;
|
|
914
|
+
let title = field.pageTitle == undefined ? field.label : field.pageTitle;
|
|
955
915
|
submitData.actionType = field.actionType;
|
|
956
916
|
var fun = self.$common.getDataDrivenOpts().handler[field.action];
|
|
957
917
|
fun(submitData, title, null);
|
|
@@ -974,7 +934,8 @@ export default {
|
|
|
974
934
|
clickAcion(field, submitData);
|
|
975
935
|
})
|
|
976
936
|
.catch(() => {});
|
|
977
|
-
}
|
|
937
|
+
}
|
|
938
|
+
else {
|
|
978
939
|
clickAcion(field, submitData);
|
|
979
940
|
}
|
|
980
941
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</el-tabs>
|
|
36
36
|
|
|
37
37
|
<!--分组-->
|
|
38
|
-
<el-collapse v-else v-model="collapseActiveNames" @change="collapseHandleChange">
|
|
38
|
+
<el-collapse v-else v-model="collapseActiveNames" @change="collapseHandleChange" :class="model.flagHideSaveLine?'el-collapse-saveLine':''">
|
|
39
39
|
<el-collapse-item v-for="(item, index) in collapse" v-if="item.show !== false" :key="index" :title="item.label" :name="index" :disabled="item.lock" :class="item.lock?'ct-collapse-item-title':''">
|
|
40
40
|
<template slot="title">
|
|
41
41
|
<i class="sign"></i>
|
|
@@ -689,8 +689,10 @@
|
|
|
689
689
|
.el-collapse{
|
|
690
690
|
border-top: none;
|
|
691
691
|
}
|
|
692
|
-
.ct-collapse-item-title .el-collapse-item__header
|
|
693
|
-
{
|
|
692
|
+
.ct-collapse-item-title .el-collapse-item__header{
|
|
694
693
|
color:#303133 !important;
|
|
695
694
|
}
|
|
695
|
+
.el-collapse-saveLine .ct-collapse-item-title:last-child .el-collapse-item__wrap{
|
|
696
|
+
border-bottom:none;
|
|
697
|
+
}
|
|
696
698
|
</style>
|
|
@@ -160,6 +160,12 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
160
160
|
get saveButtonAction() {
|
|
161
161
|
return source.saveButtonAction;
|
|
162
162
|
},
|
|
163
|
+
get flagShowSaveLine() {
|
|
164
|
+
return source.flagShowSaveLine;
|
|
165
|
+
},
|
|
166
|
+
get flagHideSaveLine() {
|
|
167
|
+
return source.flagHideSaveLine;
|
|
168
|
+
},
|
|
163
169
|
//获取新的初始化的方法
|
|
164
170
|
_scripts: null,
|
|
165
171
|
get scripts() {
|