centaline-data-driven 1.1.25 → 1.1.29

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 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
- // BASE_API: '"http://10.88.22.46:7070/v1/form/router"',//max本地
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.1.25",
3
+ "version": "1.1.29",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
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 :api="'/api/selfProject/selfProjectListLayout'" :apiParam="apiParam"></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: {
@@ -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
- <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getList'"></ct-searchlist> -->
3
+ <!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'" :searchDataApi="'/api/third-dept-tran/tran-list'"></ct-searchlist> -->
4
+ <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/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>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="app-Tree" style="height:100%;position: fixed;">
3
3
  <el-container style="height: 100vh;width:100vw; border: 1px solid #eee">
4
- <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
4
+ <el-aside width="200px" style="background-color: rgb(238, 241, 246);border-radius:6px;">
5
5
  <ct-tree :flagsearch="true" :searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'" :searchDataApi="'/SystemParameterCatalogList/getList'" @loaded="loaded"></ct-tree>
6
6
  </el-aside>
7
7
  <el-main v-if="isShowSearchlist">
@@ -101,9 +101,9 @@ html {
101
101
 
102
102
  .ct-tags .showLabel .ct-input_inner, .ct-so .showLabel .ct-input_inner, .ct-iti-editor input,
103
103
  .ct-date-editor input, .ct-mt .el-input-group--prepend textarea, .ct-text .showLabel input, .ct-Dtd .ct-datepicker.showLabel .el-range-input,
104
- .ct-Seg .showLabel.ct-radios, .ct-so .showLabel .ct-input_inner {
105
- border-top-left-radius: 0px !important;
106
- border-bottom-left-radius: 0px !important;
104
+ .ct-Seg .showLabel.ct-radios, .ct-so .showLabel .ct-input_inner,.ct-Dtd .el-input__inner {
105
+ border-top-left-radius: 4px !important;
106
+ border-bottom-left-radius: 4px !important;
107
107
  text-align: left !important;
108
108
  }
109
109
  .ct-Seg .showLabel.ct-radios {
@@ -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
- /* border-color: #EE6B6B ; */
436
+ border-color: #EE6B6B ;
437
437
  }
438
438
  .el-button--primary:hover ,.el-button--warning:hover{
439
439
  background: #f1706b;
440
- /* border-color: #f1706b; */
440
+ border-color: #f1706b;
441
441
  color: #FFF;
442
442
  }
443
443
  .el-button--primary:focus {
444
444
  background: #de534d;
445
- /* border-color: #de534d; */
445
+ border-color: #de534d;
446
446
  color: #FFF;
447
447
  }
448
448
  .el-button--success {
449
449
  background-color: #EE6B6B ;
450
- /* border-color: #EE6B6B ; */
450
+ border-color: #EE6B6B ;
451
451
  }
452
452
 
453
453
  .el-button--success:focus {
454
454
  background: #de534d;
455
- /* border-color: #de534d; */
455
+ border-color: #de534d;
456
456
  color: #FFF;
457
457
  }
458
458
  .el-button--success:hover {
459
459
  background: #f1706b;
460
- /* border-color: #f1706b; */
460
+ border-color: #f1706b;
461
461
  color: #FFF;
462
462
  }
463
463
  /* 工具栏按钮置灰 */
@@ -565,7 +565,7 @@ html {
565
565
 
566
566
  .ct-searchtable{
567
567
  margin-top: 10px;
568
- padding: 20px 0px 0 0px;
568
+ padding: 20px 10px 0 0px;
569
569
  background: #fff;
570
570
  -webkit-box-sizing: border-box;
571
571
  border-radius:6px;
@@ -596,13 +596,13 @@ html {
596
596
  }
597
597
 
598
598
  .el-input-group__append, .el-input-group__prepend {
599
- background-color: #FFF; /*白色*/
599
+ background-color: initial!important; /*无色*/
600
600
  vertical-align: middle;
601
601
  display: table-cell;
602
602
  position: relative;
603
- border: 0px solid #DCDFE6; /*无边框*/
603
+ border: 0px solid #DCDFE6!important; /*无边框*/
604
604
  border-radius: 4px;
605
- padding: 0 5px;
605
+ padding: 0 5px!important;
606
606
  width: 1px;
607
607
  white-space: nowrap;
608
608
  text-align: right;
@@ -713,4 +713,7 @@ html {
713
713
  .ct-table-content{
714
714
  padding: 0 15px;
715
715
  }
716
+ .el-card.is-always-shadow{
717
+ box-shadow: none!important;
718
+ }
716
719
 
@@ -66,6 +66,9 @@
66
66
  border-top-left-radius: 6px;
67
67
  border-bottom-left-radius: 6px;
68
68
  line-height: 24px;
69
+ border: none;
70
+ background-color: initial;
71
+ padding: 0 10px;
69
72
  }
70
73
  .max-flex-div{
71
74
  display: flex;
@@ -142,4 +145,42 @@
142
145
  }
143
146
  .max-cover-list-item .el-input__icon{
144
147
  line-height: 40px!important;
145
- }
148
+ }
149
+ .el-card{
150
+ border: none;
151
+ }
152
+ .ct-tags .showLabel .ct-input_inner, .ct-so .showLabel .ct-input_inner, .ct-iti-editor input,
153
+ .ct-date-editor input, .ct-mt .el-input-group--prepend textarea, .ct-text .showLabel input, .ct-Dtd .ct-datepicker.showLabel .el-range-input,
154
+ .ct-Seg .showLabel.ct-radios, .ct-so .showLabel .ct-input_inner,.ct-Dtd .el-input__inner {
155
+ border-top-left-radius: 6px !important;
156
+ border-bottom-left-radius: 6px !important;
157
+ text-align: left !important;
158
+ }
159
+ .ct-iti .el-input-group--prepend .el-input__inner{
160
+ border-top-left-radius: 6px !important;
161
+ border-bottom-left-radius: 6px !important;
162
+ text-align: left !important;
163
+ }
164
+ /* 重置input默认颜色 选中文字颜色 */
165
+ .ct-search-list input::-webkit-input-placeholder{
166
+ color: #666666!important;
167
+ }
168
+ .ct-search-list .el-date-editor .el-range-input,.ct-search-list .el-input__inner{
169
+ color: #409eff;
170
+ }
171
+ .ct-so .ct-input_inner {
172
+ color: #409eff!important;
173
+ }
174
+ .cover-list-item .el-checkbox__input.is-checked + .el-checkbox__label,.cover-list-item .el-checkbox__input.is-checked .el-checkbox__inner{
175
+ color: #409eff;
176
+ }
177
+ .cover-list-item .el-checkbox__input.is-checked .el-checkbox__inner{
178
+ background-color:#409eff;
179
+ border-color: #409eff;
180
+ }
181
+ .ct-search-list .el-input-group__append, .el-input-group__prepend{
182
+ color: #666666!important;
183
+ }
184
+ .ct-so .ct-input_inner,.el-input__inner{
185
+ border-radius: 6px!important;
186
+ }
@@ -128,7 +128,7 @@
128
128
  <div class="row-i"><span>产权:</span><span>公司</span></div>
129
129
  <div class="row-i"><span>产权状况:</span><span>拍卖</span></div>
130
130
  <div class="row-i"><span>现状:</span><span>空房</span></div>
131
- <div class="row-i"><span>付费</span><span>各付各税</span></div>
131
+ <div class="row-i"><span>付费:</span><span>各付各税</span></div>
132
132
  <div class="row-i"><span>佣金:</span><span>600元</span></div>
133
133
  </div>
134
134
  </div>
@@ -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
  }
@@ -1,37 +1,37 @@
1
1
  <template>
2
2
  <div class="field-top">
3
- <div style="width:100%;display:flex" class="ct-iti" :class="[model.attrs.size?'ct-iti-'+model.attrs.size:'']">
3
+ <div style="width:100%;display:flex" class="ct-iti" :class="[model.attrs.size?'ct-iti-'+model.attrs.size:'']" @mouseover="mouseOverHandle('input2')">
4
4
  <div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']" style="flex:1">
5
5
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
6
6
  {{model.label}}
7
7
  </div>
8
- <div style="padding-left:15px" v-bind="model.attrs" class="el-date-editor el-range-editor el-input__inner el-date-editor--daterange"
8
+ <div style="padding-left:5px" v-bind="model.attrs" class="el-date-editor el-range-editor el-input__inner el-date-editor--daterange"
9
9
  v-bind:class="[model.attrs.size?'el-range-editor--'+model.attrs.size:'',
10
10
  model.showLabel?'ct-iti-editor':'',isFocus?'isfocus':'',model.lock ? 'ct-is-disabled' : '']">
11
11
 
12
- <div style="width:39%" class="ct-position-relative" @mouseover="mouseOverHandle('input1','value')" @mouseout="mouseOutHandle('input1')">
12
+ <div style="width:39%" class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
13
13
  <input style="text-align:left;width:100%" class="el-range-input" :placeholder="model.attrs.placeholder1"
14
- v-model="model.value" @change="changeHandler($event)" @input="onInputHandler($event);isShowClear('input1','value')" @focus="focusHandler" @blur="blurHandler('value','decimals')"
15
- :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" />
14
+ v-model="model.value" @change="changeHandler($event)" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value','decimals')"
15
+ :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
16
16
 
17
- <span class="el-input__suffix el-input--mini" v-if="showClear.input1">
17
+ <!-- <span class="el-input__suffix el-input--mini" v-if="showClear.input1">
18
18
  <span class="el-input__suffix-inner ct-close">
19
19
  <i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event,'input1','value')"></i>
20
20
  </span>
21
- </span>
21
+ </span> -->
22
22
  </div>
23
23
  <span style="width:5%" class="el-range-separator">-</span>
24
- <div style="width:39%" class="ct-position-relative" @mouseover="mouseOverHandle('input2','value1')" @mouseout="mouseOutHandle('input2')">
24
+ <div style="width:39%" class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
25
25
  <input style="text-align:left;width:100%;" class="el-range-input" :placeholder="model.attrs.placeholder2"
26
- v-model="model.value1" @change="changeHandler($event);" @input="onInputHandler($event);isShowClear('input2','value1')" @focus="focusHandler" @blur="blurHandler('value1','decimals1')"
27
- :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" />
28
- <span class="el-input__suffix el-input--mini" v-if="showClear.input2">
29
- <span class="el-input__suffix-inner ct-close">
30
- <i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event,'input2','value1')"></i>
26
+ v-model="model.value1" @change="changeHandler($event);" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value1','decimals1')"
27
+ :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
28
+ </div>
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;">
31
+ <i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event,'input2')"></i>
31
32
  </span>
