centaline-data-driven 1.2.79 → 1.2.82
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/build/centaline/centaline.path.js +0 -2
- package/package.json +1 -1
- package/src/Form.vue +4 -4
- package/src/centaline/css/max.css +4 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +16 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +15 -0
- package/src/centaline/dynamicFile/src/dynamicFile.vue +15 -37
- package/src/centaline/dynamicForm/index.js +0 -4
- package/src/centaline/dynamicForm/src/dynamicForm.vue +1 -1
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +18 -0
- package/src/centaline/dynamicLayout/src/dynamicLayout.vue +111 -185
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildren.vue +11 -9
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildrenFor.vue +39 -0
- package/src/centaline/dynamicLayout/src/dynamicLayoutImage.vue +55 -6
- package/src/centaline/dynamicLayout/src/dynamicLayoutLabel.vue +11 -7
- package/src/centaline/dynamicLayout/src/dynamicLayoutLine.vue +3 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +292 -60
- package/src/centaline/loader/src/ctl/CellLayout.js +170 -113
- package/src/centaline/loader/src/ctl/File.js +0 -1
- package/src/centaline/loader/src/ctl/FormList.js +83 -18
- package/src/centaline/loader/src/ctl/SearchTable.js +49 -45
- package/src/main.js +4 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
- package/src/centaline/dynamicLabel/index.js +0 -11
- package/src/centaline/dynamicLabel/src/dynamicLabel.vue +0 -73
- package/src/centaline/dynamicLs/index.js +0 -22
- package/src/centaline/dynamicLs/src/dynamicLs.vue +0 -233
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<ct-tableStats ref="tableStats" class="ct-search-table-list-header"
|
|
4
4
|
v-if="!isLoading&&searchStatsApi"
|
|
5
5
|
:api="searchStatsApi"
|
|
6
|
-
@searchStats="searchStats"
|
|
6
|
+
@searchStats="searchStats" @setTableHeight="setTableHeight"
|
|
7
7
|
:searchModel="model.searchModel"></ct-tableStats>
|
|
8
8
|
<ct-tabletoolbar ref="toolbar" v-if="!isLoading" :buttons="model.buttons"
|
|
9
9
|
@click="toolbarClickHandler($event)"
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
</th>
|
|
57
57
|
|
|
58
58
|
<!--<th v-if="model.rowRouter.length > 0" class="ct-td tdFiexd" :class="[-1 === rightShadow?'shadowRight':null]" :style="{'min-width':'20px','transform':'translate('+scrollRight+'px, '+scrollTop+'px)'}">
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
操作
|
|
60
|
+
</th>-->
|
|
61
61
|
</tr>
|
|
62
62
|
</thead>
|
|
63
63
|
<!--表体-->
|
|
@@ -122,10 +122,10 @@
|
|
|
122
122
|
|
|
123
123
|
<!--模版列(启用)-->
|
|
124
124
|
<!--<component v-else :is="column.template(row).component" :class="column.autoRowHeight ? 'lineFeedCell':'cell'" :vmodel="column.template(row)" :style="{'width': column.width + 'px'}">
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
<template slot="value">
|
|
126
|
+
{{row[column.id]}}
|
|
127
|
+
</template>
|
|
128
|
+
</component>-->
|
|
129
129
|
</td>
|
|
130
130
|
</tr>
|
|
131
131
|
<!--适配滚动条-->
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
</div>
|
|
136
136
|
<div v-else>
|
|
137
137
|
<div v-for="(row,rowindex) in model.listData" :key="rowindex">
|
|
138
|
-
|
|
138
|
+
<ct-layout :ref="'layout'+rowindex" :vmodel="row" :cellLayout="model.cellLayout" :key="tableComplate" :rowindex="rowindex" :actionRouter="model.actionRouter" @click="rolRouterCellClickHandler"></ct-layout>
|
|
139
139
|
</div>
|
|
140
140
|
</div>
|
|
141
141
|
</div>
|
|
@@ -164,13 +164,13 @@
|
|
|
164
164
|
vmodel: Object,
|
|
165
165
|
api: String,
|
|
166
166
|
searchStatsApi: String,
|
|
167
|
-
flagFocus:{
|
|
167
|
+
flagFocus: {
|
|
168
168
|
Boolean,
|
|
169
|
-
default:true
|
|
169
|
+
default: true
|
|
170
170
|
},
|
|
171
171
|
from: {
|
|
172
172
|
String,
|
|
173
|
-
default:'searchlist'
|
|
173
|
+
default: 'searchlist'
|
|
174
174
|
},
|
|
175
175
|
},
|
|
176
176
|
computed: {
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
pageRowMin: 0,//页面实际的第一行号
|
|
201
201
|
pageRowMax: 100,//页面实际的第后行号
|
|
202
202
|
displayRowNumber: 30,
|
|
203
|
-
selectAllType:1,
|
|
203
|
+
selectAllType: 1,
|
|
204
204
|
option: {
|
|
205
205
|
isHidden: true,//是否开启操作栏隐藏设置,默认开启
|
|
206
206
|
showNum: 3,//如果isHidden为true时,个数大于3就会隐藏,默认是3
|
|
@@ -217,9 +217,9 @@
|
|
|
217
217
|
},
|
|
218
218
|
methods: {
|
|
219
219
|
rowCheckClass(row) {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
if (row.$select) {
|
|
221
|
+
return 'is-checked';
|
|
222
|
+
}
|
|
223
223
|
},
|
|
224
224
|
load(data) {
|
|
225
225
|
var self = this;
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
}
|
|
259
259
|
self.tableComplate = true;
|
|
260
260
|
this.setTableHeight();
|
|
261
|
-
this.selectAllType=this.model.getSelectAll();
|
|
261
|
+
this.selectAllType = this.model.getSelectAll();
|
|
262
262
|
|
|
263
263
|
this.$nextTick(() => {
|
|
264
264
|
self.loadStats();
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
self.tableLoading = false;
|
|
388
388
|
self.rowColorChange();
|
|
389
389
|
}
|
|
390
|
-
self.$emit('searchComplate',index);
|
|
390
|
+
self.$emit('searchComplate', index);
|
|
391
391
|
}
|
|
392
392
|
self.tableLoading = true;
|
|
393
393
|
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
setTrLazyLoading() {
|
|
497
497
|
this.pageRowMax = this.firstRow + this.displayRowNumber;
|
|
498
498
|
this.pageRowMin = this.firstRow - this.displayRowNumber;
|
|
499
|
-
this.pageRowMin=this.pageRowMin>0?this.pageRowMin:0;
|
|
499
|
+
this.pageRowMin = this.pageRowMin > 0 ? this.pageRowMin : 0;
|
|
500
500
|
if (this.pageRowMin > 0 && this.model.listData[this.pageRowMin].$rowspan === 0) {
|
|
501
501
|
for (let i = this.pageRowMin; i >= 0; i--) {
|
|
502
502
|
if (this.model.listData[i].$rowspan > 0) {
|
|
@@ -549,8 +549,14 @@
|
|
|
549
549
|
else {
|
|
550
550
|
if (this.$parent.$parent.$vnode.componentOptions.tag === 'ct-PropertySimpleDetailRET') {
|
|
551
551
|
var h1 = this.$parent.$parent.$parent.$parent.$refs.sidebar.offsetHeight | 0;
|
|
552
|
-
var h2 =
|
|
553
|
-
|
|
552
|
+
var h2 = 0;
|
|
553
|
+
if (this.$parent.$parent.$refs.contact) {
|
|
554
|
+
h2 = this.$parent.$parent.$refs.contact.offsetHeight | 0;
|
|
555
|
+
}
|
|
556
|
+
var h3 = 0;
|
|
557
|
+
if (this.$parent.$parent.$refs.contact) {
|
|
558
|
+
h3 = this.$parent.$parent.$refs.title.offsetHeight | 0;
|
|
559
|
+
}
|
|
554
560
|
let tableHeight = h1 - h2 - h3 - 270;
|
|
555
561
|
if (h2 == 0) {
|
|
556
562
|
tableHeight = tableHeight + 15;
|
|
@@ -563,7 +569,7 @@
|
|
|
563
569
|
|
|
564
570
|
}
|
|
565
571
|
});
|
|
566
|
-
},
|
|
572
|
+
},
|
|
567
573
|
scrollHandle(ev) {
|
|
568
574
|
var self = this;
|
|
569
575
|
if ((this.$refs.tableParent.scrollTop + this.$refs.tableParent.clientHeight) >= (this.$refs.tableParent.scrollHeight - 5)) {
|
|
@@ -571,7 +577,7 @@
|
|
|
571
577
|
self.isBusy = true;
|
|
572
578
|
self.tableLoading = true;
|
|
573
579
|
self.model.nextPage((rtn) => {
|
|
574
|
-
if (rtn) {
|
|
580
|
+
if (rtn) {
|
|
575
581
|
self.getScrollAttr();
|
|
576
582
|
self.$forceUpdate();
|
|
577
583
|
}
|
|
@@ -644,7 +650,7 @@
|
|
|
644
650
|
});
|
|
645
651
|
}
|
|
646
652
|
}
|
|
647
|
-
if(ev){
|
|
653
|
+
if (ev) {
|
|
648
654
|
ev.cancelBubble = true;
|
|
649
655
|
ev.stopPropagation();
|
|
650
656
|
ev.preventDefault();
|
|
@@ -702,13 +708,13 @@
|
|
|
702
708
|
|
|
703
709
|
this.routerClickHandler(field, submitData, action);
|
|
704
710
|
},
|
|
705
|
-
rolRouterClickHandler(field, rowData,rowindex) {
|
|
706
|
-
if(this.$refs['popover'+rowindex]){
|
|
707
|
-
this.$refs['popover'+rowindex][0].doClose();
|
|
711
|
+
rolRouterClickHandler(field, rowData, rowindex) {
|
|
712
|
+
if (this.$refs['popover' + rowindex]) {
|
|
713
|
+
this.$refs['popover' + rowindex][0].doClose();
|
|
708
714
|
}
|
|
709
715
|
|
|
710
716
|
var self = this;
|
|
711
|
-
var submitData = {};
|
|
717
|
+
var submitData = {};
|
|
712
718
|
field.submitListField.forEach((k) => {
|
|
713
719
|
submitData[k] = rowData[k];
|
|
714
720
|
});
|
|
@@ -733,7 +739,7 @@
|
|
|
733
739
|
if (field.pageStyle) {
|
|
734
740
|
submitData.pageStyle = field.pageStyle;
|
|
735
741
|
}
|
|
736
|
-
self.$common.getDataDrivenOpts().handler.openTab(action, submitData, field.pageTitle, self.model,field.dialogWidth);
|
|
742
|
+
self.$common.getDataDrivenOpts().handler.openTab(action, submitData, field.pageTitle, self.model, field.dialogWidth);
|
|
737
743
|
}
|
|
738
744
|
else if (field.isSearchPageInTab) {// 外部框架tab页打开
|
|
739
745
|
submitData = field.getActionPara(submitData).para;
|
|
@@ -770,7 +776,7 @@
|
|
|
770
776
|
self.$forceUpdate();
|
|
771
777
|
self.$refs.footer.$forceUpdate();
|
|
772
778
|
self.$common.closeDialog(dialogOption.dialog);
|
|
773
|
-
self.updateCurrentRow(field,ev);
|
|
779
|
+
self.updateCurrentRow(field, ev);
|
|
774
780
|
},
|
|
775
781
|
refreshParent() {
|
|
776
782
|
self.getPage(1);
|
|
@@ -840,7 +846,7 @@
|
|
|
840
846
|
}
|
|
841
847
|
self.$forceUpdate();
|
|
842
848
|
self.$refs.footer.$forceUpdate();
|
|
843
|
-
self.updateCurrentRow(field,data);
|
|
849
|
+
self.updateCurrentRow(field, data);
|
|
844
850
|
})
|
|
845
851
|
}
|
|
846
852
|
}
|
|
@@ -873,6 +879,194 @@
|
|
|
873
879
|
clickAcion();
|
|
874
880
|
}
|
|
875
881
|
},
|
|
882
|
+
rolRouterCellClickHandler(routerKey, rowindex, forname, forrowindex) {
|
|
883
|
+
var self = this;
|
|
884
|
+
var submitData = {};
|
|
885
|
+
var rowData = self.model.listData[rowindex];
|
|
886
|
+
var actionRouter = self.model.actionRouter;
|
|
887
|
+
let field = actionRouter.find(b => {
|
|
888
|
+
return b.id === routerKey;
|
|
889
|
+
});
|
|
890
|
+
if (typeof forname !== "undefined") {
|
|
891
|
+
field.submitListField.forEach((k) => {
|
|
892
|
+
submitData[k] = rowData[forname][forrowindex][k];
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
else {
|
|
896
|
+
field.submitListField.forEach((k) => {
|
|
897
|
+
submitData[k] = rowData[k];
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
let action = field.action;
|
|
901
|
+
if (field.actionField) {
|
|
902
|
+
action = rowData[field.actionField];
|
|
903
|
+
}
|
|
904
|
+
self.model.selectIndex = rowindex;
|
|
905
|
+
this.routerCellClickHandler(field, submitData, action, rowindex, forname, forrowindex);
|
|
906
|
+
},
|
|
907
|
+
routerCellClickHandler(field, submitData, action, rowindex, forname, forrowindex) {
|
|
908
|
+
let self = this;
|
|
909
|
+
action = action || field.action;
|
|
910
|
+
|
|
911
|
+
var clickAcion = function () {
|
|
912
|
+
//若不是客户端方法,则直接访问接口
|
|
913
|
+
if (!field.isClientFuntion) {
|
|
914
|
+
// 外部框架tab页打开
|
|
915
|
+
if (field.isFormPageInTab) {
|
|
916
|
+
submitData = field.getActionPara(submitData).para;
|
|
917
|
+
if (field.pageStyle) {
|
|
918
|
+
submitData.pageStyle = field.pageStyle;
|
|
919
|
+
}
|
|
920
|
+
self.$common.getDataDrivenOpts().handler.openTab(action, submitData, field.pageTitle, self.model, field.dialogWidth);
|
|
921
|
+
}
|
|
922
|
+
else if (field.isSearchPageInTab) {// 外部框架tab页打开
|
|
923
|
+
submitData = field.getActionPara(submitData).para;
|
|
924
|
+
self.$common.getDataDrivenOpts().handler.openTabSearch(field, submitData);
|
|
925
|
+
}
|
|
926
|
+
else if (field.isBrowserNewTab) {// 浏览器打开
|
|
927
|
+
submitData = field.getActionPara(submitData).para;
|
|
928
|
+
let query = self.$common.objectToQueryStr(submitData);
|
|
929
|
+
window.open(action + query, "_blank");
|
|
930
|
+
}
|
|
931
|
+
else {
|
|
932
|
+
//self.operationLoading = true;
|
|
933
|
+
|
|
934
|
+
//Form
|
|
935
|
+
if (field.isOpenForm) {
|
|
936
|
+
var dialogOption = {
|
|
937
|
+
title: field.pageTitle,
|
|
938
|
+
pane: self.$common.getParentPane(self),
|
|
939
|
+
content: [{
|
|
940
|
+
component: field.navToNewPageName,
|
|
941
|
+
attrs: {
|
|
942
|
+
//source: data.content,
|
|
943
|
+
api: action,
|
|
944
|
+
apiParam: field.getActionPara(submitData).para,
|
|
945
|
+
showTitle: false,
|
|
946
|
+
width: field.dialogWidth + 'px',
|
|
947
|
+
height: field.dialogHeight + 'px'
|
|
948
|
+
},
|
|
949
|
+
on: {
|
|
950
|
+
submit(ev) {
|
|
951
|
+
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
952
|
+
self.model.doAction(ev);
|
|
953
|
+
}
|
|
954
|
+
self.$forceUpdate();
|
|
955
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
956
|
+
self.updateCurrentRow(field, ev);
|
|
957
|
+
},
|
|
958
|
+
refreshParent() {
|
|
959
|
+
self.getPage(1);
|
|
960
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
961
|
+
},
|
|
962
|
+
closeDialog() {
|
|
963
|
+
self.updateCurrentRow(field);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}]
|
|
967
|
+
};
|
|
968
|
+
self.$common.openDialog(dialogOption);
|
|
969
|
+
}
|
|
970
|
+
//SearchList
|
|
971
|
+
else if (field.isOpenList) {
|
|
972
|
+
var dialogOption = {
|
|
973
|
+
title: field.pageTitle,
|
|
974
|
+
pane: self.$common.getParentPane(self),
|
|
975
|
+
content: [{
|
|
976
|
+
component: field.navToNewPageName,
|
|
977
|
+
attrs: {
|
|
978
|
+
searchConditionApi: field.actionForSearchLayout,
|
|
979
|
+
searchDataApi: field.actionForSearch,
|
|
980
|
+
apiParam: submitData,
|
|
981
|
+
width: field.dialogWidth + 'px',
|
|
982
|
+
height: field.dialogHeight + 'px'
|
|
983
|
+
},
|
|
984
|
+
on: {
|
|
985
|
+
refreshParent() {
|
|
986
|
+
self.getPage(1);
|
|
987
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
988
|
+
},
|
|
989
|
+
closeDialog() {
|
|
990
|
+
self.updateCurrentRow(field);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}]
|
|
994
|
+
};
|
|
995
|
+
self.$common.openDialog(dialogOption);
|
|
996
|
+
}
|
|
997
|
+
//Tabs
|
|
998
|
+
else if (field.isOpenTabs) {
|
|
999
|
+
var dialogOption = {
|
|
1000
|
+
title: field.pageTitle,
|
|
1001
|
+
pane: self.$common.getParentPane(self),
|
|
1002
|
+
content: [{
|
|
1003
|
+
component: field.navToNewPageName,
|
|
1004
|
+
attrs: {
|
|
1005
|
+
searchConditionApi: field.actionForSearchLayout,
|
|
1006
|
+
searchDataApi: field.actionForSearch,
|
|
1007
|
+
apiParam: submitData,
|
|
1008
|
+
width: field.dialogWidth + 'px',
|
|
1009
|
+
height: field.dialogHeight + 'px'
|
|
1010
|
+
},
|
|
1011
|
+
on: {
|
|
1012
|
+
}
|
|
1013
|
+
}]
|
|
1014
|
+
};
|
|
1015
|
+
self.$common.openDialog(dialogOption);
|
|
1016
|
+
}
|
|
1017
|
+
else {
|
|
1018
|
+
field.doAction(submitData, (data) => {
|
|
1019
|
+
self.model.doAction(data, field);
|
|
1020
|
+
if (field.actionType === 19) {
|
|
1021
|
+
self.callTelClick(self.$refs['layout' + rowindex][0], data, forname, forrowindex)
|
|
1022
|
+
}
|
|
1023
|
+
})
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
//执行客户端脚本
|
|
1028
|
+
else {
|
|
1029
|
+
// let parm={submitData:submitData,field:field}
|
|
1030
|
+
// self.$common.excuteFunStr.call(self.model.scripts, field.action,parm);
|
|
1031
|
+
let title = field.pageTitle == undefined ? field.label : field.pageTitle;
|
|
1032
|
+
submitData.actionType = field.actionType;
|
|
1033
|
+
var fun = self.$common.getDataDrivenOpts().handler[action];
|
|
1034
|
+
fun(submitData, title, self.model);
|
|
1035
|
+
// var fun = self.model.scripts.formData[action];
|
|
1036
|
+
// fun(submitData,field);
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
if (field.alert) {
|
|
1041
|
+
self.$common.confirm(field.alertMsg, field.alertCaption, {
|
|
1042
|
+
confirmButtonText: field.alertOKButtonText,
|
|
1043
|
+
cancelButtonText: field.alertCancelButtonText,
|
|
1044
|
+
//type: 'warning'
|
|
1045
|
+
center: field.alertCenter
|
|
1046
|
+
}).then(() => {
|
|
1047
|
+
clickAcion();
|
|
1048
|
+
}).catch(() => {
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
else {
|
|
1052
|
+
clickAcion();
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
callTelClick(VueCom, data, forname, forrowindex) {
|
|
1056
|
+
if (typeof VueCom.$refs['router' + forname + forrowindex] !== "undefined") {
|
|
1057
|
+
VueCom.callTelClick(data);
|
|
1058
|
+
return true;
|
|
1059
|
+
}
|
|
1060
|
+
if (VueCom.$children.length > 0) {
|
|
1061
|
+
for (var i = 0; i < VueCom.$children.length; i++) {
|
|
1062
|
+
var item = VueCom.$children[i];
|
|
1063
|
+
var result = this.callTelClick(item, data, forname, forrowindex);
|
|
1064
|
+
if (result) {
|
|
1065
|
+
return result;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
876
1070
|
selectAll($ev) {
|
|
877
1071
|
this.model.listData.forEach((ro) => {
|
|
878
1072
|
if (!this.model.rightMulti || ro[this.model.rightMulti] == 1) {
|
|
@@ -880,34 +1074,34 @@
|
|
|
880
1074
|
}
|
|
881
1075
|
});
|
|
882
1076
|
this.model.setButtonsDisabled();
|
|
883
|
-
this.selectAllType=this.model.getSelectAll();
|
|
1077
|
+
this.selectAllType = this.model.getSelectAll();
|
|
884
1078
|
this.$forceUpdate();
|
|
885
1079
|
},
|
|
886
1080
|
selectOne($ev) {
|
|
887
1081
|
this.model.setButtonsDisabled();
|
|
888
1082
|
this.model.setSelectAll();
|
|
889
|
-
this.selectAllType=this.model.getSelectAll();
|
|
1083
|
+
this.selectAllType = this.model.getSelectAll();
|
|
890
1084
|
},
|
|
891
1085
|
calculatingRowHeight() {
|
|
892
1086
|
let self = this;
|
|
893
1087
|
|
|
894
1088
|
//查询出所有没有设置$heigth的数据并重新设置$heigth
|
|
895
1089
|
self.model.listData.forEach((item, i) => {
|
|
896
|
-
if(item.$heigth === undefined || item.$heigth <= 0){
|
|
1090
|
+
if (item.$heigth === undefined || item.$heigth <= 0) {
|
|
897
1091
|
if (self.$refs["rows." + i] && self.$refs["rows." + i].length > 0) {
|
|
898
1092
|
self.$set(item, "$heigth", self.$refs["rows." + i][0].clientHeight);
|
|
899
1093
|
}
|
|
900
1094
|
}
|
|
901
1095
|
});
|
|
902
1096
|
},
|
|
903
|
-
updateCurrentRow(router,data) {
|
|
1097
|
+
updateCurrentRow(router, data) {
|
|
904
1098
|
let self = this;
|
|
905
1099
|
if (router.flagFreshCurrentRow || router.flagAddRowAfterAction) {
|
|
906
1100
|
self.tableComplate = true;
|
|
907
1101
|
self.model.getCurrentRowApiData(function () {
|
|
908
1102
|
self.$forceUpdate();
|
|
909
1103
|
self.tableComplate = false;
|
|
910
|
-
},data,router);
|
|
1104
|
+
}, data, router);
|
|
911
1105
|
}
|
|
912
1106
|
},
|
|
913
1107
|
importComplete(res) {
|
|
@@ -956,12 +1150,12 @@
|
|
|
956
1150
|
self.getPage(1);
|
|
957
1151
|
},
|
|
958
1152
|
getRowRouterShow(row) {
|
|
959
|
-
let self=this;
|
|
960
|
-
let rowRouterShow=[];
|
|
1153
|
+
let self = this;
|
|
1154
|
+
let rowRouterShow = [];
|
|
961
1155
|
self.model.rowRouter.forEach((v) => {
|
|
962
|
-
if(v.show){
|
|
1156
|
+
if (v.show) {
|
|
963
1157
|
if (!v.rightField || row[v.rightField] == 1) {
|
|
964
|
-
if(rowRouterShow.length<self.model.rowMenuDisplayCount){
|
|
1158
|
+
if (rowRouterShow.length < self.model.rowMenuDisplayCount) {
|
|
965
1159
|
rowRouterShow.push(v);
|
|
966
1160
|
}
|
|
967
1161
|
}
|
|
@@ -970,14 +1164,14 @@
|
|
|
970
1164
|
return rowRouterShow;
|
|
971
1165
|
},
|
|
972
1166
|
getRowRouterDisplay(row) {
|
|
973
|
-
let self=this;
|
|
974
|
-
let rowRouterDisplay=[];
|
|
975
|
-
let i=0;
|
|
1167
|
+
let self = this;
|
|
1168
|
+
let rowRouterDisplay = [];
|
|
1169
|
+
let i = 0;
|
|
976
1170
|
self.model.rowRouter.forEach((v) => {
|
|
977
|
-
if(v.show){
|
|
1171
|
+
if (v.show) {
|
|
978
1172
|
if (!v.rightField || row[v.rightField] == 1) {
|
|
979
|
-
i=i+1;
|
|
980
|
-
if(i>self.model.rowMenuDisplayCount){
|
|
1173
|
+
i = i + 1;
|
|
1174
|
+
if (i > self.model.rowMenuDisplayCount) {
|
|
981
1175
|
rowRouterDisplay.push(v);
|
|
982
1176
|
}
|
|
983
1177
|
}
|
|
@@ -985,23 +1179,23 @@
|
|
|
985
1179
|
});
|
|
986
1180
|
return rowRouterDisplay;
|
|
987
1181
|
},
|
|
988
|
-
refreshFromSimple(field,data){
|
|
989
|
-
var self=this;
|
|
1182
|
+
refreshFromSimple(field, data) {
|
|
1183
|
+
var self = this;
|
|
990
1184
|
if (field.isOpenForm) {
|
|
991
1185
|
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
992
1186
|
self.model.doAction(data);
|
|
993
1187
|
}
|
|
994
1188
|
self.$forceUpdate();
|
|
995
1189
|
self.$refs.footer.$forceUpdate();
|
|
996
|
-
self.updateCurrentRow(field,data);
|
|
1190
|
+
self.updateCurrentRow(field, data);
|
|
997
1191
|
}
|
|
998
|
-
else {
|
|
1192
|
+
else {
|
|
999
1193
|
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
1000
1194
|
self.model.doAction({ responseData: data });
|
|
1001
1195
|
}
|
|
1002
1196
|
self.$forceUpdate();
|
|
1003
1197
|
self.$refs.footer.$forceUpdate();
|
|
1004
|
-
self.updateCurrentRow(field,data);
|
|
1198
|
+
self.updateCurrentRow(field, data);
|
|
1005
1199
|
}
|
|
1006
1200
|
},
|
|
1007
1201
|
},
|
|
@@ -1014,14 +1208,17 @@
|
|
|
1014
1208
|
outline: 0;
|
|
1015
1209
|
border-top: 1px solid #fff;
|
|
1016
1210
|
}
|
|
1211
|
+
|
|
1017
1212
|
.ct-searchtable .ct-table {
|
|
1018
1213
|
min-width: 100%;
|
|
1019
1214
|
border-collapse: collapse;
|
|
1020
1215
|
}
|
|
1216
|
+
|
|
1021
1217
|
.ct-searchtable .ct-table th {
|
|
1022
1218
|
background-color: #f4f7fa !important;
|
|
1023
1219
|
border-top: 1px solid #ebeef5;
|
|
1024
1220
|
}
|
|
1221
|
+
|
|
1025
1222
|
.ct-searchtable .ct-tr > .ct-td {
|
|
1026
1223
|
/*border: 1px solid #e7e8eb;
|
|
1027
1224
|
border-bottom: 1px solid #e7e8eb;
|
|
@@ -1031,53 +1228,66 @@
|
|
|
1031
1228
|
cursor: default;
|
|
1032
1229
|
background-color: #ffffff;
|
|
1033
1230
|
}
|
|
1231
|
+
|
|
1034
1232
|
.ct-searchtable .ct-tr > .ct-td1 {
|
|
1035
1233
|
border-right: 1px solid #e7e8eb;
|
|
1036
1234
|
border-left: 1px solid #e7e8eb;
|
|
1037
1235
|
}
|
|
1236
|
+
|
|
1038
1237
|
.ct-searchtable .ct-tr:last-child > .ct-td1 {
|
|
1039
1238
|
border-bottom: 1px solid #e7e8eb;
|
|
1040
1239
|
}
|
|
1240
|
+
|
|
1041
1241
|
.ct-searchtable .ct-tr > .ct-td2 {
|
|
1042
1242
|
border-bottom: 1px solid #e7e8eb;
|
|
1043
1243
|
}
|
|
1244
|
+
|
|
1044
1245
|
.ct-searchtable .ct-tr > .ct-td3 {
|
|
1045
1246
|
border: 1px solid #e7e8eb;
|
|
1046
1247
|
}
|
|
1248
|
+
|
|
1047
1249
|
.shadowLeft {
|
|
1048
1250
|
border-right: 1px solid #e7e8eb;
|
|
1049
1251
|
box-shadow: 2px 0 3px -1px rgba(0,0,0,0.1);
|
|
1050
1252
|
}
|
|
1253
|
+
|
|
1051
1254
|
.shadowRight {
|
|
1052
1255
|
box-shadow: -2px 0 3px -1px rgba(0,0,0,0.1);
|
|
1053
1256
|
}
|
|
1257
|
+
|
|
1054
1258
|
.ct-searchtable body:last-child > .ct-td {
|
|
1055
1259
|
border-bottom: 0px;
|
|
1056
1260
|
}
|
|
1261
|
+
|
|
1057
1262
|
.ct-searchtable .ct-tr > .ct-td.nowidth {
|
|
1058
1263
|
white-space: nowrap;
|
|
1059
1264
|
}
|
|
1265
|
+
|
|
1060
1266
|
.ct-table {
|
|
1061
1267
|
color: #606266;
|
|
1062
1268
|
font-size: 18px;
|
|
1063
1269
|
line-height: 40px;
|
|
1064
1270
|
min-height: 40px;
|
|
1065
1271
|
}
|
|
1272
|
+
|
|
1066
1273
|
.ct-table-mini {
|
|
1067
1274
|
font-size: 12px;
|
|
1068
1275
|
line-height: 26px;
|
|
1069
1276
|
min-height: 28px;
|
|
1070
1277
|
}
|
|
1278
|
+
|
|
1071
1279
|
.ct-table-small {
|
|
1072
1280
|
font-size: 14px;
|
|
1073
1281
|
line-height: 32px;
|
|
1074
1282
|
min-height: 32px;
|
|
1075
1283
|
}
|
|
1284
|
+
|
|
1076
1285
|
.ct-table-medium {
|
|
1077
1286
|
font-size: 16px;
|
|
1078
1287
|
line-height: 36px;
|
|
1079
1288
|
min-height: 36px;
|
|
1080
1289
|
}
|
|
1290
|
+
|
|
1081
1291
|
.ct-table .ct-td > .caret-wrapper {
|
|
1082
1292
|
display: inline-flex;
|
|
1083
1293
|
flex-direction: column;
|
|
@@ -1089,6 +1299,7 @@
|
|
|
1089
1299
|
overflow: initial;
|
|
1090
1300
|
position: relative;
|
|
1091
1301
|
}
|
|
1302
|
+
|
|
1092
1303
|
.ct-table .ct-td > .caret-wrapper > .sort-caret {
|
|
1093
1304
|
width: 0;
|
|
1094
1305
|
height: 0;
|
|
@@ -1096,28 +1307,35 @@
|
|
|
1096
1307
|
position: absolute;
|
|
1097
1308
|
left: 7px;
|
|
1098
1309
|
}
|
|
1310
|
+
|
|
1099
1311
|
.ct-table .ct-td > .caret-wrapper > .sort-caret.ascending {
|
|
1100
1312
|
border-bottom-color: #c0c4cc;
|
|
1101
1313
|
top: 5px;
|
|
1102
1314
|
}
|
|
1315
|
+
|
|
1103
1316
|
.ct-table .ct-td > .caret-wrapper > .sort-caret.descending {
|
|
1104
1317
|
border-top-color: #c0c4cc;
|
|
1105
1318
|
bottom: 7px;
|
|
1106
1319
|
}
|
|
1320
|
+
|
|
1107
1321
|
.ct-table .ct-td.select {
|
|
1108
1322
|
background-color: #ecf5ff !important;
|
|
1109
1323
|
}
|
|
1324
|
+
|
|
1110
1325
|
.ct-table .ct-tr:hover .ct-td.select {
|
|
1111
1326
|
background-color: #ecf5ff !important;
|
|
1112
1327
|
}
|
|
1328
|
+
|
|
1113
1329
|
.ct-table .ct-td.asc > .caret-wrapper > .sort-caret.ascending {
|
|
1114
1330
|
border-bottom-color: #409eff;
|
|
1115
1331
|
top: 5px;
|
|
1116
1332
|
}
|
|
1333
|
+
|
|
1117
1334
|
.ct-table .ct-td.desc > .caret-wrapper > .sort-caret.descending {
|
|
1118
1335
|
border-top-color: #409eff;
|
|
1119
1336
|
bottom: 7px;
|
|
1120
1337
|
}
|
|
1338
|
+
|
|
1121
1339
|
.ct-table .cell {
|
|
1122
1340
|
/*white-space: nowrap;*/
|
|
1123
1341
|
text-overflow: ellipsis;
|
|
@@ -1141,59 +1359,72 @@
|
|
|
1141
1359
|
-webkit-hyphens: auto;
|
|
1142
1360
|
hyphens: auto;
|
|
1143
1361
|
}
|
|
1362
|
+
|
|
1144
1363
|
.ct-table .lineFeedCell {
|
|
1145
1364
|
min-width: 40px;
|
|
1146
1365
|
}
|
|
1366
|
+
|
|
1147
1367
|
.ct-table .left-fixation {
|
|
1148
1368
|
position: sticky;
|
|
1149
1369
|
}
|
|
1370
|
+
|
|
1150
1371
|
.ct-table .right-fixation {
|
|
1151
1372
|
position: sticky;
|
|
1152
1373
|
}
|
|
1374
|
+
|
|
1153
1375
|
.ct-table .left-fixation-th {
|
|
1154
1376
|
position: sticky;
|
|
1155
1377
|
top: 0px;
|
|
1156
1378
|
z-index: 99;
|
|
1157
1379
|
}
|
|
1380
|
+
|
|
1158
1381
|
.ct-table .right-fixation-th {
|
|
1159
1382
|
position: sticky;
|
|
1160
1383
|
top: 0px;
|
|
1161
1384
|
z-index: 99;
|
|
1162
1385
|
}
|
|
1386
|
+
|
|
1163
1387
|
.ct-table .right-no-fixation-th {
|
|
1164
1388
|
position: sticky;
|
|
1165
1389
|
top: 0px;
|
|
1166
1390
|
z-index: 50;
|
|
1167
1391
|
}
|
|
1392
|
+
|
|
1168
1393
|
.ct-table .checkbox-td {
|
|
1169
1394
|
min-width: 20px;
|
|
1170
1395
|
width: 20px;
|
|
1171
1396
|
left: 0px;
|
|
1172
1397
|
}
|
|
1398
|
+
|
|
1173
1399
|
.ct-table .checkbox-td .checkbox-td-1 {
|
|
1174
1400
|
vertical-align: inherit;
|
|
1175
1401
|
}
|
|
1176
|
-
|
|
1402
|
+
|
|
1177
1403
|
.tab-list {
|
|
1178
1404
|
position: relative;
|
|
1179
|
-
margin-bottom: 0px !important
|
|
1180
|
-
|
|
1405
|
+
margin-bottom: 0px !important;
|
|
1406
|
+
;
|
|
1407
|
+
height: auto !important;
|
|
1408
|
+
;
|
|
1181
1409
|
display: block;
|
|
1182
1410
|
padding-left: 8px;
|
|
1183
1411
|
padding-right: 4px;
|
|
1184
1412
|
}
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1413
|
+
|
|
1414
|
+
.tab-list .subdiv_allinline {
|
|
1415
|
+
float: none;
|
|
1416
|
+
display: block;
|
|
1417
|
+
width: -webkit-fill-available;
|
|
1418
|
+
cursor: pointer;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1191
1421
|
.div_allinline .Stats-popover {
|
|
1192
1422
|
float: right;
|
|
1193
1423
|
margin-top: 3px;
|
|
1194
1424
|
margin-left: 4px;
|
|
1195
1425
|
height: 16px;
|
|
1196
1426
|
}
|
|
1427
|
+
|
|
1197
1428
|
.icon-more {
|
|
1198
1429
|
background: url('../../../assets/XL.png')no-repeat;
|
|
1199
1430
|
background-size: 100% 100%;
|
|
@@ -1201,7 +1432,8 @@
|
|
|
1201
1432
|
height: 16px;
|
|
1202
1433
|
display: table-caption;
|
|
1203
1434
|
cursor: pointer;
|
|
1204
|
-
}
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1205
1437
|
.el-popover1 {
|
|
1206
1438
|
min-width: inherit !important;
|
|
1207
1439
|
}
|