centaline-data-driven 1.3.28 → 1.3.31
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 +4 -4
- package/src/SearchList.vue +8 -9
- package/src/centaline/dynamicForm/src/dynamicForm.vue +22 -4
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +280 -226
- package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +76 -41
- package/src/centaline/dynamicT/src/dynamicT.vue +6 -3
- package/src/centaline/loader/src/ctl/Form.js +20 -13
- package/src/centaline/loader/src/ctl/Router.js +10 -2
- package/src/centaline/loader/src/ctl/SearchTable.js +104 -108
- package/src/main.js +3 -3
- 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/
|
|
5
|
+
<ct-form :api="'/api/third-dept-tran/transaction/detail'" :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
|
-
|
|
17
|
+
actionType: 3,
|
|
18
|
+
originalTraId: "1547488795469586434",
|
|
19
19
|
pageOnly: true,
|
|
20
20
|
pageStyle: 2,
|
|
21
|
-
|
|
21
|
+
pageTitle: "成交报告"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
},
|
package/src/SearchList.vue
CHANGED
|
@@ -8,16 +8,15 @@
|
|
|
8
8
|
:searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
|
|
9
9
|
:searchDataApi="'/ProfileWorklistList/getListOfSearchModel'" :apiParam="para"></ct-searchlist> -->
|
|
10
10
|
|
|
11
|
-
<ct-searchlist :searchConditionApi="'/
|
|
12
|
-
:
|
|
13
|
-
|
|
14
|
-
</ct-searchlist>
|
|
11
|
+
<!-- <ct-searchlist :searchConditionApi="'/PropertyContactImportList/getLayoutOfSearch'"
|
|
12
|
+
:searchDataApi="'/PropertyContactImportList/getListOfSearchModel'">
|
|
13
|
+
</ct-searchlist> -->
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
<ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
|
16
|
+
:searchDataApi="'/PropertyRETList/getListOfSearchModel'"
|
|
17
|
+
:searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
|
|
18
|
+
:searchStatsApi="'/exampleList/getListStats'">
|
|
19
|
+
</ct-searchlist>
|
|
21
20
|
|
|
22
21
|
<ct-dialog-list></ct-dialog-list>
|
|
23
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">
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
isScroll: false,
|
|
108
108
|
loading: true,
|
|
109
109
|
activeName: '-1',
|
|
110
|
+
formKey:0,
|
|
110
111
|
collapse: [],//分组数组
|
|
111
112
|
collapseActiveNames: [],//默认展开的分组name
|
|
112
113
|
collapseFieldsRow: [],//分组数组对应的行列布局
|
|
@@ -414,7 +415,16 @@
|
|
|
414
415
|
}
|
|
415
416
|
else if (field.isExport) {
|
|
416
417
|
submitData = field.getActionPara(submitData).para;
|
|
417
|
-
|
|
418
|
+
if(field.flagAsync){
|
|
419
|
+
self.model.export(field, submitData);
|
|
420
|
+
}
|
|
421
|
+
else{
|
|
422
|
+
field.doAction(submitData, (data) => {
|
|
423
|
+
if(data.content){
|
|
424
|
+
window.open(data.content, "_blank");
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
}
|
|
418
428
|
}
|
|
419
429
|
else {
|
|
420
430
|
submitData = field.getActionPara(submitData).para;
|
|
@@ -422,6 +432,14 @@
|
|
|
422
432
|
if(field && field.changeCallBackFunName){
|
|
423
433
|
self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
|
|
424
434
|
}
|
|
435
|
+
else if(field.isRefersh){
|
|
436
|
+
self.collapse.splice(0, self.collapse.length);
|
|
437
|
+
self.collapseActiveNames.splice(0, self.collapseActiveNames.length);
|
|
438
|
+
self.collapseFieldsRow.splice(0, self.collapseFieldsRow.length);
|
|
439
|
+
self.independentItem.splice(0, self.independentItem.length);
|
|
440
|
+
self.load(self.loaderObj.Form(data.content));
|
|
441
|
+
self.formKey=self.formKey+1;
|
|
442
|
+
}
|
|
425
443
|
else{
|
|
426
444
|
self.model.doAction(data);
|
|
427
445
|
}
|
|
@@ -594,7 +612,7 @@
|
|
|
594
612
|
var rtnBool = true;
|
|
595
613
|
var jump = false;
|
|
596
614
|
var i=0;
|
|
597
|
-
|
|
615
|
+
|
|
598
616
|
self.$refs.Fields.forEach((f) => {
|
|
599
617
|
if (f.model && typeof f.validExcute !== 'undefined') {
|
|
600
618
|
if (!f.validExcute()) {
|
|
@@ -620,7 +638,7 @@
|
|
|
620
638
|
|
|
621
639
|
if (!jump) {
|
|
622
640
|
if (this.model.isHorizontalLayout) {//水平布局
|
|
623
|
-
this.activeName = f.model.collapseName.toString();
|
|
641
|
+
this.activeName = f.model.collapseName.toString()==='-1'?self.activeName:f.model.collapseName.toString();
|
|
624
642
|
jump = true;
|
|
625
643
|
}
|
|
626
644
|
else {//垂直布局
|