centaline-data-driven-v3 0.1.38 → 0.1.39
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/dist/centaline-data-driven-v3.umd.js +99 -99
- package/package.json +1 -1
- package/src/components/web/ComboBox.vue +8 -1
- package/src/components/web/ContainerControl.vue +6 -6
- package/src/components/web/Form.vue +69 -46
- package/src/components/web/JsonViewer.vue +48 -27
- package/src/loader/src/Form.js +11 -0
- package/src/loader/src/LibFunction.js +1 -1
- package/src/loader/src/SliceUpload.js +9 -1
- package/src/main.js +2 -2
- package/src/utils/common.js +5 -4
- package/src/utils/distance-utils.js +84 -0
- package/src/utils/mixins.js +24 -4
- package/src/utils/request.js +3 -3
- package/src/utils/validate.js +4 -1
- package/src/views/Form.vue +2 -2
- package/src/views/SearchList.vue +5 -3
package/src/utils/mixins.js
CHANGED
|
@@ -181,7 +181,12 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
if (data.rtnMsg) {
|
|
184
|
-
|
|
184
|
+
if (data.msgAlertStyle && data.msgAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
185
|
+
common.message(data.rtnMsg, 'success', '', 0, true)
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
common.message(data.rtnMsg, 'success')
|
|
189
|
+
}
|
|
185
190
|
}
|
|
186
191
|
if (data.notification === Enum.ActionType.Router) {
|
|
187
192
|
if (common.dialogList && common.dialogList.List.value.length > 0
|
|
@@ -242,7 +247,12 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
242
247
|
}
|
|
243
248
|
}
|
|
244
249
|
if (data.rtnMsg) {
|
|
245
|
-
|
|
250
|
+
if (data.msgAlertStyle && data.msgAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
251
|
+
common.message(data.rtnMsg, 'success', '', 0, true)
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
common.message(data.rtnMsg, 'success')
|
|
255
|
+
}
|
|
246
256
|
}
|
|
247
257
|
if (data.notification === Enum.ActionType.Router) {
|
|
248
258
|
if (common.dialogList && common.dialogList.List.value.length > 0
|
|
@@ -565,7 +575,12 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
565
575
|
}
|
|
566
576
|
}
|
|
567
577
|
if (data.rtnMsg) {
|
|
568
|
-
|
|
578
|
+
if (data.msgAlertStyle && data.msgAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
579
|
+
common.message(data.rtnMsg, 'success', '', 0, true)
|
|
580
|
+
}
|
|
581
|
+
else {
|
|
582
|
+
common.message(data.rtnMsg, 'success')
|
|
583
|
+
}
|
|
569
584
|
}
|
|
570
585
|
if (field && field.callBackFunName) {
|
|
571
586
|
model.$vue.changeCallBackHandler(field, field.callBackFunName, data.content);
|
|
@@ -632,7 +647,12 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
632
647
|
}
|
|
633
648
|
}
|
|
634
649
|
if (data.rtnMsg) {
|
|
635
|
-
|
|
650
|
+
if (data.msgAlertStyle && data.msgAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
651
|
+
common.message(data.rtnMsg, 'success', '', 0, true)
|
|
652
|
+
}
|
|
653
|
+
else {
|
|
654
|
+
common.message(data.rtnMsg, 'success')
|
|
655
|
+
}
|
|
636
656
|
}
|
|
637
657
|
if (field && field.callBackFunName) {
|
|
638
658
|
model.$vue.changeCallBackHandler(field, field.callBackFunName, data.content);
|
package/src/utils/request.js
CHANGED
|
@@ -73,11 +73,11 @@ const request = {
|
|
|
73
73
|
//common.getDataDrivenOpts().handler.closeTab();
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
+
|
|
76
77
|
if (data.rtnCode === Enum.ReturnCode.Successful) {
|
|
77
78
|
if (data.rtnMsg && common.getDataDrivenOpts().showRequestSuccessMessage) {
|
|
78
|
-
if (data.
|
|
79
|
+
if (data.msgAlertStyle && data.msgAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
79
80
|
common.confirm(data.rtnMsg, '信息', { confirmButtonText: '确定', flagShowcCancelButton: '0' });
|
|
80
|
-
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
83
|
common.message(response.data.rtnMsg, 'success')
|
|
@@ -114,7 +114,7 @@ const request = {
|
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
116
|
if (response.data.rtnMsg && common.getDataDrivenOpts().showRequestErrorMessage) {
|
|
117
|
-
if (data.
|
|
117
|
+
if (data.msgAlertStyle && data.msgAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
118
118
|
|
|
119
119
|
common.confirm(data.rtnMsg, '信息', { confirmButtonText: '确定', flagShowcCancelButton: '0' });
|
|
120
120
|
}
|
package/src/utils/validate.js
CHANGED
|
@@ -84,6 +84,9 @@ const actions = {
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
numberMax(v, o) {
|
|
87
|
+
if (v.code1 == '-') {
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
87
90
|
if (v.code1 <= parseFloat(v.maxValue1)) {
|
|
88
91
|
return true
|
|
89
92
|
}
|
|
@@ -91,7 +94,7 @@ const actions = {
|
|
|
91
94
|
if (!v.code1) {
|
|
92
95
|
return false;
|
|
93
96
|
}
|
|
94
|
-
common.message("【"+v.controlLabel+"】最大值为" + v.maxValue1 + "");
|
|
97
|
+
common.message("【" + v.controlLabel + "】最大值为" + v.maxValue1 + "");
|
|
95
98
|
v.code1 = o;
|
|
96
99
|
return true;
|
|
97
100
|
}
|
package/src/views/Form.vue
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
|
-
<ct-form :api="'/
|
|
3
|
+
<ct-form :api="'/Role/readDetail'" :apiParam="apiParam"></ct-form>
|
|
4
4
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
|
5
5
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
8
8
|
<script lang="ts" setup>
|
|
9
|
-
const apiParam={"actionType":
|
|
9
|
+
const apiParam={"roleId":"61","actionType":3}
|
|
10
10
|
</script>
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/
|
|
4
|
-
:
|
|
3
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
|
|
4
|
+
:searchStatsApi="'/propertyPublishList/getListStats'"
|
|
5
|
+
:searchDataApi="'/propertyPublishList/getListOfSearchModel'"></ct-searchlist>
|
|
5
6
|
|
|
6
7
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
7
8
|
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
|
|
8
9
|
|
|
9
10
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/OvertimeList/getLayoutOfSearch'"
|
|
10
|
-
|
|
11
|
+
:searchStatsApi="'/ProfileWorklistList/getListStats'"
|
|
12
|
+
:searchDataApi="'/OvertimeList/getListOfSearchModel'"></ct-searchlist> -->
|
|
11
13
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
12
14
|
|
|
13
15
|
</div>
|