centaline-data-driven 1.4.68 → 1.4.70
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 +2 -2
- package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +6 -1
- package/src/centaline/dynamicComboBoxWithTextBox/src/dynamicComboBoxWithTextBox.vue +6 -1
- package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +7 -2
- package/src/centaline/dynamicIti/src/dynamicIti.vue +7 -2
- package/src/centaline/dynamicMo/src/dynamicMo.vue +6 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchCategory.vue +6 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +6 -4
- package/src/centaline/dynamicSeg/src/dynamicSeg.vue +7 -2
- package/src/centaline/dynamicSo/src/dynamicSo.vue +7 -2
- package/src/centaline/dynamicSos/src/dynamicSos.vue +6 -1
- package/src/centaline/dynamicSosTt/src/dynamicSosTt.vue +6 -1
- package/src/centaline/dynamicT/src/dynamicT.vue +7 -2
- package/src/centaline/dynamicTags/src/dynamicTags.vue +6 -1
- package/src/centaline/loader/src/ctl/SearchScreen.js +3 -19
- package/src/centaline/mixins/dynamicElement.js +24 -3
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/PropertyPublish/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
|
|
15
|
+
publishID: "1637690032707997696", actionType: 3
|
|
16
16
|
},
|
|
17
17
|
topHeight:10,
|
|
18
18
|
}
|
|
@@ -66,7 +66,12 @@
|
|
|
66
66
|
this.model = data;
|
|
67
67
|
},
|
|
68
68
|
clearClickHandle: function (event) {
|
|
69
|
-
this.model.
|
|
69
|
+
if(this.model.isScreen){
|
|
70
|
+
this.model.reset();
|
|
71
|
+
}
|
|
72
|
+
else{
|
|
73
|
+
this.model.checkedItemArr = [];
|
|
74
|
+
}
|
|
70
75
|
this.inputHandler(this.model.checkedItemArr);
|
|
71
76
|
this.changeHandler(this.model.checkedItemArr);
|
|
72
77
|
this.model.updateCode1();
|
|
@@ -222,7 +222,12 @@
|
|
|
222
222
|
this.$set(this, 'showClear', false);
|
|
223
223
|
},
|
|
224
224
|
clearClickHandle: function () {
|
|
225
|
-
this.model.
|
|
225
|
+
if(this.model.isScreen){
|
|
226
|
+
this.model.reset();
|
|
227
|
+
}
|
|
228
|
+
else{
|
|
229
|
+
this.model.value = '';
|
|
230
|
+
}
|
|
226
231
|
this.soChange();
|
|
227
232
|
}
|
|
228
233
|
}
|
|
@@ -67,8 +67,13 @@
|
|
|
67
67
|
this.model = data;
|
|
68
68
|
this.model.self=this;
|
|
69
69
|
},
|
|
70
|
-
clearClickHandle: function (event) {
|
|
71
|
-
this.model.
|
|
70
|
+
clearClickHandle: function (event) {
|
|
71
|
+
if(this.model.isScreen){
|
|
72
|
+
this.model.reset();
|
|
73
|
+
}
|
|
74
|
+
else{
|
|
75
|
+
this.model.value = '';
|
|
76
|
+
}
|
|
72
77
|
this.inputHandler(this.model.value);
|
|
73
78
|
this.changeHandler(this.model.value);
|
|
74
79
|
this.$emit('blur',event);
|
|
@@ -121,8 +121,13 @@
|
|
|
121
121
|
return true;
|
|
122
122
|
},
|
|
123
123
|
clearClickHandle: function (event,id) {
|
|
124
|
-
this.model
|
|
125
|
-
|
|
124
|
+
if(this.model.isScreen){
|
|
125
|
+
this.model.reset();
|
|
126
|
+
}
|
|
127
|
+
else{
|
|
128
|
+
this.model['value'] ='';
|
|
129
|
+
this.model['value1'] ='';
|
|
130
|
+
}
|
|
126
131
|
this.isShowClear(id);
|
|
127
132
|
},
|
|
128
133
|
mouseOverHandle: function (id) {
|
|
@@ -298,7 +298,12 @@
|
|
|
298
298
|
this.$set(this, 'showClear', false);
|
|
299
299
|
},
|
|
300
300
|
clearClickHandle: function (event) {
|
|
301
|
-
this.model.
|
|
301
|
+
if(this.model.isScreen){
|
|
302
|
+
this.model.reset();
|
|
303
|
+
}
|
|
304
|
+
else{
|
|
305
|
+
this.model.value.splice(0);
|
|
306
|
+
}
|
|
302
307
|
this.resize();
|
|
303
308
|
this.tagsChange();
|
|
304
309
|
event.stopPropagation();
|
|
@@ -59,7 +59,12 @@
|
|
|
59
59
|
this.$emit('loadedCategoryError');
|
|
60
60
|
},
|
|
61
61
|
clearClickHandle: function (event) {
|
|
62
|
-
this.model.
|
|
62
|
+
if(this.model.isScreen){
|
|
63
|
+
this.model.reset();
|
|
64
|
+
}
|
|
65
|
+
else{
|
|
66
|
+
this.model.value = '';
|
|
67
|
+
}
|
|
63
68
|
this.inputHandler(this.model.value);
|
|
64
69
|
this.changeHandler(this.model.value);
|
|
65
70
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="st-serach-screen">
|
|
3
|
-
<div v-bind="model.attrs" style="width:100%" v-if="!isLoading && model">
|
|
3
|
+
<div v-bind="model.attrs" style="width:100%" v-if="!isLoading && model" :key="keyScreen">
|
|
4
4
|
<div :class="isLayout === true ? 'ct-ptl0 max-ptb5' : 'ct-ptb5 max-ptb5'" v-if="showScreen">
|
|
5
5
|
<template v-for="(col, index) in model.screen" v-if="col.show !== false">
|
|
6
6
|
<br v-if="col.is === 'ct-linefeed'" />
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
highScreen: false,
|
|
53
53
|
showScreen: true,
|
|
54
54
|
isLayout: false,
|
|
55
|
+
keyScreen:1,
|
|
55
56
|
}
|
|
56
57
|
},
|
|
57
58
|
mounted() {
|
|
@@ -198,8 +199,8 @@
|
|
|
198
199
|
// this.$common.excute.call(this.model.scripts, field.change);
|
|
199
200
|
}
|
|
200
201
|
|
|
201
|
-
|
|
202
|
-
|
|
202
|
+
this.model.isChanged = true;
|
|
203
|
+
this.model.hiddenHandle(field);
|
|
203
204
|
// self.model.requiredHandle(field);
|
|
204
205
|
//self.model.validMrf(field);
|
|
205
206
|
|
|
@@ -210,7 +211,8 @@
|
|
|
210
211
|
// self.clickHandler(router);
|
|
211
212
|
// }
|
|
212
213
|
|
|
213
|
-
self.$forceUpdate();
|
|
214
|
+
// self.$forceUpdate();
|
|
215
|
+
this.keyScreen++;
|
|
214
216
|
},
|
|
215
217
|
}
|
|
216
218
|
}
|
|
@@ -83,8 +83,13 @@
|
|
|
83
83
|
this.model.self = this;
|
|
84
84
|
},
|
|
85
85
|
clearClickHandle: function (event) {
|
|
86
|
-
this.model.
|
|
87
|
-
|
|
86
|
+
if(this.model.isScreen){
|
|
87
|
+
this.model.reset();
|
|
88
|
+
}
|
|
89
|
+
else{
|
|
90
|
+
this.model.value = '';
|
|
91
|
+
this.model.name1='';
|
|
92
|
+
}
|
|
88
93
|
this.inputHandler(this.model.value);
|
|
89
94
|
this.changeHandler(this.model.value);
|
|
90
95
|
if(this.model.autoSearch) this.$emit('click');
|
|
@@ -230,8 +230,13 @@
|
|
|
230
230
|
mouseOutHandle: function () {
|
|
231
231
|
this.$set(this, 'showClear', false);
|
|
232
232
|
},
|
|
233
|
-
clearClickHandle: function (event) {
|
|
234
|
-
this.model.
|
|
233
|
+
clearClickHandle: function (event) {
|
|
234
|
+
if(this.model.isScreen){
|
|
235
|
+
this.model.reset();
|
|
236
|
+
}
|
|
237
|
+
else{
|
|
238
|
+
this.model.value = '';
|
|
239
|
+
}
|
|
235
240
|
this.soChange();
|
|
236
241
|
event.stopPropagation();
|
|
237
242
|
}
|
|
@@ -241,7 +241,12 @@
|
|
|
241
241
|
this.$set(this, 'showClear', false);
|
|
242
242
|
},
|
|
243
243
|
clearClickHandle: function (event) {
|
|
244
|
-
this.model.
|
|
244
|
+
if(this.model.isScreen){
|
|
245
|
+
this.model.reset();
|
|
246
|
+
}
|
|
247
|
+
else{
|
|
248
|
+
this.model.value = '';
|
|
249
|
+
}
|
|
245
250
|
this.soChange();
|
|
246
251
|
event.stopPropagation();
|
|
247
252
|
},
|
|
@@ -262,7 +262,12 @@
|
|
|
262
262
|
return true;
|
|
263
263
|
},
|
|
264
264
|
clearClickHandle: function (event) {
|
|
265
|
-
this.model.
|
|
265
|
+
if(this.model.isScreen){
|
|
266
|
+
this.model.reset();
|
|
267
|
+
}
|
|
268
|
+
else{
|
|
269
|
+
this.model.value = '';
|
|
270
|
+
}
|
|
266
271
|
this.soChange();
|
|
267
272
|
event.stopPropagation();
|
|
268
273
|
},
|
|
@@ -157,7 +157,12 @@
|
|
|
157
157
|
this.search();
|
|
158
158
|
},
|
|
159
159
|
clearClickHandle: function (event) {
|
|
160
|
-
this.model.
|
|
160
|
+
if(this.model.isScreen){
|
|
161
|
+
this.model.reset();
|
|
162
|
+
}
|
|
163
|
+
else{
|
|
164
|
+
this.model.value = '';
|
|
165
|
+
}
|
|
161
166
|
this.inputHandler(this.model.value);
|
|
162
167
|
this.changeHandler(this.model.value);
|
|
163
168
|
this.isShowClear();
|
|
@@ -241,7 +246,7 @@
|
|
|
241
246
|
let res=this.forbiddenWordsValue.match(reg1)
|
|
242
247
|
if(res && res.length>0){
|
|
243
248
|
flag=false;
|
|
244
|
-
this.validMessage="输入文字中包含"+res.length+"个违禁词";
|
|
249
|
+
this.validMessage = (this.validMessage?this.validMessage+" ":"") + "输入文字中包含"+res.length+"个违禁词";
|
|
245
250
|
}
|
|
246
251
|
this.valid = flag;
|
|
247
252
|
}
|
|
@@ -324,7 +324,12 @@
|
|
|
324
324
|
},
|
|
325
325
|
clearClickHandle: function (event) {
|
|
326
326
|
var self =this;
|
|
327
|
-
this.model.
|
|
327
|
+
if(this.model.isScreen){
|
|
328
|
+
this.model.reset();
|
|
329
|
+
}
|
|
330
|
+
else{
|
|
331
|
+
this.model.value.splice(0);
|
|
332
|
+
}
|
|
328
333
|
if(this.model.lockedValue.length>0){
|
|
329
334
|
this.model.lockedValue.forEach((v) => {
|
|
330
335
|
self.model.value.push(v);
|
|
@@ -296,6 +296,7 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
296
296
|
|
|
297
297
|
if (item instanceof Object) {
|
|
298
298
|
item.form = rtn;
|
|
299
|
+
item.isScreen=true;
|
|
299
300
|
rtn.hiddenHandle(item);//是否隐藏关联组件
|
|
300
301
|
rtnscreens.push(item);
|
|
301
302
|
}
|
|
@@ -353,11 +354,10 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
353
354
|
}
|
|
354
355
|
},
|
|
355
356
|
//隐藏关联组件
|
|
356
|
-
hiddenHandle(item
|
|
357
|
+
hiddenHandle(item) {
|
|
357
358
|
if (item.id) {
|
|
358
|
-
let sign = false;
|
|
359
359
|
let field = null;
|
|
360
|
-
|
|
360
|
+
|
|
361
361
|
if(rtn.sourceFieldsArr){
|
|
362
362
|
for (var i in rtn.sourceFieldsArr) {
|
|
363
363
|
if (rtn.sourceFieldsArr[i].hiddenRelationField === item.id) {
|
|
@@ -371,11 +371,6 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
371
371
|
else {
|
|
372
372
|
field.show = true;
|
|
373
373
|
}
|
|
374
|
-
sign = true;
|
|
375
|
-
|
|
376
|
-
if (update && rtn.self && sign) {
|
|
377
|
-
rtn.self.$forceUpdate();
|
|
378
|
-
}
|
|
379
374
|
}
|
|
380
375
|
}
|
|
381
376
|
}
|
|
@@ -394,11 +389,6 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
394
389
|
else {
|
|
395
390
|
field.show = true;
|
|
396
391
|
}
|
|
397
|
-
sign = true;
|
|
398
|
-
|
|
399
|
-
if (update && rtn.self && sign) {
|
|
400
|
-
rtn.self.$forceUpdate();
|
|
401
|
-
}
|
|
402
392
|
}
|
|
403
393
|
}
|
|
404
394
|
}
|
|
@@ -417,16 +407,10 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
417
407
|
else {
|
|
418
408
|
field.show = true;
|
|
419
409
|
}
|
|
420
|
-
sign = true;
|
|
421
|
-
|
|
422
|
-
if (update && rtn.self && sign) {
|
|
423
|
-
rtn.self.$forceUpdate();
|
|
424
|
-
}
|
|
425
410
|
}
|
|
426
411
|
}
|
|
427
412
|
}
|
|
428
413
|
}
|
|
429
|
-
|
|
430
414
|
}
|
|
431
415
|
},
|
|
432
416
|
};
|
|
@@ -54,6 +54,7 @@ export default {
|
|
|
54
54
|
setTimeout(() => {
|
|
55
55
|
self.valid = true;
|
|
56
56
|
self.inputTime = (new Date()).getTime();
|
|
57
|
+
self.validMessage="";
|
|
57
58
|
|
|
58
59
|
//通用校验
|
|
59
60
|
if (this.model.validating) {
|
|
@@ -61,7 +62,9 @@ export default {
|
|
|
61
62
|
self.valid = validtemp.valid;
|
|
62
63
|
if (!self.valid) {
|
|
63
64
|
self.validExcuteMessage(validtemp);
|
|
64
|
-
|
|
65
|
+
if(!self.model.forbiddenWords){
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
//组件个性化校验
|
|
@@ -72,6 +75,10 @@ export default {
|
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
|
|
78
|
+
if(!self.valid){
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
|
|
75
82
|
if (typeof self.model.value !== 'undefined') {
|
|
76
83
|
self.inputOld = self.model.value;
|
|
77
84
|
}
|
|
@@ -95,6 +102,7 @@ export default {
|
|
|
95
102
|
var self = this;
|
|
96
103
|
setTimeout(() => {
|
|
97
104
|
//通用校验
|
|
105
|
+
self.validMessage="";
|
|
98
106
|
var time = (new Date()).getTime();
|
|
99
107
|
if (time > (self.inputTime + 500) || self.valid) {
|
|
100
108
|
if (this.model.validating) {
|
|
@@ -102,7 +110,9 @@ export default {
|
|
|
102
110
|
self.valid = validtemp.valid;
|
|
103
111
|
if (!self.valid) {
|
|
104
112
|
self.validExcuteMessage(validtemp);
|
|
105
|
-
|
|
113
|
+
if(!self.model.forbiddenWords){
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
106
116
|
}
|
|
107
117
|
}
|
|
108
118
|
|
|
@@ -114,6 +124,10 @@ export default {
|
|
|
114
124
|
}
|
|
115
125
|
}
|
|
116
126
|
|
|
127
|
+
if(!self.valid){
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
|
|
117
131
|
if (typeof self.model.value !== 'undefined') {
|
|
118
132
|
self.changeOld = self.model.value;
|
|
119
133
|
}
|
|
@@ -132,6 +146,7 @@ export default {
|
|
|
132
146
|
*/
|
|
133
147
|
validExcute() {
|
|
134
148
|
var self = this;
|
|
149
|
+
self.validMessage="";
|
|
135
150
|
|
|
136
151
|
//通用校验
|
|
137
152
|
if (typeof this.model.validating === "function") {
|
|
@@ -139,7 +154,9 @@ export default {
|
|
|
139
154
|
self.valid = validtemp.valid;
|
|
140
155
|
if (!self.valid) {
|
|
141
156
|
self.validExcuteMessage(validtemp);
|
|
142
|
-
|
|
157
|
+
if(!self.model.forbiddenWords){
|
|
158
|
+
return false;
|
|
159
|
+
}
|
|
143
160
|
}
|
|
144
161
|
}
|
|
145
162
|
|
|
@@ -150,6 +167,10 @@ export default {
|
|
|
150
167
|
}
|
|
151
168
|
}
|
|
152
169
|
|
|
170
|
+
if(!self.valid){
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
|
|
153
174
|
self.valid = true;
|
|
154
175
|
return true;
|
|
155
176
|
},
|
package/src/main.js
CHANGED
|
@@ -48,7 +48,7 @@ Vue.use(centaline, {
|
|
|
48
48
|
getRequestHeaders: function () {
|
|
49
49
|
return {
|
|
50
50
|
oldToken: '3ba3f510-93fd-4103-9249-73c13f3f6fc2',
|
|
51
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
51
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEzj0OwjAMhuG7ZK6lxHbsmC1t6MIhqlBSCSbEjwRC3J0iDsH6DO_3vdz1vncbZ6iSmAmGbU_AJSv0EjwMYjnmlFH6OMkYC6IqkI4JhuAJEHMBn4qOVMhE_VTYcsK1tNJawrCF1FMGjJyYxsim0XWuPc5uE0SN1ESsc8d6-wEa4Rfu13bZtec_zp1ux3W2zkxLixVaOjDwMs9QyQuEQ_XNa8VFyb0_AAAA__8.uZpj4w8uss6yOE8EjTkvOD9VU74AOqkM8oOPzBpR56U',
|
|
52
52
|
|
|
53
53
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
54
54
|
EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
|