32
- </span>
33
+ </span>
33
34
  <span v-if="model.unitName" class="ct-unitname el-input__suffix el-input__suffix-inner">{{model.unitName}}</span>
34
- </div>
35
35
  </div>
36
36
  </div>
37
37
  <span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
@@ -118,28 +118,31 @@
118
118
  }
119
119
  return true;
120
120
  },
121
- clearClickHandle: function (event,id,valName) {
122
-
123
- this.model[valName] ='';
124
- this.isShowClear(id,valName);
121
+ clearClickHandle: function (event,id) {
122
+ this.model['value'] ='';
123
+ this.model['value1'] ='';
124
+ this.isShowClear(id);
125
125
  },
126
- mouseOverHandle: function (id,valName) {
127
- if (this.model[valName] !== '' && this.model.clearable) {
126
+ mouseOverHandle: function (id) {
127
+ if ((this.model['value'] !== '' || this.model['value1'] !== '') && this.model.clearable) {
128
128
  this.showClear[id]=true;
129
129
  }
130
130
  },
131
131
  mouseOutHandle: function (id) {
132
132
  this.showClear[id]=false;
133
133
  },
134
- isShowClear(id,valName)
134
+ isShowClear(id)
135
135
  {
136
- if (this.model[valName] !== '' && this.model.clearable) {
136
+ if ((this.model['value'] !== '' || this.model['value1'] !== '') && this.model.clearable) {
137
137
  this.showClear[id]=true;
138
- }else
139
- {
138
+ }
139
+ else {
140
140
  this.showClear[id]=false;
141
141
  }
142
142
  },
143
+ search() {
144
+ if(this.model.autoSearch) this.$emit('click');
145
+ },
143
146
  }
144
147
  }
145
148
  </script>
@@ -168,6 +168,7 @@
168
168
  }
169
169
  this.inputHandler(self.model.value);
170
170
  this.changeHandler(self.model.value);
171
+ if(this.model.autoSearch) this.$emit('click');
171
172
  },
