centaline-data-driven 1.4.68 → 1.4.69

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.4.68",
3
+ "version": "1.4.69",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -66,7 +66,12 @@
66
66
  this.model = data;
67
67
  },
68
68
  clearClickHandle: function (event) {
69
- this.model.checkedItemArr = [];
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.value = '';
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.value = '';
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['value'] ='';
125
- this.model['value1'] ='';
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.value.splice(0);
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.value = '';
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
- self.model.isChanged = true;
202
- self.model.hiddenHandle(field);
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.value = '';
87
- this.model.name1='';
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.value = '';
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.value = '';
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.value = '';
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.value = '';
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();
@@ -324,7 +324,12 @@
324
324
  },
325
325
  clearClickHandle: function (event) {
326
326
  var self =this;
327
- this.model.value.splice(0);
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, update) {
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
  };
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.eNrEzjsOwjAQRdG9uGYkZ_5D58SkYRGIRC6gQhAkEGLvBDZBe4r73ivd7lPapkBTZyYYdj0B12LQa5dh0ChSvKD2ctBRKqIZkI0OQ5cJEEuF7NVGqhRq-VA5iuNaWmktYbcD76kACjvTKBwmaZPa45K2nVpkRFfapNNx-YEHKX_hfmvXfXv-49x5Oa2zgpjRZofZvQGbzeBNMshkIXGc8uya3h8AAAD__w.-YYww1TP8xFOBRi6Z5m-EdRD5lKgsvRr83bsRQIcV_A',
51
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEzjsOwjAQRdG9uGYke2Y8HzonJg2LQEkIElSIBAmE2DtBLIL2FPe9V5jvQ9gGRxVjJmh3DQHXotBIitCKl1ysoDT5IF2uiKpA2hm0KRIglgrRqnZUyUXjobIXw7W00lrCtANrqABmNqYus2sOmzA9rmGbRD0lQvdNOPfLDyKKfeE-T7f99PzHuctyXmcndRwZCVzRgTVnGI6nI0jseRzFokQP7w8AAAD__w.6TJZpYdC_fgDwgmjurh6Lyktk3Ga2DC1JUu5C6GxktA',
52
52
 
53
53
  originalRequestURL: 'http://10.88.22.67:8080',
54
54
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',