centaline-data-driven 1.4.83 → 1.4.84
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/SearchList.vue +7 -1
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +14 -2
- package/src/centaline/dynamicDetail/src/dynamicDetail.vue +2 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +90 -9
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +9 -2
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +4 -0
- package/src/main.js +4 -4
- 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
package/src/SearchList.vue
CHANGED
|
@@ -5,11 +5,17 @@
|
|
|
5
5
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
|
|
6
6
|
|
|
7
7
|
<ct-searchlist :apiParam="para"
|
|
8
|
+
:searchConditionApi="'/api/third-dept-tran/tran-list/layout'"
|
|
9
|
+
:searchDataApi="'/api/third-dept-tran/tran-list'">
|
|
10
|
+
</ct-searchlist>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<!-- <ct-searchlist :apiParam="para"
|
|
8
14
|
:searchConditionApi="'/ProfileWorklistList/getLayoutOfSearch'"
|
|
9
15
|
:searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
|
|
10
16
|
:searchDataApi="'/ProfileWorklistList/getListOfSearchModel'"
|
|
11
17
|
:searchStatsApi="'/ProfileWorklistList/getListStats'">
|
|
12
|
-
</ct-searchlist>
|
|
18
|
+
</ct-searchlist> -->
|
|
13
19
|
|
|
14
20
|
<!-- <ct-searchlist :apiParam="para"
|
|
15
21
|
:searchConditionApi="'/RightValueList/getLayoutOfSearch'"
|
|
@@ -56,8 +56,14 @@
|
|
|
56
56
|
:style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
|
|
57
57
|
:icon="model.icon"
|
|
58
58
|
:disabled="model.disabled || model.locked">
|
|
59
|
-
<
|
|
60
|
-
|
|
59
|
+
<div v-if="teletext" :title="model.label">
|
|
60
|
+
<img :src="model.imgUrl" :height="model.buttonHeight+'px'"/>
|
|
61
|
+
<div style="margin-top:5px;" class="labelText">{{model.label}}</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div v-else>
|
|
64
|
+
<img v-if="model.imgUrl" :title="model.label" :src="model.imgUrl" :height="model.buttonHeight+'px'"/>
|
|
65
|
+
<span v-else>{{model.label}}</span>
|
|
66
|
+
</div>
|
|
61
67
|
</el-button>
|
|
62
68
|
</template>
|
|
63
69
|
<script>
|
|
@@ -70,6 +76,7 @@
|
|
|
70
76
|
optionApi:String,
|
|
71
77
|
rowData: Object,
|
|
72
78
|
rowindex:Number,
|
|
79
|
+
teletext:Boolean,
|
|
73
80
|
},
|
|
74
81
|
mixins: [dynamicElement],
|
|
75
82
|
data: function () {
|
|
@@ -195,3 +202,8 @@
|
|
|
195
202
|
}
|
|
196
203
|
}
|
|
197
204
|
</script>
|
|
205
|
+
<style>
|
|
206
|
+
.labelText{
|
|
207
|
+
-webkit-transform: scale(0.90);
|
|
208
|
+
}
|
|
209
|
+
</style>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<ct-PropertySimpleDetailRET :api="api" :apiParam="apiParam" :selectIndex="selectIndex" :rowCount="rowCount" class="ct-PropertySimpleDetailRET"
|
|
10
10
|
@loaded="loaded" @clickNextHandler="clickNextHandler" @clickPrevHandler="clickPrevHandler" @simpleRouterclickHandler="simpleRouterclickHandler"
|
|
11
|
-
v-if="pageType=='PropertySimpleDetailRET'" @closeSideHandler="closeSideHandler"></ct-PropertySimpleDetailRET>
|
|
11
|
+
v-if="pageType=='PropertySimpleDetailRET'" @closeSideHandler="closeSideHandler" :drowerClose="drowerClose"></ct-PropertySimpleDetailRET>
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
14
14
|
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
selectIndex:Number,
|
|
33
33
|
rowCount:Number,
|
|
34
34
|
top:Number,
|
|
35
|
+
drowerClose:String,
|
|
35
36
|
},
|
|
36
37
|
data() {
|
|
37
38
|
return {
|
|
@@ -17,7 +17,22 @@
|
|
|
17
17
|
style="width: 26px;height: 26px;vertical-align: bottom;margin-right:11px;cursor: pointer">
|
|
18
18
|
<img :class="{'domDisabled':selectIndex===rowCount-1}" @click="clickNextHandler" src="../../../assets/B.png" alt=""
|
|
19
19
|
style="width: 26px;height: 26px;vertical-align: bottom;margin-right:8px;cursor: pointer">
|
|
20
|
-
<div class="el-icon-close cursor" style="padding-top: 5px;" @click="closeSideHandler"></div>
|
|
20
|
+
<div v-if="!model.flagAppMode" class="el-icon-close cursor" style="padding-top: 5px;" @click="closeSideHandler"></div>
|
|
21
|
+
<span v-if="model.flagAppMode" :slot="showIndex>0?'reference':''" class="more" style="margin-right: 10px;" @click="drawer = true"></span>
|
|
22
|
+
<el-drawer
|
|
23
|
+
title="更多操作"
|
|
24
|
+
:visible.sync="drawer"
|
|
25
|
+
direction="ttb"
|
|
26
|
+
:modal="false"
|
|
27
|
+
class="drawerMore"
|
|
28
|
+
size="30%">
|
|
29
|
+
<div style="display: flex;flex-flow:row wrap ">
|
|
30
|
+
<component v-for="(router, index) in model.actionRoutersSimple.slice(showIndex)" :key="index" class="drawerButton"
|
|
31
|
+
v-if="!router.rightField || (model.fields1Dic[router.rightField] && model.fields1Dic[router.rightField].value == 1)"
|
|
32
|
+
:is="router.is" :vmodel="router" :teletext="teletext" :api="model.optionApi" @click="fieldClickHandler(router)">
|
|
33
|
+
</component>
|
|
34
|
+
</div>
|
|
35
|
+
</el-drawer>
|
|
21
36
|
</div>
|
|
22
37
|
<div style="padding-left: 20px;padding-right: 20px;">
|
|
23
38
|
<div ref="title" style="margin-top: 18px;">
|
|
@@ -64,7 +79,7 @@
|
|
|
64
79
|
<div ref="contact" id="contact" style="margin-top: 16px;" v-if="!model.flagHiddenSensitiveInfo && model.contactApiRouter!==null">
|
|
65
80
|
<ct-contact :key="refreshKey" :apiRouter="model.contactApiRouter" :api="model.contactApiRouter.action" :apiParam="model.contactApiRouter.getSearchPara()"></ct-contact>
|
|
66
81
|
</div>
|
|
67
|
-
<div ref="routers" v-if="!model.flagHiddenSensitiveInfo && model.actionRoutersSimple!==null" style="margin-top: 16px;display: flex;">
|
|
82
|
+
<div ref="routers" v-if="!model.flagAppMode && !model.flagHiddenSensitiveInfo && model.actionRoutersSimple!==null" style="margin-top: 16px;display: flex;">
|
|
68
83
|
<component v-for="(router, index) in model.actionRoutersSimple.slice(0,showIndex>0?showIndex:model.actionRoutersSimple.length)" :key="index"
|
|
69
84
|
:ref="'routers'+index"
|
|
70
85
|
v-if="!router.rightField || (model.fields1Dic[router.rightField] && model.fields1Dic[router.rightField].value == 1)"
|
|
@@ -96,7 +111,7 @@
|
|
|
96
111
|
<ct-searchlist ref="searchlist" v-if="model.searchConditionApiTags1" :key="'list'+listKey.toString()+refershKey"
|
|
97
112
|
:apiParam="model.paramDataTags1" :flagFocus="false"
|
|
98
113
|
:searchConditionApi="model.searchConditionApiTags1"
|
|
99
|
-
:searchDataApi="model.searchDataApiTags1"></ct-searchlist>
|
|
114
|
+
:searchDataApi="model.searchDataApiTags1" :flagAppMode="model.flagAppMode"></ct-searchlist>
|
|
100
115
|
</div>
|
|
101
116
|
</div>
|
|
102
117
|
</div>
|
|
@@ -120,6 +135,7 @@
|
|
|
120
135
|
apiParam: Object,
|
|
121
136
|
selectIndex:Number,
|
|
122
137
|
rowCount:Number,
|
|
138
|
+
drowerClose:String,
|
|
123
139
|
},
|
|
124
140
|
computed: {
|
|
125
141
|
},
|
|
@@ -136,8 +152,17 @@
|
|
|
136
152
|
trigger: 'hover',//触发方式,传值可查看Popper UI组件trigger属性
|
|
137
153
|
placement: 'left-start',//方向,传值可查看Popper UI组件placement属性
|
|
138
154
|
},
|
|
155
|
+
drawer: false,
|
|
156
|
+
teletext:true
|
|
139
157
|
}
|
|
140
158
|
},
|
|
159
|
+
watch: {
|
|
160
|
+
drowerClose(newValue) {
|
|
161
|
+
if (newValue=='open') {
|
|
162
|
+
this.handleClose();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
141
166
|
mounted() {
|
|
142
167
|
var self = this;
|
|
143
168
|
this.$nextTick(function () {
|
|
@@ -161,7 +186,7 @@
|
|
|
161
186
|
load(data) {
|
|
162
187
|
var self = this;
|
|
163
188
|
this.refershKey = this.refershKey + 1;
|
|
164
|
-
this.model = data;
|
|
189
|
+
this.model = data;
|
|
165
190
|
this.model.$vue = self;
|
|
166
191
|
this.loadFields();
|
|
167
192
|
if(this.model.tags2 && this.model.tags2[0]){
|
|
@@ -298,6 +323,7 @@
|
|
|
298
323
|
}
|
|
299
324
|
|
|
300
325
|
var self = this;
|
|
326
|
+
self.handleClose();
|
|
301
327
|
var callBack=null;
|
|
302
328
|
let submitData={};
|
|
303
329
|
var router = this.model.actionRouters.find((v) => {
|
|
@@ -508,11 +534,21 @@
|
|
|
508
534
|
}
|
|
509
535
|
else{
|
|
510
536
|
field.doAction(submitData, (data) => {
|
|
511
|
-
self.model.doAction(data,field);
|
|
512
537
|
if(callBack){
|
|
513
538
|
callBack();
|
|
514
539
|
}
|
|
515
|
-
|
|
540
|
+
if (field.isCallTel) {
|
|
541
|
+
self.model.doAction(data, field);
|
|
542
|
+
if(self.model.currentCallTel){
|
|
543
|
+
self.$refs[self.model.currentCallTel][0].closeCallTel()
|
|
544
|
+
}
|
|
545
|
+
self.model.currentCallTel='router'+field.id+field.rowindex;
|
|
546
|
+
self.$refs['router'+field.id+field.rowindex][0].callTelClick(data);
|
|
547
|
+
}
|
|
548
|
+
else{
|
|
549
|
+
self.model.doAction(data,field);
|
|
550
|
+
self.$emit('simpleRouterclickHandler',field,data);
|
|
551
|
+
}
|
|
516
552
|
})
|
|
517
553
|
}
|
|
518
554
|
}
|
|
@@ -545,6 +581,10 @@
|
|
|
545
581
|
clickAcion(field,submitData);
|
|
546
582
|
}
|
|
547
583
|
},
|
|
584
|
+
handleClose(){
|
|
585
|
+
let self = this;
|
|
586
|
+
self.drawer=false;
|
|
587
|
+
},
|
|
548
588
|
closeSideHandler() {
|
|
549
589
|
this.$emit('closeSideHandler');
|
|
550
590
|
},
|
|
@@ -591,11 +631,52 @@
|
|
|
591
631
|
display: table-caption;
|
|
592
632
|
cursor: pointer;
|
|
593
633
|
}
|
|
594
|
-
|
|
595
634
|
</style>
|
|
596
635
|
<style>
|
|
597
|
-
|
|
598
|
-
|
|
636
|
+
.drawerMore{
|
|
637
|
+
width: 410px;
|
|
638
|
+
left: auto;
|
|
639
|
+
top:18px;
|
|
640
|
+
}
|
|
641
|
+
.v-modal {
|
|
642
|
+
position: relative;
|
|
643
|
+
}
|
|
644
|
+
.drawerMore .el-drawer__container{
|
|
645
|
+
top: 70px;
|
|
646
|
+
}
|
|
647
|
+
.drawerMore .el-drawer.ttb {
|
|
648
|
+
height: auto !important;
|
|
649
|
+
background:rgba(47, 47, 47, 0.8);
|
|
650
|
+
padding-bottom: 10px;
|
|
651
|
+
}
|
|
652
|
+
.drawerMore .el-drawer__header{
|
|
653
|
+
margin-bottom: 5px;
|
|
654
|
+
color: #fff;
|
|
655
|
+
padding-top: 10px;
|
|
656
|
+
padding-left: 10px;
|
|
657
|
+
font-size: 14px;
|
|
658
|
+
}
|
|
659
|
+
.drawerMore .el-drawer__body{
|
|
660
|
+
padding-left: 3px;
|
|
661
|
+
}
|
|
662
|
+
.drawerMore .el-drawer__header i.el-dialog__close.el-icon.el-icon-close{
|
|
663
|
+
color: #fff;
|
|
664
|
+
}
|
|
665
|
+
.drawerButton{
|
|
666
|
+
margin-bottom: 10px !important;
|
|
667
|
+
margin-left: 6px !important;
|
|
668
|
+
background-color: #181818 !important;
|
|
669
|
+
border-color: #181818 !important;
|
|
670
|
+
width: 94px !important;
|
|
671
|
+
height: 56px !important;
|
|
672
|
+
}
|
|
673
|
+
.drawerButton.el-button--primary:hover{
|
|
674
|
+
background: #2b2b2b;
|
|
675
|
+
border-color: #2b2b2b;
|
|
676
|
+
color: #FFF;
|
|
677
|
+
}
|
|
678
|
+
.drawerMore .el-icon-close:before {
|
|
679
|
+
content: "\E6DB";
|
|
599
680
|
}
|
|
600
681
|
</style>
|
|
601
682
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@showTitle="showTitleScreenHandler"></ct-searchscreen>
|
|
14
14
|
|
|
15
15
|
<ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" :isIframe="isIframe" :documentHeight="documentHeight"
|
|
16
|
-
@loaded="tableLoaded" :documentWidth="documentWidth" :flagPopupSearchlist="flagPopupSearchlist" :screenTop="screenTop"
|
|
16
|
+
@loaded="tableLoaded" :documentWidth="documentWidth" :flagPopupSearchlist="flagPopupSearchlist" :screenTop="screenTop" :flagAppMode="flagAppMode"
|
|
17
17
|
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate"
|
|
18
18
|
@rowClickHandle="rowClickHandle" @scrollHandle="scrollHandle" @refreshRowHandle="refreshRowHandle" @doClosePopoverHandle="doClosePopoverHandle"
|
|
19
19
|
@showTitle="showTitleHandler" @popupClickHandler="popupClickHandler"></ct-searchtable>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
:style="{'height': pageHeight? pageHeight:'100%','width':sideBarWidth+'px',right:sideBarRight+'px'}"
|
|
23
23
|
class="sidebar">
|
|
24
24
|
<ct-Detail ref="detail" :api="sideBarApi" :apiParam="sideBarApiParam" :pageType="sideBarPageType"
|
|
25
|
-
:selectIndex="selectIndex" :rowCount="rowCount" :key="detailKey"
|
|
25
|
+
:selectIndex="selectIndex" :rowCount="rowCount" :key="detailKey" :drowerClose="drowerClose"
|
|
26
26
|
@clickNextHandler="clickNextHandler" @clickPrevHandler="clickPrevHandler" @simpleRouterclickHandler="simpleRouterclickHandler"
|
|
27
27
|
@closeSideHandler="closeSideHandler"></ct-Detail>
|
|
28
28
|
<ct-SearchSideMenu ref="sideMenu" :sideBarMenuRight="sideBarMenuRight" :sideBarStatus="sideBarStatus"
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
searchDataApi: String,
|
|
56
56
|
searchStatsApi: String,
|
|
57
57
|
pageHeight: String,
|
|
58
|
+
flagAppMode:Boolean,
|
|
58
59
|
apiParam: {
|
|
59
60
|
type: Object,
|
|
60
61
|
default: () => { }
|
|
@@ -76,6 +77,11 @@
|
|
|
76
77
|
default:false,
|
|
77
78
|
},
|
|
78
79
|
},
|
|
80
|
+
data() {
|
|
81
|
+
return {
|
|
82
|
+
drowerClose:'',
|
|
83
|
+
}
|
|
84
|
+
},
|
|
79
85
|
created() {
|
|
80
86
|
this.model = this.vmodel;
|
|
81
87
|
this.screenPara=this.apiParam;
|
|
@@ -279,6 +285,7 @@
|
|
|
279
285
|
this.rowClickHandle();
|
|
280
286
|
},
|
|
281
287
|
sideMenuClickHandler(v) {
|
|
288
|
+
this.drowerClose = v;
|
|
282
289
|
let popoverCallTels=document.getElementsByClassName('el-popoverCallTel');
|
|
283
290
|
if(v=='open'){
|
|
284
291
|
this.sideBarStatus ='close';
|
|
@@ -214,6 +214,7 @@ export default {
|
|
|
214
214
|
vmodel: Object,
|
|
215
215
|
api: String,
|
|
216
216
|
searchStatsApi: String,
|
|
217
|
+
flagAppMode:Boolean,
|
|
217
218
|
flagFocus: {
|
|
218
219
|
Boolean,
|
|
219
220
|
default: true,
|
|
@@ -699,6 +700,9 @@ export default {
|
|
|
699
700
|
}
|
|
700
701
|
var h8 = this.$refs.tableStats ? (this.$refs.tableStats.$el.offsetHeight + 7) | 0 : 0;
|
|
701
702
|
let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - h7 - h8 - 290 -7;
|
|
703
|
+
if(this.flagAppMode){
|
|
704
|
+
tableHeight = tableHeight + 40;
|
|
705
|
+
}
|
|
702
706
|
if (h2 == 0) {
|
|
703
707
|
tableHeight = tableHeight + 15;
|
|
704
708
|
}
|
package/src/main.js
CHANGED
|
@@ -18,8 +18,8 @@ Vue.use(centaline, {
|
|
|
18
18
|
// baseUrl: "http://10.88.22.42:9999/v1/form/router",
|
|
19
19
|
// baseUrl: "http://10.88.22.69:8080/api/",
|
|
20
20
|
// baseUrl: "http://10.88.22.40:8080/api/",
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
22
|
+
flagRouterSelf: true,
|
|
23
23
|
zindex: 999,
|
|
24
24
|
showRequestSuccessMessage: true,
|
|
25
25
|
showRequestErrorMessage: true,
|
|
@@ -47,8 +47,8 @@ Vue.use(centaline, {
|
|
|
47
47
|
// 获取请求头
|
|
48
48
|
getRequestHeaders: function () {
|
|
49
49
|
return {
|
|
50
|
-
oldToken: '
|
|
51
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
50
|
+
oldToken: '038e4dcf-1976-4fca-a66a-93611ea1b18c',
|
|
51
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEzjsOwjAQRdG9uM5I9sx4PnROTBoWESUkSFAhPhIIsXeCWATtKe57r3C9T2ETHFWMmaDbtgRci0IrKUInXnKxgtLmQfpcEVWBtDfoUiRALBWiVe2pkovGobIXw7W00lrCtAVrqQBmNqY-s2sOTVge57BJYtFyIvcmHMfbD1TYv3C_Lpfd8vzHudPtuM7ukTPZPIPgPAEfhGCc1SGOo0Y6LFOKU3h_AAAA__8.4YlxIx5iTyUWZz6HVudB_Leg7SNdXJlnOAySiulvnOg',
|
|
52
52
|
|
|
53
53
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
54
54
|
EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
|