centaline-data-driven 1.2.43 → 1.2.46

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.43",
3
+ "version": "1.2.46",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -1,9 +1,11 @@
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> -->
6
- <!-- <ct-searchlist :searchConditionApi="'/PropertyPublishLogList/getLayoutOfSearch'" :searchDataApi="'/PropertyPublishLogList/getListOfSearchModel'"></ct-searchlist> -->
6
+
7
+ <!-- <ct-searchlist :searchConditionApi="'/cache/getLayoutOfSearchForCache'"
8
+ :searchDataApi="'/cache/getListOfSearchModelForCache'"></ct-searchlist> -->
7
9
 
8
10
  <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
9
11
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
@@ -205,7 +205,6 @@ const common = {
205
205
  * @desc 打开弹窗
206
206
  */
207
207
  openDialog(vmodel) {
208
-
209
208
  //this.dialogList.List.push(vmodel);
210
209
  this.dialogList.addDialog(vmodel);
211
210
  },
@@ -216,7 +215,6 @@ const common = {
216
215
  * @desc 关闭指定弹窗
217
216
  */
218
217
  closeDialog(vmodel) {
219
-
220
218
  if (vmodel) {
221
219
  if (vmodel.name === 'ct-comfirm' || vmodel.$options.name === 'ctDialog' || vmodel.$options.name === 'ct-dialog') {
222
220
  //vmodel.dialogTableVisible = false;
@@ -95,6 +95,9 @@ html {
95
95
  .ct-close{
96
96
  cursor: pointer;
97
97
  }
98
+ .cursor{
99
+ cursor: pointer !important;
100
+ }
98
101
  .ct-so .ct-close > .el-select__caret.is-show-close:hover, .ct-tags .ct-close > .el-select__caret.is-show-close:hover {
99
102
  color: #909399;
100
103
  }
@@ -321,7 +324,7 @@ html {
321
324
  height:initial;
322
325
  }
323
326
  .st-serach-screen .el-input__icon {
324
- line-height:initial!important;
327
+ line-height:26px;
325
328
  }
326
329
  .ct-checkbox .cover-list-item-span{
327
330
  line-height: initial!important;
@@ -795,3 +798,6 @@ html {
795
798
  .el-radio__input.is-checked + .el-radio__label {
796
799
  color: #409eff;
797
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;
@@ -45,7 +45,7 @@
45
45
  document.addEventListener("touchmove", mo, false);//禁止页面滑动
46
46
  }
47
47
  },
48
- deleteDialog(model) {
48
+ deleteDialog(model) {
49
49
  model.dialogTableVisible = false;
50
50
  //改成删除
51
51
  let index = this.List.findIndex(v => {
@@ -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,19 +1,28 @@
1
1
  <template>
2
- <div class="ct-search-list" :style="searchListStyle" :class="{'domDisabled':pageDisabled}">
3
- <div slot="header" class="clearfix" v-if="typeof title !== 'undefined' && showTitle">
4
- <span style="font-weight:bold">{{title}}</span>
5
- </div>
6
- <ct-searchcategory v-if="searchCategoryApi" ref="category" :api="searchCategoryApi" @loadedCategory="categoryLoaded"
7
- @changeCategory="categorychange" ></ct-searchcategory>
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
+ <div slot="header" class="clearfix" v-if="typeof title !== 'undefined' && showTitle">
5
+ <span style="font-weight:bold">{{title}}</span>
6
+ </div>
7
+ <ct-searchcategory v-if="searchCategoryApi" ref="category" :api="searchCategoryApi" @loadedCategory="categoryLoaded"
8
+ @changeCategory="categorychange" ></ct-searchcategory>
8
9
 
9
- <ct-searchscreen ref="screen" :api="searchConditionApi" :key="reloadKeyScreen"
10
- @loaded="screenLoaded" :screenPara="screenPara"
11
- :categoryLoaded="loaded.categoryLoaded" @search="search()"
12
- @showTitle="showTitleScreenHandler"></ct-searchscreen>
10
+ <ct-searchscreen ref="screen" :api="searchConditionApi" :key="reloadKeyScreen"
11
+ @loaded="screenLoaded" :screenPara="screenPara"
12
+ :categoryLoaded="loaded.categoryLoaded" @search="search()"
13
+ @showTitle="showTitleScreenHandler"></ct-searchscreen>
13
14
 
14
- <ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from"
15
- @toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate()"
16
- @showTitle="showTitleHandler"></ct-searchtable>
15
+ <ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" @loaded="tableLoaded"
16
+ @toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate()"
17
+ @showTitle="showTitleHandler"></ct-searchtable>
18
+ </div>
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>
25
+ </div>
17
26
  </div>
18
27
  </template>
19
28
  <script>
@@ -21,6 +30,7 @@
21
30
  import dynamicSearchCategory from './dynamicSearchCategory.vue';
22
31
  import dynamicSearchScreen from './dynamicSearchScreen.vue';
23
32
  import dynamicSearchTable from './dynamicSearchTable.vue';
33
+ import dynamicSearchSideMenu from './dynamicSearchSideMenu.vue';
24
34
  import progress from '../../progress/src/progress.vue';
25
35
  export default {
26
36
  name: 'ct-searchlist',
@@ -29,7 +39,8 @@
29
39
  'ct-searchscreen': dynamicSearchScreen,
30
40
  'ct-searchtable': dynamicSearchTable,
31
41
  'ct-progress': progress,
32
- 'ct-searchcategory': dynamicSearchCategory
42
+ 'ct-searchcategory': dynamicSearchCategory,
43
+ 'ct-SearchSideMenu': dynamicSearchSideMenu
33
44
  },
34
45
  props: {
35
46
  vmodel: Object,
@@ -55,12 +66,6 @@
55
66
  }
56
67
  },
57
68
  computed: {
58
- searchListStyle: function() {
59
- if (this.pageHeight) {
60
- return { 'height': this.pageHeight };
61
- }
62
- return {};
63
- },
64
69
  },
65
70
  data() {
66
71
  return {
@@ -77,6 +82,14 @@
77
82
  reloadKeyTable:'t0',
78
83
  isReload:false,
79
84
  pageDisabled:false,
85
+
86
+ flagSideBar:false,
87
+ flagDefaultDisplaySideBar:false,
88
+ sideBarWidth:0,
89
+ searchWidth:0,
90
+ sideBarRight:0,
91
+ sideBarMenuRight:0,
92
+ sideBarSide:'',
80
93
  }
81
94
  },
82
95
  methods: {
@@ -98,6 +111,7 @@
98
111
  this.reloadKeyTable='t'+this.reloadKey;
99
112
  },
100
113
  search(btn) {
114
+ debugger
101
115
  if (this.$refs.table.model) {
102
116
  this.pageDisabled=true;
103
117
  this.$refs.table.getPage(1);
@@ -137,6 +151,57 @@
137
151
  this.showTitle=this.$refs.screen.model.flagShowTitle;
138
152
  }
139
153
  },
154
+ tableLoaded(table) {
155
+ if(table.model.listData.length>0){
156
+ this.flagSideBar=table.model.flagSideBar;
157
+ this.flagDefaultDisplaySideBar=table.model.flagDefaultDisplaySideBar;
158
+ this.sideBarWidth=table.model.sideBarWidth;
159
+ if(this.flagSideBar){
160
+ if(this.flagDefaultDisplaySideBar){
161
+ this.sideBarSide='right';
162
+ this.sideBarRight=0;
163
+ this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
164
+ this.sideBarMenuRight=this.sideBarWidth-2;
165
+ }
166
+ else{
167
+ this.sideBarSide='left';
168
+ this.sideBarRight=-this.sideBarWidth;
169
+ this.searchWidth=0;
170
+ this.sideBarMenuRight=0;
171
+ }
172
+ }
173
+ }
174
+ },
175
+ sideMenuClickHandler(v) {
176
+ if(v=='right'){
177
+ this.sideBarSide ='left';
178
+ this.sideBarRight=-this.sideBarWidth;
179
+ this.searchWidth=0;
180
+ this.sideBarMenuRight=0;
181
+ }
182
+ else if(v=='left'){
183
+ this.sideBarSide ='right';
184
+ this.sideBarRight=0;
185
+ this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
186
+ this.sideBarMenuRight=this.sideBarWidth-2;
187
+ }
188
+ },
140
189
  }
141
190
  }
142
191
  </script>
192
+ <style lang="scss" scoped>
193
+ .sidebar {
194
+ z-index: 1000;
195
+ top: -1px;
196
+ bottom: -1px;
197
+ padding: 0px;
198
+ width: auto;
199
+ background-color: #fff;
200
+ -webkit-background-clip: padding-box;
201
+ background-clip: padding-box;
202
+ border: 1px solid #ccc;
203
+ border: 1px solid rgba(0, 0, 0, .15);
204
+ -webkit-box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
205
+ box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
206
+ }
207
+ </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>
@@ -80,6 +80,7 @@
80
80
  :rowspan="tdRowspan(column, row)"
81
81
  class="ct-td"
82
82
  :class="[colHasWidth[colIndex],model.tdClass,
83
+ column.router?'cursor':null,
83
84
  colIndex === leftShadow?'shadowLeft':null,
84
85
  colIndex === rightShadow?'shadowRight':null,
85
86
  column.fixed === 'left'?'left-fixation':null,
@@ -234,7 +235,7 @@
234
235
  this.model.scripts.formData = this.model.formData;
235
236
  this.model.scripts.formData.formTable = this.model;
236
237
 
237
- self.$emit('loaded');
238
+ self.$emit('loaded',self);
238
239
  self.$emit('showTitle');
239
240
  if (this.tempSearchModel !== null) {
240
241
  self.model.searchModel = this.tempSearchModel;
@@ -374,8 +375,7 @@
374
375
  self.tableLoading = false;
375
376
  self.rowColorChange();
376
377
  }
377
- self.$emit('searchComplate');
378
-
378
+ self.$emit('searchComplate',self);
379
379
  }
380
380
  self.tableLoading = true;
381
381
 
@@ -843,6 +843,15 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
843
843
  get rowMenuDisplayCount() {
844
844
  return source.content.rowMenuDisplayCount && source.content.rowMenuDisplayCount>0?source.content.rowMenuDisplayCount : 4;
845
845
  },
846
+ get flagSideBar() {
847
+ return source.content.flagSideBar || false;
848
+ },
849
+ get flagDefaultDisplaySideBar() {
850
+ return source.content.flagDefaultDisplaySideBar || false;
851
+ },
852
+ get sideBarWidth() {
853
+ return source.content.sideBarWidth || 360;
854
+ },
846
855
  };
847
856
  if (rtn.template) {
848
857
  var tempLoader = template.loader(rtn.template).default;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div :class="isOperationalColumn?'subdiv_allinline':''" v-if="isShowLabel" @click="clickHandler($event)">
3
- <img v-if="router.imgUrl && isShowImg" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" @click="clickHandler($event);" />
4
- <a v-else href="javascript:void(0);" class="ct-tablecurrencyItem" @click="clickHandler($event)">
3
+ <img v-if="router.imgUrl && isShowImg" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" />
4
+ <a v-else href="javascript:void(0);" class="ct-tablecurrencyItem" >
5
5
  {{label}}
6
6
  </a>
7
7
  </div>