centaline-data-driven 1.5.43 → 1.5.45
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/Form.vue +2 -2
- package/src/SearchList.vue +3 -3
- package/src/SearchTree.vue +2 -2
- package/src/centaline/dynamicDetail/src/dynamicCustomerSimpleDetail.vue +1 -1
- package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +3 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +19 -0
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +1 -1
- 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/centaline/loader/src/ctl/SearchTable.js +6 -0
- package/src/main.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +93 -44
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/api/
|
|
4
|
+
<ct-form :api="'/api/third-dept-tran/transaction/task'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
"
|
|
15
|
+
"stepId":"1686982560817586178","businessId":"1686982455918043138","actionType":1,"pageStyle":2,"pageOnly":true
|
|
16
16
|
},
|
|
17
17
|
topHeight:10,
|
|
18
18
|
}
|
package/src/SearchList.vue
CHANGED
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
:searchStatsApi="'/PropertyRETList/getListStats'">
|
|
63
63
|
</ct-searchlist> -->
|
|
64
64
|
|
|
65
|
-
<ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'"
|
|
65
|
+
<!-- <ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'"
|
|
66
66
|
:searchDataApi="'/PropertyOFIList/getListOfSearchModel'"
|
|
67
67
|
:searchCategoryApi="'/PropertyOFIList/getLayoutOfSearchCategory'"
|
|
68
68
|
:searchStatsApi="'/PropertyOFIList/getListStats'">
|
|
69
|
-
</ct-searchlist>
|
|
69
|
+
</ct-searchlist> -->
|
|
70
70
|
|
|
71
71
|
<!-- <ct-searchlist :searchConditionApi="'/EstateList/getLayoutOfSearch'" :searchDataApi="'/EstateList/getListOfSearchModel'"></ct-searchlist> -->
|
|
72
72
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
<!-- <ct-searchlist :searchConditionApi="'/CustomerImportList/getLayoutOfSearch'" :searchDataApi="'/CustomerImportList/getListOfSearchModel'"></ct-searchlist> -->
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
<ct-searchlist :searchConditionApi="'/CustomerList/getLayoutOfSearch'" :searchStatsApi="'/CustomerList/getListStats'" :searchDataApi="'/CustomerList/getListOfSearchModel'"></ct-searchlist>
|
|
80
80
|
|
|
81
81
|
<!-- <ct-searchlist :searchConditionApi="'/CallTaskList/getLayoutOfSearch'" :searchDataApi="'/CallTaskList/getListOfSearchModel'"></ct-searchlist> -->
|
|
82
82
|
|
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 {
|
|
@@ -92,7 +92,9 @@
|
|
|
92
92
|
onChangeHandler: function (val) {
|
|
93
93
|
this.changeHandler(this.model.value);
|
|
94
94
|
this.isShowClear();
|
|
95
|
-
this.model.value.dispatchEvent
|
|
95
|
+
if(this.model.value.dispatchEvent){
|
|
96
|
+
this.model.value.dispatchEvent(new Event("val")); //更新v-model的值
|
|
97
|
+
}
|
|
96
98
|
},
|
|
97
99
|
onBlurHandler:function(event){
|
|
98
100
|
this.model.value = this.$common.numToFloat(this.model.value, this.model.decimals);//保留n位小数
|
|
@@ -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){
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
|
|
194
194
|
<ct-tabletip ref="listFooter" class="ct-search-table-list-footer" :tip="model.listFooter"
|
|
195
195
|
v-if="!isLoading && !isLayout && model"></ct-tabletip>
|
|
196
|
-
<ct-tabletip ref="footer" class="ct-search-table-footer" :tip="model.footer"
|
|
196
|
+
<ct-tabletip ref="footer" class="ct-search-table-footer" style="width: 100%;" :tip="model.footer+model.companyName"
|
|
197
197
|
v-if="!isLoading && !isLayout && model"></ct-tabletip>
|
|
198
198
|
<div ref="popupButton" v-if="flagPopupSearchlist"
|
|
199
199
|
style="margin-top: 10px;width: 100%;display: inline-block;height: 30px;margin-bottom: 10px;">
|
|
@@ -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();
|
|
@@ -29,6 +29,12 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
29
29
|
if (source.flagShowTitle) v = source.flagShowTitle;
|
|
30
30
|
return v;
|
|
31
31
|
},
|
|
32
|
+
get companyName(){
|
|
33
|
+
if(source.companyName){
|
|
34
|
+
return '<span style="float: right;color:#999999;margin-right: 5px;">'+source.companyName+'</span>'|| '';
|
|
35
|
+
}
|
|
36
|
+
return '';
|
|
37
|
+
},
|
|
32
38
|
get source() {
|
|
33
39
|
return source;
|
|
34
40
|
},
|
package/src/main.js
CHANGED
|
@@ -56,9 +56,9 @@ Vue.use(centaline, {
|
|
|
56
56
|
// 获取请求头
|
|
57
57
|
getRequestHeaders: function () {
|
|
58
58
|
return {
|
|
59
|
-
oldToken: '
|
|
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"}',
|