centaline-data-driven 1.4.87 → 1.4.88
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 +2 -2
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +4 -1
- package/src/centaline/loader/src/ctl/Form.js +24 -12
- package/src/centaline/validate/index.js +3 -0
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/api/third-dept-tran/transaction/edit'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
|
|
15
|
+
originalTraId: "1646416021069754369", actionType: 3, pageStyle: 2, pageTitle: "修改成交单", pageOnly: true
|
|
16
16
|
},
|
|
17
17
|
topHeight:10,
|
|
18
18
|
}
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
showNum: 3,//如果isHidden为true时,个数大于3就会隐藏,默认是3
|
|
93
93
|
appendId: '',//将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
|
|
94
94
|
trigger: 'manual',//触发方式,传值可查看Popper UI组件trigger属性
|
|
95
|
-
placement: 'bottom-
|
|
95
|
+
placement: 'bottom-end',//方向,传值可查看Popper UI组件placement属性
|
|
96
96
|
},
|
|
97
97
|
};
|
|
98
98
|
},
|
|
@@ -206,4 +206,7 @@
|
|
|
206
206
|
.labelText{
|
|
207
207
|
-webkit-transform: scale(0.90);
|
|
208
208
|
}
|
|
209
|
+
.el-popoverCallTel{
|
|
210
|
+
margin-left: 5px;
|
|
211
|
+
}
|
|
209
212
|
</style>
|
|
@@ -222,13 +222,19 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
222
222
|
attrKey = this.common.initialsToLowerCase(attrKey);
|
|
223
223
|
var rtn1 = this.fieldsDic[id];
|
|
224
224
|
if (rtn1) {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
if (rtn1.self.$forceUpdate) {
|
|
230
|
-
rtn1.self.$forceUpdate();
|
|
225
|
+
if(attrKey=='code1' && rtn1.source.controlType===4
|
|
226
|
+
&& attrValue!=undefined && attrValue!=null && attrValue!=''){
|
|
227
|
+
if(rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null){
|
|
228
|
+
attrValue = Number(attrValue).toFixed(rtn1.source.decimals1)
|
|
231
229
|
}
|
|
230
|
+
}
|
|
231
|
+
rtn1.source[attrKey] = attrValue;
|
|
232
|
+
this.form.hatchHandle(id, attrKey, attrValue, rtn1);
|
|
233
|
+
|
|
234
|
+
//用于处理源数据改动,强制更新视图数据 todo
|
|
235
|
+
if (rtn1.self.$forceUpdate) {
|
|
236
|
+
rtn1.self.$forceUpdate();
|
|
237
|
+
}
|
|
232
238
|
}
|
|
233
239
|
},
|
|
234
240
|
setValueByFieldNameFromParent(id, attrKey, attrValue) {
|
|
@@ -514,13 +520,19 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
514
520
|
attrKey = common.initialsToLowerCase(attrKey);
|
|
515
521
|
var rtn1 = this.fieldsDic[id];
|
|
516
522
|
if (rtn1) {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
rtn1.self.$forceUpdate();
|
|
523
|
+
if(attrKey=='code1' && rtn1.source.controlType===4
|
|
524
|
+
&& attrValue!=undefined && attrValue!=null && attrValue!=''){
|
|
525
|
+
if(rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null){
|
|
526
|
+
attrValue = Number(attrValue).toFixed(rtn1.source.decimals1)
|
|
527
|
+
}
|
|
523
528
|
}
|
|
529
|
+
rtn1.source[attrKey] = attrValue;
|
|
530
|
+
this.self.hatchHandle(id, attrKey, attrValue, rtn1);
|
|
531
|
+
|
|
532
|
+
//用于处理源数据改动,强制更新视图数据 todo
|
|
533
|
+
if (rtn1.self.$forceUpdate) {
|
|
534
|
+
rtn1.self.$forceUpdate();
|
|
535
|
+
}
|
|
524
536
|
}
|
|
525
537
|
},
|
|
526
538
|
getListField(tableName, rowNum, fiedlId) {
|
package/src/main.js
CHANGED
|
@@ -47,7 +47,7 @@ Vue.use(centaline, {
|
|
|
47
47
|
// 获取请求头
|
|
48
48
|
getRequestHeaders: function () {
|
|
49
49
|
return {
|
|
50
|
-
oldToken: '
|
|
50
|
+
oldToken: '41a167c9-2968-410a-a186-8f259716d806',
|
|
51
51
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe8yNZM4zOzujJ0u2HgIssAWWBmBRGO8uxqho_cVr3jN_08Y5xb2EBZwQyuNLeCGVhoisUC-xoOFiOKFUSkqRvFRTlXN8VhBAfl-hT15JXZm7AoY0vQLZWD3DfOYb-f8-Me5yzR8Zn2nLoeUsCXuUUgVVazDMgnt2Po2iIfXGwAA__8.HBO2CVtY9G5noVhElgHNtMUaUzW8DY-BlKm3gGLL6uM',
|
|
52
52
|
|
|
53
53
|
originalRequestURL: 'http://10.88.22.67:8080',
|