centaline-data-driven 1.4.69 → 1.4.71

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.69",
3
+ "version": "1.4.71",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
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="'/system/menuright/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
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
- "searchFields":{"fields":[]},"actionType":2
15
+ publishID: "1637690032707997696", actionType: 3
16
16
  },
17
17
  topHeight:10,
18
18
  }
@@ -187,7 +187,8 @@ const api = {
187
187
  else {
188
188
  Vue.prototype.$message({
189
189
  message: response.data.rtnMsg,
190
- type: 'success'
190
+ type: 'success',
191
+ showClose:true,
191
192
  });
192
193
  }
193
194
  }
@@ -332,7 +332,11 @@
332
332
  self.model.pageDisabled = false;
333
333
  self.$common.closeDialog(dialogOption.dialog);
334
334
  if (data.rtnMsg) {
335
- self.$message.success(data.rtnMsg);
335
+ self.$message({
336
+ message: response.data.rtnMsg,
337
+ type: 'success',
338
+ showClose:true,
339
+ });
336
340
  }
337
341
  if (data.notification === 17) {
338
342
  self.clickHandler(self.model.getRtnRouter(data.content), null)
@@ -581,7 +585,11 @@
581
585
  finished(data) {
582
586
  self.$common.closeDialog(dialogOption.dialog);
583
587
  if (data.rtnMsg) {
584
- self.$message.success(data.rtnMsg);
588
+ self.$message({
589
+ message: response.data.rtnMsg,
590
+ type: 'success',
591
+ showClose:true,
592
+ });
585
593
  }
586
594
  if (field && field.changeCallBackFunName) {
587
595
  self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
@@ -1030,7 +1030,11 @@ export default {
1030
1030
  finished(data) {
1031
1031
  self.$common.closeDialog(dialogOption.dialog);
1032
1032
  if (data.rtnMsg) {
1033
- self.$message.success(data.rtnMsg);
1033
+ self.$message({
1034
+ message: response.data.rtnMsg,
1035
+ type: 'success',
1036
+ showClose:true,
1037
+ });
1034
1038
  }
1035
1039
  if(!field.isExport)
1036
1040
  {
@@ -246,7 +246,7 @@
246
246
  let res=this.forbiddenWordsValue.match(reg1)
247
247
  if(res && res.length>0){
248
248
  flag=false;
249
- this.validMessage="输入文字中包含"+res.length+"个违禁词";
249
+ this.validMessage = (this.validMessage?this.validMessage+" ":"") + "输入文字中包含"+res.length+"个违禁词";
250
250
  }
251
251
  this.valid = flag;
252
252
  }
@@ -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
- return false;
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
- return false;
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
- return false;
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.eNrEzjsOwjAQRdG9uGYke2Y8HzonJg2LQEkIElSIBAmE2DtBLIL2FPe9V5jvQ9gGRxVjJmh3DQHXotBIitCKl1ysoDT5IF2uiKpA2hm0KRIglgrRqnZUyUXjobIXw7W00lrCtANrqABmNqYus2sOmzA9rmGbRD0lQvdNOPfLDyKKfeE-T7f99PzHuctyXmcndRwZCVzRgTVnGI6nI0jseRzFokQP7w8AAAD__w.6TJZpYdC_fgDwgmjurh6Lyktk3Ga2DC1JUu5C6GxktA',
51
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjkEOwjAMBP-SM5YS27EdbmlDLzyialCR4IRoK4EQfyeIR3Ad7c7uyy1bdXuXUMWYCfpDR8AlK3QSPPSScsyWUbo4yhALoiqQDgZ98ASIuYC3ogMVSqJ-LJyyYTM11EwYDmAdZcDIxjREThrdzs2Pm9sH0cQqiLhzl2n9AbJkX7At8_04P_9x7rpe2uy5NepcFYTFt7AgVKQz6EnVq01UQ3TvDwAAAP__.NfZrt1wK0fZT3WdJplCcBlTe7PriWBvxZb0MU_YWWoA',
52
52
 
53
53
  originalRequestURL: 'http://10.88.22.67:8080',
54
54
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',