centaline-data-driven 1.5.44 → 1.5.46
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/release-log.md +18 -0
- package/src/SearchTree.vue +2 -2
- package/src/centaline/dynamicDetail/src/dynamicCustomerSimpleDetail.vue +5 -1
- package/src/centaline/dynamicDetail/src/dynamicEstateSimpleDetail.vue +4 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +4 -0
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +19 -0
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +2 -2
- package/src/centaline/dynamicSearchList/src/dynamicTableStats.vue +8 -8
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListOne.vue +20 -0
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListTab.vue +3 -1
- package/src/centaline/dynamicTree/src/dynamicSearchTree.vue +1 -1
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +106 -53
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
package/src/SearchTree.vue
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-Tree" style="height:100%;position: fixed;width:100%">
|
|
3
3
|
<ct-treelist :flagsearch="true" :apiParam="apiParam" :leftWidth="'280'"
|
|
4
|
-
:searchConditionApi="'/
|
|
5
|
-
:searchDataApi="'/
|
|
4
|
+
:searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'"
|
|
5
|
+
:searchDataApi="'/SystemParameterCatalogList/getListOfSearchModel'" @loaded="loaded"></ct-treelist>
|
|
6
6
|
<ct-dialog-list></ct-dialog-list>
|
|
7
7
|
</div>
|
|
8
8
|
</template>
|
|
@@ -339,7 +339,7 @@ export default {
|
|
|
339
339
|
let self = this;
|
|
340
340
|
this.$nextTick(() => {
|
|
341
341
|
if (this.$refs.main) {
|
|
342
|
-
if (this.model.routerForQRCode) {
|
|
342
|
+
if (this.model && this.model.routerForQRCode) {
|
|
343
343
|
this.topWidth = this.$refs.main.clientWidth - 140;
|
|
344
344
|
}
|
|
345
345
|
else {
|
|
@@ -636,6 +636,9 @@ export default {
|
|
|
636
636
|
if (field.id != "Favorite") {
|
|
637
637
|
self.$emit('simpleRouterclickHandler', field, ev);
|
|
638
638
|
}
|
|
639
|
+
},
|
|
640
|
+
closeDialog(ev) {
|
|
641
|
+
self.$emit('simpleRouterclickHandler', field, ev);
|
|
639
642
|
}
|
|
640
643
|
}
|
|
641
644
|
}]
|
|
@@ -668,6 +671,7 @@ export default {
|
|
|
668
671
|
if (field.id == "Favorite" && callBack) {
|
|
669
672
|
callBack();
|
|
670
673
|
}
|
|
674
|
+
self.$emit('simpleRouterclickHandler', field, ev);
|
|
671
675
|
}
|
|
672
676
|
}
|
|
673
677
|
}]
|
|
@@ -504,6 +504,9 @@ export default {
|
|
|
504
504
|
if (field.id != "Favorite") {
|
|
505
505
|
self.$emit('simpleRouterclickHandler', field, ev);
|
|
506
506
|
}
|
|
507
|
+
},
|
|
508
|
+
closeDialog(ev) {
|
|
509
|
+
self.$emit('simpleRouterclickHandler', field, ev);
|
|
507
510
|
}
|
|
508
511
|
}
|
|
509
512
|
}]
|
|
@@ -536,6 +539,7 @@ export default {
|
|
|
536
539
|
if (field.id == "Favorite" && callBack) {
|
|
537
540
|
callBack();
|
|
538
541
|
}
|
|
542
|
+
self.$emit('simpleRouterclickHandler', field, ev);
|
|
539
543
|
}
|
|
540
544
|
}
|
|
541
545
|
}]
|
|
@@ -503,6 +503,9 @@ export default {
|
|
|
503
503
|
if (field.id != "Favorite") {
|
|
504
504
|
self.$emit('simpleRouterclickHandler', field, ev);
|
|
505
505
|
}
|
|
506
|
+
},
|
|
507
|
+
closeDialog(ev) {
|
|
508
|
+
self.$emit('simpleRouterclickHandler', field, ev);
|
|
506
509
|
}
|
|
507
510
|
}
|
|
508
511
|
}]
|
|
@@ -535,6 +538,7 @@ export default {
|
|
|
535
538
|
if (field.id == "Favorite" && callBack) {
|
|
536
539
|
callBack();
|
|
537
540
|
}
|
|
541
|
+
self.$emit('simpleRouterclickHandler', field, ev);
|
|
538
542
|
}
|
|
539
543
|
}
|
|
540
544
|
}]
|
|
@@ -151,6 +151,7 @@
|
|
|
151
151
|
}
|
|
152
152
|
if(this.$refs.table){
|
|
153
153
|
this.$refs.table.resetScrollActivated();
|
|
154
|
+
this.$refs.table.setTableHeight();
|
|
154
155
|
}
|
|
155
156
|
})
|
|
156
157
|
},
|
|
@@ -228,11 +229,29 @@
|
|
|
228
229
|
}
|
|
229
230
|
},
|
|
230
231
|
resizeSearchList() {
|
|
232
|
+
if(document.body.clientWidth && document.body.clientWidth>=1024){
|
|
233
|
+
if(!this.flagSideBar && this.$refs.table){
|
|
234
|
+
this.flagSideBar=this.$refs.table.model.flagSideBar;
|
|
235
|
+
if(this.flagSideBar && this.flagSideBarOfData){
|
|
236
|
+
this.sideMenuClickHandler('close');
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
else{
|
|
241
|
+
this.flagSideBar=false;
|
|
242
|
+
this.sideBarStatus ='close';
|
|
243
|
+
this.sideBarRight=-this.sideBarWidth;
|
|
244
|
+
this.sideBarWidth=0;
|
|
245
|
+
this.searchWidth=0;
|
|
246
|
+
this.sideBarMenuRight=0;
|
|
247
|
+
}
|
|
248
|
+
|
|
231
249
|
if(this.flagSideBar && this.flagSideBarOfData){
|
|
232
250
|
if(this.sideBarStatus=='open' && this.$refs.main){
|
|
233
251
|
this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
|
|
234
252
|
}
|
|
235
253
|
}
|
|
254
|
+
|
|
236
255
|
if(this.$refs.main){
|
|
237
256
|
this.listHeight=this.$refs.main.offsetHeight;
|
|
238
257
|
if(this.$refs.detail){
|
|
@@ -1951,7 +1951,7 @@ export default {
|
|
|
1951
1951
|
refreshFromSimple(field, data) {
|
|
1952
1952
|
var self = this;
|
|
1953
1953
|
if (field.isOpenForm) {
|
|
1954
|
-
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
1954
|
+
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction && data) {
|
|
1955
1955
|
self.model.doAction(data);
|
|
1956
1956
|
}
|
|
1957
1957
|
self.$forceUpdate();
|
|
@@ -1959,7 +1959,7 @@ export default {
|
|
|
1959
1959
|
self.updateCurrentRow(field, data,true);
|
|
1960
1960
|
}
|
|
1961
1961
|
else {
|
|
1962
|
-
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
1962
|
+
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction && data) {
|
|
1963
1963
|
self.model.doAction({ responseData: data });
|
|
1964
1964
|
}
|
|
1965
1965
|
self.$forceUpdate();
|
|
@@ -152,7 +152,7 @@ export default {
|
|
|
152
152
|
isHidden: true, //是否开启操作栏隐藏设置,默认开启
|
|
153
153
|
showNum: 3, //如果isHidden为true时,个数大于3就会隐藏,默认是3
|
|
154
154
|
appendId: "", //将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
|
|
155
|
-
trigger: "
|
|
155
|
+
trigger: "click", //触发方式,传值可查看Popper UI组件trigger属性
|
|
156
156
|
placement: "bottom-start", //方向,传值可查看Popper UI组件placement属性
|
|
157
157
|
},
|
|
158
158
|
iconSort: require("../../../assets/sort.png"),
|
|
@@ -160,11 +160,9 @@ export default {
|
|
|
160
160
|
},
|
|
161
161
|
mounted() {
|
|
162
162
|
var self = this;
|
|
163
|
-
self.showWidth =
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
self.showWidth =
|
|
167
|
-
self.$refs.tableStatistics.offsetWidth || document.body.clientWidth;
|
|
163
|
+
self.showWidth = self.$refs.tableStatistics && self.$refs.tableStatistics.offsetWidth || document.body.clientWidth;
|
|
164
|
+
window.addEventListener('resize', function () {
|
|
165
|
+
self.showWidth = self.$refs.tableStatistics && self.$refs.tableStatistics.offsetWidth || document.body.clientWidth;
|
|
168
166
|
});
|
|
169
167
|
},
|
|
170
168
|
methods: {
|
|
@@ -249,10 +247,10 @@ export default {
|
|
|
249
247
|
} else {
|
|
250
248
|
moreWidth = 0;
|
|
251
249
|
}
|
|
252
|
-
if (self.showWidth < sumWidth + moreWidth) {
|
|
250
|
+
if (self.showWidth -i < sumWidth + moreWidth) {
|
|
253
251
|
showIndex = i;
|
|
254
252
|
break;
|
|
255
|
-
} else if (self.showWidth < nextWidth + moreWidth) {
|
|
253
|
+
} else if (self.showWidth -i < nextWidth + moreWidth) {
|
|
256
254
|
showIndex = i + 1;
|
|
257
255
|
break;
|
|
258
256
|
}
|
|
@@ -278,6 +276,7 @@ export default {
|
|
|
278
276
|
handleClick(ev, obj, flagRefreshTable,type,index) {
|
|
279
277
|
var self = this;
|
|
280
278
|
self.flagClick=true;
|
|
279
|
+
self.FlagStatistics = false;
|
|
281
280
|
self.selectStats = obj.key;
|
|
282
281
|
var fields = self.model.searchData(
|
|
283
282
|
obj.fieldName1,
|
|
@@ -433,6 +432,7 @@ export default {
|
|
|
433
432
|
text-align: left;
|
|
434
433
|
top: 2px;
|
|
435
434
|
right: 0px;
|
|
435
|
+
cursor: pointer;
|
|
436
436
|
}
|
|
437
437
|
.my-icon-more {
|
|
438
438
|
width: 14px;
|
|
@@ -93,6 +93,9 @@
|
|
|
93
93
|
this.$refs.detail.$children[0].refreshPage();
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
+
if(this.$refs.table){
|
|
97
|
+
this.$refs.table.setTableHeight();
|
|
98
|
+
}
|
|
96
99
|
})
|
|
97
100
|
},
|
|
98
101
|
data() {
|
|
@@ -211,6 +214,23 @@
|
|
|
211
214
|
}
|
|
212
215
|
},
|
|
213
216
|
resizeSearchList() {
|
|
217
|
+
if(document.body.clientWidth && document.body.clientWidth>=1024){
|
|
218
|
+
if(!this.flagSideBar && this.$refs.table){
|
|
219
|
+
this.flagSideBar=this.$refs.table.model.flagSideBar;
|
|
220
|
+
if(this.flagSideBar && this.flagSideBarOfData){
|
|
221
|
+
this.sideMenuClickHandler('close');
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
else{
|
|
226
|
+
this.flagSideBar=false;
|
|
227
|
+
this.sideBarStatus ='close';
|
|
228
|
+
this.sideBarRight=-this.sideBarWidth;
|
|
229
|
+
this.sideBarWidth=0;
|
|
230
|
+
this.searchWidth=0;
|
|
231
|
+
this.sideBarMenuRight=0;
|
|
232
|
+
}
|
|
233
|
+
|
|
214
234
|
if(this.flagSideBar && this.flagSideBarOfData){
|
|
215
235
|
if(this.sideBarStatus=='open' && this.$refs.main){
|
|
216
236
|
this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
|
|
@@ -186,7 +186,9 @@
|
|
|
186
186
|
this.$emit('refreshParent');
|
|
187
187
|
},
|
|
188
188
|
resize() {
|
|
189
|
-
|
|
189
|
+
if(this.$refs.main){
|
|
190
|
+
this.listHeight=(this.$refs.main.offsetHeight-42)+'px';
|
|
191
|
+
}
|
|
190
192
|
if(this.$refs['searchlist'+this.activeIndex] && this.$refs['searchlist'+this.activeIndex][0]){
|
|
191
193
|
this.$refs['searchlist'+this.activeIndex][0].resize();
|
|
192
194
|
this.$refs['searchlist'+this.activeIndex][0].resizeSearchList();
|
package/src/main.js
CHANGED
|
@@ -58,7 +58,7 @@ Vue.use(centaline, {
|
|
|
58
58
|
return {
|
|
59
59
|
oldToken: 'cd6060fd-36e5-47f1-8cb9-7fc6f61e645c',
|
|
60
60
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
|
|
61
|
-
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
61
|
+
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEOgjAURf-lMy9p6aPvlY2-wuJHkAIlwckIJBrjv6tRN3fPcIeznHtT6z6oWkVuNEpnQdqyAoxUQdMRQxBmHUqyGLj3H-DHfOmNQU_GtdB4EkCHFtgIg6AT7GJrJURVqHw5qdo4b5CRNBZqSdtbWM_2JfY1nw_5-o9zx215Zj2lZFEbGGbUgKUfIc2ZIdPoHI5I05TV_QEAAP__.JcB2iXcfHNcB2eJQ_kEIhID-UXCMx-HDoIuv9ZIA33I"}',
|
|
62
62
|
|
|
63
63
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
64
64
|
EstateInfo: '{"estateId":"201806071109550C867184E8BCA56EC3","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',
|