centaline-data-driven 1.5.2 → 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 -1
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListOne.vue +5 -0
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListTab.vue +9 -13
- package/src/main.js +3 -3
- 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
|
@@ -293,7 +293,6 @@ export default {
|
|
|
293
293
|
activated() {
|
|
294
294
|
this.$nextTick(() => {
|
|
295
295
|
this.setTableHeight();
|
|
296
|
-
this.resetScroll();
|
|
297
296
|
});
|
|
298
297
|
},
|
|
299
298
|
methods: {
|
|
@@ -780,6 +779,22 @@ export default {
|
|
|
780
779
|
self.scrollTop = self.$refs.tableParent.scrollTop;
|
|
781
780
|
}
|
|
782
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
|
+
},
|
|
783
798
|
rowKeyDownHandle(ev, action) {
|
|
784
799
|
var self = this;
|
|
785
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="
|
|
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
|
},
|
|
@@ -116,13 +114,12 @@
|
|
|
116
114
|
function (response) {
|
|
117
115
|
if (response.rtnCode === 200) {
|
|
118
116
|
self.categorySource=response.content.fields[0];
|
|
119
|
-
self.categorySource.selectItems1[0].loaded=true;
|
|
120
117
|
let parm={};
|
|
121
118
|
parm[self.categorySource.fieldName1]=self.categorySource.selectItems1[self.activeIndex].code;
|
|
122
119
|
self.label=self.categorySource.selectItems1[self.activeIndex].displayName;
|
|
123
|
-
self
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
self.categorySource.selectItems1[0].screenPara=parm;
|
|
121
|
+
self.listHeight=(self.$refs.main.offsetHeight-42)+'px';
|
|
122
|
+
self.categorySource.selectItems1[0].loaded=true;
|
|
126
123
|
}
|
|
127
124
|
else{
|
|
128
125
|
self.categoryLoadedError();
|
|
@@ -137,13 +134,12 @@
|
|
|
137
134
|
this.label=this.categorySource.selectItems1[i].displayName;
|
|
138
135
|
if(this.categorySource.selectItems1[i].loaded){
|
|
139
136
|
this.$refs['searchlist'+i][0].resize();
|
|
137
|
+
this.$refs['searchlist'+i][0].resetScrollActivated();
|
|
140
138
|
}
|
|
141
139
|
else {
|
|
140
|
+
this.categorySource.selectItems1[i].screenPara=parm;
|
|
142
141
|
this.categorySource.selectItems1[i].loaded=true;
|
|
143
|
-
this
|
|
144
|
-
this.isLoading=true;
|
|
145
|
-
this.$refs['searchlist'+i][0].categoryLoaded(parm);
|
|
146
|
-
});
|
|
142
|
+
this.isLoading=true;
|
|
147
143
|
};
|
|
148
144
|
},
|
|
149
145
|
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"}',
|