centaline-data-driven 1.2.71 → 1.2.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/Form.vue +7 -2
- package/src/assets/more.png +0 -0
- package/src/centaline/dynamicContact/src/dynamicContact.vue +1 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +18 -15
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +17 -3
- package/src/centaline/dynamicForm/src/dynamicForm.vue +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +12 -5
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +5 -5
- package/src/centaline/dynamicSearchList/src/dynamicTableStats.vue +4 -0
- package/src/centaline/selectOption/src/selectOptionVertical.vue +8 -0
- package/src/main.js +2 -2
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
|
-
<ct-form :api="'/
|
|
3
|
+
<ct-form :api="'/third-dept-tran/tran-comm-adjust/create'" :apiParam="apiParam"></ct-form>
|
|
4
4
|
<!-- <ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
5
5
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
6
6
|
<!-- <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form> -->
|
|
@@ -18,7 +18,12 @@
|
|
|
18
18
|
// apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
|
|
19
19
|
// apiParam: {originalTraId: "1475658732246241281", actionType: 2, chanceID: "1"} ,
|
|
20
20
|
// apiParam: {originalTraId: "1516290587463507969", actionType: "3", pageStyle: "2", pageTitle: "成交报告",pageOnly: "true"}
|
|
21
|
-
apiParam:{
|
|
21
|
+
apiParam:{actionType: 2
|
|
22
|
+
,commAdjustCategory: "6"
|
|
23
|
+
,originalTraId: "1478187254032572417"
|
|
24
|
+
,pageOnly: true
|
|
25
|
+
,pageStyle: 2
|
|
26
|
+
,pageTitle: "新增业绩调整"}
|
|
22
27
|
}
|
|
23
28
|
},
|
|
24
29
|
methods: {
|
|
Binary file
|
|
@@ -29,9 +29,12 @@
|
|
|
29
29
|
<div>
|
|
30
30
|
<component v-if="model.otherTradeActionRouter!==null" v-bind="model.otherTradeActionRouter" class="max-default w93"
|
|
31
31
|
:is="model.otherTradeActionRouter.is" :vmodel="model.otherTradeActionRouter" :api="model.optionApi" @click="fieldClickHandler(model.otherTradeActionRouter,$event)"></component>
|
|
32
|
-
<img
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
<img v-if="parentModel && parentModel.$refs && parentModel.$refs.table"
|
|
33
|
+
:class="{'domDisabled':parentModel && parentModel.$refs.table && parentModel.$refs.table.model.selectIndex<=0}"
|
|
34
|
+
@click="clickPrevHandler" src="../../../assets/T.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left: 20px;cursor: pointer">
|
|
35
|
+
<img v-if="parentModel && parentModel.$refs && parentModel.$refs.table"
|
|
36
|
+
:class="{'domDisabled':parentModel && parentModel.$refs.table && parentModel.$refs.table.model.listData && parentModel.$refs.table.model.selectIndex===parentModel.$refs.table.model.listData.length-1}"
|
|
37
|
+
@click="clickNextHandler" src="../../../assets/B.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left: 15px;margin-right: 13px;cursor: pointer">
|
|
35
38
|
</div>
|
|
36
39
|
<div class="mt5">
|
|
37
40
|
<component class="max-report w93" v-if="model.actionRouters!==null && model.actionRouters[0]!==null"
|
|
@@ -601,27 +604,27 @@
|
|
|
601
604
|
}
|
|
602
605
|
},
|
|
603
606
|
clickNextHandler() {
|
|
604
|
-
|
|
605
|
-
if(this.parentModel && this.parentModel.
|
|
606
|
-
let oldValue=this.parentModel.listData[this.parentModel.selectIndex][
|
|
607
|
-
this.parentModel.$
|
|
608
|
-
let newValue=this.parentModel.listData[this.parentModel.selectIndex][
|
|
607
|
+
let key='chanceID';
|
|
608
|
+
if(this.parentModel && this.parentModel.$refs.table){
|
|
609
|
+
let oldValue=this.parentModel.$refs.table.model.listData[this.parentModel.selectIndex][key];
|
|
610
|
+
this.parentModel.$refs.table.rowKeyDownHandle(null,1);
|
|
611
|
+
let newValue=this.parentModel.$refs.table.model.listData[this.parentModel.selectIndex][key];
|
|
609
612
|
if(oldValue!==newValue){
|
|
610
613
|
let parm=this.apiParam;
|
|
611
|
-
parm[
|
|
614
|
+
parm[key]=newValue;
|
|
612
615
|
this.loaderObj.Detail(this.api,parm, this.load);
|
|
613
616
|
}
|
|
614
617
|
}
|
|
615
618
|
},
|
|
616
619
|
clickPrevHandler() {
|
|
617
|
-
|
|
618
|
-
if(this.parentModel && this.parentModel.
|
|
619
|
-
let oldValue=this.parentModel.listData[this.parentModel.selectIndex][
|
|
620
|
-
this.parentModel.$
|
|
621
|
-
let newValue=this.parentModel.listData[this.parentModel.selectIndex][
|
|
620
|
+
let key='chanceID';
|
|
621
|
+
if(this.parentModel && this.parentModel.$refs.table){
|
|
622
|
+
let oldValue=this.parentModel.$refs.table.model.listData[this.parentModel.selectIndex][key];
|
|
623
|
+
this.parentModel.$refs.table.rowKeyDownHandle(null,-1);
|
|
624
|
+
let newValue=this.parentModel.$refs.table.model.listData[this.parentModel.selectIndex][key];
|
|
622
625
|
if(oldValue!==newValue){
|
|
623
626
|
let parm=this.apiParam;
|
|
624
|
-
parm[
|
|
627
|
+
parm[key]=newValue;
|
|
625
628
|
this.loaderObj.Detail(this.api,parm, this.load);
|
|
626
629
|
}
|
|
627
630
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
51
|
<div ref="contact" id="contact" style="margin-top: 16px;" v-if="model.contactApiRouter!==null" >
|
|
52
|
-
<ct-contact :apiRouter="model.contactApiRouter" :api="model.contactApiRouter.action" :apiParam="model.contactApiRouter.getSearchPara()"></ct-contact>
|
|
52
|
+
<ct-contact :key="refreshKey" :apiRouter="model.contactApiRouter" :api="model.contactApiRouter.action" :apiParam="model.contactApiRouter.getSearchPara()"></ct-contact>
|
|
53
53
|
</div>
|
|
54
54
|
<div ref="routers" style="margin-top: 16px;display: flex;">
|
|
55
55
|
<component v-for="(router, index) in model.actionRoutersSimple.slice(0,showIndex>0?showIndex:model.actionRoutersSimple.length-1)" :key="index"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
:is="router.is" :vmodel="router" :api="model.optionApi" @click="fieldClickHandler(router)">
|
|
67
67
|
</component>
|
|
68
68
|
</div>
|
|
69
|
-
<span :slot="showIndex>0?'reference':''" class="
|
|
69
|
+
<span :slot="showIndex>0?'reference':''" class="more" style="margin-left: 10px;"></span>
|
|
70
70
|
</el-popover>
|
|
71
71
|
</div>
|
|
72
72
|
</div>
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
},
|
|
94
94
|
data() {
|
|
95
95
|
return {
|
|
96
|
+
refreshKey:0,
|
|
96
97
|
topWidth:300,
|
|
97
98
|
showIndex:0,
|
|
98
99
|
option: {
|
|
@@ -166,7 +167,12 @@
|
|
|
166
167
|
}
|
|
167
168
|
});
|
|
168
169
|
});
|
|
169
|
-
},
|
|
170
|
+
},
|
|
171
|
+
refreshPage(){
|
|
172
|
+
this.refreshKey=this.refreshKey+1;
|
|
173
|
+
this.showIndex=0;
|
|
174
|
+
this.setDetailStyle();
|
|
175
|
+
},
|
|
170
176
|
loadFields() {
|
|
171
177
|
var self = this;
|
|
172
178
|
self.collapse=[];
|
|
@@ -417,6 +423,14 @@
|
|
|
417
423
|
margin-right: 10px;
|
|
418
424
|
font-size: 12px;
|
|
419
425
|
}
|
|
426
|
+
.more{
|
|
427
|
+
background: url('../../../assets/more.png')no-repeat;
|
|
428
|
+
background-size: 100% 100%;
|
|
429
|
+
width: 26px;
|
|
430
|
+
height: 26px;
|
|
431
|
+
display: table-caption;
|
|
432
|
+
cursor: pointer;
|
|
433
|
+
}
|
|
420
434
|
</style>
|
|
421
435
|
|
|
422
436
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" @loaded="tableLoaded"
|
|
16
16
|
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate"
|
|
17
|
-
@rowClickHandle="rowClickHandle"
|
|
17
|
+
@rowClickHandle="rowClickHandle"
|
|
18
18
|
@showTitle="showTitleHandler"></ct-searchtable>
|
|
19
19
|
</div>
|
|
20
20
|
<div v-if="flagSideBar && flagSideBarOfData"
|
|
@@ -203,13 +203,15 @@
|
|
|
203
203
|
},
|
|
204
204
|
rowClickHandle() {
|
|
205
205
|
var self = this;
|
|
206
|
-
if(self.selectIndex!==self.$refs.table.model.selectIndex){
|
|
206
|
+
if(self.selectIndex!==self.$refs.table.model.selectIndex && self.$refs.table.model.rowSelectRouter){
|
|
207
207
|
self.selectIndex=self.$refs.table.model.selectIndex;
|
|
208
208
|
self.rowCount=self.$refs.table.model.listData.length;
|
|
209
209
|
self.sideBarApiParam = {};
|
|
210
|
-
self.$refs.table.model.rowSelectRouter.submitListField
|
|
211
|
-
self
|
|
212
|
-
|
|
210
|
+
if(self.$refs.table.model.rowSelectRouter.submitListField){
|
|
211
|
+
self.$refs.table.model.rowSelectRouter.submitListField.forEach((k) => {
|
|
212
|
+
self.sideBarApiParam[k] = self.$refs.table.model.listData[self.selectIndex][k];
|
|
213
|
+
});
|
|
214
|
+
}
|
|
213
215
|
self.sideBarApiParam.actionType = self.$refs.table.model.rowSelectRouter.actionType;
|
|
214
216
|
self.detailKey = self.detailKey+1;
|
|
215
217
|
}
|
|
@@ -236,6 +238,11 @@
|
|
|
236
238
|
for(var i=0;i<popoverCallTels.length;i++){
|
|
237
239
|
popoverCallTels[i].style.display='block';
|
|
238
240
|
}
|
|
241
|
+
if(this.$refs.detail){
|
|
242
|
+
if(this.$refs.detail.$children && this.$refs.detail.$children.length>0){
|
|
243
|
+
this.$refs.detail.$children[0].refreshPage();
|
|
244
|
+
}
|
|
245
|
+
}
|
|
239
246
|
}
|
|
240
247
|
},
|
|
241
248
|
closeSideHandler() {
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
window.addEventListener("resize", (ev) => {
|
|
254
254
|
self.setTableHeight();
|
|
255
255
|
});
|
|
256
|
-
|
|
256
|
+
self.rowColorChange();
|
|
257
257
|
self.fiexdHead();
|
|
258
258
|
|
|
259
259
|
//当表格没有占满表格框时,主动请求下一页
|
|
@@ -535,7 +535,7 @@
|
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
537
|
});
|
|
538
|
-
},
|
|
538
|
+
},
|
|
539
539
|
scrollHandle(ev) {
|
|
540
540
|
var self = this;
|
|
541
541
|
if ((this.$refs.tableParent.scrollTop + this.$refs.tableParent.clientHeight) >= (this.$refs.tableParent.scrollHeight - 5)) {
|
|
@@ -817,12 +817,12 @@
|
|
|
817
817
|
else {
|
|
818
818
|
// let parm={submitData:submitData,field:field}
|
|
819
819
|
// self.$common.excuteFunStr.call(self.model.scripts, field.action,parm);
|
|
820
|
+
// var fun = self.model.scripts.formData[action];
|
|
821
|
+
// fun(submitData,field);
|
|
820
822
|
let title = field.pageTitle == undefined ? field.label : field.pageTitle;
|
|
821
823
|
submitData.actionType = field.actionType;
|
|
822
824
|
var fun = self.$common.getDataDrivenOpts().handler[action];
|
|
823
|
-
fun(submitData, title, self
|
|
824
|
-
// var fun = self.model.scripts.formData[action];
|
|
825
|
-
// fun(submitData,field);
|
|
825
|
+
fun(submitData, title, self.$parent);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
}
|
|
50
50
|
</script>
|
|
51
51
|
<style>
|
|
52
|
+
.ct-input_inner .el-popover__reference span{
|
|
53
|
+
margin-left: 0!important;
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
.ct-selectOptionVertical {
|
|
53
57
|
width: 100%;
|
|
54
58
|
max-height: 250px;
|
|
@@ -77,4 +81,8 @@
|
|
|
77
81
|
-webkit-font-smoothing: antialiased;
|
|
78
82
|
-moz-osx-font-smoothing: grayscale;
|
|
79
83
|
}
|
|
84
|
+
.ct-selectOptionVertical li div img{
|
|
85
|
+
vertical-align: -8px;
|
|
86
|
+
}
|
|
80
87
|
</style>
|
|
88
|
+
|
package/src/main.js
CHANGED
|
@@ -14,7 +14,7 @@ Vue.config.productionTip = false;
|
|
|
14
14
|
Vue.use(centaline, {
|
|
15
15
|
baseUrl: "http://10.88.22.13:7070/v1/form/router",
|
|
16
16
|
// baseUrl: "http://10.88.23.22:9999/v1/form/router",
|
|
17
|
-
// baseUrl: "http://
|
|
17
|
+
// baseUrl: "http://10.1.245.111:38028/api",
|
|
18
18
|
// flagRouterSelf: true,
|
|
19
19
|
zindex: 999,
|
|
20
20
|
showRequestErrorMessage: true,
|
|
@@ -36,7 +36,7 @@ Vue.use(centaline, {
|
|
|
36
36
|
// 获取请求头
|
|
37
37
|
getRequestHeaders: function () {
|
|
38
38
|
return {
|
|
39
|
-
oldToken: '
|
|
39
|
+
oldToken: '6613f67c-ba83-4065-9570-175c2f74e6d5',
|
|
40
40
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
41
41
|
EstateInfo: '{"estateId":"201509230915485D942241BBA30FF49F","estateName":"%E7%88%B1%E7%90%B4%E6%B5%B7B%E7%BB%84"}',
|
|
42
42
|
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjgyZjdlZWUzLTY1ODctNDk4NS1hMTE3LTE3ODQxNDUxYzY5MCJ9.d8lc203lFjHqjJ6mboxSD7Eo2nJBYyynY9MtH5L0N3L9fYVedUhhvscnaxw08fITffWLxH4Mc7kP7qvHbJ3I8A',
|