centaline-data-driven 1.1.24 → 1.1.28

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.24",
3
+ "version": "1.1.28",
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-iti .ct-input_inner {
105
+ border-top-left-radius: 6px !important;
106
+ border-bottom-left-radius: 6px !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,12 @@
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-iti .el-input-group--prepend .el-input__inner{
153
+ border-top-left-radius: 6px !important;
154
+ border-bottom-left-radius: 6px !important;
155
+ text-align: left !important;
156
+ }
@@ -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')"
14
+ v-model="model.value" @change="changeHandler($event)" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value','decimals')"
15
15
  :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" />
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')"
26
+ v-model="model.value1" @change="changeHandler($event);" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value1','decimals1')"
27
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>
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,25 +118,25 @@
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
  },
@@ -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
- console.log(h1);
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
  }
@@ -166,7 +166,6 @@
166
166
  this.$set(this, 'focus', false);
167
167
  },
168
168
  clickHandle: function () {
169
- debugger;
170
169
  if (this.model.lock) {
171
170
  return false;
172
171
  }
@@ -223,7 +222,6 @@
223
222
  }
224
223
  },
225
224
  selectOption(value) {
226
- debugger;
227
225
  if (this.model.value === value) {
228
226
  //this.model.value = '';
229
227
  this.$set(this, 'showDrop', false);
@@ -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>
@@ -233,11 +233,15 @@ const Base = function (source) {
233
233
  getFormParentFieldPara() {
234
234
  if (rtn.form && typeof rtn.parentField !== 'undefined' && rtn.parentField.length > 0) {
235
235
  if (typeof rtn.form.getRefFieldPara === 'function') {
236
- return JSON.stringify(rtn.form.getParentFieldPara(rtn.parentField));
236
+ return rtn.form.getParentFieldPara(rtn.parentField);
237
237
  }
238
238
  }
239
239
  return null;
240
240
  },
241
+ /*选择搜索条件后是否默认显示标签*/
242
+ get dlfs() {
243
+ return source.dlfs;
244
+ },
241
245
  };
242
246
 
243
247
  return rtn;
@@ -624,7 +624,18 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
624
624
  parentFieldNameArr.forEach((v) => {
625
625
  submitData[v] = tempFormData[v];
626
626
  });
627
- return submitData;
627
+
628
+ if(JSON.stringify(submitData) == "{}"){
629
+ return '';
630
+ }
631
+ else{
632
+ if(parentFieldNameArr.length>1){
633
+ return JSON.stringify(submitData);
634
+ }
635
+ else{
636
+ return submitData[parentFieldNameArr[0]];
637
+ }
638
+ }
628
639
  },
629
640
  //检查是否关闭tab后触发来源页面操作
630
641
  checkCloseTabThen(notification) {
@@ -20,7 +20,7 @@ const Iti = function (source) {
20
20
  },
21
21
 
22
22
  get value1() {
23
- return source.code2;
23
+ return source.code2||'';
24
24
  },
25
25
  set value1(v) {
26
26
  source.code2 = v;
@@ -185,7 +185,17 @@ const SearchScreen = function (source, callBack, screenPara) {
185
185
  if(n.fieldName1==v)submitData[v] = n.searchValue1;
186
186
  });
187
187
  });
188
- return submitData;
188
+ if(JSON.stringify(submitData) == "{}"){
189
+ return '';
190
+ }
191
+ else{
192
+ if(parentFieldNameArr.length>1){
193
+ return JSON.stringify(submitData);
194
+ }
195
+ else{
196
+ return submitData[parentFieldNameArr[0]];
197
+ }
198
+ }
189
199
  },
190
200
  };
191
201
  return rtn;
@@ -195,8 +205,6 @@ const SearchScreen = function (source, callBack, screenPara) {
195
205
  Vue.prototype.$api.postHandler(common.globalUri(), { action: source, para: screenPara }).then(
196
206
  function (response) {
197
207
  if (response.rtnCode === Enum.ReturnCode.Successful) {
198
- response.content.title='XXXXXXXXXXX';
199
- response.content.flagShowTitle=true;
200
208
  var rtn = init(response);
201
209
  if (callBack) {
202
210
  callBack(rtn);
@@ -7,9 +7,8 @@ import Vue from 'vue';
7
7
  const So = function (source, moreActionRouter) {
8
8
  var rtn = {
9
9
  options: [{ code: source.code1, name: source.name1 }],
10
- get text() {
11
-
12
- if (source.isList && source.name1 && rtn.attrs.placeholder) {
10
+ get text() {
11
+ if (source.isList && source.name1 && rtn.attrs.placeholder && source.dlfs) {
13
12
  return rtn.attrs.placeholder + ":" + source.name1;
14
13
  }
15
14
  return source.name1;
@@ -8,7 +8,7 @@ const Sos = function (source, moreActionRouter) {
8
8
  var rtn = {
9
9
  options: [{ code: source.code1, name: source.name1 }],
10
10
  get text() {
11
- if (source.isList && source.name1 && rtn.attrs.placeholder) {
11
+ if (source.isList && source.name1 && rtn.attrs.placeholder && source.dlfs) {
12
12
  return rtn.attrs.placeholder + ":" + source.name1;
13
13
  }
14
14
  return source.name1;
@@ -69,6 +69,9 @@ const LibFunction = {
69
69
  field.controlType === Enum.ControlType.ButtonAdvancedSearch) {
70
70
  field.width = '';
71
71
  }
72
+ else if (field.controlType === Enum.ControlType.NumericRange) {
73
+ field.width = field.width || 280;
74
+ }
72
75
  else {
73
76
  showLabel = false;
74
77
  field.width = field.width || 200;
@@ -145,10 +148,6 @@ const LibFunction = {
145
148
  item = Sw(field);
146
149
  item.is = 'ct-sw';
147
150
  break;
148
- //case 'Time'://时间控件
149
- // item = TimeSelect(field, false);
150
- // item.is = 'ct-time-select';
151
- // break;
152
151
  case Enum.ControlType.TimeRange://时间区间
153
152
  item = TimeSelect(field, true, 'time');
154
153
  item.is = 'ct-time-select';
package/src/main.js CHANGED
@@ -27,7 +27,7 @@ Vue.use(centaline, {
27
27
  // 获取请求头
28
28
  getRequestHeaders: function () {
29
29
  return {
30
- oldToken: 'faefb8a4-f885-4f49-a0fc-dc6c0943bf4a',
30
+ oldToken: 'd09609ec-e13a-4b97-8c15-e003b1c36cbc',
31
31
  estateId: '20210729104021C49F04B55C50F6AF58',
32
32
  };
33
33
  },