centaline-data-driven 1.1.46 → 1.1.50

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.1.46",
3
+ "version": "1.1.50",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  <script>
17
17
  export default {
18
- name: 'App',
18
+ name: 'DataDrivenForm',
19
19
  data() {
20
20
  return {
21
21
  // apiParam: {originalTraId: "1481454808274235394", actionType: 3, pageTitle: "成交报告", pageOnly: true} ,
@@ -10,7 +10,7 @@
10
10
  <script>
11
11
  import Vue from 'vue'
12
12
  export default {
13
- name: 'App',
13
+ name: 'DataDrivenSearch',
14
14
  data() {
15
15
  return {
16
16
  //para: { agentId: "1424932685198864386", estateId: "L201402181627000007233", estateName: "271医院宿舍区", pageOnly: "true", pageTitle: "销控房源列表" }
@@ -272,6 +272,12 @@ const common = {
272
272
  else if (evControl.$options.name === 'ctDialog') {
273
273
  return evControl.vmodel.pane;
274
274
  }
275
+ else if (parent.$options.name === 'DataDrivenSearch') {
276
+ return parent;
277
+ }
278
+ else if (parent.$options.name === 'DataDrivenForm') {
279
+ return parent;
280
+ }
275
281
  else {
276
282
  return this.getParentPane(parent);
277
283
  }
@@ -140,7 +140,7 @@ html {
140
140
  right: 0;
141
141
  bottom: 0;
142
142
  left: 0;
143
- overflow: auto;
143
+ /* overflow: auto; */
144
144
  background-color: #000;
145
145
  background: rgba(0, 0, 0, 0.5);
146
146
  align-items: center;
@@ -234,17 +234,14 @@ html {
234
234
  font-size: 14px;
235
235
  }
236
236
 
237
- /* 有边框是26,无边框是28*/
238
237
  .ct-Seg.ct-Seg-mini .ct-radios, .ct-Seg.ct-Seg-mini .ct-radios .el-radio__label {
239
- min-height: 28px;
238
+ min-height: 26px;
240
239
  line-height: 26px;
241
- }
242
-
240
+ }
243
241
  .ct-Seg.ct-Seg-small .ct-radios, .ct-Seg.ct-Seg-small .ct-radios .el-radio__label {
244
242
  height: 32px;
245
243
  line-height: 32px;
246
- }
247
-
244
+ }
248
245
  .ct-Seg.ct-Seg-medium .ct-radios, .ct-Seg.ct-Seg-medium .ct-radios .el-radio__label {
249
246
  height: 36px;
250
247
  line-height: 36px;
@@ -417,9 +414,9 @@ html {
417
414
 
418
415
 
419
416
  /*主要按钮*/
420
- /* .el-button{
421
- border: none;
422
- } */
417
+ .el-button{
418
+ height:26px
419
+ }
423
420
  /*.el-button:active {
424
421
  background-color: #b3caf5;
425
422
  border: none;
@@ -431,7 +428,11 @@ html {
431
428
  color: #fff;
432
429
 
433
430
  } */
431
+ .el-button--mini, .el-button--mini.is-round{
432
+ padding: 0px 19px;
433
+ }
434
434
  .el-button--primary {
435
+ height: 26px;
435
436
  background-color: #EE6B6B ;
436
437
  border-color: #EE6B6B ;
437
438
  }
@@ -633,8 +634,8 @@ html {
633
634
  padding: 0 15px 0 5px;
634
635
  } */
635
636
  .ct-Seg .ct-radios .el-input__icon.el-icon-circle-close{
636
- min-height: 27px;
637
- line-height: 27px;
637
+ min-height: 25px;
638
+ line-height: 25px;
638
639
 
639
640
  }
640
641
  .list-field .el-input-group__append, .list-field .el-input-group__prepend{
@@ -713,8 +714,9 @@ html {
713
714
  .ct-table-content{
714
715
  padding: 0 15px;
715
716
  }
716
- .el-card.is-always-shadow{
717
- box-shadow: none!important;
717
+ .el-card.is-always-shadow {
718
+ border: none;
719
+ box-shadow: none !important;
718
720
  }
719
721
 
720
722
  .domDisabled {
@@ -724,7 +726,13 @@ html {
724
726
  .el-radio__label{
725
727
  padding-left: 5px!important;
726
728
  }
727
- .el-input--mini .el-input__inner {
729
+ .el-input--mini .el-input__inner{
728
730
  height: 26px!important;
729
731
  line-height: 26px!important;
730
- }
732
+ }
733
+ .ct-rich-text {
734
+ min-height: 26px!important;
735
+ }
736
+ .ct-dialog_body .el-card__body{
737
+ padding: 0px 3px 10px 10px!important;
738
+ }
@@ -56,9 +56,9 @@
56
56
  style: {
57
57
  'z-index': this.zindex,
58
58
  //'wiidth': (this.vmodel.pane ? this.vmodel.pane.$el.offsetWidth : document.body.offsetWidth) + 'px',
59
- //'height': (this.vmodel.pane ? this.vmodel.pane.$el.offsetHeight : document.body.offsetHeight + 10) + 'px'
59
+ 'height': (self.vmodel.pane ? self.vmodel.pane.$el.offsetHeight : document.body.offsetHeight + 10) + 'px',
60
60
  'width': '100%',
61
- 'height': '100%'
61
+ // 'height': '100%',
62
62
  }
63
63
  }, [
64
64
  //h('div', {
@@ -143,6 +143,14 @@
143
143
  }
144
144
  }
145
145
 
146
+ var ph=0;
147
+ if(item.attrs.height){
148
+ ph=parseInt(item.attrs.height.replace('px',''));
149
+ }
150
+ if(self.vmodel.pane && self.vmodel.pane.$el.offsetHeight<ph){
151
+ item.attrs.height=(self.vmodel.pane.$el.offsetHeight-20)+'px';
152
+ }
153
+
146
154
  return h('div', {
147
155
  style: {
148
156
  width: item.attrs.width,
@@ -34,8 +34,7 @@
34
34
  }
35
35
  },
36
36
  methods: {
37
- addDialog(vmodel) {
38
-
37
+ addDialog(vmodel) {
39
38
  vmodel.id = (new Date()).getTime();
40
39
  this.List.push(vmodel);
41
40
 
@@ -46,8 +45,7 @@
46
45
  document.addEventListener("touchmove", mo, false);//禁止页面滑动
47
46
  }
48
47
  },
49
- deleteDialog(model) {
50
-
48
+ deleteDialog(model) {
51
49
  model.dialogTableVisible = false;
52
50
  //改成删除
53
51
  let index = this.List.findIndex(v => {
@@ -19,7 +19,7 @@
19
19
  <div slot="file" slot-scope="{file}" :title="file.fileName">
20
20
  <div class="cover-list-item">
21
21
  <el-image fit="fill" :src="file.url"
22
- style="width: 150px; height: 150px"
22
+ style="width: 100px; height: 100px"
23
23
  :preview-src-list="getPreviewSrcList(file)"
24
24
  :z-index="previewZIndex"
25
25
  @click="handlePictureCardPreview(file)">
@@ -229,9 +229,12 @@
229
229
  <style>
230
230
  .ct-upload-display-none .el-upload--picture-card {
231
231
  display: none;
232
+
232
233
  }
233
-
234
- .ct-file .cover-list-item {
234
+ .el-upload-list__item .is-ready{
235
+ width: 100px;
236
+ height: 100px;
237
+ } .ct-file .cover-list-item {
235
238
  position: sticky;
236
239
  }
237
240
 
@@ -261,4 +264,20 @@
261
264
  .ct-file .el-icon-arrow-down {
262
265
  font-size: 12px;
263
266
  }
267
+ .el-collapse-item__content{
268
+ padding-bottom: 18px;
269
+ }
270
+ .el-upload--picture-card{
271
+ width: 100px;
272
+ height: 100px;
273
+ line-height:initial;
274
+ padding: 34px;
275
+ }
276
+ .el-upload--picture-card i{
277
+ font-size: 30px;
278
+ }
279
+ .el-upload-list--picture-card .el-upload-list__item{
280
+ width: 100px;
281
+ height: 100px;
282
+ }
264
283
  </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="field-top">
3
3
  <div class="ct-mo" style="width:100%;display:flex">
4
- <div style="flex:1;display:flex" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-mo-'+model.attrs.size:''
4
+ <div style="flex:1;display:flex;margin-right: 5px;" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-mo-'+model.attrs.size:''
5
5
  ]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
6
6
  <div style="flex:1;position: relative;" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
7
7
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
@@ -17,7 +17,7 @@
17
17
  </span>
18
18
  </div>
19
19
  <el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']"
20
- :trigger="(model.popupSearchListType > 0 || model.lock) ? 'manual' : 'click'" :disabled="model.lock">
20
+ :trigger="(!model.paramName || model.lock) ? 'manual' : 'click'" :disabled="model.lock">
21
21
  <div>
22
22
  <ct-select-option :model="model" :optionRowCount="optionRowCount" @click="selectOption($event)"></ct-select-option>
23
23
  </div>
@@ -180,20 +180,18 @@
180
180
  if (this.model.lock) {
181
181
  return false;
182
182
  }
183
- if (this.model.popupSearchListType === 1) {
183
+ if (this.model.paramName) {
184
+ this.$set(this, 'showDrop', !this.showDrop);
185
+ if (this.showDrop) {
186
+ this.getOptions();
187
+ }
188
+ this.focusHandle();
189
+ }
190
+ else if (this.model.popupSearchListType === 1) {
184
191
  this.popupSearchListHandle();
185
192
  }
186
- else {
187
- if (this.model.paramName) {
188
- this.$set(this, 'showDrop', !this.showDrop);
189
- if (this.showDrop) {
190
- this.getOptions();
191
- }
192
- this.focusHandle();
193
- }
194
- else if ((this.model.popupSearchListType === 0)) {
195
- this.$message.warning("请配置参数paramName1");
196
- }
193
+ else if ((this.model.popupSearchListType === 0)) {
194
+ this.$message.warning("请配置参数paramName1");
197
195
  }
198
196
  },
199
197
  popupSearchListHandle: function () {
@@ -272,7 +270,12 @@
272
270
  var self = this;
273
271
  optionArr.forEach((s) => {
274
272
  if (!self.model.value.find((v) => { return v === s[self.model.optionAttrs.value] })) {
275
- self.model.options.push(s);
273
+ let op={};
274
+ op[self.model.optionAttrs.value]=s[self.model.optionAttrs.value];
275
+ op[self.model.optionAttrs.label]=s[self.model.optionAttrs.label];
276
+ op[self.model.optionAttrs.rowid]='';
277
+ op[self.model.optionAttrs.flagDeleted]=false;
278
+ self.model.options.push(op);
276
279
  self.model.value.push(s[self.model.optionAttrs.value]);
277
280
  }
278
281
  });
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div v-loading="loading" style="width:100%">
3
3
  <div v-if="model !== null && !loading" class="ct-form">
4
- <div class="ct-ptb5">
4
+ <div class="ct-ptb5 max-flex">
5
5
  <template v-for="(col, index) in model.fields" v-if="col.show !== false">
6
6
  <br v-if="col.is === 'ct-linefeed'" />
7
7
  <component ref="Fields" :is="col.is" v-bind="col.listBind" :vmodel="col" :api="model.optionApi" @click="getClickHandler(col.action)"></component>
@@ -147,4 +147,11 @@
147
147
  }
148
148
  </script>
149
149
  <style>
150
+ .max-flex{
151
+ display: flex;
152
+
153
+ }
154
+ .max-flex .field-top{
155
+ margin-right: 10px;
156
+ }
150
157
  </style>
@@ -23,7 +23,7 @@
23
23
  <el-input v-if="jumpBtnName" size="mini" v-model="jumpStr" placeholder="定位" style="width:150px"></el-input>
24
24
  <el-button v-if="jumpBtnName" size="mini" @click="jumpClickHandler()">{{jumpBtnName}}</el-button>
25
25
  <el-button v-if="filterBtnName" size="mini" @click="filterClickHandler()" style="margin-left: 0px;">{{filterBtnName}}</el-button>
26
- <el-button size="mini" @click="confirmClickHandler()" style="float:right;" type="primary">确认</el-button>
26
+ <el-button size="mini" @click="confirmClickHandler()" class="max-search-btn" style="float:right;" type="primary">确认</el-button>
27
27
  </div>
28
28
  </div>
29
29
  <div style="min-height:250px" v-loading="loading" v-if="loading"></div>
@@ -231,4 +231,7 @@
231
231
  .el-table {
232
232
  font-size: 12px !important;
233
233
  }
234
+ .el-table .el-table__header th {
235
+ background-color: #f4f7fa!important;
236
+ }
234
237
  </style>
@@ -10,7 +10,7 @@
10
10
  <div class="ct-radios" :class="[model.showLabel?'showLabel':'',model.value !== ''?'hasValue':'']">
11
11
  <el-radio-group v-model="model.value" @change="changeHandler1($event)">
12
12
  <el-radio-button v-bind="model.attrs" v-for="(value, index) in model.segmentValue" :key="index" v-model="model.value"
13
- :label="value[model.optionAttrs.value]" :disabled="model.lock">
13
+ :label="value[model.optionAttrs.value]" :displayLabel="value[model.optionAttrs.displayLabel]" :disabled="model.lock">
14
14
  {{value[model.optionAttrs.label]}}
15
15
  </el-radio-button >
16
16
  </el-radio-group>
@@ -61,6 +61,12 @@
61
61
  this.changeHandler(this.model.value);
62
62
  },
63
63
  changeHandler1: function (event) {
64
+ var self=this;
65
+ this.model.segmentValue.forEach((v, i) => {
66
+ if(v[self.model.optionAttrs.value]==event && v[self.model.optionAttrs.displayLabel]){
67
+ self.model.label=v[self.model.optionAttrs.displayLabel];
68
+ }
69
+ });
64
70
  this.inputHandler(this.model.value);
65
71
  this.changeHandler(this.model.value);
66
72
  let parm={};
@@ -192,7 +192,7 @@
192
192
  self.colHasWidth[vi] = 'nowidth';
193
193
  }
194
194
  });
195
- debugger;
195
+
196
196
  self.isLoading = false;
197
197
  self.$forceUpdate();
198
198
  this.model.scripts.formData = this.model.formData;
@@ -684,7 +684,9 @@
684
684
  },
685
685
  on: {
686
686
  submit(ev) {
687
- self.model.doAction(ev);
687
+ if (!field.flagFreshCurrentRow) {
688
+ self.model.doAction(ev);
689
+ }
688
690
  self.$forceUpdate();
689
691
  self.$refs.footer.$forceUpdate();
690
692
  self.$common.closeDialog(dialogOption.dialog);
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <div class="field-top">
3
- <div style="width:100%;display:flex">
4
- <div style="flex:1" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
3
+ <div style="width:100%;display:flex;">
4
+ <div style="flex:1;margin-right:5px" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
5
5
  ]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
6
6
  <div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
7
7
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
8
8
  {{model.label}}
9
9
  </div>
10
- <el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']" :trigger="(model.popupSearchListType > 0 || model.lock) ? 'manual' : 'click'">
10
+ <el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']" :trigger="(!model.paramName || model.lock) ? 'manual' : 'click'">
11
11
  <div>
12
12
  <ctSelectOptionVertical :model="model" @click="selectOption($event)"></ctSelectOptionVertical>
13
13
  </div>
@@ -165,20 +165,18 @@
165
165
  if (this.model.lock) {
166
166
  return false;
167
167
  }
168
- if (this.model.popupSearchListType === 1) {
168
+ if (this.model.paramName) {
169
+ this.$set(this, 'showDrop', !this.showDrop);
170
+ if (this.showDrop) {
171
+ this.getOptions();
172
+ }
173
+ this.focusHandle();
174
+ }
175
+ else if (this.model.popupSearchListType === 1) {
169
176
  this.popupSearchListHandle();
170
177
  }
171
- else {
172
- if (this.model.paramName) {
173
- this.$set(this, 'showDrop', !this.showDrop);
174
- if (this.showDrop) {
175
- this.getOptions();
176
- }
177
- this.focusHandle();
178
- }
179
- else if ((this.model.popupSearchListType === 0)){
180
- this.$message.warning("请配置参数paramName1");
181
- }
178
+ else if ((this.model.popupSearchListType === 0)){
179
+ this.$message.warning("请配置参数paramName1");
182
180
  }
183
181
  },
184
182
  popupSearchListHandle: function () {
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <div class="field-top">
3
3
  <div style="width:100%;display:flex">
4
- <div style="flex:1" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
4
+ <div style="flex:1;margin-right:5px" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
5
5
  ]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
6
6
  <div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
7
7
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
8
8
  {{model.label}}
9
9
  </div>
10
- <el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']" :trigger="(model.popupSearchListType > 0 || model.lock) ? 'manual' : 'click'">
10
+ <el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']" :trigger="(!model.paramName || model.lock)? 'manual' : 'click'">
11
11
  <div>
12
12
  <div>
13
13
  <el-input ref="searchInput" :size="model.attrs.size" suffix-icon="el-icon-search" v-model="searchText" @input="searchInputHandle"></el-input>
@@ -170,23 +170,18 @@
170
170
  if (this.model.lock) {
171
171
  return false;
172
172
  }
173
- if (this.model.popupSearchListType === 1) {
173
+ if (this.model.paramName) {
174
+ this.$set(this, 'showDrop', !this.showDrop);
175
+ if (this.showDrop) {
176
+ this.getOptions();
177
+ }
178
+ this.focusHandle();
179
+ }
180
+ else if (this.model.popupSearchListType === 1) {
174
181
  this.popupSearchListHandle();
175
182
  }
176
- //else if (this.model.popupSearchListType === 1) {
177
- // //todo 以后可加上即可选单搜索 又可高级搜索
178
- //}
179
- else {
180
- if (this.model.paramName) {
181
- this.$set(this, 'showDrop', !this.showDrop);
182
- if (this.showDrop) {
183
- this.getOptions();
184
- }
185
- this.focusHandle();
186
- }
187
- else if ((this.model.popupSearchListType === 0)) {
188
- this.$message.warning("请配置参数paramName1");
189
- }
183
+ else if ((this.model.popupSearchListType === 0)) {
184
+ this.$message.warning("请配置参数paramName1");
190
185
  }
191
186
  },
192
187
  popupSearchListHandle: function () {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="field-top">
3
3
  <div class="ct-tags" style="width:100%;display:flex">
4
- <div style="flex:1;display:flex" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-tags-'+model.attrs.size:''
4
+ <div style="flex:1;display:flex;margin-right: 5px;" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-tags-'+model.attrs.size:''
5
5
  ]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
6
6
  <div style="flex:1;position: relative;" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
7
7
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
@@ -17,7 +17,7 @@
17
17
  </span>
18
18
  </span>
19
19
  </div>
20
- <el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel1?'showLabel':'']" :trigger="(model.popupSearchListType > 0 || model.lock) ? 'manual' : 'click'">
20
+ <el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel1?'showLabel':'']" :trigger="(!model.paramName || model.lock) ? 'manual' : 'click'">
21
21
  <div>
22
22
  <div>
23
23
  <el-input ref="searchInput" :size="model.attrs.size" suffix-icon="el-icon-search" v-model="searchText" @input="searchInputHandle"></el-input>
@@ -186,21 +186,19 @@
186
186
  clickHandle: function () {
187
187
  if (this.model.lock) {
188
188
  return false;
189
+ }
190
+ if (this.model.paramName) {
191
+ this.$set(this, 'showDrop', !this.showDrop);
192
+ if (this.showDrop) {
193
+ this.getOptions();
194
+ }
195
+ this.focusHandle();
189
196
  }
190
- if (this.model.popupSearchListType === 1) {
197
+ else if(this.model.popupSearchListType === 1) {
191
198
  this.popupSearchListHandle();
192
199
  }
193
- else {
194
- if (this.model.paramName) {
195
- this.$set(this, 'showDrop', !this.showDrop);
196
- if (this.showDrop) {
197
- this.getOptions();
198
- }
199
- this.focusHandle();
200
- }
201
- else if ((this.model.popupSearchListType === 0)) {
202
- this.$message.warning("请配置参数paramName1");
203
- }
200
+ else if ((this.model.popupSearchListType === 0)) {
201
+ this.$message.warning("请配置参数paramName1");
204
202
  }
205
203
  },
206
204
  popupSearchListHandle: function () {
@@ -281,7 +279,12 @@
281
279
  var self = this;
282
280
  optionArr.forEach((s) => {
283
281
  if (!self.model.value.find((v) => { return v === s[self.model.optionAttrs.value] })) {
284
- self.model.options.push(s);
282
+ let op={};
283
+ op[self.model.optionAttrs.value]=s[self.model.optionAttrs.value];
284
+ op[self.model.optionAttrs.label]=s[self.model.optionAttrs.label];
285
+ op[self.model.optionAttrs.rowid]='';
286
+ op[self.model.optionAttrs.flagDeleted]=false;
287
+ self.model.options.push(op);
285
288
  self.model.value.push(s[self.model.optionAttrs.value]);
286
289
  }
287
290
  });
@@ -151,7 +151,9 @@ const Base = function (source) {
151
151
  return bind;
152
152
  },
153
153
  reset() {
154
- this.value = this.defaultValue;
154
+ if(this.type!==Enum.ControlType.Hidden){
155
+ this.value = this.defaultValue;
156
+ }
155
157
  },
156
158
  searchObj:{
157
159
  get dataType() { return source.dearchDataTyp; },
@@ -9,6 +9,7 @@ const Mo = function (source, moreActionRouter) {
9
9
  var rtn = {
10
10
  options: source.code1 === '' ? [] : [].concat(JSON.parse(source.code1)),
11
11
  optionAttrs: {
12
+ rowid: 'rowID',
12
13
  value: 'code',
13
14
  label: 'name',
14
15
  displayLabel:'displayName',
@@ -10,7 +10,10 @@ const SearchCategory = function (source, callBack) {
10
10
  showLabel:true,
11
11
  get value() {
12
12
  if(!data.code1){
13
- return rtn.segmentValue[0].code;
13
+ if(rtn.segmentValue[0][rtn.optionAttrs.displayLabel]){
14
+ rtn.label=rtn.segmentValue[0][rtn.optionAttrs.displayLabel];
15
+ }
16
+ return rtn.segmentValue[0][rtn.optionAttrs.value];
14
17
  }
15
18
  return data.code1;
16
19
  },
@@ -24,7 +27,8 @@ const SearchCategory = function (source, callBack) {
24
27
  value: 'code',
25
28
  label: 'name',
26
29
  actionType: 'actionType',
27
- flagDeleted: 'flagDeleted'
30
+ flagDeleted: 'flagDeleted',
31
+ displayLabel: 'displayName',
28
32
  }
29
33
  };
30
34
  rtn = base.copy(Base(data), rtn);
@@ -647,7 +647,6 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
647
647
  }
648
648
  },
649
649
  doAction(response) {
650
-
651
650
  if (response.responseData) {
652
651
  response = response.responseData;
653
652
  }
@@ -9,6 +9,7 @@ const Tags = function (source, moreActionRouter) {
9
9
  var rtn = {
10
10
  options: source.code1 === '' ? [] : [].concat(JSON.parse(source.code1)),
11
11
  optionAttrs: {
12
+ rowid: 'rowID',
12
13
  value: 'code',
13
14
  label: 'name',
14
15
  displayLabel:'displayName',