centaline-data-driven 1.5.3 → 1.5.4
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/dynamicSearchList/src/dynamicSearchTable.vue +16 -0
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListOne.vue +5 -0
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListTab.vue +6 -7
- 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
|
@@ -779,6 +779,22 @@ export default {
|
|
|
779
779
|
self.scrollTop = self.$refs.tableParent.scrollTop;
|
|
780
780
|
}
|
|
781
781
|
},
|
|
782
|
+
resetScrollActivated: function () {
|
|
783
|
+
if(this.$refs.tableParent){
|
|
784
|
+
if(this.scrollTop>this.$refs.tableParent.scrollTop) {
|
|
785
|
+
this.$refs.tableParent.scrollTop = this.scrollTop;
|
|
786
|
+
}
|
|
787
|
+
else if(this.model.selectIndex > 5 && this.$refs.tableParent.scrollTop===0){
|
|
788
|
+
let index = 0;
|
|
789
|
+
let topHeigth = 0;
|
|
790
|
+
for (; index < this.model.selectIndex; index++) {
|
|
791
|
+
topHeigth = topHeigth + (this.model.listData[index].$heigth ? this.model.listData[index].$heigth : 31);
|
|
792
|
+
}
|
|
793
|
+
this.scrollTop = topHeigth;
|
|
794
|
+
this.$refs.tableParent.scrollTop = this.scrollTop;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
},
|
|
782
798
|
rowKeyDownHandle(ev, action) {
|
|
783
799
|
var self = this;
|
|
784
800
|
if (action === 1) {
|
|
@@ -191,6 +191,11 @@
|
|
|
191
191
|
this.$refs.table.setTableHeight();
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
|
+
resetScrollActivated() {
|
|
195
|
+
if(this.$refs.table){
|
|
196
|
+
this.$refs.table.resetScrollActivated();
|
|
197
|
+
}
|
|
198
|
+
},
|
|
194
199
|
resizeSearchList() {
|
|
195
200
|
if(this.flagSideBar && this.flagSideBarOfData){
|
|
196
201
|
if(this.sideBarStatus=='open' && this.$refs.main){
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<div v-if="categorySource" class="el-tabs__content">
|
|
23
23
|
<div v-for="(col, index) in categorySource.selectItems1" v-show="activeIndex===index" v-loading="isLoading" :key="index" :index="index" class="el-tab-pane" role="tabpanel" aria-hidden="true">
|
|
24
24
|
<ct-searchlistOne v-if="col.loaded" :ref="'searchlist'+index" :searchConditionApi="searchConditionApi" :pageHeight="listHeight"
|
|
25
|
-
:searchStatsApi="searchStatsApi" :searchDataApi="searchDataApi" :apiParam="screenPara" @tableLoaded="tableLoaded">
|
|
25
|
+
:searchStatsApi="searchStatsApi" :searchDataApi="searchDataApi" :apiParam="col.screenPara" @tableLoaded="tableLoaded">
|
|
26
26
|
</ct-searchlistOne>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
@@ -76,10 +76,8 @@
|
|
|
76
76
|
},
|
|
77
77
|
activated() {
|
|
78
78
|
this.$nextTick(() => {
|
|
79
|
-
if(this
|
|
80
|
-
|
|
81
|
-
this.$refs.detail.$children[0].refreshPage();
|
|
82
|
-
}
|
|
79
|
+
if(this.categorySource) {
|
|
80
|
+
this.$refs['searchlist'+this.activeIndex][0].resetScrollActivated();
|
|
83
81
|
}
|
|
84
82
|
})
|
|
85
83
|
},
|
|
@@ -119,7 +117,7 @@
|
|
|
119
117
|
let parm={};
|
|
120
118
|
parm[self.categorySource.fieldName1]=self.categorySource.selectItems1[self.activeIndex].code;
|
|
121
119
|
self.label=self.categorySource.selectItems1[self.activeIndex].displayName;
|
|
122
|
-
self.screenPara=parm;
|
|
120
|
+
self.categorySource.selectItems1[0].screenPara=parm;
|
|
123
121
|
self.listHeight=(self.$refs.main.offsetHeight-42)+'px';
|
|
124
122
|
self.categorySource.selectItems1[0].loaded=true;
|
|
125
123
|
}
|
|
@@ -136,9 +134,10 @@
|
|
|
136
134
|
this.label=this.categorySource.selectItems1[i].displayName;
|
|
137
135
|
if(this.categorySource.selectItems1[i].loaded){
|
|
138
136
|
this.$refs['searchlist'+i][0].resize();
|
|
137
|
+
this.$refs['searchlist'+i][0].resetScrollActivated();
|
|
139
138
|
}
|
|
140
139
|
else {
|
|
141
|
-
this.screenPara=parm;
|
|
140
|
+
this.categorySource.selectItems1[i].screenPara=parm;
|
|
142
141
|
this.categorySource.selectItems1[i].loaded=true;
|
|
143
142
|
this.isLoading=true;
|
|
144
143
|
};
|