centaline-data-driven 1.1.41 → 1.1.46
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/Detail.vue +2 -3
- package/src/Form.vue +14 -2
- package/src/SearchTree.vue +4 -3
- package/src/centaline/css/common.css +12 -5
- package/src/centaline/css/max.css +10 -1
- package/src/centaline/dialogList/src/dialog.vue +4 -2
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +1 -1
- package/src/centaline/dynamicCb/src/dynamicCb.vue +1 -1
- package/src/centaline/dynamicComboBoxWithTextBox/src/dynamicComboBoxWithTextBox.vue +1 -1
- package/src/centaline/dynamicDetail/src/dynamicDetail.vue +3 -2
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +2 -5
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +128 -116
- package/src/centaline/dynamicForm/src/dynamicForm.vue +18 -7
- package/src/centaline/dynamicForm/src/dynamicFormList.vue +1 -1
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +0 -2
- package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +1 -1
- package/src/centaline/dynamicMo/src/dynamicMo.vue +11 -8
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +9 -0
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +4 -2
- package/src/centaline/dynamicSearchList/src/dynamicTableTip.vue +1 -1
- package/src/centaline/dynamicSeg/src/dynamicSeg.vue +2 -2
- package/src/centaline/dynamicSo/src/dynamicSo.vue +9 -9
- package/src/centaline/dynamicSos/src/dynamicSos - /345/244/215/345/210/266.vue" +2 -2
- package/src/centaline/dynamicSos/src/dynamicSos.vue +8 -8
- package/src/centaline/dynamicTags/src/dynamicTags - /345/244/215/345/210/266.vue" +3 -3
- package/src/centaline/dynamicTags/src/dynamicTags.vue +11 -8
- package/src/centaline/dynamicTree/src/dynamicTree.vue +21 -5
- package/src/centaline/dynamicTree/src/dynamicTreeList.vue +1 -1
- package/src/centaline/formData/index.js +19 -8
- package/src/centaline/loader/src/ctl/Detail.js +175 -0
- package/src/centaline/loader/src/ctl/Form.js +3 -1
- package/src/centaline/loader/src/ctl/SearchScreen.js +10 -0
- package/src/centaline/loader/src/ctl/lib/Enum.js +5 -0
- package/src/centaline/loader/src/ctl.js +1 -0
- package/src/main.js +3 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
var self = this;
|
|
224
224
|
this.model.scripts.$fd = field.id;
|
|
225
225
|
this.model.scripts.$result = [];
|
|
226
|
-
|
|
226
|
+
|
|
227
227
|
var clickAcion = function (field) {
|
|
228
228
|
if (field.isSubmit) {
|
|
229
229
|
let verified = true;
|
|
@@ -376,9 +376,11 @@
|
|
|
376
376
|
changeHandler(field) {
|
|
377
377
|
var self = this;
|
|
378
378
|
if (typeof field.change !== 'undefined') {
|
|
379
|
+
if (typeof this.model.scripts !== 'undefined') {
|
|
380
|
+
this.model.scripts.formData.setExcuteListData(this.model.fields);
|
|
381
|
+
}
|
|
379
382
|
this.model.scripts.$fd = field.id;
|
|
380
383
|
this.$common.excute.call(this.model.scripts, field.change);
|
|
381
|
-
|
|
382
384
|
}
|
|
383
385
|
|
|
384
386
|
self.model.isChanged = true;
|
|
@@ -389,12 +391,17 @@
|
|
|
389
391
|
},
|
|
390
392
|
changeCallBackHandler(field, callBackFunName, callBackPara) {
|
|
391
393
|
var self = this;
|
|
392
|
-
|
|
393
|
-
|
|
394
|
+
if(callBackFunName){
|
|
395
|
+
this.model.scripts.$fd = field.id;
|
|
396
|
+
this.$common.excuteFunStr.call(this.model.scripts, callBackFunName, callBackPara);
|
|
397
|
+
}
|
|
394
398
|
self.$forceUpdate();
|
|
395
399
|
},
|
|
396
400
|
inputHandler(field) {
|
|
397
401
|
if (typeof field.input !== 'undefined') {
|
|
402
|
+
if (typeof this.model.scripts !== 'undefined') {
|
|
403
|
+
this.model.scripts.formData.setExcuteListData(this.model.fields);
|
|
404
|
+
}
|
|
398
405
|
this.model.scripts.$fd = field.id;
|
|
399
406
|
this.$common.excute.call(this.model.scripts, field.input);
|
|
400
407
|
}
|
|
@@ -439,7 +446,7 @@
|
|
|
439
446
|
},
|
|
440
447
|
on: {
|
|
441
448
|
submit(option) {
|
|
442
|
-
if (typeof callBack === "function") {
|
|
449
|
+
if (typeof callBack === "function" && !router.callBackFunName) {
|
|
443
450
|
callBack(option);
|
|
444
451
|
}
|
|
445
452
|
|
|
@@ -510,8 +517,7 @@
|
|
|
510
517
|
}
|
|
511
518
|
});
|
|
512
519
|
},
|
|
513
|
-
getFormObj()
|
|
514
|
-
{
|
|
520
|
+
getFormObj(){
|
|
515
521
|
let formData=this.model.getFormObj();
|
|
516
522
|
if(this.$route && this.$route.query && this.$route.query.pageStyle)
|
|
517
523
|
{
|
|
@@ -523,3 +529,8 @@
|
|
|
523
529
|
}
|
|
524
530
|
}
|
|
525
531
|
</script>
|
|
532
|
+
<style scoped>
|
|
533
|
+
.el-collapse{
|
|
534
|
+
border-top: none;
|
|
535
|
+
}
|
|
536
|
+
</style>
|
|
@@ -130,7 +130,6 @@
|
|
|
130
130
|
},
|
|
131
131
|
//修改
|
|
132
132
|
saveRow(row, index, isCancel) {
|
|
133
|
-
console.log(row);
|
|
134
133
|
let app = this;
|
|
135
134
|
if (app.model.dialogEdit) {
|
|
136
135
|
this.editRow(row.$sourceIndex);
|
|
@@ -247,7 +246,6 @@
|
|
|
247
246
|
this.model.change = field.change;
|
|
248
247
|
this.model.currentRowIndex = index;
|
|
249
248
|
this.model.currentEventField = field;
|
|
250
|
-
|
|
251
249
|
self.$emit('change');
|
|
252
250
|
|
|
253
251
|
//如果有汇总列,触发重新计算汇总
|
|
@@ -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="'click'" :disabled="model.lock">
|
|
20
|
+
:trigger="(model.popupSearchListType > 0 || 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>
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
</transition>
|
|
44
44
|
</div>
|
|
45
45
|
<div v-if="model.popupSearchListType === 1 && !model.lock">
|
|
46
|
-
<el-button v-if="!model.moreActionBtnName" size="mini" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
47
|
-
<el-button v-else size="mini" type="primary" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
46
|
+
<el-button v-if="!model.moreActionBtnName" class="h26" size="mini" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
47
|
+
<el-button v-else size="mini" type="primary" class="h26" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
return {
|
|
72
72
|
focus: false,
|
|
73
73
|
showDrop: false,
|
|
74
|
-
inputHeight:
|
|
74
|
+
inputHeight: 26,
|
|
75
75
|
tagsWidth: 175,
|
|
76
76
|
showClear: false,
|
|
77
77
|
globalOptions: []
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
get: function () {
|
|
111
111
|
switch (this.model.attrs.size) {
|
|
112
112
|
case 'mini':
|
|
113
|
-
return
|
|
113
|
+
return 26;
|
|
114
114
|
case 'small':
|
|
115
115
|
return 32;
|
|
116
116
|
case 'medium':
|
|
@@ -271,9 +271,9 @@
|
|
|
271
271
|
selectOptionArr(optionArr) {
|
|
272
272
|
var self = this;
|
|
273
273
|
optionArr.forEach((s) => {
|
|
274
|
-
if (!self.model.value.find((v) => { return v === s.
|
|
274
|
+
if (!self.model.value.find((v) => { return v === s[self.model.optionAttrs.value] })) {
|
|
275
275
|
self.model.options.push(s);
|
|
276
|
-
self.model.value.push(s.
|
|
276
|
+
self.model.value.push(s[self.model.optionAttrs.value]);
|
|
277
277
|
}
|
|
278
278
|
});
|
|
279
279
|
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
color: transparent;
|
|
336
336
|
display: inline-block;
|
|
337
337
|
font-size: inherit;
|
|
338
|
-
line-height:
|
|
338
|
+
line-height: 26px;
|
|
339
339
|
outline: 0;
|
|
340
340
|
padding: 0 15px;
|
|
341
341
|
padding-right: 30px;
|
|
@@ -412,4 +412,7 @@
|
|
|
412
412
|
.ct-mo-value-label {
|
|
413
413
|
padding-left:15px;
|
|
414
414
|
}
|
|
415
|
+
.h26{
|
|
416
|
+
height: 26px;
|
|
417
|
+
}
|
|
415
418
|
</style>
|
|
@@ -107,12 +107,21 @@
|
|
|
107
107
|
searchData() {
|
|
108
108
|
this.$refs.table.searchComplate(this.model);
|
|
109
109
|
},
|
|
110
|
+
reset() {
|
|
111
|
+
this.model.fields.forEach((v) => {
|
|
112
|
+
v.reset();
|
|
113
|
+
});
|
|
114
|
+
},
|
|
110
115
|
getClickHandler(action) {
|
|
111
116
|
var fun = {};
|
|
112
117
|
switch (action) {
|
|
113
118
|
case 'search':
|
|
114
119
|
this.searchData();
|
|
115
120
|
break;
|
|
121
|
+
case 'reset':
|
|
122
|
+
this.reset();
|
|
123
|
+
this.searchData();
|
|
124
|
+
break;
|
|
116
125
|
default:
|
|
117
126
|
break;
|
|
118
127
|
}
|
|
@@ -192,10 +192,11 @@
|
|
|
192
192
|
self.colHasWidth[vi] = 'nowidth';
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
|
+
debugger;
|
|
195
196
|
self.isLoading = false;
|
|
196
197
|
self.$forceUpdate();
|
|
197
198
|
this.model.scripts.formData = this.model.formData;
|
|
198
|
-
this.model.scripts.formData.
|
|
199
|
+
this.model.scripts.formData.formTable = this.model;
|
|
199
200
|
|
|
200
201
|
self.$emit('loaded');
|
|
201
202
|
self.$emit('showTitle');
|
|
@@ -764,6 +765,7 @@
|
|
|
764
765
|
// let parm={submitData:submitData,field:field}
|
|
765
766
|
// self.$common.excuteFunStr.call(self.model.scripts, field.action,parm);
|
|
766
767
|
let title=field.pageTitle==undefined ?field.label:field.pageTitle;
|
|
768
|
+
submitData.actionType=field.actionType;
|
|
767
769
|
var fun =self.$common.getDataDrivenOpts().handler[action];
|
|
768
770
|
fun(submitData,title,self.model);
|
|
769
771
|
// var fun = self.model.scripts.formData[action];
|
|
@@ -923,7 +925,7 @@
|
|
|
923
925
|
|
|
924
926
|
.ct-table-mini {
|
|
925
927
|
font-size: 12px;
|
|
926
|
-
line-height:
|
|
928
|
+
line-height: 26px;
|
|
927
929
|
min-height: 28px;
|
|
928
930
|
}
|
|
929
931
|
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
border-radius: 4px;
|
|
82
82
|
/*border: 1px solid #dcdfe6;*/
|
|
83
83
|
line-height: 40px;
|
|
84
|
-
padding-left: 15px;
|
|
84
|
+
/* padding-left: 15px; */
|
|
85
85
|
}
|
|
86
86
|
.ct-Seg .ct-radios:hover {
|
|
87
87
|
border-color: #c0c4cc;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
}*/
|
|
92
92
|
.ct-Seg .ct-radios .el-radio {
|
|
93
93
|
margin-left: 0px;
|
|
94
|
-
margin-right:
|
|
94
|
+
margin-right: 15px;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.ct-Seg .ct-radios .ct-Seg-label {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
</span>
|
|
33
33
|
</transition>
|
|
34
34
|
<div v-if="!model.lock && model.popupSearchListType === 1">
|
|
35
|
-
<el-button v-if="!model.moreActionBtnName" size="mini" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
36
|
-
<el-button v-else size="mini" type="primary" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
35
|
+
<el-button v-if="!model.moreActionBtnName" size="mini" type="primary" class="h26" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
36
|
+
<el-button v-else size="mini" type="primary" class="h26" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
return {
|
|
63
63
|
focus: false,
|
|
64
64
|
showDrop: false,
|
|
65
|
-
inputHeight:
|
|
65
|
+
inputHeight: 26,
|
|
66
66
|
showClear:false
|
|
67
67
|
}
|
|
68
68
|
},
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
get: function () {
|
|
100
100
|
switch (this.model.attrs.size) {
|
|
101
101
|
case 'mini':
|
|
102
|
-
return
|
|
102
|
+
return 26;
|
|
103
103
|
case 'small':
|
|
104
104
|
return 32;
|
|
105
105
|
case 'medium':
|
|
@@ -186,10 +186,7 @@
|
|
|
186
186
|
self.$emit('popupSearchList', true, self.model, self.model.moreActionRouter, (option) => {
|
|
187
187
|
self.model.value = option[self.model.optionAttrs.value];
|
|
188
188
|
self.model.text = option[self.model.optionAttrs.label];
|
|
189
|
-
self.model.options.push(
|
|
190
|
-
code: self.model.value,
|
|
191
|
-
name: self.model.text
|
|
192
|
-
});
|
|
189
|
+
self.model.options.push(option);
|
|
193
190
|
|
|
194
191
|
self.soChange();
|
|
195
192
|
});
|
|
@@ -254,7 +251,7 @@
|
|
|
254
251
|
color: #606266;
|
|
255
252
|
display: inline-block;
|
|
256
253
|
font-size: inherit;
|
|
257
|
-
line-height:
|
|
254
|
+
line-height: 26px;
|
|
258
255
|
outline: 0;
|
|
259
256
|
padding: 0 15px;
|
|
260
257
|
padding-right: 30px;
|
|
@@ -327,4 +324,7 @@
|
|
|
327
324
|
.ct-so .ct-close > .el-select__caret.is-show-close:hover {
|
|
328
325
|
color: #909399;
|
|
329
326
|
}
|
|
327
|
+
.h26{
|
|
328
|
+
height: 26px;
|
|
329
|
+
}
|
|
330
330
|
</style>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
return {
|
|
55
55
|
focus: false,
|
|
56
56
|
showDrop: false,
|
|
57
|
-
inputHeight:
|
|
57
|
+
inputHeight: 26,
|
|
58
58
|
showClear: false,
|
|
59
59
|
searchText: ""
|
|
60
60
|
}
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
get: function () {
|
|
93
93
|
switch (this.model.attrs.size) {
|
|
94
94
|
case 'mini':
|
|
95
|
-
return
|
|
95
|
+
return 26;
|
|
96
96
|
case 'small':
|
|
97
97
|
return 32;
|
|
98
98
|
case 'medium':
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
</span>
|
|
36
36
|
</transition>
|
|
37
37
|
<div v-if="!model.lock && model.popupSearchListType === 1">
|
|
38
|
-
<el-button v-if="!model.moreActionBtnName" size="mini" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
39
|
-
<el-button v-else size="mini" type="primary" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
38
|
+
<el-button v-if="!model.moreActionBtnName" size="mini" class="h26" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
39
|
+
<el-button v-else size="mini" type="primary" class="h26" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
return {
|
|
66
66
|
focus: false,
|
|
67
67
|
showDrop: false,
|
|
68
|
-
inputHeight:
|
|
68
|
+
inputHeight: 26,
|
|
69
69
|
showClear: false,
|
|
70
70
|
searchText: ""
|
|
71
71
|
}
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
get: function () {
|
|
104
104
|
switch (this.model.attrs.size) {
|
|
105
105
|
case 'mini':
|
|
106
|
-
return
|
|
106
|
+
return 26;
|
|
107
107
|
case 'small':
|
|
108
108
|
return 32;
|
|
109
109
|
case 'medium':
|
|
@@ -196,10 +196,7 @@
|
|
|
196
196
|
if (option) {
|
|
197
197
|
self.model.value = option[self.model.optionAttrs.value];
|
|
198
198
|
self.model.text = option[self.model.optionAttrs.label];
|
|
199
|
-
self.model.options.push(
|
|
200
|
-
Code: self.model.value,
|
|
201
|
-
Name: self.model.text
|
|
202
|
-
});
|
|
199
|
+
self.model.options.push(option);
|
|
203
200
|
|
|
204
201
|
self.soChange();
|
|
205
202
|
}
|
|
@@ -262,4 +259,7 @@
|
|
|
262
259
|
}
|
|
263
260
|
</script>
|
|
264
261
|
<style>
|
|
262
|
+
.h26{
|
|
263
|
+
height: 26px;
|
|
264
|
+
}
|
|
265
265
|
</style>
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
return {
|
|
65
65
|
focus: false,
|
|
66
66
|
showDrop: false,
|
|
67
|
-
inputHeight:
|
|
67
|
+
inputHeight: 26,
|
|
68
68
|
tagsWidth: 175,
|
|
69
69
|
showClear: false,
|
|
70
70
|
searchText: "",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
get: function () {
|
|
105
105
|
switch (this.model.attrs.size) {
|
|
106
106
|
case 'mini':
|
|
107
|
-
return
|
|
107
|
+
return 26;
|
|
108
108
|
case 'small':
|
|
109
109
|
return 32;
|
|
110
110
|
case 'medium':
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
color: transparent;
|
|
304
304
|
display: inline-block;
|
|
305
305
|
font-size: inherit;
|
|
306
|
-
line-height:
|
|
306
|
+
line-height: 26px;
|
|
307
307
|
outline: 0;
|
|
308
308
|
padding: 0 15px;
|
|
309
309
|
padding-right: 30px;
|
|
@@ -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
|
|
20
|
+
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel1?'showLabel':'']" :trigger="(model.popupSearchListType > 0 || 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>
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
</div>
|
|
47
47
|
|
|
48
48
|
<div v-if="model.popupSearchListType === 1 && !model.lock">
|
|
49
|
-
<el-button v-if="!model.moreActionBtnName" size="mini" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
50
|
-
<el-button v-else size="mini" type="primary" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
49
|
+
<el-button v-if="!model.moreActionBtnName" class="h26" size="mini" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
50
|
+
<el-button v-else size="mini" type="primary" class="h26" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
53
|
</div>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
return {
|
|
77
77
|
focus: false,
|
|
78
78
|
showDrop: false,
|
|
79
|
-
inputHeight:
|
|
79
|
+
inputHeight: 26,
|
|
80
80
|
tagsWidth: 175,
|
|
81
81
|
showClear: false,
|
|
82
82
|
searchText: "",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
get: function () {
|
|
117
117
|
switch (this.model.attrs.size) {
|
|
118
118
|
case 'mini':
|
|
119
|
-
return
|
|
119
|
+
return 26;
|
|
120
120
|
case 'small':
|
|
121
121
|
return 32;
|
|
122
122
|
case 'medium':
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
},
|
|
206
206
|
popupSearchListHandle: function () {
|
|
207
207
|
var self = this;
|
|
208
|
-
|
|
208
|
+
self.showDrop=false;
|
|
209
209
|
self.$emit('popupSearchList', false, self.model, self.model.moreActionRouter, (optionArr) => {
|
|
210
210
|
self.selectOptionArr(optionArr);
|
|
211
211
|
});
|
|
@@ -280,9 +280,9 @@
|
|
|
280
280
|
selectOptionArr(optionArr) {
|
|
281
281
|
var self = this;
|
|
282
282
|
optionArr.forEach((s) => {
|
|
283
|
-
if (!self.model.value.find((v) => { return v === s.
|
|
283
|
+
if (!self.model.value.find((v) => { return v === s[self.model.optionAttrs.value] })) {
|
|
284
284
|
self.model.options.push(s);
|
|
285
|
-
self.model.value.push(s.
|
|
285
|
+
self.model.value.push(s[self.model.optionAttrs.value]);
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
|
|
@@ -418,4 +418,7 @@
|
|
|
418
418
|
.ct-tags-value-label {
|
|
419
419
|
padding-left: 15px;
|
|
420
420
|
}
|
|
421
|
+
.h26{
|
|
422
|
+
height: 26px;
|
|
423
|
+
}
|
|
421
424
|
</style>
|
|
@@ -109,7 +109,9 @@
|
|
|
109
109
|
}
|
|
110
110
|
</script>
|
|
111
111
|
<style lang="scss">
|
|
112
|
-
|
|
112
|
+
.tree-line:first-child div{
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
}
|
|
113
115
|
.el-tree-node {
|
|
114
116
|
position: relative;
|
|
115
117
|
padding-left: 16px;
|
|
@@ -129,13 +131,27 @@
|
|
|
129
131
|
width: 1px;
|
|
130
132
|
position: absolute;
|
|
131
133
|
left: 27px;
|
|
132
|
-
top: -
|
|
134
|
+
top: -1px;
|
|
135
|
+
border-width: 1px;
|
|
136
|
+
border-left: 1px dashed #52627C;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.tree-line .el-tree-node:before:last-child{
|
|
140
|
+
top: -35px;
|
|
141
|
+
}
|
|
142
|
+
.el-tree-node__children .el-tree-node::before {
|
|
143
|
+
content: "";
|
|
144
|
+
height: 100%;
|
|
145
|
+
width: 1px;
|
|
146
|
+
position: absolute;
|
|
147
|
+
left: 27px;
|
|
148
|
+
top: -2px;
|
|
133
149
|
border-width: 1px;
|
|
134
150
|
border-left: 1px dashed #52627C;
|
|
135
151
|
}
|
|
136
152
|
/* 当前最后一个接点的竖线高度 */
|
|
137
153
|
.el-tree-node:last-child::before {
|
|
138
|
-
height:
|
|
154
|
+
height: 15px; /*可以自己调整 */
|
|
139
155
|
}
|
|
140
156
|
|
|
141
157
|
/* 横线 */
|
|
@@ -152,7 +168,7 @@
|
|
|
152
168
|
}
|
|
153
169
|
|
|
154
170
|
.el-tree:first-child .el-tree-node:before {
|
|
155
|
-
height: 46px; /*可以自己调整 */
|
|
171
|
+
// height: 46px; /*可以自己调整 */
|
|
156
172
|
}
|
|
157
173
|
|
|
158
174
|
.el-tree-node__expand-icon {
|
|
@@ -164,7 +180,7 @@
|
|
|
164
180
|
}
|
|
165
181
|
|
|
166
182
|
.el-tree > .el-tree-node:first-child:before {
|
|
167
|
-
border-left: none;
|
|
183
|
+
// border-left: none;
|
|
168
184
|
}
|
|
169
185
|
|
|
170
186
|
.tree > .is-leaf {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-Tree" style="height:100%;">
|
|
3
3
|
<el-container style="height: calc(100vh - 98px);border: 1px solid #eee">
|
|
4
|
-
<el-aside width="
|
|
4
|
+
<el-aside width="15%" 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">
|
|
@@ -11,6 +11,7 @@ const formData = {
|
|
|
11
11
|
common: common,
|
|
12
12
|
Axios: Axios,
|
|
13
13
|
form: null,
|
|
14
|
+
formTable:null,
|
|
14
15
|
excuteData: null,//fields
|
|
15
16
|
fieldsDic: null,//fieldsDic
|
|
16
17
|
_excuteListData: undefined,
|
|
@@ -43,6 +44,7 @@ const formData = {
|
|
|
43
44
|
var rtn1 = this.fieldsDic[id];
|
|
44
45
|
if (rtn1) {
|
|
45
46
|
rtn1.source[attrKey] = attrValue;
|
|
47
|
+
console.log(this.form)
|
|
46
48
|
this.form.hatchHandle(id, attrKey, attrValue, rtn1);
|
|
47
49
|
//this.form.hiddenHandle(rtn1);//隐藏关联的
|
|
48
50
|
|
|
@@ -74,21 +76,30 @@ const formData = {
|
|
|
74
76
|
//获取列表数据
|
|
75
77
|
get excuteListData() {
|
|
76
78
|
if (this._excuteListData) {
|
|
77
|
-
|
|
79
|
+
return this._excuteListData;
|
|
78
80
|
}
|
|
79
81
|
else {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
if (this.excuteData !== null) {
|
|
83
|
+
this._excuteListData = this.excuteData.filter((v) => {
|
|
84
|
+
return typeof v.is !== undefined && v.is === 'ct-form-list-table';
|
|
85
|
+
});
|
|
86
|
+
}
|
|
85
87
|
}
|
|
86
88
|
return this._excuteListData;
|
|
87
89
|
},
|
|
90
|
+
setExcuteListData(fields) {
|
|
91
|
+
this._excuteListData=null;
|
|
92
|
+
if (fields !== null) {
|
|
93
|
+
this.excuteData=fields;
|
|
94
|
+
this._excuteListData = fields.filter((v) => {
|
|
95
|
+
return typeof v.is !== undefined && v.is === 'ct-form-list-table';
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
},
|
|
88
99
|
//获取列表的Field
|
|
89
100
|
getListField(tableName, rowNum, fiedlId) {
|
|
90
101
|
let listData = this.excuteListData.find((v) => {
|
|
91
|
-
|
|
102
|
+
return v.id === tableName;
|
|
92
103
|
});
|
|
93
104
|
if (listData) {
|
|
94
105
|
let field = null;
|
|
@@ -164,7 +175,7 @@ const formData = {
|
|
|
164
175
|
},
|
|
165
176
|
//设置表格某行某列的值
|
|
166
177
|
setListFieldValue(value, tableName, rowNum, fiedlId, attrName) {
|
|
167
|
-
value = value.toString();
|
|
178
|
+
value = value==undefined?"":value.toString();
|
|
168
179
|
tableName = tableName ? tableName : this.form.scripts.$fd;
|
|
169
180
|
let data = this.getListField(tableName, rowNum, fiedlId);
|
|
170
181
|
|