centaline-data-driven 1.4.0 → 1.4.1
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/centaline/api/index.js +27 -12
- package/src/centaline/dynamicFile/src/dynamicFile.vue +199 -63
- package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +7 -6
- package/src/centaline/dynamicIti/src/dynamicIti.vue +11 -9
- package/src/centaline/dynamicPhotoSelect/src/dynamicPhotoSelect.vue +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicTableTip.vue +1 -1
- package/src/centaline/dynamicT/src/dynamicT.vue +15 -1
- package/src/centaline/loader/src/ctl/File.js +60 -0
- package/src/centaline/loader/src/ctl/SliceUpload.js +73 -0
- package/src/centaline/loader/src/ctl/lib/Enum.js +4 -0
- package/src/centaline/mixins/dynamicElement.js +7 -0
- package/src/centaline/validate/index.js +0 -23
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -63,6 +63,13 @@ export default {
|
|
|
63
63
|
self.validExcuteMessage(validtemp);
|
|
64
64
|
return false;
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
//组件个性化校验
|
|
68
|
+
if ("undefined" !== typeof this.selfValidExcute) {
|
|
69
|
+
if (!this.selfValidExcute("input")) {
|
|
70
|
+
self.valid = false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
if (typeof self.model.value !== 'undefined') {
|
|
@@ -157,20 +157,6 @@ const actions = {
|
|
|
157
157
|
return true;
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
|
-
forbiddenWords(model) {
|
|
161
|
-
var flag=true;
|
|
162
|
-
if (model.value) {
|
|
163
|
-
let joinChar= model.joinChar || ',';
|
|
164
|
-
model.forbiddenWords.split(joinChar).forEach(w => {
|
|
165
|
-
let reg1=new RegExp(w,'g');
|
|
166
|
-
if(reg1.test(model.value)){
|
|
167
|
-
flag=false;
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
return flag;
|
|
173
|
-
},
|
|
174
160
|
};
|
|
175
161
|
|
|
176
162
|
const valid = {
|
|
@@ -243,12 +229,6 @@ const valid = {
|
|
|
243
229
|
type: 'validateLenMin',
|
|
244
230
|
ticker: 'input'
|
|
245
231
|
},
|
|
246
|
-
forbiddenWords: {
|
|
247
|
-
action: actions.forbiddenWords,
|
|
248
|
-
message: '输入文字中包含违禁词',
|
|
249
|
-
type: 'forbiddenWords',
|
|
250
|
-
ticker: 'input'
|
|
251
|
-
},
|
|
252
232
|
Init(model) {
|
|
253
233
|
return {
|
|
254
234
|
//废弃 todo 删除
|
|
@@ -323,9 +303,6 @@ const valid = {
|
|
|
323
303
|
if(model.min && model.min>0){
|
|
324
304
|
rtnValidate.push(valid.validateLenMin);
|
|
325
305
|
}
|
|
326
|
-
if(model.forbiddenWords){
|
|
327
|
-
rtnValidate.push(valid.forbiddenWords);
|
|
328
|
-
}
|
|
329
306
|
break;
|
|
330
307
|
default:
|
|
331
308
|
break;
|
package/src/main.js
CHANGED
|
@@ -43,7 +43,7 @@ Vue.use(centaline, {
|
|
|
43
43
|
getRequestHeaders: function () {
|
|
44
44
|
return {
|
|
45
45
|
oldToken: '854e91e2-3a5e-42af-a522-c51a0f5c09bc',
|
|
46
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
46
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrsOgkAQRf9laiZhYHaGpdMFGz-C7LJrgpXhkWiM_65G6Og9xSlOc-8TpiVADbqCO9ro7AruaKMjYqskLR6sOmThEityFToWx6emLd2xgQzS_QY1iagQWckzGPz8C6Yw5huWKY3n9PjHues8fGbJJuOrS0SKRY8cPGPQKBhTXirlXmMv8HoDAAD__w.gv5xV0ypbUsmam7QpRtTNsZhNoxbL3P4F2Rp2aYHb3Y',
|
|
47
47
|
|
|
48
48
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
49
49
|
EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
|