172
173
  focusHandle: function () {
173
174
  this.$set(this, 'focus', true);
@@ -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
- </th>-->
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
- <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>-->
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
- <template slot="value">
104
- {{row[column.id]}}
105
- </template>
106
- </component>-->
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 - 30;
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
- if(field.pageStyle)
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
- let notHeigthData= self.model.listData.filter(item=>{
797
- return item.$heigth=== undefined || item.$heigth<=0
794
+ let notHeigthData = self.model.listData.filter(item => {
795
+ return item.$heigth === undefined || item.$heigth <= 0
798
796
  })
799
- if(notHeigthData&&notHeigthData.length>0)
800
- {
801
- notHeigthData.forEach((v, i) => {
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
- .ct-table .checkbox-td .checkbox-td-1{
1053
- vertical-align: inherit;
1054
- }
1049
+
1050
+ .ct-table .checkbox-td .checkbox-td-1 {
1051
+ vertical-align: inherit;
1052
+ }
1055
1053
  </style>
@@ -44,7 +44,7 @@
44
44
  width:100%;
45
45
  position:relative;
46
46
  float:left;
47
- padding:0 15px 10px 15px;
47
+ padding:0 5px 10px 15px;
48
48
  background-color:#fff;
49
49
  border-radius: 6px;
50
50
  }
@@ -152,6 +152,7 @@
152
152
  }
153
153
  this.inputHandler(self.model.value);
154
154
  this.changeHandler(self.model.value);
155
+ if(this.model.autoSearch) this.$emit('click');
155
156
  },
156
157
  focusHandle: function () {
157
158
  this.$refs['ct-input'].focus();
@@ -212,7 +213,6 @@
212
213
  },
213
214
  selectOption(value) {
214
215
  if (this.model.value === value) {
215
- //this.model.value = '';
216
216
  this.$set(this, 'showDrop', false);
217
217
  return;
218
218
  }
@@ -158,6 +158,7 @@
158
158
  }
159
159
  this.inputHandler(self.model.value);
160
160
  this.changeHandler(self.model.value);
161
+ if(this.model.autoSearch) this.$emit('click');
161
162
  },
162
163
  focusHandle: function () {
163
164
  this.$set(this, 'focus', true);
@@ -166,7 +167,6 @@
166
167
  this.$set(this, 'focus', false);
167
168
  },
168
169
  clickHandle: function () {
169
- debugger;
170
170
  if (this.model.lock) {
171
171
  return false;
172
172
  }
@@ -223,9 +223,7 @@
223
223
  }
224
224
  },
225
225
  selectOption(value) {
226
- debugger;
227
226
  if (this.model.value === value) {
228
- //this.model.value = '';
229
227
  this.$set(this, 'showDrop', false);
230
228
  return;
231
229
  }
@@ -7,7 +7,8 @@
7
7
  </div>
8
8
  <el-input :title="model.lock?model.value:''" :type="model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear()" @change="changeHandler($event)"
9
9
  class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'']" :disabled="model.lock" :rows="model.rows"
10
- :readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit">
10
+ :readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit"
11
+ @keyup.enter.native="search()">
11
12
  <span slot="suffix" v-if="model.unitName" class="ct-unitname">{{model.unitName}}</span>
12
13
 
13
14
  <span slot="suffix" class="el-input__suffix el-input--mini" v-if="showClear" :class="model.unitName?'ct-right-10':'ct-right-0'">
@@ -69,6 +70,9 @@
69
70
  this.$set(this, 'showClear', false);
70
71
  }
71
72
  },
73
+ search() {
74
+ if(this.model.autoSearch) this.$emit('click');
75
+ },
72
76
  },
73
77
  }</script>
74
78
  <style>
@@ -173,9 +173,9 @@
173
173
  else {
174
174
  this.model.text = [];
175
175
  }
176
- //this.$emit('change', this.model.value);
177
176
  this.inputHandler(self.model.value);
178
177
  this.changeHandler(self.model.value);
178
+ if(this.model.autoSearch) this.$emit('click');
179
179
  },
180
180
  focusHandle: function () {
181
181
  this.$set(this, 'focus', true);
@@ -1,11 +1,13 @@
1
1
  <template>
2
- <div id="app-Tree" style="height:100%;position: fixed;">
3
- <el-container style="height: 100vh;width:100vw; border: 1px solid #eee">
4
- <el-aside width="200px" style="background-color:#eceff2">
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
- <ct-searchlist :searchConditionApi="searchTableConditionApi" :searchDataApi="searchTableDataApi" :api-param="apiParam"></ct-searchlist>
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>