centaline-data-driven 1.3.81 → 1.3.83
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 +2 -2
- package/src/assets/T.png +0 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +1 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +1 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +16 -6
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +28 -3
- package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +2 -0
- 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/SearchList.vue
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
:searchStatsApi="'/ProfileWorklistList/getListStats'">
|
|
12
12
|
</ct-searchlist> -->
|
|
13
13
|
|
|
14
|
-
<ct-searchlist :searchConditionApi="'/
|
|
15
|
-
:searchDataApi="'/
|
|
14
|
+
<ct-searchlist :searchConditionApi="'/commissionmanage/PayedDetail/getLayoutOfSearch'"
|
|
15
|
+
:searchDataApi="'/commissionmanage/PayedDetail/getList'">
|
|
16
16
|
</ct-searchlist>
|
|
17
17
|
|
|
18
18
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
package/src/assets/T.png
CHANGED
|
Binary file
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
|
|
14
14
|
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight" :documentWidth="documentWidth"
|
|
15
15
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
16
|
-
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
16
|
+
@input="inputHandler(col,$event)" @importComplete="importComplete" @blur="blurHandler(col,$event)"
|
|
17
17
|
@popupSearchList="popupSearchListHandler"
|
|
18
18
|
@tableButtonClick="clickHandler"></component>
|
|
19
19
|
</el-col>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
|
|
29
29
|
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight" :documentWidth="documentWidth"
|
|
30
30
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
31
|
-
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
31
|
+
@input="inputHandler(col,$event)" @importComplete="importComplete" @blur="blurHandler(col,$event)"
|
|
32
32
|
@popupSearchList="popupSearchListHandler"
|
|
33
33
|
@tableButtonClick="clickHandler"></component>
|
|
34
34
|
</el-col>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
|
|
49
49
|
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight" :documentWidth="documentWidth"
|
|
50
50
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
51
|
-
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
51
|
+
@input="inputHandler(col,$event)" @importComplete="importComplete" @blur="blurHandler(col,$event)"
|
|
52
52
|
@popupSearchList="popupSearchListHandler"
|
|
53
53
|
@tableButtonClick="clickHandler"></component>
|
|
54
54
|
</el-col>
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
<el-col v-for="(col, index) in independentItem" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
|
|
62
62
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
|
|
63
63
|
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight" :documentWidth="documentWidth"
|
|
64
|
-
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)"
|
|
65
|
-
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
64
|
+
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
65
|
+
@input="inputHandler(col,$event)" @importComplete="importComplete" @blur="blurHandler(col,$event)"
|
|
66
66
|
@popupSearchList="popupSearchListHandler"
|
|
67
67
|
@tableButtonClick="clickHandler"></component>
|
|
68
68
|
</el-col>
|
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
self.model.requiredHandle(field);
|
|
615
615
|
//self.model.validMrf(field);
|
|
616
616
|
|
|
617
|
-
if(field.onAfterChanged){
|
|
617
|
+
if(field.onAfterChanged && field.type!==4){
|
|
618
618
|
var router =self.model.actionRouters.find((v) => {
|
|
619
619
|
return v.id === field.onAfterChanged;
|
|
620
620
|
});
|
|
@@ -623,6 +623,16 @@
|
|
|
623
623
|
|
|
624
624
|
self.$forceUpdate();
|
|
625
625
|
},
|
|
626
|
+
blurHandler(field) {
|
|
627
|
+
var self = this;
|
|
628
|
+
if(field.onAfterChanged){
|
|
629
|
+
var router =self.model.actionRouters.find((v) => {
|
|
630
|
+
return v.id === field.onAfterChanged;
|
|
631
|
+
});
|
|
632
|
+
self.clickHandler(router);
|
|
633
|
+
}
|
|
634
|
+
self.$forceUpdate();
|
|
635
|
+
},
|
|
626
636
|
enterHandler(field) {
|
|
627
637
|
var self = this;
|
|
628
638
|
if (typeof field.change !== 'undefined') {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
<el-col :span="24">
|
|
16
16
|
<el-table size="mini" class="max-table--border" :data="model.tableData" :key="itemKey" border
|
|
17
17
|
style="width: 100%" highlight-current-row :show-summary="model.showSummary" :summary-method="getSummaries">
|
|
18
|
-
|
|
19
|
-
<el-table-column v-for="(v,i) in model.rows[0].field" :key="i" :prop="v.id" :label="v.label" v-if="v.show !== false">
|
|
18
|
+
<!--数据列-->
|
|
19
|
+
<el-table-column v-for="(v,i) in model.rows[0].field" :key="i" :prop="v.id" :label="v.label" v-if="v.show !== false" :render-header="renderHeader" :min-width="tableColumnWith">
|
|
20
20
|
<template slot="header" slot-scope="scope">
|
|
21
21
|
<div :class="[{'ct-table-required':v.required&&model.rows[0].edit&& model.rows[0].delete&&!model.tableDisabled},getHeadClass(v)]">
|
|
22
22
|
{{v.label}}
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
model: null,
|
|
105
105
|
foucus: false,
|
|
106
106
|
itemKey: Math.random(),
|
|
107
|
+
tableColumnWith: 0
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
created() {
|
|
@@ -373,7 +374,24 @@
|
|
|
373
374
|
});
|
|
374
375
|
|
|
375
376
|
return sums;
|
|
376
|
-
}
|
|
377
|
+
},
|
|
378
|
+
// 表头部重新渲染
|
|
379
|
+
renderHeader(h, { column, $index }) {
|
|
380
|
+
// 新建一个 span
|
|
381
|
+
let span = document.createElement('span');
|
|
382
|
+
// 设置表头名称
|
|
383
|
+
span.innerText = column.label;
|
|
384
|
+
span.style.whiteSpace = 'nowrap';
|
|
385
|
+
span.style.width = 'auto';
|
|
386
|
+
// 临时插入 document
|
|
387
|
+
document.body.appendChild(span);
|
|
388
|
+
// 重点:获取 span 最小宽度,设置当前列,注意这里加了 10,字段较多时还是有挤压,且渲染后的 div 内左右 padding 都是 5,所以 +10 。(可能还有边距/边框等值,需要根据实际情况加上)
|
|
389
|
+
column.minWidth = span.getBoundingClientRect().width + 10;
|
|
390
|
+
this.tableColumnWith = column.minWidth
|
|
391
|
+
// 移除 document 中临时的 span
|
|
392
|
+
document.body.removeChild(span);
|
|
393
|
+
return h('span', column.label);
|
|
394
|
+
}
|
|
377
395
|
}
|
|
378
396
|
}
|
|
379
397
|
</script>
|
|
@@ -424,4 +442,11 @@
|
|
|
424
442
|
pointer-events: none;
|
|
425
443
|
opacity:0.4;
|
|
426
444
|
}
|
|
445
|
+
.has-gutter>tr>th>.cell>span {
|
|
446
|
+
width: auto;
|
|
447
|
+
white-space: nowrap;
|
|
448
|
+
}
|
|
449
|
+
.el-table .cell {
|
|
450
|
+
text-overflow: clip;
|
|
451
|
+
}
|
|
427
452
|
</style>
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
this.model.value = '';
|
|
72
72
|
this.inputHandler(this.model.value);
|
|
73
73
|
this.changeHandler(this.model.value);
|
|
74
|
+
this.$emit('blur',event);
|
|
74
75
|
this.isShowClear();
|
|
75
76
|
event.stopPropagation();
|
|
76
77
|
},
|
|
@@ -90,6 +91,7 @@
|
|
|
90
91
|
onBlurHandler:function(event){
|
|
91
92
|
this.model.value = this.$common.numToFloat(this.model.value, this.model.decimals);//保留n位小数
|
|
92
93
|
this.inputHandler();
|
|
94
|
+
this.$emit('blur', event);
|
|
93
95
|
},
|
|
94
96
|
//不能共用的数据校验
|
|
95
97
|
selfValidExcute: function (eventName) {
|
package/src/main.js
CHANGED
|
@@ -12,9 +12,9 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
|
|
15
|
+
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
16
|
// baseUrl: "http://10.88.23.25:9999/v1/form/router",
|
|
17
|
-
baseUrl: "http://10.
|
|
17
|
+
// baseUrl: "http://10.88.22.44:9999/v1/form/router",
|
|
18
18
|
// baseUrl: "http://10.88.22.40:8080/",
|
|
19
19
|
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
20
20
|
// flagRouterSelf: true,
|
|
@@ -43,14 +43,14 @@ Vue.use(centaline, {
|
|
|
43
43
|
getRequestHeaders: function () {
|
|
44
44
|
return {
|
|
45
45
|
oldToken: '42ccd644-040d-4e01-9521-1623f1884058',
|
|
46
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
46
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe8yNZMwu7Mzu3S6YOMhiLJLgpURSDTGu6sROnpf8YrX_P-EcT5DBbqAG1ppwwJuaKUl4qAkDe6CRmRhi56ix8gS-VA3Nu5rKCDfr1CRiFMTStUChtP0C8JGvmEe8-2YH_84d5mGz2xylpLVEl1vLLJ2jN4yofSd4ySp987A6w0AAP__.9uhpYoqF1t3tbW9zybuYmXjHostyhq8fMZb___MoVd0',
|
|
47
47
|
|
|
48
48
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
49
49
|
EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
|
|
50
50
|
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
51
51
|
|
|
52
52
|
authObject: '{"currentEstate":{"estateId":"2209201708108B8F50AB530A49EAA858","estateName":"U%E7%89%88%E6%B5%8B%E8%AF%95%E6%A5%BC%E7%9B%98%E7%82%B9%E4%BD%8D"},"platform":1,"OSVersion":"","clientVersion":"","machineCode":""}',
|
|
53
|
-
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
53
|
+
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjdiMzUxY2QyLWE3ZTctNDdlNi05NGM1LTM1YmUwNWM1NjYzNCJ9.FpN_FJqya2oewIkrwlCgzeFu7bk_kCoKrgOxd5rqVIx8FgF7OyWq72rNpuhrsWnsnUF9WwqfVa98jTVuR4EPbQ',
|
|
54
54
|
};
|
|
55
55
|
},
|
|
56
56
|
// 请求完成事件,可判断是否登录过期执行响应操作
|