centaline-data-driven 1.3.30 → 1.3.33
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 +6 -6
- package/src/SearchList.vue +4 -4
- package/src/centaline/api/index.js +1 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +56 -5
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +2 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +164 -293
- package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +2 -2
- package/src/centaline/loader/src/ctl/FormList.js +58 -22
- package/src/centaline/loader/src/ctl/Router.js +6 -0
- package/src/centaline/loader/src/ctl/SearchTable.js +28 -2
- package/src/centaline/progress/src/progress.vue +17 -6
- package/src/main.js +4 -4
- 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/Form.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
4
4
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
5
|
-
<ct-form :api="'/api/third-dept-tran/transaction/
|
|
5
|
+
<ct-form :api="'/api/third-dept-tran/transaction/task'" :apiParam="apiParam"></ct-form>
|
|
6
6
|
<!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
|
|
7
7
|
<ct-dialog-list></ct-dialog-list>
|
|
8
8
|
</div>
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
data() {
|
|
15
15
|
return {
|
|
16
16
|
apiParam:{
|
|
17
|
-
actionType:
|
|
18
|
-
|
|
19
|
-
pageOnly: true,
|
|
20
|
-
pageStyle: 2,
|
|
21
|
-
|
|
17
|
+
actionType: "1",
|
|
18
|
+
businessId: "1550013042447081473",
|
|
19
|
+
pageOnly: "true",
|
|
20
|
+
pageStyle: "2",
|
|
21
|
+
stepId: "1550014106894327810"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
},
|
package/src/SearchList.vue
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
</ct-searchlist>
|
|
14
14
|
|
|
15
15
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
:searchDataApi="'/PropertyRETList/getListOfSearchModel'"
|
|
17
|
+
:searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
|
|
18
|
+
:searchStatsApi="'/exampleList/getListStats'">
|
|
19
|
+
</ct-searchlist> -->
|
|
20
20
|
|
|
21
21
|
<ct-dialog-list></ct-dialog-list>
|
|
22
22
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-loading="loading" :style="{width:pageWidth?pageWidth+'px':'100%',margin:'auto'}">
|
|
3
|
-
<div v-if="model !== null && !loading" class="ct-form" :class="{'domDisabled':model.pageDisabled}">
|
|
3
|
+
<div v-if="model !== null && !loading" class="ct-form" :class="{'domDisabled':model.pageDisabled}" :key="formKey">
|
|
4
4
|
<!--可根据场景判断显示el-card还是el-main-->
|
|
5
5
|
<component :is="model.showTitle?'el-main':'el-card'">
|
|
6
6
|
<div slot="header" class="clearfix" v-if="typeof model.title !== 'undefined' && model.flagShowTitle">
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
<component v-for="(btn, index) in model.buttons" :key="index" :is="btn.is" :vmodel="btn" @click="clickHandler" v-if="btn.show"></component>
|
|
75
75
|
</el-col>
|
|
76
76
|
</el-row>
|
|
77
|
+
<div v-if="isScroll" style="height: 34px;"></div>
|
|
77
78
|
</component>
|
|
78
79
|
</div>
|
|
79
80
|
<div style="min-height:200px" v-if="loading"></div>
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
isScroll: false,
|
|
108
109
|
loading: true,
|
|
109
110
|
activeName: '-1',
|
|
111
|
+
formKey:0,
|
|
110
112
|
collapse: [],//分组数组
|
|
111
113
|
collapseActiveNames: [],//默认展开的分组name
|
|
112
114
|
collapseFieldsRow: [],//分组数组对应的行列布局
|
|
@@ -414,7 +416,16 @@
|
|
|
414
416
|
}
|
|
415
417
|
else if (field.isExport) {
|
|
416
418
|
submitData = field.getActionPara(submitData).para;
|
|
417
|
-
|
|
419
|
+
if(field.flagAsync){
|
|
420
|
+
self.model.export(field, submitData);
|
|
421
|
+
}
|
|
422
|
+
else{
|
|
423
|
+
field.doAction(submitData, (data) => {
|
|
424
|
+
if(data.content){
|
|
425
|
+
window.open(data.content, "_blank");
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
}
|
|
418
429
|
}
|
|
419
430
|
else {
|
|
420
431
|
submitData = field.getActionPara(submitData).para;
|
|
@@ -422,6 +433,14 @@
|
|
|
422
433
|
if(field && field.changeCallBackFunName){
|
|
423
434
|
self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
|
|
424
435
|
}
|
|
436
|
+
else if(field.isRefersh){
|
|
437
|
+
self.collapse.splice(0, self.collapse.length);
|
|
438
|
+
self.collapseActiveNames.splice(0, self.collapseActiveNames.length);
|
|
439
|
+
self.collapseFieldsRow.splice(0, self.collapseFieldsRow.length);
|
|
440
|
+
self.independentItem.splice(0, self.independentItem.length);
|
|
441
|
+
self.load(self.loaderObj.Form(data.content));
|
|
442
|
+
self.formKey=self.formKey+1;
|
|
443
|
+
}
|
|
425
444
|
else{
|
|
426
445
|
self.model.doAction(data);
|
|
427
446
|
}
|
|
@@ -466,11 +485,43 @@
|
|
|
466
485
|
}
|
|
467
486
|
},
|
|
468
487
|
importComplete(res,field) {
|
|
469
|
-
|
|
470
|
-
|
|
488
|
+
var self=this;
|
|
489
|
+
if(field.flagAsync){
|
|
490
|
+
if(res.content && res.content.action){
|
|
491
|
+
var dialogOption = {
|
|
492
|
+
title: "导入",
|
|
493
|
+
content: [{
|
|
494
|
+
component: 'ct-progress',
|
|
495
|
+
attrs: {
|
|
496
|
+
progressAction: res.content.action,
|
|
497
|
+
progressKey: res.content.key,
|
|
498
|
+
progressType:'import',
|
|
499
|
+
width: '300px',
|
|
500
|
+
height: '60px'
|
|
501
|
+
},
|
|
502
|
+
on: {
|
|
503
|
+
finished(data) {
|
|
504
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
505
|
+
if(field && field.changeCallBackFunName){
|
|
506
|
+
self.changeCallBackHandler(field, field.changeCallBackFunName, data.content.content);
|
|
507
|
+
}
|
|
508
|
+
else{
|
|
509
|
+
self.model.doAction(data);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}]
|
|
514
|
+
};
|
|
515
|
+
self.$common.openDialog(dialogOption);
|
|
516
|
+
}
|
|
471
517
|
}
|
|
472
518
|
else{
|
|
473
|
-
|
|
519
|
+
if(field && field.changeCallBackFunName){
|
|
520
|
+
this.changeCallBackHandler(field, field.changeCallBackFunName, res.content);
|
|
521
|
+
}
|
|
522
|
+
else{
|
|
523
|
+
this.model.doAction(res);
|
|
524
|
+
}
|
|
474
525
|
}
|
|
475
526
|
},
|
|
476
527
|
changeHandler(field) {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
var ctSpan = {//临时的span组件对象,用于vue双向绑定,强制更新
|
|
72
72
|
props: {
|
|
73
73
|
vmodel: Object,
|
|
74
|
-
rowNum:
|
|
74
|
+
rowNum: String,
|
|
75
75
|
},
|
|
76
76
|
data: function () {
|
|
77
77
|
return {
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
created() {
|
|
108
|
+
|
|
108
109
|
let self = this;
|
|
109
110
|
this.model = this.vmodel;
|
|
110
111
|
this.model.OptApi = this.api;
|