centaline-data-driven 1.4.70 → 1.4.72
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/SearchList.vue +4 -4
- package/src/centaline/api/index.js +29 -7
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +5 -1
- package/src/centaline/dynamicEditPictures/src/dynamicEditPictures.vue +10 -2
- package/src/centaline/dynamicFile/src/dynamicFile.vue +30 -6
- package/src/centaline/dynamicForm/src/dynamicForm.vue +71 -15
- package/src/centaline/dynamicForm/src/dynamicFormList.vue +12 -2
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +25 -5
- package/src/centaline/dynamicHyperLink/src/dynamicHyperLink.vue +5 -1
- package/src/centaline/dynamicHyperLinkList/src/dynamicHyperLinkList.vue +5 -1
- package/src/centaline/dynamicMo/src/dynamicMo.vue +5 -1
- package/src/centaline/dynamicPhotoSelect/src/dynamicPhotoSelect.vue +11 -6
- package/src/centaline/dynamicPhotoSelectList/src/dynamicPhotoSelectList.vue +15 -3
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +10 -2
- package/src/centaline/dynamicRepeat/src/dynamicRepeat.vue +5 -1
- package/src/centaline/dynamicRichText/src/dynamicRichText.vue +5 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +7 -7
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +20 -4
- package/src/centaline/dynamicSo/src/dynamicSo.vue +5 -1
- package/src/centaline/dynamicSos/src/dynamicSos.vue +5 -1
- package/src/centaline/dynamicSosTt/src/dynamicSosTt.vue +5 -1
- package/src/centaline/dynamicTags/src/dynamicTags.vue +5 -1
- package/src/centaline/dynamicTree/src/dynamicSearchTree.vue +5 -1
- package/src/centaline/index.js +0 -2
- package/src/centaline/loader/src/ctl/File.js +5 -1
- package/src/centaline/loader/src/ctl/FormList.js +5 -1
- package/src/centaline/loader/src/ctl/SearchScreen.js +3 -0
- 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
package/package.json
CHANGED
package/src/SearchList.vue
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
<ct-searchlist :apiParam="para"
|
|
8
8
|
:searchConditionApi="'/ProfileWorklistList/getLayoutOfSearch'"
|
|
9
9
|
:searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
|
|
10
10
|
:searchDataApi="'/ProfileWorklistList/getListOfSearchModel'"
|
|
11
11
|
:searchStatsApi="'/ProfileWorklistList/getListStats'">
|
|
12
|
-
</ct-searchlist>
|
|
12
|
+
</ct-searchlist>
|
|
13
13
|
|
|
14
|
-
<ct-searchlist :apiParam="para"
|
|
14
|
+
<!-- <ct-searchlist :apiParam="para"
|
|
15
15
|
:searchConditionApi="'/RightValueList/getLayoutOfSearch'"
|
|
16
16
|
:searchDataApi="'/RightValueList/getListOfSearchModel'">
|
|
17
|
-
</ct-searchlist>
|
|
17
|
+
</ct-searchlist> -->
|
|
18
18
|
|
|
19
19
|
<!-- <ct-searchlist
|
|
20
20
|
:searchCategoryApi="'/PropertyPublishList/getLayoutOfSearchCategory'"
|
|
@@ -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
|
}
|
|
@@ -212,7 +213,8 @@ const api = {
|
|
|
212
213
|
Vue.prototype.$common.closeDialog(dialogOption.dialog);
|
|
213
214
|
Vue.prototype.$message({
|
|
214
215
|
message: data.rtnMsg,
|
|
215
|
-
type: 'info'
|
|
216
|
+
type: 'info',
|
|
217
|
+
showClose:true,
|
|
216
218
|
});
|
|
217
219
|
}
|
|
218
220
|
}
|
|
@@ -229,7 +231,11 @@ const api = {
|
|
|
229
231
|
common.confirm(data.rtnMsg, '信息', { confirmButtonText: '确定', flagShowcCancelButton: '0' });
|
|
230
232
|
}
|
|
231
233
|
else {
|
|
232
|
-
Vue.prototype.$message
|
|
234
|
+
Vue.prototype.$message({
|
|
235
|
+
message: response.data.rtnMsg,
|
|
236
|
+
type: 'error',
|
|
237
|
+
showClose:true,
|
|
238
|
+
});
|
|
233
239
|
}
|
|
234
240
|
}
|
|
235
241
|
return Promise.reject(response);
|
|
@@ -248,10 +254,18 @@ const api = {
|
|
|
248
254
|
return this.postThenHandler(response, scripts);
|
|
249
255
|
}).catch((ex) => {
|
|
250
256
|
if (ex.message) {
|
|
251
|
-
Vue.prototype.$message
|
|
257
|
+
Vue.prototype.$message({
|
|
258
|
+
message: ex.message,
|
|
259
|
+
type: 'error',
|
|
260
|
+
showClose:true,
|
|
261
|
+
});
|
|
252
262
|
}
|
|
253
263
|
else if (typeof ex.data === "string") {
|
|
254
|
-
Vue.prototype.$message
|
|
264
|
+
Vue.prototype.$message({
|
|
265
|
+
message: ex.data,
|
|
266
|
+
type: 'error',
|
|
267
|
+
showClose:true,
|
|
268
|
+
});
|
|
255
269
|
}
|
|
256
270
|
return Promise.resolve(ex.data ? ex.data : ex);//错误处理了,直接返回成功,要判断response.rtnCode=200再处理
|
|
257
271
|
});
|
|
@@ -263,10 +277,18 @@ const api = {
|
|
|
263
277
|
return this.postThenHandler(response, scripts);
|
|
264
278
|
}).catch((ex) => {
|
|
265
279
|
if (ex.message) {
|
|
266
|
-
Vue.prototype.$message
|
|
280
|
+
Vue.prototype.$message({
|
|
281
|
+
message: ex.message,
|
|
282
|
+
type: 'error',
|
|
283
|
+
showClose:true,
|
|
284
|
+
});
|
|
267
285
|
}
|
|
268
286
|
else if (typeof ex.data === "string") {
|
|
269
|
-
Vue.prototype.$message
|
|
287
|
+
Vue.prototype.$message({
|
|
288
|
+
message: ex.data,
|
|
289
|
+
type: 'error',
|
|
290
|
+
showClose:true,
|
|
291
|
+
});
|
|
270
292
|
}
|
|
271
293
|
return Promise.resolve(ex.data ? ex.data : ex);//错误处理了,直接返回成功,要判断response.rtnCode=200再处理
|
|
272
294
|
});
|
|
@@ -482,12 +482,20 @@
|
|
|
482
482
|
},
|
|
483
483
|
uploadpro(filesize, res, xhr, flagError) {
|
|
484
484
|
if (flagError) {
|
|
485
|
-
this.$message
|
|
485
|
+
this.$message({
|
|
486
|
+
message: res,
|
|
487
|
+
type: 'error',
|
|
488
|
+
showClose:true,
|
|
489
|
+
});
|
|
486
490
|
return false;
|
|
487
491
|
}
|
|
488
492
|
else if (xhr.status == 200) {
|
|
489
493
|
if (res.rtnCode != 200 && res.rtnMsg != "") {
|
|
490
|
-
this.$message
|
|
494
|
+
this.$message({
|
|
495
|
+
message: res.rtnMsg,
|
|
496
|
+
type: 'error',
|
|
497
|
+
showClose:true,
|
|
498
|
+
});
|
|
491
499
|
return false;
|
|
492
500
|
}
|
|
493
501
|
const Progress = Math.min(100, Math.floor(1E4 * parseInt(res.content.nextOffSet) / parseInt(filesize)) / 100);
|
|
@@ -223,13 +223,21 @@
|
|
|
223
223
|
if (this.model.action === '' && !this.model.lock) {
|
|
224
224
|
this.validMessage = "必须配置上传的URL";
|
|
225
225
|
this.valid = false;
|
|
226
|
-
this.$message
|
|
226
|
+
this.$message({
|
|
227
|
+
message: this.validMessage,
|
|
228
|
+
type: 'error',
|
|
229
|
+
showClose:true,
|
|
230
|
+
});
|
|
227
231
|
}
|
|
228
232
|
},
|
|
229
233
|
handleExceed() {
|
|
230
234
|
this.validMessage = "附件数量最多" + this.model.max + "张";
|
|
231
235
|
this.valid = false;
|
|
232
|
-
this.$message
|
|
236
|
+
this.$message({
|
|
237
|
+
message: this.validMessage,
|
|
238
|
+
type: 'error',
|
|
239
|
+
showClose:true,
|
|
240
|
+
});
|
|
233
241
|
},
|
|
234
242
|
//删除
|
|
235
243
|
handleRemove(file) {
|
|
@@ -359,7 +367,11 @@
|
|
|
359
367
|
if (res.status === 404) {
|
|
360
368
|
let m = JSON.parse(res.message);
|
|
361
369
|
if (m.error) {
|
|
362
|
-
this.$message
|
|
370
|
+
this.$message({
|
|
371
|
+
message: "path(" + m.path + ") " + m.error,
|
|
372
|
+
type: 'warning',
|
|
373
|
+
showClose:true,
|
|
374
|
+
});
|
|
363
375
|
}
|
|
364
376
|
}
|
|
365
377
|
},
|
|
@@ -519,7 +531,11 @@
|
|
|
519
531
|
if (this.model.action === '' && !this.model.lock) {
|
|
520
532
|
this.validMessage = "必须配置上传的URL";
|
|
521
533
|
this.valid = false;
|
|
522
|
-
this.$message
|
|
534
|
+
this.$message({
|
|
535
|
+
message: this.validMessage,
|
|
536
|
+
type: 'error',
|
|
537
|
+
showClose:true,
|
|
538
|
+
});
|
|
523
539
|
}
|
|
524
540
|
// data是上传时附带的额外参数,file是文件
|
|
525
541
|
let url = this.model.action; //上传文件接口
|
|
@@ -546,7 +562,11 @@
|
|
|
546
562
|
var refupload = this.$refs.refupload;
|
|
547
563
|
if (refupload) {
|
|
548
564
|
if (flagError) {
|
|
549
|
-
this.$message
|
|
565
|
+
this.$message({
|
|
566
|
+
message: res,
|
|
567
|
+
type: 'error',
|
|
568
|
+
showClose:true,
|
|
569
|
+
});
|
|
550
570
|
file.source = { "actionType": 2 };
|
|
551
571
|
this.model.deleteFile(file, false);
|
|
552
572
|
this.selfValidExcute("remove");
|
|
@@ -554,7 +574,11 @@
|
|
|
554
574
|
}
|
|
555
575
|
else if (xhr.status == 200) {
|
|
556
576
|
if (res.rtnCode != 200 && res.rtnMsg != "") {
|
|
557
|
-
this.$message
|
|
577
|
+
this.$message({
|
|
578
|
+
message: res.rtnMsg,
|
|
579
|
+
type: 'error',
|
|
580
|
+
showClose:true,
|
|
581
|
+
});
|
|
558
582
|
return false;
|
|
559
583
|
}
|
|
560
584
|
const Progress = Math.min(100, Math.floor(1E4 * parseInt(res.content.nextOffSet) / parseInt(file.size)) / 100);
|
|
@@ -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
|
|
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)
|
|
@@ -343,7 +347,11 @@
|
|
|
343
347
|
field.disabled = false;
|
|
344
348
|
self.model.pageDisabled = false;
|
|
345
349
|
self.$common.closeDialog(dialogOption.dialog);
|
|
346
|
-
self.$message
|
|
350
|
+
self.$message({
|
|
351
|
+
message: data.rtnMsg,
|
|
352
|
+
type: 'warning',
|
|
353
|
+
showClose:true,
|
|
354
|
+
});
|
|
347
355
|
}
|
|
348
356
|
}
|
|
349
357
|
}]
|
|
@@ -581,7 +589,11 @@
|
|
|
581
589
|
finished(data) {
|
|
582
590
|
self.$common.closeDialog(dialogOption.dialog);
|
|
583
591
|
if (data.rtnMsg) {
|
|
584
|
-
self.$message
|
|
592
|
+
self.$message({
|
|
593
|
+
message: response.data.rtnMsg,
|
|
594
|
+
type: 'success',
|
|
595
|
+
showClose:true,
|
|
596
|
+
});
|
|
585
597
|
}
|
|
586
598
|
if (field && field.changeCallBackFunName) {
|
|
587
599
|
self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
|
|
@@ -592,7 +604,11 @@
|
|
|
592
604
|
},
|
|
593
605
|
error(data) {
|
|
594
606
|
self.$common.closeDialog(dialogOption.dialog);
|
|
595
|
-
self.$message
|
|
607
|
+
self.$message({
|
|
608
|
+
message: data.rtnMsg,
|
|
609
|
+
type: 'warning',
|
|
610
|
+
showClose:true,
|
|
611
|
+
});
|
|
596
612
|
}
|
|
597
613
|
}
|
|
598
614
|
}]
|
|
@@ -716,7 +732,11 @@
|
|
|
716
732
|
finished(data) {
|
|
717
733
|
self.$common.closeDialog(dialogOption.dialog);
|
|
718
734
|
if (data.rtnMsg) {
|
|
719
|
-
self.$message
|
|
735
|
+
self.$message({
|
|
736
|
+
message: data.rtnMsg,
|
|
737
|
+
type: 'info',
|
|
738
|
+
showClose:true,
|
|
739
|
+
});
|
|
720
740
|
}
|
|
721
741
|
if (field && field.changeCallBackFunName) {
|
|
722
742
|
self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
|
|
@@ -727,7 +747,11 @@
|
|
|
727
747
|
},
|
|
728
748
|
error(data) {
|
|
729
749
|
self.$common.closeDialog(dialogOption.dialog);
|
|
730
|
-
self.$message
|
|
750
|
+
self.$message({
|
|
751
|
+
message: data.rtnMsg,
|
|
752
|
+
type: 'warning',
|
|
753
|
+
showClose:true,
|
|
754
|
+
});
|
|
731
755
|
}
|
|
732
756
|
}
|
|
733
757
|
}]
|
|
@@ -834,15 +858,27 @@
|
|
|
834
858
|
if (typeof f.validExcute !== 'undefined') {
|
|
835
859
|
if (!f.validExcute()) {
|
|
836
860
|
if (f.validMessage) {
|
|
837
|
-
if (f.validMessage == '必填') {
|
|
838
|
-
self.$message
|
|
861
|
+
if (f.validMessage == '必填') {
|
|
862
|
+
self.$message({
|
|
863
|
+
message: '【' + f.model.label + '】' + f.validMessage,
|
|
864
|
+
type: 'error',
|
|
865
|
+
showClose:true,
|
|
866
|
+
});
|
|
839
867
|
}
|
|
840
868
|
else {
|
|
841
|
-
self.$message
|
|
869
|
+
self.$message({
|
|
870
|
+
message: f.validMessage,
|
|
871
|
+
type: 'error',
|
|
872
|
+
showClose:true,
|
|
873
|
+
});
|
|
842
874
|
}
|
|
843
875
|
}
|
|
844
876
|
else {
|
|
845
|
-
self.$message
|
|
877
|
+
self.$message({
|
|
878
|
+
message: '【' + f.model.label + '】不能为空!',
|
|
879
|
+
type: 'error',
|
|
880
|
+
showClose:true,
|
|
881
|
+
});
|
|
846
882
|
}
|
|
847
883
|
verified = false;
|
|
848
884
|
return;
|
|
@@ -869,7 +905,11 @@
|
|
|
869
905
|
return;
|
|
870
906
|
}
|
|
871
907
|
if (!check) {
|
|
872
|
-
self.$message
|
|
908
|
+
self.$message({
|
|
909
|
+
message: checkMsg,
|
|
910
|
+
type: 'warning',
|
|
911
|
+
showClose:true,
|
|
912
|
+
});
|
|
873
913
|
return;
|
|
874
914
|
}
|
|
875
915
|
if (router.id.indexOf('_') === 0) {
|
|
@@ -918,20 +958,36 @@
|
|
|
918
958
|
if (!f.validExcute()) {
|
|
919
959
|
if (i === 0) {
|
|
920
960
|
if (f.model.is == "ct-file") {
|
|
921
|
-
self.$message
|
|
961
|
+
self.$message({
|
|
962
|
+
message: f.validMessage,
|
|
963
|
+
type: 'error',
|
|
964
|
+
showClose:true,
|
|
965
|
+
});
|
|
922
966
|
}
|
|
923
967
|
else {
|
|
924
968
|
if (f.validMessage) {
|
|
925
969
|
if (f.validMessage == '必填' && f.model.label) {
|
|
926
|
-
self.$message
|
|
970
|
+
self.$message({
|
|
971
|
+
message: '【' + f.model.label + '】' + f.validMessage,
|
|
972
|
+
type: 'error',
|
|
973
|
+
showClose:true,
|
|
974
|
+
});
|
|
927
975
|
}
|
|
928
976
|
else {
|
|
929
|
-
self.$message
|
|
977
|
+
self.$message({
|
|
978
|
+
message: f.validMessage,
|
|
979
|
+
type: 'error',
|
|
980
|
+
showClose:true,
|
|
981
|
+
});
|
|
930
982
|
}
|
|
931
983
|
}
|
|
932
984
|
else {
|
|
933
985
|
if (f.model.label) {
|
|
934
|
-
self.$message
|
|
986
|
+
self.$message({
|
|
987
|
+
message: '【' + f.model.label + '】不能为空!',
|
|
988
|
+
type: 'error',
|
|
989
|
+
showClose:true,
|
|
990
|
+
});
|
|
935
991
|
}
|
|
936
992
|
}
|
|
937
993
|
}
|
|
@@ -110,7 +110,13 @@
|
|
|
110
110
|
}
|
|
111
111
|
else {
|
|
112
112
|
for (let i of self.model.rows) {
|
|
113
|
-
if (i.isSet)
|
|
113
|
+
if (i.isSet) {
|
|
114
|
+
return self.$message({
|
|
115
|
+
message: "请先保存当前编辑项",
|
|
116
|
+
type: 'warning',
|
|
117
|
+
showClose:true,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
114
120
|
}
|
|
115
121
|
let newRow = self.model.getCloneRowData(0);
|
|
116
122
|
newRow.isSet = true;
|
|
@@ -131,7 +137,11 @@
|
|
|
131
137
|
//点击修改 判断是否已经保存所有操作
|
|
132
138
|
for (let i of self.model.rows) {
|
|
133
139
|
if (i.isSet && app.model.currentRow.index !== index) {
|
|
134
|
-
app.$message
|
|
140
|
+
app.$message({
|
|
141
|
+
message: "请先保存当前编辑项",
|
|
142
|
+
type: 'warning',
|
|
143
|
+
showClose:true,
|
|
144
|
+
});
|
|
135
145
|
return false;
|
|
136
146
|
}
|
|
137
147
|
}
|
|
@@ -138,7 +138,11 @@
|
|
|
138
138
|
}
|
|
139
139
|
else {
|
|
140
140
|
for (let i of app.model.tableData) {
|
|
141
|
-
if (i.isSet) return app.$message
|
|
141
|
+
if (i.isSet) return app.$message({
|
|
142
|
+
message: "请先保存当前编辑项",
|
|
143
|
+
type: 'warning',
|
|
144
|
+
showClose:true,
|
|
145
|
+
});
|
|
142
146
|
}
|
|
143
147
|
let newRow = app.model.getCloneRowData(0);
|
|
144
148
|
newRow.isSet = true;
|
|
@@ -160,7 +164,11 @@
|
|
|
160
164
|
//点击修改 判断是否已经保存所有操作
|
|
161
165
|
for (let i of app.model.tableData) {
|
|
162
166
|
if (i.isSet && app.model.currentRow.index !== index) {
|
|
163
|
-
app.$message
|
|
167
|
+
app.$message({
|
|
168
|
+
message: "请先保存当前编辑项",
|
|
169
|
+
type: 'warning',
|
|
170
|
+
showClose:true,
|
|
171
|
+
});
|
|
164
172
|
return false;
|
|
165
173
|
}
|
|
166
174
|
}
|
|
@@ -215,7 +223,11 @@
|
|
|
215
223
|
//判断是否已经保存所有操作
|
|
216
224
|
for (let i of self.model.tableData) {
|
|
217
225
|
if (i.isSet && self.model.currentRow.index !== index) {
|
|
218
|
-
self.$message
|
|
226
|
+
self.$message({
|
|
227
|
+
message: "请先保存当前编辑项",
|
|
228
|
+
type: 'warning',
|
|
229
|
+
showClose:true,
|
|
230
|
+
});
|
|
219
231
|
return false;
|
|
220
232
|
}
|
|
221
233
|
}
|
|
@@ -257,13 +269,21 @@
|
|
|
257
269
|
var rtnBool = true;
|
|
258
270
|
for (let i of self.model.tableData) {
|
|
259
271
|
if (i.isSet) {
|
|
260
|
-
self.$message
|
|
272
|
+
self.$message({
|
|
273
|
+
message: "请先保存表格编辑项",
|
|
274
|
+
type: 'warning',
|
|
275
|
+
showClose:true,
|
|
276
|
+
});
|
|
261
277
|
rtnBool = false;
|
|
262
278
|
}
|
|
263
279
|
};
|
|
264
280
|
|
|
265
281
|
if (rtnBool && self.model.required && this.model.tableData.length === 0) {
|
|
266
|
-
self.$message
|
|
282
|
+
self.$message({
|
|
283
|
+
message: this.model.label + " 表格不能为空",
|
|
284
|
+
type: 'warning',
|
|
285
|
+
showClose:true,
|
|
286
|
+
});
|
|
267
287
|
rtnBool = false;
|
|
268
288
|
}
|
|
269
289
|
self.foucus = true;
|
|
@@ -195,7 +195,11 @@
|
|
|
195
195
|
this.popupSearchListHandle();
|
|
196
196
|
}
|
|
197
197
|
else if ((this.model.popupSearchListType === 0)) {
|
|
198
|
-
this.$message
|
|
198
|
+
this.$message({
|
|
199
|
+
message: "请配置参数paramName1",
|
|
200
|
+
type: 'warning',
|
|
201
|
+
showClose:true,
|
|
202
|
+
});
|
|
199
203
|
}
|
|
200
204
|
},
|
|
201
205
|
popupSearchListHandle: function () {
|
|
@@ -122,12 +122,15 @@ export default {
|
|
|
122
122
|
this.modelPhotoselect.delete(index);
|
|
123
123
|
this.photoList.splice(index, 1);
|
|
124
124
|
},
|
|
125
|
-
handleOpen() {
|
|
126
|
-
|
|
125
|
+
handleOpen() {
|
|
127
126
|
var self = this;
|
|
128
127
|
var chooseList = new Array();
|
|
129
128
|
if (self.modelPhotoselect.action == "") {
|
|
130
|
-
self.$message
|
|
129
|
+
self.$message({
|
|
130
|
+
message: "请配置parameterAction!",
|
|
131
|
+
type: 'warning',
|
|
132
|
+
showClose:true,
|
|
133
|
+
});
|
|
131
134
|
return;
|
|
132
135
|
}
|
|
133
136
|
var params = {
|
|
@@ -160,9 +163,11 @@ export default {
|
|
|
160
163
|
self.$nextTick(function () {
|
|
161
164
|
if (this.modelPhotoselect.max) {
|
|
162
165
|
if (photoList.length > this.modelPhotoselect.max) {
|
|
163
|
-
self.$message
|
|
164
|
-
"图片最多" + this.modelPhotoselect.max + "张"
|
|
165
|
-
|
|
166
|
+
self.$message({
|
|
167
|
+
message: "图片最多" + this.modelPhotoselect.max + "张",
|
|
168
|
+
type: 'warning',
|
|
169
|
+
showClose:true,
|
|
170
|
+
});
|
|
166
171
|
self.valid = false;
|
|
167
172
|
setTimeout(() => {
|
|
168
173
|
self.valid = true;
|
|
@@ -75,7 +75,11 @@
|
|
|
75
75
|
self.loaderObj.PhotoSelectList(self.api, self.load, self.para);
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
|
-
self.$message
|
|
78
|
+
self.$message({
|
|
79
|
+
message: "请配置选择图片API",
|
|
80
|
+
type: 'warning',
|
|
81
|
+
showClose:true,
|
|
82
|
+
});
|
|
79
83
|
}
|
|
80
84
|
})
|
|
81
85
|
},
|
|
@@ -103,7 +107,11 @@
|
|
|
103
107
|
self.imageList = sourceRows;
|
|
104
108
|
//self.imageList=[{thumbnailUrl:'lmg.jj20.com/up/allimg/tp01/1ZZH250054149-0-lp.jpg',mediaUrl:'lmg.jj20.com/up/allimg/tp01/1ZZH250054149-0-lp.jpg'}];
|
|
105
109
|
} catch (e) {
|
|
106
|
-
self.$message
|
|
110
|
+
self.$message({
|
|
111
|
+
message: e,
|
|
112
|
+
type: 'warning',
|
|
113
|
+
showClose:true,
|
|
114
|
+
});
|
|
107
115
|
}
|
|
108
116
|
|
|
109
117
|
},
|
|
@@ -134,7 +142,11 @@
|
|
|
134
142
|
if (this.chooseList && this.chooseList.length > 0) {
|
|
135
143
|
this.$emit('handlePhoto', this.chooseList);
|
|
136
144
|
} else {
|
|
137
|
-
this.$message
|
|
145
|
+
this.$message({
|
|
146
|
+
message: "请选择至少一张图片",
|
|
147
|
+
type: 'warning',
|
|
148
|
+
showClose:true,
|
|
149
|
+
});
|
|
138
150
|
}
|
|
139
151
|
},
|
|
140
152
|
viewerfile(list,index) {
|
|
@@ -128,7 +128,11 @@
|
|
|
128
128
|
var jumpRow;
|
|
129
129
|
|
|
130
130
|
if (!this.jumpStr) {
|
|
131
|
-
|
|
131
|
+
self.$message({
|
|
132
|
+
message: '请输入定位值!',
|
|
133
|
+
type: 'info',
|
|
134
|
+
showClose:true,
|
|
135
|
+
});
|
|
132
136
|
return;
|
|
133
137
|
}
|
|
134
138
|
|
|
@@ -162,7 +166,11 @@
|
|
|
162
166
|
this.$emit('submit', this.currentRow);
|
|
163
167
|
}
|
|
164
168
|
else {
|
|
165
|
-
this.$message
|
|
169
|
+
this.$message({
|
|
170
|
+
message: "请先选择数据",
|
|
171
|
+
type: 'error',
|
|
172
|
+
showClose:true,
|
|
173
|
+
});
|
|
166
174
|
}
|
|
167
175
|
}
|
|
168
176
|
else {
|
|
@@ -115,7 +115,11 @@
|
|
|
115
115
|
rtnBool = false;
|
|
116
116
|
}
|
|
117
117
|
if (rtnBool && self.model.required && this.model.tableData.length === 0) {
|
|
118
|
-
self.$message
|
|
118
|
+
self.$message({
|
|
119
|
+
message: this.model.label + " 表格不能为空",
|
|
120
|
+
type: 'warning',
|
|
121
|
+
showClose:true,
|
|
122
|
+
});
|
|
119
123
|
rtnBool = false;
|
|
120
124
|
}
|
|
121
125
|
return rtnBool;
|
|
@@ -243,7 +243,11 @@
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
if (this.model.action == "" && !this.model.lock) {
|
|
246
|
-
this.$message
|
|
246
|
+
this.$message({
|
|
247
|
+
message: "请配置富文本Action!",
|
|
248
|
+
type: 'warning',
|
|
249
|
+
showClose:true,
|
|
250
|
+
});
|
|
247
251
|
this.config.toolbars = [['help']];
|
|
248
252
|
return;
|
|
249
253
|
}
|