centaline-data-driven 1.2.44 → 1.2.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/src/SearchList.vue +1 -1
- package/src/centaline/css/common.css +3 -0
- package/src/centaline/css/max.css +1 -1
- package/src/centaline/dynamicIti/src/dynamicIti.vue +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +66 -14
- package/src/centaline/dynamicSearchList/src/dynamicSearchSideMenu.vue +59 -0
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +2 -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
package/src/SearchList.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div id="app-search" style="height:100%;position: fixed;">
|
|
2
|
+
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
3
|
<!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/transaction-workflow/getLayoutOfSearch'" :searchDataApi="'/api/third-dept-tran/transaction-workflow/list'"></ct-searchlist> -->
|
|
4
4
|
|
|
5
5
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
:class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
|
|
28
28
|
</div>
|
|
29
29
|
<span class="el-input__suffix el-input--mini" v-if="showClear.input2">
|
|
30
|
-
<span class="el-input__suffix-inner ct-close"
|
|
30
|
+
<span class="el-input__suffix-inner ct-close">
|
|
31
31
|
<i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event,'input2')"></i>
|
|
32
32
|
</span>
|
|
33
33
|
</span>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div style="width: 100%;height: 100%;
|
|
3
|
-
<div class="ct-search-list" :style="
|
|
2
|
+
<div ref="main" style="width: 100%;height: 100%;display: flex;" :class="{'domDisabled':pageDisabled}">
|
|
3
|
+
<div class="ct-search-list" :style="{'height': pageHeight? pageHeight:'100%','width':searchWidth?searchWidth+'px':'100%'}" >
|
|
4
4
|
<div slot="header" class="clearfix" v-if="typeof title !== 'undefined' && showTitle">
|
|
5
5
|
<span style="font-weight:bold">{{title}}</span>
|
|
6
6
|
</div>
|
|
@@ -12,12 +12,16 @@
|
|
|
12
12
|
:categoryLoaded="loaded.categoryLoaded" @search="search()"
|
|
13
13
|
@showTitle="showTitleScreenHandler"></ct-searchscreen>
|
|
14
14
|
|
|
15
|
-
<ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from"
|
|
15
|
+
<ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" @loaded="tableLoaded"
|
|
16
16
|
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate()"
|
|
17
17
|
@showTitle="showTitleHandler"></ct-searchtable>
|
|
18
18
|
</div>
|
|
19
|
-
<div v-if="flagSideBar"
|
|
20
|
-
|
|
19
|
+
<div v-if="flagSideBar"
|
|
20
|
+
:style="{'height': pageHeight? pageHeight:'100%','width':sideBarWidth+'px',right:this.sideBarRight+'px'}"
|
|
21
|
+
class="sidebar">
|
|
22
|
+
<div>1111111111111111111111111111111111</div>
|
|
23
|
+
<ct-SearchSideMenu :sideBarMenuRight="sideBarMenuRight" :sideBarSide="sideBarSide"
|
|
24
|
+
@sideMenuClickHandler="sideMenuClickHandler"></ct-SearchSideMenu>
|
|
21
25
|
</div>
|
|
22
26
|
</div>
|
|
23
27
|
</template>
|
|
@@ -26,6 +30,7 @@
|
|
|
26
30
|
import dynamicSearchCategory from './dynamicSearchCategory.vue';
|
|
27
31
|
import dynamicSearchScreen from './dynamicSearchScreen.vue';
|
|
28
32
|
import dynamicSearchTable from './dynamicSearchTable.vue';
|
|
33
|
+
import dynamicSearchSideMenu from './dynamicSearchSideMenu.vue';
|
|
29
34
|
import progress from '../../progress/src/progress.vue';
|
|
30
35
|
export default {
|
|
31
36
|
name: 'ct-searchlist',
|
|
@@ -34,7 +39,8 @@
|
|
|
34
39
|
'ct-searchscreen': dynamicSearchScreen,
|
|
35
40
|
'ct-searchtable': dynamicSearchTable,
|
|
36
41
|
'ct-progress': progress,
|
|
37
|
-
'ct-searchcategory': dynamicSearchCategory
|
|
42
|
+
'ct-searchcategory': dynamicSearchCategory,
|
|
43
|
+
'ct-SearchSideMenu': dynamicSearchSideMenu
|
|
38
44
|
},
|
|
39
45
|
props: {
|
|
40
46
|
vmodel: Object,
|
|
@@ -60,12 +66,6 @@
|
|
|
60
66
|
}
|
|
61
67
|
},
|
|
62
68
|
computed: {
|
|
63
|
-
searchListStyle: function() {
|
|
64
|
-
if (this.pageHeight) {
|
|
65
|
-
return { 'height': this.pageHeight };
|
|
66
|
-
}
|
|
67
|
-
return {};
|
|
68
|
-
},
|
|
69
69
|
},
|
|
70
70
|
data() {
|
|
71
71
|
return {
|
|
@@ -82,9 +82,14 @@
|
|
|
82
82
|
reloadKeyTable:'t0',
|
|
83
83
|
isReload:false,
|
|
84
84
|
pageDisabled:false,
|
|
85
|
+
|
|
85
86
|
flagSideBar:false,
|
|
86
87
|
flagDefaultDisplaySideBar:false,
|
|
87
|
-
sideBarWidth:
|
|
88
|
+
sideBarWidth:0,
|
|
89
|
+
searchWidth:0,
|
|
90
|
+
sideBarRight:0,
|
|
91
|
+
sideBarMenuRight:0,
|
|
92
|
+
sideBarSide:'',
|
|
88
93
|
}
|
|
89
94
|
},
|
|
90
95
|
methods: {
|
|
@@ -116,7 +121,24 @@
|
|
|
116
121
|
|
|
117
122
|
this.$refs.table.loadStats();
|
|
118
123
|
},
|
|
119
|
-
|
|
124
|
+
tableLoaded(table) {
|
|
125
|
+
if(table.model.listData.length>0){
|
|
126
|
+
this.flagSideBar=table.model.flagSideBar;
|
|
127
|
+
this.flagDefaultDisplaySideBar=table.model.flagDefaultDisplaySideBar;
|
|
128
|
+
this.sideBarWidth=table.model.sideBarWidth;
|
|
129
|
+
if(this.flagSideBar){
|
|
130
|
+
this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
|
|
131
|
+
this.sideBarMenuRight=this.sideBarWidth-2;
|
|
132
|
+
}
|
|
133
|
+
if(this.flagDefaultDisplaySideBar){
|
|
134
|
+
this.sideBarSide='right';
|
|
135
|
+
}
|
|
136
|
+
else{
|
|
137
|
+
this.sideBarSide='left';
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
searchComplate(table) {
|
|
120
142
|
this.pageDisabled=false;
|
|
121
143
|
},
|
|
122
144
|
toolbarClickHandler(field, submitData) {
|
|
@@ -145,6 +167,36 @@
|
|
|
145
167
|
this.showTitle=this.$refs.screen.model.flagShowTitle;
|
|
146
168
|
}
|
|
147
169
|
},
|
|
170
|
+
sideMenuClickHandler(v) {
|
|
171
|
+
if(v=='right'){
|
|
172
|
+
this.sideBarSide ='left';
|
|
173
|
+
this.sideBarRight=-this.sideBarWidth;
|
|
174
|
+
this.searchWidth=0;
|
|
175
|
+
this.sideBarMenuRight=0;
|
|
176
|
+
}
|
|
177
|
+
else if(v=='left'){
|
|
178
|
+
this.sideBarSide ='right';
|
|
179
|
+
this.sideBarRight=0;
|
|
180
|
+
this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
|
|
181
|
+
this.sideBarMenuRight=this.sideBarWidth-2;
|
|
182
|
+
}
|
|
183
|
+
},
|
|
148
184
|
}
|
|
149
185
|
}
|
|
150
186
|
</script>
|
|
187
|
+
<style lang="scss" scoped>
|
|
188
|
+
.sidebar {
|
|
189
|
+
z-index: 1000;
|
|
190
|
+
top: -1px;
|
|
191
|
+
bottom: -1px;
|
|
192
|
+
padding: 0px;
|
|
193
|
+
width: auto;
|
|
194
|
+
background-color: #fff;
|
|
195
|
+
-webkit-background-clip: padding-box;
|
|
196
|
+
background-clip: padding-box;
|
|
197
|
+
border: 1px solid #ccc;
|
|
198
|
+
border: 1px solid rgba(0, 0, 0, .15);
|
|
199
|
+
-webkit-box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
|
|
200
|
+
box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
|
|
201
|
+
}
|
|
202
|
+
</style>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="searchSideMenu toggler" :style="{right:sideBarMenuRight+'px'}" @click="clickHandler()" >
|
|
3
|
+
<span class="el-icon-arrow-right" v-show="side=='right'"></span>
|
|
4
|
+
<span class="el-icon-arrow-left" v-show="side=='left'"></span>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: 'ct-SearchSideMenu',
|
|
10
|
+
props: {
|
|
11
|
+
sideBarMenuRight: Number,
|
|
12
|
+
sideBarSide: String,
|
|
13
|
+
},
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
side:'right',
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
created() {
|
|
20
|
+
if(this.sideBarSide){
|
|
21
|
+
this.side = this.sideBarSide;
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
clickHandler() {
|
|
26
|
+
let v=this.side;
|
|
27
|
+
if(v=='right')this.side ='left';
|
|
28
|
+
if(v=='left')this.side ='right';
|
|
29
|
+
this.$emit('sideMenuClickHandler',v);
|
|
30
|
+
},
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
</script>
|
|
34
|
+
<style lang="scss" scoped>
|
|
35
|
+
.toggler {
|
|
36
|
+
-webkit-background-clip: padding-box;
|
|
37
|
+
background-clip: padding-box;
|
|
38
|
+
border: 1px solid rgba(0, 0, 0, .15);
|
|
39
|
+
width: 15px;
|
|
40
|
+
height: 48px;
|
|
41
|
+
position: absolute;
|
|
42
|
+
top: 45%;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
background-color: #fff;
|
|
45
|
+
}
|
|
46
|
+
.toggler >span{
|
|
47
|
+
margin-top: 15px;
|
|
48
|
+
}
|
|
49
|
+
.sidebar > .toggler {
|
|
50
|
+
-webkit-border-top-left-radius: 4px;
|
|
51
|
+
-webkit-border-bottom-left-radius: 4px;
|
|
52
|
+
-moz-border-radius-topleft: 4px;
|
|
53
|
+
-moz-border-radius-bottomleft: 4px;
|
|
54
|
+
border-top-left-radius: 4px;
|
|
55
|
+
border-bottom-left-radius: 4px;
|
|
56
|
+
-webkit-box-shadow: -1px 0px 8px rgb(0 0 0 / 18%);
|
|
57
|
+
box-shadow: -1px 0px 8px rgb(0 0 0 / 18%);
|
|
58
|
+
}
|
|
59
|
+
</style>
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
this.model.scripts.formData = this.model.formData;
|
|
236
236
|
this.model.scripts.formData.formTable = this.model;
|
|
237
237
|
|
|
238
|
-
self.$emit('loaded');
|
|
238
|
+
self.$emit('loaded',self);
|
|
239
239
|
self.$emit('showTitle');
|
|
240
240
|
if (this.tempSearchModel !== null) {
|
|
241
241
|
self.model.searchModel = this.tempSearchModel;
|
|
@@ -375,8 +375,7 @@
|
|
|
375
375
|
self.tableLoading = false;
|
|
376
376
|
self.rowColorChange();
|
|
377
377
|
}
|
|
378
|
-
self.$emit('searchComplate');
|
|
379
|
-
|
|
378
|
+
self.$emit('searchComplate',self);
|
|
380
379
|
}
|
|
381
380
|
self.tableLoading = true;
|
|
382
381
|
|