centaline-data-driven 1.2.44 → 1.2.47

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.2.44",
3
+ "version": "1.2.47",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -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> -->
@@ -324,7 +324,7 @@ html {
324
324
  height:initial;
325
325
  }
326
326
  .st-serach-screen .el-input__icon {
327
- line-height:initial!important;
327
+ line-height:26px;
328
328
  }
329
329
  .ct-checkbox .cover-list-item-span{
330
330
  line-height: initial!important;
@@ -798,3 +798,6 @@ html {
798
798
  .el-radio__input.is-checked + .el-radio__label {
799
799
  color: #409eff;
800
800
  }
801
+ .el-input-group{
802
+ line-height: 26px;
803
+ }
@@ -208,7 +208,7 @@
208
208
  }
209
209
  .ct-Seg.ct-Seg-mini .ct-radios, .ct-Seg.ct-Seg-mini .ct-radios .el-radio__label {
210
210
  min-height: initial;
211
- line-height: initial;
211
+ line-height: 26px;
212
212
  }
213
213
  .el-input-group__append, .el-input-group__prepend {
214
214
  color: #666;
@@ -110,13 +110,13 @@
110
110
  <img src="../../../assets/jsq.png" class="img-jsq" alt="">
111
111
  </div>
112
112
  <div class="row-i"><span>{{model.fields1Dic.PriceUnit.label}}</span><span class="base-clolr">{{model.fields1Dic.PriceUnit.value}}</span><span class="base-clolr">{{model.fields1Dic.PriceUnit.unitName}}</span></div>
113
- <div class="row-i"><span>{{model.fields1Dic.PriceLine.label}}</span><div>{{model.fields1Dic.PriceLine.value}}{{model.fields1Dic.PriceLine.unitName}}</div></div></div>
113
+ <div v-if="model.fields1Dic.PriceLine" class="row-i"><span>{{model.fields1Dic.PriceLine.label}}</span><div>{{model.fields1Dic.PriceLine.value}}{{model.fields1Dic.PriceLine.unitName}}</div></div></div>
114
114
  <div class="info-row">
115
- <div class="row-i">
115
+ <div v-if="model.fields1Dic.PriceLine" class="row-i">
116
116
  <span >{{model.fields1Dic.MarketRateOfReturn.label}}</span><span>{{model.fields1Dic.MarketRateOfReturn.value}} </span><span>{{model.fields1Dic.MarketRateOfReturn.unitName}}</span>
117
117
  </div>
118
- <div class="row-i"><span>{{model.fields1Dic.EstimatePriceRent.label}}</span><div>{{model.fields1Dic.EstimatePriceRent.value}}<span>{{model.fields1Dic.EstimatePriceRent.unitName}}</span></div></div>
119
- <div class="row-i"><span>{{model.fields1Dic.EstimatePriceRentUnit.label}}</span><span>{{model.fields1Dic.EstimatePriceRentUnit.value}}</span><span>{{model.fields1Dic.EstimatePriceRentUnit.unitName}}</span></div>
118
+ <div v-if="model.fields1Dic.EstimatePriceRent" class="row-i"><span>{{model.fields1Dic.EstimatePriceRent.label}}</span><div>{{model.fields1Dic.EstimatePriceRent.value}}<span>{{model.fields1Dic.EstimatePriceRent.unitName}}</span></div></div>
119
+ <div v-if="model.fields1Dic.EstimatePriceRentUnit" class="row-i"><span>{{model.fields1Dic.EstimatePriceRentUnit.label}}</span><span>{{model.fields1Dic.EstimatePriceRentUnit.value}}</span><span>{{model.fields1Dic.EstimatePriceRentUnit.unitName}}</span></div>
120
120
  </div>
121
121
 
122
122
  <div class="info-mid">
@@ -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" style="display: flex;">
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%;position: inherit;">
3
- <div class="ct-search-list" :style="searchListStyle" :class="{'domDisabled':pageDisabled}">
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 && flagSideBarOfData"
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" :sideBarStatus="sideBarStatus"
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,15 @@
82
82
  reloadKeyTable:'t0',
83
83
  isReload:false,
84
84
  pageDisabled:false,
85
+
85
86
  flagSideBar:false,
87
+ flagSideBarOfData:true,
86
88
  flagDefaultDisplaySideBar:false,
87
- sideBarWidth:360,
89
+ sideBarWidth:0,
90
+ searchWidth:0,
91
+ sideBarRight:0,
92
+ sideBarMenuRight:0,
93
+ sideBarStatus:'',
88
94
  }
89
95
  },
