centaline-data-driven 1.1.26 → 1.1.27
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/config/dev.env.js +2 -2
- package/package.json +1 -1
- package/src/Form.vue +2 -1
- package/src/SearchList.vue +2 -2
- package/src/centaline/css/common.css +8 -8
- package/src/centaline/dynamicForm/src/dynamicForm.vue +3 -3
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +30 -32
- package/src/centaline/dynamicTree/src/dynamicTreeList.vue +19 -7
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/config/dev.env.js
CHANGED
|
@@ -5,8 +5,8 @@ const prodEnv = require('./prod.env')
|
|
|
5
5
|
module.exports = merge(prodEnv, {
|
|
6
6
|
NODE_ENV: '"development"',
|
|
7
7
|
// BASE_API: '"http://10.88.1.151:8085/v1/form/router"',//aplus黄兰
|
|
8
|
-
|
|
8
|
+
BASE_API: '"http://10.88.22.46:7070/v1/form/router"',//max本地
|
|
9
9
|
//BASE_API: '"http://10.88.22.71:5008/api/doaction/router"',
|
|
10
|
-
BASE_API: '"http://tjcptest.centaline.com.cn/v1/form/router"',
|
|
10
|
+
// BASE_API: '"http://tjcptest.centaline.com.cn/v1/form/router"',
|
|
11
11
|
// BASE_API: '"http://10.88.200.31:5000/gateway/redirect"',
|
|
12
12
|
})
|
package/package.json
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form>
|
|
4
|
-
<!-- <ct-form :
|
|
4
|
+
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
5
5
|
<!--:api="'FormSample/formdata'"-->
|
|
6
6
|
<!--<ct-form :source="formdata.content"></ct-form>-->
|
|
7
7
|
<!--<ct-form :api="'/api/form/formdata/contractDetail'" :apiParam="apiParam"></ct-form>-->
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
return {
|
|
18
18
|
apiParam: {originalTraId: "1475658732246241281", actionType: 3, pageTitle: "成交报告", pageOnly: true} ,
|
|
19
19
|
// apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
|
|
20
|
+
// apiParam: {SN: "13557_132", UserID: "wuhan3"},
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
methods: {
|
package/src/SearchList.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-search" style="height:100%;position: fixed;">
|
|
3
|
-
<ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'" :searchDataApi="'/api/third-dept-tran/tran-list'"></ct-searchlist>
|
|
4
|
-
|
|
3
|
+
<!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'" :searchDataApi="'/api/third-dept-tran/tran-list'"></ct-searchlist> -->
|
|
4
|
+
<ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'" :searchDataApi="'/PropertyOFIList/getList'"></ct-searchlist>
|
|
5
5
|
<!--<ct-searchlist :searchConditionApi="'/api/invoice-info/search-condition'" :searchDataApi="'/api/invoice-info/list'" :searchDataStatisticsApi="'api/ContractList/GetLayoutOfStatisticsTool'" :apiParam="para"></ct-searchlist>-->
|
|
6
6
|
<ct-dialog-list></ct-dialog-list>
|
|
7
7
|
</div>
|
|
@@ -417,9 +417,9 @@ html {
|
|
|
417
417
|
|
|
418
418
|
|
|
419
419
|
/*主要按钮*/
|
|
420
|
-
.el-button{
|
|
420
|
+
/* .el-button{
|
|
421
421
|
border: none;
|
|
422
|
-
}
|
|
422
|
+
} */
|
|
423
423
|
/*.el-button:active {
|
|
424
424
|
background-color: #b3caf5;
|
|
425
425
|
border: none;
|
|
@@ -433,31 +433,31 @@ html {
|
|
|
433
433
|
} */
|
|
434
434
|
.el-button--primary {
|
|
435
435
|
background-color: #EE6B6B ;
|
|
436
|
-
|
|
436
|
+
border-color: #EE6B6B ;
|
|
437
437
|
}
|
|
438
438
|
.el-button--primary:hover ,.el-button--warning:hover{
|
|
439
439
|
background: #f1706b;
|
|
440
|
-
|
|
440
|
+
border-color: #f1706b;
|
|
441
441
|
color: #FFF;
|
|
442
442
|
}
|
|
443
443
|
.el-button--primary:focus {
|
|
444
444
|
background: #de534d;
|
|
445
|
-
|
|
445
|
+
border-color: #de534d;
|
|
446
446
|
color: #FFF;
|
|
447
447
|
}
|
|
448
448
|
.el-button--success {
|
|
449
449
|
background-color: #EE6B6B ;
|
|
450
|
-
|
|
450
|
+
border-color: #EE6B6B ;
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
.el-button--success:focus {
|
|
454
454
|
background: #de534d;
|
|
455
|
-
|
|
455
|
+
border-color: #de534d;
|
|
456
456
|
color: #FFF;
|
|
457
457
|
}
|
|
458
458
|
.el-button--success:hover {
|
|
459
459
|
background: #f1706b;
|
|
460
|
-
|
|
460
|
+
border-color: #f1706b;
|
|
461
461
|
color: #FFF;
|
|
462
462
|
}
|
|
463
463
|
/* 工具栏按钮置灰 */
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
this.model.scripts.$fd = field.id;
|
|
225
225
|
this.model.scripts.$result = [];
|
|
226
226
|
|
|
227
|
-
var clickAcion = function (field) {
|
|
227
|
+
var clickAcion = function (field) {
|
|
228
228
|
if (field.isSubmit) {
|
|
229
229
|
let verified = true;
|
|
230
230
|
if (self.validExcute()) {
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
|
|
235
235
|
if (verified) {
|
|
236
236
|
//action有值,提交到后台
|
|
237
|
-
if (field.action) {
|
|
237
|
+
if (field.action) {
|
|
238
238
|
field.disabled = true;//提交按钮禁用
|
|
239
239
|
self.model.pageDisabled= true;
|
|
240
240
|
field.doAction(self.getFormObj(), (data) => {
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
getFormObj()
|
|
514
514
|
{
|
|
515
515
|
let formData=this.model.getFormObj();
|
|
516
|
-
if(this.$route.query.pageStyle)
|
|
516
|
+
if(this.$route && this.$route.query && this.$route.query.pageStyle)
|
|
517
517
|
{
|
|
518
518
|
return Object.assign(formData,{'pageStyle':this.$route.query.pageStyle});
|
|
519
519
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
column.fixed === 'left'?'left-fixation-th':null,
|
|
36
36
|
column.fixed === 'right'?'right-fixation-th':null,
|
|
37
37
|
typeof column.fixed === 'undefined'?'right-no-fixation-th':null]"
|
|
38
|
-
@mousemove="thMouseMoveHandle($event)" @mousedown="thMouseDownHandle($event,colIndex)"
|
|
38
|
+
@mousemove="thMouseMoveHandle($event)" @mousedown="thMouseDownHandle($event,colIndex)"
|
|
39
39
|
v-bind="column.attrs">
|
|
40
40
|
|
|
41
41
|
<span>{{column.name}}</span>
|
|
@@ -46,21 +46,21 @@
|
|
|
46
46
|
</th>
|
|
47
47
|
|
|
48
48
|
<!--<th v-if="model.rowRouter.length > 0" class="ct-td tdFiexd" :class="[-1 === rightShadow?'shadowRight':null]" :style="{'min-width':'20px','transform':'translate('+scrollRight+'px, '+scrollTop+'px)'}">
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
操作
|
|
50
|
+
</th>-->
|
|
51
51
|
</tr>
|
|
52
52
|
</thead>
|
|
53
53
|
<!--表体-->
|
|
54
54
|
<tbody>
|
|
55
55
|
<!--这一行仅用于设置未加载数据时的列宽-->
|
|
56
56
|
<!--<tr v-if="model.listData.length === 0" class="ct-tr" style="visibility: hidden;">
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
<td v-if="model.isMulti">
|
|
58
|
+
</td>
|
|
59
|
+
<td v-for="(column,colIndex) in model.dataFieldcolumns" class="ct-td" v-if="column.show">
|
|
60
|
+
<div :style="{'width': column.width + 'px'}">
|
|
61
|
+
</div>
|
|
62
|
+
</td>
|
|
63
|
+
</tr>-->
|
|
64
64
|
<!--可视区域的行数据-->
|
|
65
65
|
<tr v-for="(row,rowindex) in model.listData"
|
|
66
66
|
v-if="pageRowMin <= rowindex && rowindex <= pageRowMax"
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
|
|
101
101
|
<!--模版列(启用)-->
|
|
102
102
|
<!--<component v-else :is="column.template(row).component" :class="column.autoRowHeight ? 'lineFeedCell':'cell'" :vmodel="column.template(row)" :style="{'width': column.width + 'px'}">
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
<template slot="value">
|
|
104
|
+
{{row[column.id]}}
|
|
105
|
+
</template>
|
|
106
|
+
</component>-->
|
|
107
107
|
</td>
|
|
108
108
|
</tr>
|
|
109
109
|
|
|
@@ -481,9 +481,8 @@
|
|
|
481
481
|
var h4 = this.$refs.footer.$el.offsetHeight | 0;
|
|
482
482
|
var h5 = this.$refs.listHeader.$el.offsetHeight | 0;
|
|
483
483
|
var h6 = this.$refs.listFooter.$el.offsetHeight | 0;
|
|
484
|
-
let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 -
|
|
485
|
-
|
|
486
|
-
this.model.tableHeight = tableHeight < 50 ? 350 : tableHeight;
|
|
484
|
+
let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - 22;
|
|
485
|
+
this.model.tableHeight = tableHeight < 40 ? 350 : tableHeight;
|
|
487
486
|
this.$nextTick(() => {
|
|
488
487
|
self.getScrollAttr();
|
|
489
488
|
});
|
|
@@ -641,15 +640,14 @@
|
|
|
641
640
|
routerClickHandler(field, submitData, action) {
|
|
642
641
|
let self = this;
|
|
643
642
|
action = action || field.action;
|
|
644
|
-
|
|
643
|
+
|
|
645
644
|
var clickAcion = function () {
|
|
646
645
|
//若不是客户端方法,则直接访问接口
|
|
647
646
|
if (!field.isClientFuntion) {
|
|
648
647
|
if (field.isFormPageInTab || field.isSearchPageInTab) {// 外部框架tab页打开
|
|
649
648
|
submitData = field.getActionPara(submitData).para;
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
submitData.pageStyle=field.pageStyle;
|
|
649
|
+
if (field.pageStyle) {
|
|
650
|
+
submitData.pageStyle = field.pageStyle;
|
|
653
651
|
}
|
|
654
652
|
self.$common.getDataDrivenOpts().handler.openTab(action, submitData, field.pageTitle, self.model);
|
|
655
653
|
}
|
|
@@ -791,15 +789,14 @@
|
|
|
791
789
|
calculatingRowHeight() {
|
|
792
790
|
let self = this;
|
|
793
791
|
let count = 0;
|
|
794
|
-
|
|
792
|
+
|
|
795
793
|
//查询出所有没有设置$heigth的数据并重新设置$heigth
|
|
796
|
-
|
|
797
|
-
|
|
794
|
+
let notHeigthData = self.model.listData.filter(item => {
|
|
795
|
+
return item.$heigth === undefined || item.$heigth <= 0
|
|
798
796
|
})
|
|
799
|
-
if(notHeigthData&¬HeigthData.length>0)
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
if (self.$refs["rows." + i] && self.$refs["rows." + i].length > 0) {
|
|
797
|
+
if (notHeigthData && notHeigthData.length > 0) {
|
|
798
|
+
notHeigthData.forEach((v, i) => {
|
|
799
|
+
if (self.$refs["rows." + i] && self.$refs["rows." + i].length > 0) {
|
|
803
800
|
self.$set(v, "$heigth", self.$refs["rows." + i][0].clientHeight);
|
|
804
801
|
}
|
|
805
802
|
});
|
|
@@ -853,7 +850,7 @@
|
|
|
853
850
|
if (self.model.checkCloseTabThen(ev.notification)) {
|
|
854
851
|
self.model.doAction(ev);
|
|
855
852
|
self.$forceUpdate();
|
|
856
|
-
self.$refs.footer.$forceUpdate();
|
|
853
|
+
self.$refs.footer.$forceUpdate();
|
|
857
854
|
}
|
|
858
855
|
}
|
|
859
856
|
},
|
|
@@ -1049,7 +1046,8 @@
|
|
|
1049
1046
|
width: 20px;
|
|
1050
1047
|
left: 0px;
|
|
1051
1048
|
}
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1049
|
+
|
|
1050
|
+
.ct-table .checkbox-td .checkbox-td-1 {
|
|
1051
|
+
vertical-align: inherit;
|
|
1052
|
+
}
|
|
1055
1053
|
</style>
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div id="app-Tree" style="height:100%;
|
|
3
|
-
<el-container style="height:
|
|
4
|
-
<el-aside width="200px" style="background-color
|
|
2
|
+
<div id="app-Tree" style="height:100%;">
|
|
3
|
+
<el-container style="height: calc(100vh - 98px);width:100vw; border: 1px solid #eee">
|
|
4
|
+
<el-aside width="200px" style="background-color:white">
|
|
5
5
|
<ct-searchtree :flagsearch="true" :searchConditionApi="searchConditionApi" :searchDataApi="searchDataApi" @loaded="loaded"></ct-searchtree>
|
|
6
6
|
</el-aside>
|
|
7
7
|
<el-main v-if="isShowSearchlist">
|
|
8
|
-
<
|
|
8
|
+
<div style="height: calc(100vh - 98px);overflow-y: auto;">
|
|
9
|
+
<ct-searchlist :searchConditionApi="searchTableConditionApi" :searchDataApi="searchTableDataApi" :api-param="apiParam"></ct-searchlist>
|
|
10
|
+
</div>
|
|
9
11
|
</el-main>
|
|
10
12
|
</el-container>
|
|
11
13
|
</div>
|
|
@@ -42,10 +44,10 @@
|
|
|
42
44
|
loaded(data) {
|
|
43
45
|
var self = this;
|
|
44
46
|
self.isShowSearchlist = false;
|
|
45
|
-
if (data&&data.rowRouter) {
|
|
47
|
+
if (data && data.rowRouter) {
|
|
46
48
|
self.searchTableConditionApi = data.rowRouter.getLayoutOfSearch;
|
|
47
49
|
self.searchTableDataApi = data.rowRouter.getList;
|
|
48
|
-
var defaultPara = self.$common.deepClone(data);
|
|
50
|
+
var defaultPara = self.$common.deepClone(data);
|
|
49
51
|
delete defaultPara.rowRouter;
|
|
50
52
|
delete defaultPara.getLayoutOfSearch;
|
|
51
53
|
delete defaultPara.getList;
|
|
@@ -55,7 +57,7 @@
|
|
|
55
57
|
});
|
|
56
58
|
}
|
|
57
59
|
},
|
|
58
|
-
|
|
60
|
+
|
|
59
61
|
},
|
|
60
62
|
created() {
|
|
61
63
|
this.model = this.vmodel;
|
|
@@ -63,3 +65,13 @@
|
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
</script>
|
|
68
|
+
<style lang="scss">
|
|
69
|
+
#app-Tree .el-main {
|
|
70
|
+
padding: 0 0px 0px 10px;
|
|
71
|
+
}
|
|
72
|
+
#app-Tree .el-main .ct-searchtable {
|
|
73
|
+
margin-top: 0px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</style>
|