centaline-data-driven 1.3.49 → 1.3.52
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 -6
- package/src/SearchList.vue +5 -5
- package/src/centaline/css/max.css +13 -0
- package/src/centaline/dialogList/src/dialog.vue +14 -2
- package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +1 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +24 -2
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +1 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +27 -14
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +2 -2
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +40 -17
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +10 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +3 -3
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +15 -12
- package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +1 -1
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +338 -381
- package/src/centaline/loader/src/ctl/Base.js +9 -0
- package/src/centaline/loader/src/ctl/Checkbox.js +3 -0
- package/src/centaline/loader/src/ctl/SearchTable.js +5 -4
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +17 -7
- package/src/main.js +9 -6
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -46,6 +46,15 @@ const Base = function (source) {
|
|
|
46
46
|
set code1(v) {
|
|
47
47
|
source.code1 = v;
|
|
48
48
|
},
|
|
49
|
+
set code2(v) {
|
|
50
|
+
source.code2 = v;
|
|
51
|
+
},
|
|
52
|
+
set code3(v) {
|
|
53
|
+
source.code3 = v;
|
|
54
|
+
},
|
|
55
|
+
set code4(v) {
|
|
56
|
+
source.code4 = v;
|
|
57
|
+
},
|
|
49
58
|
get value() {
|
|
50
59
|
return source.code1;
|
|
51
60
|
},
|
|
@@ -426,7 +426,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
426
426
|
if (this.flagMoreData && this.flagMoreData !== false) {
|
|
427
427
|
this.pageIndex++;
|
|
428
428
|
this.apiData(callback);
|
|
429
|
-
}
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
430
431
|
if (typeof callback !== 'undefined') {
|
|
431
432
|
callback(false);
|
|
432
433
|
}
|
|
@@ -505,7 +506,6 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
505
506
|
rtn.listData.push(nr);
|
|
506
507
|
});
|
|
507
508
|
rtn.dataDictionary = response.content.rows;
|
|
508
|
-
//self.listData = self.listData.concat(response.content.Rows);
|
|
509
509
|
}
|
|
510
510
|
rtn.getSelectAll();
|
|
511
511
|
source.page.rows = response.page.rows;
|
|
@@ -533,8 +533,9 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
533
533
|
}
|
|
534
534
|
if (typeof callback !== 'undefined') {
|
|
535
535
|
if (response.content.rows.length > 0) {
|
|
536
|
-
callback(true);
|
|
537
|
-
}
|
|
536
|
+
callback(true,response);
|
|
537
|
+
}
|
|
538
|
+
else {
|
|
538
539
|
callback(false);
|
|
539
540
|
}
|
|
540
541
|
}
|
|
@@ -64,25 +64,35 @@ const LibFunction = {
|
|
|
64
64
|
if (isList) {
|
|
65
65
|
if (field.controlType === Enum.ControlType.Date) {
|
|
66
66
|
field.width = field.width || 250;
|
|
67
|
-
}
|
|
67
|
+
}
|
|
68
|
+
else if (field.controlType === Enum.ControlType.DateTime) {
|
|
68
69
|
field.width = field.width || 280;
|
|
69
|
-
}
|
|
70
|
+
}
|
|
71
|
+
else if (field.controlType === Enum.ControlType.DateRange) {
|
|
70
72
|
field.width = field.width || 300;
|
|
71
|
-
}
|
|
73
|
+
}
|
|
74
|
+
else if (field.controlType === Enum.ControlType.DateTimeRange) {
|
|
72
75
|
field.width = field.width || 350;
|
|
73
|
-
}
|
|
76
|
+
}
|
|
77
|
+
else if (field.controlType === Enum.ControlType.ButtonSearch ||
|
|
74
78
|
field.controlType === Enum.ControlType.ButtonReset ||
|
|
75
79
|
field.controlType === Enum.ControlType.ButtonAdvancedSearch) {
|
|
76
80
|
field.width = '';
|
|
77
|
-
}
|
|
81
|
+
}
|
|
82
|
+
else if (field.controlType === Enum.ControlType.NumericRange) {
|
|
78
83
|
field.width = field.width || 280;
|
|
79
|
-
}
|
|
84
|
+
}
|
|
85
|
+
else if (field.controlType === Enum.ControlType.RadioButton) {
|
|
80
86
|
if (!field.displayLabelAfterSelected) {
|
|
81
87
|
showLabel = false;
|
|
82
88
|
}
|
|
83
89
|
field.width = field.width || 300;
|
|
84
90
|
field.placeholder1 = field.placeholder1 || field.controlLabel || '';
|
|
85
|
-
}
|
|
91
|
+
}
|
|
92
|
+
else if (field.controlType === Enum.ControlType.CheckBox) {
|
|
93
|
+
showLabel = true;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
86
96
|
showLabel = false;
|
|
87
97
|
field.width = field.width || 200;
|
|
88
98
|
field.placeholder1 = field.placeholder1 || field.controlLabel || '';
|
package/src/main.js
CHANGED
|
@@ -12,11 +12,11 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl: "http://10.88.22.
|
|
16
|
-
// baseUrl: "http://10.88.23.
|
|
15
|
+
// baseUrl: "http://10.88.22.13:7070/v1/form/router",
|
|
16
|
+
// baseUrl: "http://10.88.23.25:9999/v1/form/router",
|
|
17
17
|
// baseUrl: "http://10.88.22.40:8080/",
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
19
|
+
flagRouterSelf: true,
|
|
20
20
|
zindex: 999,
|
|
21
21
|
showRequestSuccessMessage: true,
|
|
22
22
|
showRequestErrorMessage: true,
|
|
@@ -41,10 +41,13 @@ Vue.use(centaline, {
|
|
|
41
41
|
// 获取请求头
|
|
42
42
|
getRequestHeaders: function () {
|
|
43
43
|
return {
|
|
44
|
-
oldToken: '
|
|
44
|
+
oldToken: '2a10f2e1-de17-4ceb-a3cf-b33a7b18515e',
|
|
45
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEKg0AQRP9laxe8u3X31i6epslHyMkpmCpEhYSQf48h2tnnFa8YBmZeMC0dlCAbeKCdVjfwQDutMaRiuMGTSkBicuhN8BiIA53rxoWqhgz6xw1Kw5w7ESeUwRjnX2A112-wTP390j__ce46j-vsIAN5ch1alrSWhTCqRiRbJEtc-MQM7w8AAAD__w.dYqgv0MHo3uvKDGcRKsCZt4UCdSl1qVTNQt628giu6k',
|
|
45
46
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
46
47
|
EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|
|
47
|
-
|
|
48
|
+
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
49
|
+
authObject: '{"currentEstate":{"estateId":"20111122105652A2A701D48134542934","estateName":"%E9%BE%99%E5%85%89%E5%9F%8E"},"platform":1,"OSVersion":"","clientVersion":"","machineCode":""}',
|
|
50
|
+
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjdjZjU3ZDhlLTUzNDItNGFhZC1iYThjLTg3OGNjNTcwZTc5MCJ9.X_b6c_D69_IX8dvQ90cfOqIXi-hTy449sJvzFw_rsXbyVc9obiybHSDycdJ6bgdbJW94XRjbqj9hPwiWyL3XSg',
|
|
48
51
|
};
|
|
49
52
|
},
|
|
50
53
|
// 请求完成事件,可判断是否登录过期执行响应操作
|