90
96
  methods: {
@@ -108,7 +114,7 @@
108
114
  search(btn) {
109
115
  if (this.$refs.table.model) {
110
116
  this.pageDisabled=true;
111
- this.$refs.table.getPage(1);
117
+ this.$refs.table.getPage(1);
112
118
  }
113
119
  else {
114
120
  this.$refs.table.searchComplate(this.$refs.screen.model);
@@ -118,6 +124,16 @@
118
124
  },
119
125
  searchComplate() {
120
126
  this.pageDisabled=false;
127
+ if(this.$refs.table.model.listData.length>0){
128
+ if(!this.flagSideBarOfData){
129
+ this.flagSideBarOfData=true;
130
+ this.sideMenuClickHandler(this.sideBarStatus =='close'?'open':'close');
131
+ }
132
+ }
133
+ else{
134
+ this.flagSideBarOfData=false;
135
+ this.searchWidth=0;
136
+ }
121
137
  },
122
138
  toolbarClickHandler(field, submitData) {
123
139
  if (field.isExport) {
@@ -145,6 +161,51 @@
145
161
  this.showTitle=this.$refs.screen.model.flagShowTitle;
146
162
  }
147
163
  },
164
+ tableLoaded() {
165
+ if(this.$refs.table.model.listData.length>0){
166
+ this.flagSideBar=this.$refs.table.model.flagSideBar;
167
+ this.flagDefaultDisplaySideBar=this.$refs.table.model.flagDefaultDisplaySideBar;
168
+ this.sideBarWidth=this.$refs.table.model.sideBarWidth;
169
+ if(this.flagSideBar){
170
+ if(this.flagDefaultDisplaySideBar){
171
+ this.sideMenuClickHandler('close');
172
+ }
173
+ else{
174
+ this.sideMenuClickHandler('open');
175
+ }
176
+ }
177
+ }
178
+ },
179
+ sideMenuClickHandler(v) {
180
+ if(v=='open'){
181
+ this.sideBarStatus ='close';
182
+ this.sideBarRight=-this.sideBarWidth;
183
+ this.searchWidth=0;
184
+ this.sideBarMenuRight=0;
185
+ }
186
+ else if(v=='close'){
187
+ this.sideBarStatus ='open';
188
+ this.sideBarRight=0;
189
+ this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
190
+ this.sideBarMenuRight=this.sideBarWidth-2;
191
+ }
192
+ },
148
193
  }
149
194
  }
150
195
  </script>
196
+ <style lang="scss" scoped>
197
+ .sidebar {
198
+ z-index: 1000;
199
+ top: -1px;
200
+ bottom: -1px;
201
+ padding: 0px;
202
+ width: auto;
203
+ background-color: #fff;
204
+ -webkit-background-clip: padding-box;
205
+ background-clip: padding-box;
206
+ border: 1px solid #ccc;
207
+ border: 1px solid rgba(0, 0, 0, .15);
208
+ -webkit-box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
209
+ box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
210
+ }
211
+ </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=='open'"></span>
4
+ <span class="el-icon-arrow-left" v-show="side=='close'"></span>
5
+ </div>
6
+ </template>
7
+ <script>
8
+ export default {
9
+ name: 'ct-SearchSideMenu',
10
+ props: {
11
+ sideBarMenuRight: Number,
12
+ sideBarStatus: String,
13
+ },
14
+ data() {
15
+ return {
16
+ side:'open',
17
+ }
18
+ },
19
+ created() {
20
+ if(this.sideBarStatus){
21
+ this.side = this.sideBarStatus;
22
+ }
23
+ },
24
+ methods: {
25
+ clickHandler() {
26
+ let v=this.side;
27
+ if(v=='close')this.side ='open';
28
+ else if(v=='open')this.side ='close';
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>
@@ -376,7 +376,6 @@
376
376
  self.rowColorChange();
377
377
  }
378
378
  self.$emit('searchComplate');
379
-
380
379
  }
381
380
  self.tableLoading = true;
382
381