centaline-data-driven 1.1.48 → 1.1.49

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.48",
3
+ "version": "1.1.49",
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,7 @@ html {
431
428
  color: #fff;
432
429
 
433
430
  } */
434
- .el-button--mini, .el-button--mini.is-round{
431
+ .el-button--mini, .el-button--mini.is-round{
435
432
  padding: 0px 19px;
436
433
  }
437
434
  .el-button--primary {
@@ -637,8 +634,8 @@ html {
637
634
  padding: 0 15px 0 5px;
638
635
  } */
639
636
  .ct-Seg .ct-radios .el-input__icon.el-icon-circle-close{
640
- min-height: 27px;
641
- line-height: 27px;
637
+ min-height: 25px;
638
+ line-height: 25px;
642
639
 
643
640
  }
644
641
  .list-field .el-input-group__append, .list-field .el-input-group__prepend{
@@ -733,10 +730,6 @@ html {
733
730
  height: 26px!important;
734
731
  line-height: 26px!important;
735
732
  }
736
- .ct-Seg.ct-Seg-mini .ct-radios, .ct-Seg.ct-Seg-mini .ct-radios .el-radio__label {
737
- min-height: 26px!important;
738
- line-height: 26px;
739
- }
740
733
  .ct-rich-text {
741
734
  min-height: 26px!important;
742
735
  }
@@ -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 => {
@@ -261,4 +261,12 @@
261
261
  .ct-file .el-icon-arrow-down {
262
262
  font-size: 12px;
263
263
  }
264
+ .el-upload--picture-card{
265
+ width: 120px;
266
+ height: 120px;
267
+ line-height: 120px;
268
+ }
269
+ .el-upload--picture-card i{
270
+ font-size: 34px;
271
+ }
264
272
  </style>
@@ -270,7 +270,12 @@
270
270
  var self = this;
271
271
  optionArr.forEach((s) => {
272
272
  if (!self.model.value.find((v) => { return v === s[self.model.optionAttrs.value] })) {
273
- 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);
274
279
  self.model.value.push(s[self.model.optionAttrs.value]);
275
280
  }
276
281
  });
@@ -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',
@@ -646,8 +646,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
646
646
  }
647
647
  }
648
648
  },
649
- doAction(response) {
650
-
649
+ doAction(response) {
651
650
  if (response.responseData) {
652
651
  response = response.responseData;
653
652
  }