centaline-data-driven-v3 0.1.39 → 0.1.41
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 +259 -259
- package/package.json +2 -1
- package/src/assets/commonWeb.css +4 -1
- package/src/components/web/Cron.vue +194 -0
- package/src/components/web/DatePicker.vue +2 -2
- package/src/components/web/Form.vue +123 -20
- package/src/components/web/JsonViewer.vue +1 -1
- package/src/components/web/SearchScreen.vue +4 -2
- package/src/components/web/TreeList.vue +2 -2
- package/src/components/web/dialog.vue +9 -1
- package/src/loader/src/Cron.js +11 -0
- package/src/loader/src/DatePicker.js +3 -7
- package/src/loader/src/LibFunction.js +5 -0
- package/src/main.js +6 -3
- package/src/utils/Enum.js +6 -1
- package/src/utils/mixins.js +50 -0
- package/src/views/Form.vue +2 -2
- package/src/views/SearchList.vue +6 -3
- package/src/views/Tree.vue +9 -3
package/src/utils/mixins.js
CHANGED
|
@@ -310,6 +310,9 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
model.$vue.emit('submit', { formData: model, responseData: data });
|
|
313
|
+
}, () => {
|
|
314
|
+
model.$vue.emit('submitCancel', { formData: model, responseData: data });
|
|
315
|
+
model.$vue.init();
|
|
313
316
|
}).catch(() => {
|
|
314
317
|
model.$vue.init();
|
|
315
318
|
});
|
|
@@ -788,6 +791,53 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
788
791
|
}
|
|
789
792
|
common.closeDialog(dialogOption);
|
|
790
793
|
},
|
|
794
|
+
onCloseDialog: (ev) => {
|
|
795
|
+
if (ev) {
|
|
796
|
+
if (source == 'table') {
|
|
797
|
+
if (ev.responseData.notification == Enum.ActionType.UpdateColumns) {
|
|
798
|
+
//更新列
|
|
799
|
+
model.$vue.refreshTableColumns();
|
|
800
|
+
}
|
|
801
|
+
else if (ev.responseData.notification == Enum.ActionType.Delete
|
|
802
|
+
|| ev.responseData.notification == Enum.ActionType.Refersh
|
|
803
|
+
) {
|
|
804
|
+
model.$vue.doAction(ev);
|
|
805
|
+
model.$vue.loadStats();
|
|
806
|
+
}
|
|
807
|
+
else {
|
|
808
|
+
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
809
|
+
model.$vue.doAction(ev);
|
|
810
|
+
let response = ev;
|
|
811
|
+
if (response.responseData) {
|
|
812
|
+
response = response.responseData;
|
|
813
|
+
}
|
|
814
|
+
if (response.notification === Enum.ActionType.Delete || response.notification === Enum.ActionType.CloseTabThenDelete) {
|
|
815
|
+
model.$vue.loadStats();
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
model.$vue.updateCurrentRow(field, ev);
|
|
819
|
+
if (ev.responseData && ev.responseData.notification === Enum.ActionType.Router) {
|
|
820
|
+
setTimeout(() => {
|
|
821
|
+
routerClickHandler(model.getRtnRouter(ev.responseData.content), {}, action, model, source);
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
else {
|
|
827
|
+
if (callBack) {
|
|
828
|
+
callBack(ev.responseData.content[0]);
|
|
829
|
+
}
|
|
830
|
+
if (ev.responseData && ev.responseData.notification === Enum.ActionType.Refersh) {
|
|
831
|
+
model.$vue.init();
|
|
832
|
+
}
|
|
833
|
+
else {
|
|
834
|
+
if (model.$vue && model.$vue.updateFields) {
|
|
835
|
+
model.$vue.updateFields(ev);
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
},
|
|
791
841
|
isIframe: model.isIframe,
|
|
792
842
|
},
|
|
793
843
|
}]
|
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="'/jobschedulingmanage/JobManage/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={"
|
|
9
|
+
const apiParam={"actionType":2}
|
|
10
10
|
</script>
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/
|
|
4
|
-
|
|
5
|
-
:searchDataApi="'/
|
|
3
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/RoleList/getLayoutOfSearch'"
|
|
4
|
+
|
|
5
|
+
:searchDataApi="'/RoleList/getListOfSearchModel'"></ct-searchlist>
|
|
6
6
|
|
|
7
|
+
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
|
|
8
|
+
|
|
9
|
+
:searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist> -->
|
|
7
10
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
8
11
|
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
|
|
9
12
|
|
package/src/views/Tree.vue
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div id="app-Tree" style="height:100%;position: fixed;width:100%;padding: 10px;">
|
|
3
3
|
<ct-treelist :flagsearch="true" :apiParam="apiParam" :leftWidth="'280'"
|
|
4
|
-
:searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'"
|
|
4
|
+
:searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'"
|
|
5
|
+
:searchDataApi="'/SystemParameterCatalogList/getListOfSearchModel'"
|
|
5
6
|
@loaded="loaded"></ct-treelist>
|
|
6
7
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
|
7
8
|
<ct-dialoglist></ct-dialoglist>
|
|
@@ -14,4 +15,9 @@ const apiParam = {
|
|
|
14
15
|
function loaded() {
|
|
15
16
|
|
|
16
17
|
}
|
|
17
|
-
</script>
|
|
18
|
+
</script>
|
|
19
|
+
<style>
|
|
20
|
+
body{
|
|
21
|
+
background-color: #ddd;
|
|
22
|
+
}
|
|
23
|
+
</style>
|