centaline-data-driven-v3 0.1.5 → 0.1.7
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 +1 -1
- package/package.json +1 -1
- package/src/components/web/SearchList/SearchTable.vue +267 -78
- package/src/loader/src/Field.js +3 -1
- package/src/main.js +4 -4
- package/src/utils/mixins.js +57 -14
- package/src/utils/request.js +25 -24
- package/src/views/Form.vue +1 -1
- package/src/views/SearchList.vue +4 -4
package/src/utils/request.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Axios from 'axios';
|
|
2
2
|
import Enum from './Enum';
|
|
3
3
|
import common from './common';
|
|
4
|
-
import {
|
|
4
|
+
import { closeToast } from "vant";
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Axios.defaults.headers.post['Content-Type'] = 'application/json';
|
|
@@ -83,31 +83,32 @@ const request = {
|
|
|
83
83
|
common.message(response.data.rtnMsg, 'success')
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
}
|
|
87
|
-
if (data.notification === Enum.ActionType.Export && data.content) {//导出
|
|
88
|
-
var dialogOption = {
|
|
89
|
-
title: "导出",
|
|
90
|
-
content: [{
|
|
91
|
-
component: 'ct-progress',
|
|
92
|
-
width: '350px',
|
|
93
|
-
height: '165px',
|
|
94
|
-
attrs: {
|
|
95
|
-
progressAction: data.content.action,
|
|
96
|
-
progressKey: data.content.key,
|
|
97
|
-
progressType: 'export',
|
|
98
|
-
flagNotification: '1',
|
|
99
|
-
onFinished(data) {
|
|
100
|
-
common.closeDialog(dialogOption);
|
|
101
86
|
|
|
87
|
+
if (data.notification === Enum.ActionType.Export && data.content) {//导出
|
|
88
|
+
var dialogOption = {
|
|
89
|
+
title: "导出",
|
|
90
|
+
content: [{
|
|
91
|
+
component: 'ct-progress',
|
|
92
|
+
width: '350px',
|
|
93
|
+
height: '165px',
|
|
94
|
+
attrs: {
|
|
95
|
+
progressAction: data.content.action,
|
|
96
|
+
progressKey: data.content.key,
|
|
97
|
+
progressType: 'export',
|
|
98
|
+
flagNotification: '1',
|
|
99
|
+
onFinished(data) {
|
|
100
|
+
common.closeDialog(dialogOption);
|
|
101
|
+
|
|
102
|
+
},
|
|
103
|
+
onError(data) {
|
|
104
|
+
common.closeDialog(dialogOption);
|
|
105
|
+
common.message(data.rtnMsg, 'info')
|
|
106
|
+
}
|
|
102
107
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
}]
|
|
109
|
-
};
|
|
110
|
-
self.$common.openDialog(dialogOption);
|
|
108
|
+
}]
|
|
109
|
+
};
|
|
110
|
+
common.openDialog(dialogOption);
|
|
111
|
+
}
|
|
111
112
|
}
|
|
112
113
|
else if (data.rtnCode === Enum.ReturnCode.ConfirmAlert) {
|
|
113
114
|
}
|
package/src/views/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="data-driven" id="app-form" >
|
|
3
3
|
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/EmployeeAttendanceBillApply/getLayoutOfNew'" :apiParam="apiParam" :flagNavbar="true"></ct-form>
|
|
5
5
|
<!-- <ct-form :api="'/api/third-dept-tran/tran-comm-adjust/task'" :apiParam="apiParam"></ct-form> -->
|
|
6
6
|
<!-- <ct-form :api="'/PropertyTranToActive/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
7
7
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
package/src/views/SearchList.vue
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
:searchDataApi="'/propertyPublishList/getListOfSearchModel'"
|
|
5
5
|
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist> -->
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
:searchDataApi="'/
|
|
7
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeAttendanceBillList/getLayoutOfSearchForMy'"
|
|
8
|
+
:searchDataApi="'/EmployeeAttendanceBillList/getListOfSearchModelForMy'"></ct-searchlist>
|
|
9
9
|
|
|
10
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/OvertimeList/getLayoutOfSearch'"
|
|
11
|
-
:searchDataApi="'/OvertimeList/getListOfSearchModel'"></ct-searchlist>
|
|
10
|
+
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/OvertimeList/getLayoutOfSearch'"
|
|
11
|
+
:searchDataApi="'/OvertimeList/getListOfSearchModel'"></ct-searchlist> -->
|
|
12
12
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
13
13
|
|
|
14
14
|
</div>
|