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 +1 -1
- package/src/Form.vue +1 -1
- package/src/SearchList.vue +1 -1
- package/src/centaline/common/index.js +6 -0
- package/src/centaline/css/common.css +10 -17
- package/src/centaline/dialogList/src/dialog.vue +10 -2
- package/src/centaline/dialogList/src/dialogList.vue +2 -4
- package/src/centaline/dynamicFile/src/dynamicFile.vue +8 -0
- package/src/centaline/dynamicMo/src/dynamicMo.vue +6 -1
- package/src/centaline/loader/src/ctl/Base.js +3 -1
- package/src/centaline/loader/src/ctl/Mo.js +1 -0
- package/src/centaline/loader/src/ctl/SearchTable.js +1 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Form.vue
CHANGED
package/src/SearchList.vue
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script>
|
|
11
11
|
import Vue from 'vue'
|
|
12
12
|
export default {
|
|
13
|
-
name: '
|
|
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:
|
|
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
|
-
|
|
421
|
-
|
|
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:
|
|
641
|
-
line-height:
|
|
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
|
-
|
|
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 => {
|
|
@@ -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
|
-
|
|
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.
|
|
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; },
|