centaline-data-driven 1.5.1 → 1.5.2
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 +6 -13
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListTab.vue +5 -2
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
|
@@ -293,6 +293,7 @@ export default {
|
|
|
293
293
|
activated() {
|
|
294
294
|
this.$nextTick(() => {
|
|
295
295
|
this.setTableHeight();
|
|
296
|
+
this.resetScroll();
|
|
296
297
|
});
|
|
297
298
|
},
|
|
298
299
|
methods: {
|
|
@@ -589,18 +590,12 @@ export default {
|
|
|
589
590
|
}
|
|
590
591
|
},
|
|
591
592
|
getScrollAttr(e) {
|
|
592
|
-
if (
|
|
593
|
-
typeof this.$refs.tableParent !== "undefined" &&
|
|
594
|
-
typeof this.$refs.headThs !== "undefined"
|
|
595
|
-
) {
|
|
593
|
+
if ( typeof this.$refs.tableParent !== "undefined" && typeof this.$refs.headThs !== "undefined") {
|
|
596
594
|
this.calculatingRowHeight();
|
|
597
595
|
|
|
598
596
|
var scrollTop = this.$refs.tableParent.scrollTop;
|
|
599
597
|
var scrollLeft = this.$refs.tableParent.scrollLeft;
|
|
600
|
-
var scrollRight =
|
|
601
|
-
this.$refs.tableParent.scrollWidth -
|
|
602
|
-
scrollLeft -
|
|
603
|
-
this.$refs.tableParent.clientWidth;
|
|
598
|
+
var scrollRight = this.$refs.tableParent.scrollWidth - scrollLeft - this.$refs.tableParent.clientWidth;
|
|
604
599
|
|
|
605
600
|
//计算可视范围的第一条数据
|
|
606
601
|
let index = 0;
|
|
@@ -608,7 +603,8 @@ export default {
|
|
|
608
603
|
for (; index < this.model.listData.length; index++) {
|
|
609
604
|
if (topHeigth >= scrollTop) {
|
|
610
605
|
break;
|
|
611
|
-
}
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
612
608
|
topHeigth = topHeigth + this.model.listData[index].$heigth;
|
|
613
609
|
}
|
|
614
610
|
}
|
|
@@ -626,10 +622,7 @@ export default {
|
|
|
626
622
|
this.pageRowMax = this.firstRow + this.displayRowNumber;
|
|
627
623
|
this.pageRowMin = this.firstRow - this.displayRowNumber;
|
|
628
624
|
this.pageRowMin = this.pageRowMin > 0 ? this.pageRowMin : 0;
|
|
629
|
-
if (
|
|
630
|
-
this.pageRowMin > 0 &&
|
|
631
|
-
this.model.listData[this.pageRowMin].$rowspan === 0
|
|
632
|
-
) {
|
|
625
|
+
if ( this.pageRowMin > 0 && this.model.listData[this.pageRowMin].$rowspan === 0) {
|
|
633
626
|
for (let i = this.pageRowMin; i >= 0; i--) {
|
|
634
627
|
if (this.model.listData[i].$rowspan > 0) {
|
|
635
628
|
this.pageRowMin = i;
|
|
@@ -134,8 +134,11 @@
|
|
|
134
134
|
let i = this.activeIndex;
|
|
135
135
|
let parm={};
|
|
136
136
|
parm[this.categorySource.fieldName1]=this.categorySource.selectItems1[i].code;
|
|
137
|
-
this.label=this.categorySource.selectItems1[i].displayName;
|
|
138
|
-
if(
|
|
137
|
+
this.label=this.categorySource.selectItems1[i].displayName;
|
|
138
|
+
if(this.categorySource.selectItems1[i].loaded){
|
|
139
|
+
this.$refs['searchlist'+i][0].resize();
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
139
142
|
this.categorySource.selectItems1[i].loaded=true;
|
|
140
143
|
this.$nextTick(function () {
|
|
141
144
|
this.isLoading=true;
|
package/src/main.js
CHANGED
|
@@ -50,7 +50,7 @@ Vue.use(centaline, {
|
|
|
50
50
|
getRequestHeaders: function () {
|
|
51
51
|
return {
|
|
52
52
|
oldToken: '9dac5622-e8b2-46c4-aa90-b5bfd0d1b1e8',
|
|
53
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
53
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe_iOiv5s15n0yX-NBwisuUghQqRRAIh7k4Q0NEzxSumeXMXy1ZEJww57iMp8BZbQFIWGFMCL4nYJGlMCCN_gB_zZUTnue-jA5QDASYbgbVPYNgOAWPvQiTRiOl6Fp2iVtvWWqsaMef1LZBZvcS2TJfDdPtH3Gmd91upc60VC7g6VcCjk9CSqpC1KyWj3kNIPJ4AAAD__w.3I7QJ69KHIdBfYNzrurJKS6Xx02DG75sMCuV49wcIME',
|
|
54
54
|
|
|
55
55
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
56
56
|
EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|