centaline-data-driven 1.5.63 → 1.5.65
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/release-log.md +13 -1
- package/src/SearchList.vue +5 -3
- package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +4 -7
- package/src/centaline/dynamicComboBoxWithTextBox/src/dynamicComboBoxWithTextBox.vue +4 -16
- package/src/centaline/dynamicContact/src/dynamicContact.vue +3 -2
- package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +2 -7
- package/src/centaline/dynamicIti/src/dynamicIti.vue +1 -7
- package/src/centaline/dynamicLayout/src/dynamicLayoutLabel.vue +5 -3
- package/src/centaline/dynamicMo/src/dynamicMo.vue +5 -15
- package/src/centaline/dynamicSearchList/src/dynamicSearchCategory.vue +1 -6
- package/src/centaline/dynamicSeg/src/dynamicSeg.vue +4 -10
- package/src/centaline/dynamicSo/src/dynamicSo.vue +6 -16
- package/src/centaline/dynamicSo/src/dynamicSo/345/211/257/346/234/254.vue +5 -2
- package/src/centaline/dynamicSos/src/dynamicSos.vue +7 -10
- package/src/centaline/dynamicSosTt/src/dynamicSosTt.vue +4 -16
- package/src/centaline/dynamicT/src/dynamicT.vue +1 -7
- package/src/centaline/dynamicTags/src/dynamicTags.vue +4 -16
- package/src/centaline/loader/src/ctl/Base.js +57 -1
- package/src/centaline/loader/src/ctl/Checkbox.js +0 -4
- package/src/centaline/loader/src/ctl/ComboBoxWithTextBox.js +0 -4
- package/src/centaline/loader/src/ctl/Dtd.js +0 -4
- package/src/centaline/loader/src/ctl/DtdOld.js +0 -6
- package/src/centaline/loader/src/ctl/Iti.js +0 -4
- package/src/centaline/loader/src/ctl/Mo.js +0 -7
- package/src/centaline/loader/src/ctl/QuickInputSos.js +0 -5
- package/src/centaline/loader/src/ctl/SearchScreen.js +24 -27
- package/src/centaline/loader/src/ctl/So.js +0 -4
- package/src/centaline/loader/src/ctl/Sos.js +0 -5
- package/src/centaline/loader/src/ctl/SosTt.js +0 -5
- package/src/centaline/loader/src/ctl/Tags.js +0 -25
- package/src/centaline/loader/src/ctl/Ttts.js +0 -4
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +0 -5
- package/src/centaline/templateControls/src/dynamicTableCurrency.vue +1 -1
- package/src/main.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js +687 -920
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
package/src/SearchList.vue
CHANGED
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/api/shift-approver/layout'" :searchDataApi="'/api/shift-approver/list'"></ct-searchlist> -->
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
<!-- <ct-searchlist :searchConditionApi="'/mainlandsecond/CustAndContractRegSumList/getLayoutOfSearch'" :searchDataApi="'/mainlandsecond/CustAndContractRegSumList/getList'"></ct-searchlist> -->
|
|
18
|
+
|
|
17
19
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/filemanage/batchdownlist/getLayoutOfSearch'" :searchDataApi="'/filemanage/batchdownlist/getList'"></ct-searchlist> -->
|
|
18
20
|
|
|
19
21
|
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
:searchDataApi="'/RightValueList/getListOfSearchModel'">
|
|
51
53
|
</ct-searchlist> -->
|
|
52
54
|
|
|
53
|
-
<ct-searchlist :searchCategoryApi="'/PropertyPublishList/getLayoutOfSearchCategory'" :searchConditionApi="'/PropertyPublishList/getLayoutOfSearchForRET'" :searchStatsApi="'/PropertyPublishList/getListStatsForRET'" :searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'"></ct-searchlist>
|
|
55
|
+
<!-- <ct-searchlist :searchCategoryApi="'/PropertyPublishList/getLayoutOfSearchCategory'" :searchConditionApi="'/PropertyPublishList/getLayoutOfSearchForRET'" :searchStatsApi="'/PropertyPublishList/getListStatsForRET'" :searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'"></ct-searchlist> -->
|
|
54
56
|
|
|
55
57
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
|
56
58
|
:searchDataApi="'/PropertyRETList/getListOfSearchModel'"
|
|
@@ -58,11 +60,11 @@
|
|
|
58
60
|
:searchStatsApi="'/PropertyRETList/getListStats'">
|
|
59
61
|
</ct-searchlist> -->
|
|
60
62
|
|
|
61
|
-
|
|
63
|
+
<ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'"
|
|
62
64
|
:searchDataApi="'/PropertyOFIList/getListOfSearchModel'"
|
|
63
65
|
:searchCategoryApi="'/PropertyOFIList/getLayoutOfSearchCategory'"
|
|
64
66
|
:searchStatsApi="'/PropertyOFIList/getListStats'">
|
|
65
|
-
</ct-searchlist>
|
|
67
|
+
</ct-searchlist>
|
|
66
68
|
|
|
67
69
|
<!-- <ct-searchlist :searchConditionApi="'/EstateList/getLayoutOfSearch'" :searchDataApi="'/EstateList/getListOfSearchModel'"></ct-searchlist> -->
|
|
68
70
|
|
|
@@ -66,12 +66,7 @@
|
|
|
66
66
|
this.model = data;
|
|
67
67
|
},
|
|
68
68
|
clearClickHandle: function (event) {
|
|
69
|
-
|
|
70
|
-
this.model.reset();
|
|
71
|
-
}
|
|
72
|
-
else{
|
|
73
|
-
this.model.checkedItemArr = [];
|
|
74
|
-
}
|
|
69
|
+
this.model.reset();
|
|
75
70
|
this.inputHandler(this.model.checkedItemArr);
|
|
76
71
|
this.changeHandler(this.model.checkedItemArr);
|
|
77
72
|
this.model.updateCode1();
|
|
@@ -123,7 +118,9 @@
|
|
|
123
118
|
min-height: 26px;
|
|
124
119
|
font-size: 12px;
|
|
125
120
|
}
|
|
126
|
-
|
|
121
|
+
.cover-list-item-span .el-input__icon {
|
|
122
|
+
line-height: initial;
|
|
123
|
+
}
|
|
127
124
|
.ct-checkbox .ct-checkbox-mian .el-icon-circle-close:hover {
|
|
128
125
|
color: #606266;
|
|
129
126
|
}
|
|
@@ -90,14 +90,6 @@
|
|
|
90
90
|
else {
|
|
91
91
|
this.model = this.vmodel;
|
|
92
92
|
}
|
|
93
|
-
this.$watch('model.value', (n, o) => {
|
|
94
|
-
if (typeof this.model.child !== 'undefined') {
|
|
95
|
-
for (var item of this.model.child) {
|
|
96
|
-
item.value = item.defaultValue || '';
|
|
97
|
-
item.text = item.defaultText || '';
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
93
|
},
|
|
102
94
|
computed: {
|
|
103
95
|
soPlaceholder: {
|
|
@@ -137,8 +129,9 @@
|
|
|
137
129
|
var self = this;
|
|
138
130
|
if (typeof this.model.child !== 'undefined') {
|
|
139
131
|
for (var item of this.model.child) {
|
|
140
|
-
|
|
141
|
-
|
|
132
|
+
if(typeof item.reset !== 'undefined'){
|
|
133
|
+
item.reset();
|
|
134
|
+
}
|
|
142
135
|
}
|
|
143
136
|
}
|
|
144
137
|
this.inputHandler(self.model.value);
|
|
@@ -222,12 +215,7 @@
|
|
|
222
215
|
this.$set(this, 'showClear', false);
|
|
223
216
|
},
|
|
224
217
|
clearClickHandle: function () {
|
|
225
|
-
|
|
226
|
-
this.model.reset();
|
|
227
|
-
}
|
|
228
|
-
else{
|
|
229
|
-
this.model.value = '';
|
|
230
|
-
}
|
|
218
|
+
this.model.reset();
|
|
231
219
|
this.soChange();
|
|
232
220
|
}
|
|
233
221
|
}
|
|
@@ -135,8 +135,9 @@ export default {
|
|
|
135
135
|
var self = this;
|
|
136
136
|
if (typeof this.model.child !== 'undefined') {
|
|
137
137
|
for (var item of this.model.child) {
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
if(typeof item.reset !== 'undefined'){
|
|
139
|
+
item.reset();
|
|
140
|
+
}
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
var currentOption = this.model.options.find((value) => {
|
|
@@ -67,13 +67,8 @@
|
|
|
67
67
|
this.model = data;
|
|
68
68
|
this.model.self=this;
|
|
69
69
|
},
|
|
70
|
-
clearClickHandle: function (event) {
|
|
71
|
-
|
|
72
|
-
this.model.reset();
|
|
73
|
-
}
|
|
74
|
-
else{
|
|
75
|
-
this.model.value = '';
|
|
76
|
-
}
|
|
70
|
+
clearClickHandle: function (event) {
|
|
71
|
+
this.model.reset();
|
|
77
72
|
this.inputHandler(this.model.value);
|
|
78
73
|
this.changeHandler(this.model.value);
|
|
79
74
|
this.$emit('blur',event);
|
|
@@ -127,13 +127,7 @@
|
|
|
127
127
|
return true;
|
|
128
128
|
},
|
|
129
129
|
clearClickHandle: function (event,id) {
|
|
130
|
-
|
|
131
|
-
this.model.reset();
|
|
132
|
-
}
|
|
133
|
-
else{
|
|
134
|
-
this.model['value'] ='';
|
|
135
|
-
this.model['value1'] ='';
|
|
136
|
-
}
|
|
130
|
+
this.model.reset();
|
|
137
131
|
this.isShowClear(id);
|
|
138
132
|
},
|
|
139
133
|
mouseOverHandle: function (id) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="model.routerKey&&model.visibility!='0'">
|
|
3
3
|
<div v-if="model.rightRouter&&model.value!=''" class="wb" :style="model.styleObject">
|
|
4
|
-
<a href="javascript:void(0);" @click="clickHandler($event)" class="ct-tablecurrencyItem">
|
|
4
|
+
<a href="javascript:void(0);" @click="clickHandler($event)" class="ct-tablecurrencyItem" :class="cuttentColor">
|
|
5
5
|
{{model.value}}
|
|
6
6
|
</a>
|
|
7
7
|
</div>
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
data() {
|
|
27
27
|
return {
|
|
28
|
+
cuttentColor:'',
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
created() {
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
methods: {
|
|
35
36
|
clickHandler(ev) {
|
|
36
37
|
this.$emit('click', this.model.routerKey, this.rowindex, this.forname, this.forrowindex);
|
|
38
|
+
this.cuttentColor='centerRed';
|
|
37
39
|
}
|
|
38
40
|
},
|
|
39
41
|
computed: {
|
|
@@ -64,7 +66,7 @@
|
|
|
64
66
|
.wb {
|
|
65
67
|
word-break: break-all;
|
|
66
68
|
}
|
|
67
|
-
.
|
|
68
|
-
color: #cb452f;
|
|
69
|
+
.centerRed {
|
|
70
|
+
color: #cb452f !important;
|
|
69
71
|
}
|
|
70
72
|
</style>
|
|
@@ -87,8 +87,9 @@
|
|
|
87
87
|
this.$watch('model.value', (n, o) => {
|
|
88
88
|
if (typeof this.model.child !== 'undefined') {
|
|
89
89
|
for (var item of this.model.child) {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
if(typeof item.reset !== 'undefined'){
|
|
91
|
+
item.reset();
|
|
92
|
+
}
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
});
|
|
@@ -154,13 +155,7 @@
|
|
|
154
155
|
this.model.getOptions(this.api);
|
|
155
156
|
},
|
|
156
157
|
tagsChange: function () {
|
|
157
|
-
var self = this;
|
|
158
|
-
if (typeof this.model.child !== 'undefined') {
|
|
159
|
-
for (var item of this.model.child) {
|
|
160
|
-
item.value = item.defaultValue || '';
|
|
161
|
-
item.text = item.defaultText || '';
|
|
162
|
-
}
|
|
163
|
-
}
|
|
158
|
+
var self = this;
|
|
164
159
|
var currentOptions = this.globalOptions.filter((value) => {
|
|
165
160
|
return self.model.value.indexOf(value[self.model.optionAttrs.value]) >= 0;
|
|
166
161
|
});
|
|
@@ -302,12 +297,7 @@
|
|
|
302
297
|
this.$set(this, 'showClear', false);
|
|
303
298
|
},
|
|
304
299
|
clearClickHandle: function (event) {
|
|
305
|
-
|
|
306
|
-
this.model.reset();
|
|
307
|
-
}
|
|
308
|
-
else{
|
|
309
|
-
this.model.value.splice(0);
|
|
310
|
-
}
|
|
300
|
+
this.model.reset();
|
|
311
301
|
this.resize();
|
|
312
302
|
this.tagsChange();
|
|
313
303
|
event.stopPropagation();
|
|
@@ -57,12 +57,7 @@
|
|
|
57
57
|
this.$emit('loadedCategoryError');
|
|
58
58
|
},
|
|
59
59
|
clearClickHandle: function (event) {
|
|
60
|
-
|
|
61
|
-
this.model.reset();
|
|
62
|
-
}
|
|
63
|
-
else{
|
|
64
|
-
this.model.value = '';
|
|
65
|
-
}
|
|
60
|
+
this.model.reset();
|
|
66
61
|
this.inputHandler(this.model.value);
|
|
67
62
|
this.changeHandler(this.model.value);
|
|
68
63
|
},
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
};
|
|
37
37
|
},
|
|
38
38
|
created() {
|
|
39
|
-
|
|
40
39
|
},
|
|
41
40
|
mounted() {
|
|
42
41
|
var self = this;
|
|
@@ -58,8 +57,9 @@
|
|
|
58
57
|
self.$watch('model.value', (n, o) => {
|
|
59
58
|
if (typeof self.model.child !== 'undefined') {
|
|
60
59
|
for (var item of self.model.child) {
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
if(typeof item.reset !== 'undefined'){
|
|
61
|
+
item.reset();
|
|
62
|
+
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
});
|
|
@@ -83,13 +83,7 @@
|
|
|
83
83
|
this.model.self = this;
|
|
84
84
|
},
|
|
85
85
|
clearClickHandle: function (event) {
|
|
86
|
-
|
|
87
|
-
this.model.reset();
|
|
88
|
-
}
|
|
89
|
-
else{
|
|
90
|
-
this.model.value = '';
|
|
91
|
-
this.model.name1='';
|
|
92
|
-
}
|
|
86
|
+
this.model.reset();
|
|
93
87
|
this.inputHandler(this.model.value);
|
|
94
88
|
this.changeHandler(this.model.value);
|
|
95
89
|
if(this.model.autoSearch) this.$emit('click');
|
|
@@ -77,8 +77,9 @@
|
|
|
77
77
|
this.$watch('model.value', (n, o) => {
|
|
78
78
|
if (typeof this.model.child !== 'undefined') {
|
|
79
79
|
for (var item of this.model.child) {
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
if(typeof item.reset !== 'undefined'){
|
|
81
|
+
item.reset();
|
|
82
|
+
}
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
});
|
|
@@ -139,13 +140,7 @@
|
|
|
139
140
|
this.model.getOptions(this.api);
|
|
140
141
|
},
|
|
141
142
|
soChange: function () {
|
|
142
|
-
var self = this;
|
|
143
|
-
if (typeof this.model.child !== 'undefined') {
|
|
144
|
-
for (var item of this.model.child) {
|
|
145
|
-
item.value = item.defaultValue || '';
|
|
146
|
-
item.text = item.defaultText || '';
|
|
147
|
-
}
|
|
148
|
-
}
|
|
143
|
+
var self = this;
|
|
149
144
|
var currentOption = this.model.options.find((value) => {
|
|
150
145
|
return self.model.value === value[self.model.optionAttrs.value];
|
|
151
146
|
});
|
|
@@ -234,13 +229,8 @@
|
|
|
234
229
|
mouseOutHandle: function () {
|
|
235
230
|
this.$set(this, 'showClear', false);
|
|
236
231
|
},
|
|
237
|
-
clearClickHandle: function (event) {
|
|
238
|
-
|
|
239
|
-
this.model.reset();
|
|
240
|
-
}
|
|
241
|
-
else{
|
|
242
|
-
this.model.value = '';
|
|
243
|
-
}
|
|
232
|
+
clearClickHandle: function (event) {
|
|
233
|
+
this.model.reset();
|
|
244
234
|
this.soChange();
|
|
245
235
|
event.stopPropagation();
|
|
246
236
|
}
|
|
@@ -50,8 +50,11 @@
|
|
|
50
50
|
soChange: function () {
|
|
51
51
|
var self = this;
|
|
52
52
|
if (typeof this.model.child !== 'undefined') {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
for (var item of this.model.child) {
|
|
54
|
+
if(typeof item.reset !== 'undefined'){
|
|
55
|
+
item.reset();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
55
58
|
}
|
|
56
59
|
var currentOption = this.model.options.find((value) => {
|
|
57
60
|
return value[self.model.optionAttrs.value] === self.model.value
|
|
@@ -81,8 +81,9 @@
|
|
|
81
81
|
this.$watch('model.value', (n, o) => {
|
|
82
82
|
if (typeof this.model.child !== 'undefined' && this.model.enableRelationFields) {
|
|
83
83
|
for (var item of this.model.child) {
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
if(typeof item.reset !== 'undefined'){
|
|
85
|
+
item.reset();
|
|
86
|
+
}
|
|
86
87
|
item.enableRelationFields = this.model.enableRelationFields;
|
|
87
88
|
}
|
|
88
89
|
}
|
|
@@ -152,8 +153,9 @@
|
|
|
152
153
|
this.model.enableRelationFields = true;
|
|
153
154
|
if (typeof this.model.child !== 'undefined') {
|
|
154
155
|
for (var item of this.model.child) {
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
if(typeof item.reset !== 'undefined'){
|
|
157
|
+
item.reset();
|
|
158
|
+
}
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
161
|
var currentOption = this.model.options.find((value) => {
|
|
@@ -247,12 +249,7 @@
|
|
|
247
249
|
this.$set(this, 'showClear', false);
|
|
248
250
|
},
|
|
249
251
|
clearClickHandle: function (event) {
|
|
250
|
-
|
|
251
|
-
this.model.reset();
|
|
252
|
-
}
|
|
253
|
-
else{
|
|
254
|
-
this.model.value = '';
|
|
255
|
-
}
|
|
252
|
+
this.model.reset();
|
|
256
253
|
this.soChange();
|
|
257
254
|
event.stopPropagation();
|
|
258
255
|
},
|
|
@@ -90,14 +90,6 @@
|
|
|
90
90
|
else {
|
|
91
91
|
this.model = this.vmodel;
|
|
92
92
|
}
|
|
93
|
-
this.$watch('model.value', (n, o) => {
|
|
94
|
-
if (typeof this.model.child !== 'undefined') {
|
|
95
|
-
for (var item of this.model.child) {
|
|
96
|
-
item.value = item.defaultValue || '';
|
|
97
|
-
item.text = item.defaultText || '';
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
93
|
this.inputHeight = this.inputLineHeight;
|
|
102
94
|
this.model.searchInputHeight = 26;
|
|
103
95
|
this.model.$self=this;
|
|
@@ -162,8 +154,9 @@
|
|
|
162
154
|
var self = this;
|
|
163
155
|
if (typeof this.model.child !== 'undefined') {
|
|
164
156
|
for (var item of this.model.child) {
|
|
165
|
-
|
|
166
|
-
|
|
157
|
+
if(typeof item.reset !== 'undefined'){
|
|
158
|
+
item.reset();
|
|
159
|
+
}
|
|
167
160
|
}
|
|
168
161
|
}
|
|
169
162
|
var currentOption = this.model.options.find((value) => {
|
|
@@ -274,12 +267,7 @@
|
|
|
274
267
|
return true;
|
|
275
268
|
},
|
|
276
269
|
clearClickHandle: function (event) {
|
|
277
|
-
|
|
278
|
-
this.model.reset();
|
|
279
|
-
}
|
|
280
|
-
else{
|
|
281
|
-
this.model.value = '';
|
|
282
|
-
}
|
|
270
|
+
this.model.reset();
|
|
283
271
|
this.soChange();
|
|
284
272
|
event.stopPropagation();
|
|
285
273
|
},
|
|
@@ -168,12 +168,7 @@
|
|
|
168
168
|
this.search();
|
|
169
169
|
},
|
|
170
170
|
clearClickHandle: function (event) {
|
|
171
|
-
|
|
172
|
-
this.model.reset();
|
|
173
|
-
}
|
|
174
|
-
else{
|
|
175
|
-
this.model.value = '';
|
|
176
|
-
}
|
|
171
|
+
this.model.reset();
|
|
177
172
|
this.inputHandler(this.model.value);
|
|
178
173
|
this.changeHandler(this.model.value);
|
|
179
174
|
this.isShowClear();
|
|
@@ -251,7 +246,6 @@
|
|
|
251
246
|
// let h=this.$refs.input.$el.children[0].offsetHeight;
|
|
252
247
|
// let hs=this.$refs.input.$el.children[0].scrollHeight;
|
|
253
248
|
// let ht=this.$refs.input.$el.children[0].scrollTop;
|
|
254
|
-
// console.log(ht+','+h+','+hs)
|
|
255
249
|
let appoint='\n';
|
|
256
250
|
let strat=self.forbiddenWordsValue.length-appoint.length;
|
|
257
251
|
let char=self.forbiddenWordsValue.substr(strat,appoint.length);
|
|
@@ -90,14 +90,6 @@
|
|
|
90
90
|
else {
|
|
91
91
|
this.model = this.vmodel;
|
|
92
92
|
}
|
|
93
|
-
this.$watch('model.value', (n, o) => {
|
|
94
|
-
if (typeof this.model.child !== 'undefined') {
|
|
95
|
-
for (var item of this.model.child) {
|
|
96
|
-
item.value = item.defaultValue || '';
|
|
97
|
-
item.text = item.defaultText || '';
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
93
|
this.inputHeight = this.inputLineHeight;
|
|
102
94
|
this.model.searchInputHeight = 26;
|
|
103
95
|
this.model.$self=this;
|
|
@@ -166,8 +158,9 @@
|
|
|
166
158
|
var self = this;
|
|
167
159
|
if (typeof this.model.child !== 'undefined') {
|
|
168
160
|
for (var item of this.model.child) {
|
|
169
|
-
|
|
170
|
-
|
|
161
|
+
if(typeof item.reset !== 'undefined'){
|
|
162
|
+
item.reset();
|
|
163
|
+
}
|
|
171
164
|
}
|
|
172
165
|
}
|
|
173
166
|
var currentOptions = this.globalOptions.filter((value) => {
|
|
@@ -329,12 +322,7 @@
|
|
|
329
322
|
},
|
|
330
323
|
clearClickHandle: function (event) {
|
|
331
324
|
var self =this;
|
|
332
|
-
|
|
333
|
-
this.model.reset();
|
|
334
|
-
}
|
|
335
|
-
else{
|
|
336
|
-
this.model.value.splice(0);
|
|
337
|
-
}
|
|
325
|
+
this.model.reset();
|
|
338
326
|
if(this.model.lockedValue.length>0){
|
|
339
327
|
this.model.lockedValue.forEach((v) => {
|
|
340
328
|
self.model.value.push(v);
|
|
@@ -193,10 +193,66 @@ const Base = function (source) {
|
|
|
193
193
|
},
|
|
194
194
|
reset() {
|
|
195
195
|
if(this.type!==Enum.ControlType.Hidden
|
|
196
|
+
&& this.isScreen
|
|
196
197
|
&& this.type!==Enum.ControlType.Label
|
|
197
198
|
&& this.type!==Enum.ControlType.MultiLineLabel){
|
|
198
|
-
this.
|
|
199
|
+
if(this.type===Enum.ControlType.DateRange || this.type===Enum.ControlType.DateTimeRange){
|
|
200
|
+
this.value = this.defaultFormat[0];
|
|
201
|
+
this.value1 = this.defaultFormat[1];
|
|
202
|
+
}
|
|
203
|
+
else if(this.type===Enum.ControlType.CheckBox || this.type===Enum.ControlType.CheckBoxList){
|
|
204
|
+
this.value = this.defaultValue;
|
|
205
|
+
this.forceUpdate();
|
|
206
|
+
}
|
|
207
|
+
else if(this.type===Enum.ControlType.MultiSelectNoSearch){
|
|
208
|
+
this.value.splice(0);
|
|
209
|
+
this.defaultValue.forEach((v1) => {
|
|
210
|
+
this.value.push(v1);
|
|
211
|
+
});
|
|
212
|
+
this.text = rtn.defaultText === '' ? [] : JSON.parse(rtn.defaultText);
|
|
213
|
+
}
|
|
214
|
+
else if(this.type===Enum.ControlType.MultiSelectWithSearch){
|
|
215
|
+
this.value.splice(0);
|
|
216
|
+
if(this.model && this.model.lockedValue != undefined && this.model.lockedValue.length>0){
|
|
217
|
+
this.model.lockedValue.forEach((v) => {
|
|
218
|
+
this.model.value.push(v);
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
this.defaultValue.forEach((v1) => {
|
|
222
|
+
this.value.push(v1);
|
|
223
|
+
});
|
|
224
|
+
this.text = rtn.defaultText === '' ? [] : JSON.parse(rtn.defaultText);
|
|
225
|
+
}
|
|
226
|
+
else{
|
|
227
|
+
this.value = this.defaultValue;
|
|
228
|
+
this.value1 = this.defaultValue1;
|
|
229
|
+
this.text = this.defaultText;
|
|
230
|
+
}
|
|
199
231
|
}
|
|
232
|
+
else{
|
|
233
|
+
if(this.type===Enum.ControlType.DateRange || this.type===Enum.ControlType.DateTimeRange){
|
|
234
|
+
this.value = '';
|
|
235
|
+
this.value1 = '';
|
|
236
|
+
}
|
|
237
|
+
else if(this.type===Enum.ControlType.CheckBox || this.type===Enum.ControlType.CheckBoxList){
|
|
238
|
+
this.checkedItemArr = [];
|
|
239
|
+
this.updateCode1();
|
|
240
|
+
}
|
|
241
|
+
else if(this.type===Enum.ControlType.MultiSelectNoSearch){
|
|
242
|
+
this.value.splice(0);
|
|
243
|
+
this.text = [];
|
|
244
|
+
}
|
|
245
|
+
else if(this.type===Enum.ControlType.MultiSelectWithSearch){
|
|
246
|
+
this.value.splice(0);
|
|
247
|
+
this.text = [];
|
|
248
|
+
}
|
|
249
|
+
else{
|
|
250
|
+
this.value = '';
|
|
251
|
+
this.value1 = '';
|
|
252
|
+
this.text = '';
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
if(this.$self && this.$self.searchText) this.$self.searchText='';
|
|
200
256
|
},
|
|
201
257
|
searchObj:{
|
|
202
258
|
get dataType() { return source.dearchDataTyp; },
|
|
@@ -101,10 +101,6 @@ const cbwt = function (source) {
|
|
|
101
101
|
set clearable(v) {
|
|
102
102
|
source.clear = v;
|
|
103
103
|
},
|
|
104
|
-
reset() {
|
|
105
|
-
this.value = this.defaultValue;
|
|
106
|
-
this.text = this.defaultText;
|
|
107
|
-
},
|
|
108
104
|
defaultText: source.defaultName1,
|
|
109
105
|
getOptions(paramsAction, numStr, parentValue) {
|
|
110
106
|
var self = this;
|
|
@@ -61,10 +61,6 @@ const Dtd = function (source, dateType) {
|
|
|
61
61
|
get id1() {
|
|
62
62
|
return source.fieldName2;
|
|
63
63
|
},
|
|
64
|
-
reset() {
|
|
65
|
-
source.code1 = rtn.defaultFormat[0];
|
|
66
|
-
source.code2 = rtn.defaultFormat[1];
|
|
67
|
-
},
|
|
68
64
|
getFormObj() {
|
|
69
65
|
var rtnFormObj = {};
|
|
70
66
|
Object.defineProperty(rtnFormObj, source.fieldName1, {
|
|
@@ -71,12 +71,6 @@ const Dtd = function (source, dateType) {
|
|
|
71
71
|
set id1(v) {
|
|
72
72
|
source.fieldName2 = v;
|
|
73
73
|
},
|
|
74
|
-
reset() {
|
|
75
|
-
this.formatValue = this.defaultFormat;
|
|
76
|
-
//this.setFormatValue(this.defaultFormat);
|
|
77
|
-
source.code1 = this.formatValue[0];
|
|
78
|
-
source.code2 = this.formatValue[1];
|
|
79
|
-
},
|
|
80
74
|
getFormObj() {
|
|
81
75
|
var rtnFormObj = {};
|
|
82
76
|
Object.defineProperty(rtnFormObj, source.fieldName1, {
|
|
@@ -89,13 +89,6 @@ const Mo = function (source, moreActionRouter) {
|
|
|
89
89
|
return '';
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
-
reset() {
|
|
93
|
-
this.value.splice(0);
|
|
94
|
-
this.defaultValue.forEach((v1) => {
|
|
95
|
-
this.value.push(v1);
|
|
96
|
-
});
|
|
97
|
-
this.text = rtn.defaultText === '' ? [] : JSON.parse(rtn.defaultText);
|
|
98
|
-
},
|
|
99
92
|
searchObj: {
|
|
100
93
|
get searchValue1() {
|
|
101
94
|
var rtnStr = "";
|
|
@@ -30,11 +30,6 @@ const QuickInput = function (source, moreActionRouter) {
|
|
|
30
30
|
get parentName() {
|
|
31
31
|
return source.parentField;
|
|
32
32
|
},
|
|
33
|
-
reset() {
|
|
34
|
-
this.value = this.defaultValue;
|
|
35
|
-
this.text = this.defaultText;
|
|
36
|
-
if(this.$self && this.$self.searchText) this.$self.searchText='';
|
|
37
|
-
},
|
|
38
33
|
defaultText: source.defaultName1,
|
|
39
34
|
get labelValue() {
|
|
40
35
|
if (source.name1) {
|