centaline-data-driven 1.5.1 → 1.5.3
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 +5 -13
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListTab.vue +11 -11
- package/src/main.js +3 -3
- 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
|
@@ -589,18 +589,12 @@ export default {
|
|
|
589
589
|
}
|
|
590
590
|
},
|
|
591
591
|
getScrollAttr(e) {
|
|
592
|
-
if (
|
|
593
|
-
typeof this.$refs.tableParent !== "undefined" &&
|
|
594
|
-
typeof this.$refs.headThs !== "undefined"
|
|
595
|
-
) {
|
|
592
|
+
if ( typeof this.$refs.tableParent !== "undefined" && typeof this.$refs.headThs !== "undefined") {
|
|
596
593
|
this.calculatingRowHeight();
|
|
597
594
|
|
|
598
595
|
var scrollTop = this.$refs.tableParent.scrollTop;
|
|
599
596
|
var scrollLeft = this.$refs.tableParent.scrollLeft;
|
|
600
|
-
var scrollRight =
|
|
601
|
-
this.$refs.tableParent.scrollWidth -
|
|
602
|
-
scrollLeft -
|
|
603
|
-
this.$refs.tableParent.clientWidth;
|
|
597
|
+
var scrollRight = this.$refs.tableParent.scrollWidth - scrollLeft - this.$refs.tableParent.clientWidth;
|
|
604
598
|
|
|
605
599
|
//计算可视范围的第一条数据
|
|
606
600
|
let index = 0;
|
|
@@ -608,7 +602,8 @@ export default {
|
|
|
608
602
|
for (; index < this.model.listData.length; index++) {
|
|
609
603
|
if (topHeigth >= scrollTop) {
|
|
610
604
|
break;
|
|
611
|
-
}
|
|
605
|
+
}
|
|
606
|
+
else {
|
|
612
607
|
topHeigth = topHeigth + this.model.listData[index].$heigth;
|
|
613
608
|
}
|
|
614
609
|
}
|
|
@@ -626,10 +621,7 @@ export default {
|
|
|
626
621
|
this.pageRowMax = this.firstRow + this.displayRowNumber;
|
|
627
622
|
this.pageRowMin = this.firstRow - this.displayRowNumber;
|
|
628
623
|
this.pageRowMin = this.pageRowMin > 0 ? this.pageRowMin : 0;
|
|
629
|
-
if (
|
|
630
|
-
this.pageRowMin > 0 &&
|
|
631
|
-
this.model.listData[this.pageRowMin].$rowspan === 0
|
|
632
|
-
) {
|
|
624
|
+
if ( this.pageRowMin > 0 && this.model.listData[this.pageRowMin].$rowspan === 0) {
|
|
633
625
|
for (let i = this.pageRowMin; i >= 0; i--) {
|
|
634
626
|
if (this.model.listData[i].$rowspan > 0) {
|
|
635
627
|
this.pageRowMin = i;
|
|
@@ -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="
|
|
25
|
+
:searchStatsApi="searchStatsApi" :searchDataApi="searchDataApi" :apiParam="screenPara" @tableLoaded="tableLoaded">
|
|
26
26
|
</ct-searchlistOne>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
@@ -116,13 +116,12 @@
|
|
|
116
116
|
function (response) {
|
|
117
117
|
if (response.rtnCode === 200) {
|
|
118
118
|
self.categorySource=response.content.fields[0];
|
|
119
|
-
self.categorySource.selectItems1[0].loaded=true;
|
|
120
119
|
let parm={};
|
|
121
120
|
parm[self.categorySource.fieldName1]=self.categorySource.selectItems1[self.activeIndex].code;
|
|
122
121
|
self.label=self.categorySource.selectItems1[self.activeIndex].displayName;
|
|
123
|
-
self
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
self.screenPara=parm;
|
|
123
|
+
self.listHeight=(self.$refs.main.offsetHeight-42)+'px';
|
|
124
|
+
self.categorySource.selectItems1[0].loaded=true;
|
|
126
125
|
}
|
|
127
126
|
else{
|
|
128
127
|
self.categoryLoadedError();
|
|
@@ -134,13 +133,14 @@
|
|
|
134
133
|
let i = this.activeIndex;
|
|
135
134
|
let parm={};
|
|
136
135
|
parm[this.categorySource.fieldName1]=this.categorySource.selectItems1[i].code;
|
|
137
|
-
this.label=this.categorySource.selectItems1[i].displayName;
|
|
138
|
-
if(
|
|
136
|
+
this.label=this.categorySource.selectItems1[i].displayName;
|
|
137
|
+
if(this.categorySource.selectItems1[i].loaded){
|
|
138
|
+
this.$refs['searchlist'+i][0].resize();
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
this.screenPara=parm;
|
|
139
142
|
this.categorySource.selectItems1[i].loaded=true;
|
|
140
|
-
this
|
|
141
|
-
this.isLoading=true;
|
|
142
|
-
this.$refs['searchlist'+i][0].categoryLoaded(parm);
|
|
143
|
-
});
|
|
143
|
+
this.isLoading=true;
|
|
144
144
|
};
|
|
145
145
|
},
|
|
146
146
|
categoryLoaded(param) {
|
package/src/main.js
CHANGED
|
@@ -14,8 +14,8 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
14
14
|
// 关闭生产模式下给出的提示
|
|
15
15
|
Vue.config.productionTip = false;
|
|
16
16
|
Vue.use(centaline, {
|
|
17
|
-
baseUrl: "http://10.88.22.46:7070/max-uplink-api/v1/form/router",
|
|
18
|
-
|
|
17
|
+
// baseUrl: "http://10.88.22.46:7070/max-uplink-api/v1/form/router",
|
|
18
|
+
baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
|
|
19
19
|
// baseUrl: "http://10.25.10.67:9999/service-api/v1/form/router",
|
|
20
20
|
// baseUrl: "http://10.88.22.42:9999/v1/form/router",
|
|
21
21
|
// baseUrl: "http://10.88.22.69:8080/api/",
|
|
@@ -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.eNrEjr0OgjAURt-lMzdpe3_KZYPSLj4EAQIJTkYg0RjfXY26uXuGbzjL-W5m3QdTGZSgdRIHkakEEseglDNEK6KYLWLbdvoBfsyXjkLUuk4ByDYClDmB-pgBlZuWUh3aJKYw0-VkKielF0JkV5il396CWfQl9nU6H6brP84dt-WZ1ZFtL0TAQRGoVw9D8Aw0DzzPOgYUNfcHAAAA__8.sJA4ggjcul71iwN0kmGK210TEUKaipDHTsvmEHQSHBM',
|
|
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"}',
|