@tager/admin-export 1.0.0 → 1.0.2
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/dev/App.vue.d.ts +1 -1
- package/dist/index.mjs +39 -19
- package/dist/locales/en.d.ts +1 -0
- package/dist/typings/model.d.ts +1 -0
- package/dist/views/ExportForm/ExportForm.vue.d.ts +2503 -729
- package/dist/views/ExportList/ExportList.vue.d.ts +2 -2
- package/dist/views/ExportList/components/CellHistory/CellHistory.vue.d.ts +2 -2
- package/package.json +7 -6
- package/src/dev/config.ts +0 -1
- package/src/dev/main.ts +3 -0
- package/src/locales/en.ts +1 -0
- package/src/locales/ru.ts +1 -0
- package/src/typings/model.ts +1 -0
- package/src/views/ExportList/ExportList.vue +56 -41
- package/src/views/ExportList/components/CellHistory/CellHistory.helpers.ts +6 -6
package/dist/dev/App.vue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenuItemType } from "@tager/admin-layout";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
3
|
sidebarMenuList: MenuItemType[];
|
|
4
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
5
5
|
export default _default;
|
package/dist/index.mjs
CHANGED
|
@@ -11,6 +11,7 @@ const EN = {
|
|
|
11
11
|
exportList: "Export List",
|
|
12
12
|
exportForm: "Export Form",
|
|
13
13
|
type: "Type",
|
|
14
|
+
params: "Params",
|
|
14
15
|
exportType: "Export type",
|
|
15
16
|
status: "status",
|
|
16
17
|
message: "Message",
|
|
@@ -34,6 +35,7 @@ const RU = {
|
|
|
34
35
|
exportList: "\u0421\u043F\u0438\u0441\u043E\u043A \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043E\u0432",
|
|
35
36
|
exportForm: "\u0424\u043E\u0440\u043C\u0430 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430",
|
|
36
37
|
type: "\u0422\u0438\u043F",
|
|
38
|
+
params: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",
|
|
37
39
|
exportType: "\u0422\u0438\u043F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430",
|
|
38
40
|
status: "\u0421\u0442\u0430\u0442\u0443\u0441",
|
|
39
41
|
message: "\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",
|
|
@@ -75,9 +77,15 @@ function getExportFormUrl(params) {
|
|
|
75
77
|
return compile(EXPORT_ROUTE_PATHS.EXPORT_FORM)(params);
|
|
76
78
|
}
|
|
77
79
|
function dateTimeFormat(value) {
|
|
78
|
-
const options = {};
|
|
79
80
|
const date = new Date(value);
|
|
80
|
-
return new Intl.DateTimeFormat("ru-RU",
|
|
81
|
+
return new Intl.DateTimeFormat("ru-RU", {
|
|
82
|
+
year: "numeric",
|
|
83
|
+
month: "numeric",
|
|
84
|
+
day: "numeric",
|
|
85
|
+
hour: "numeric",
|
|
86
|
+
minute: "numeric",
|
|
87
|
+
second: "numeric"
|
|
88
|
+
}).format(date);
|
|
81
89
|
}
|
|
82
90
|
var CellHistory_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
83
91
|
var _export_sfc = (sfc, props) => {
|
|
@@ -150,42 +158,54 @@ const _sfc_main$1 = defineComponent({
|
|
|
150
158
|
id: 1,
|
|
151
159
|
name: "ID",
|
|
152
160
|
field: "id",
|
|
153
|
-
|
|
154
|
-
headStyle: { width: "50px", textAlign: "center" }
|
|
161
|
+
width: "50px"
|
|
155
162
|
},
|
|
156
163
|
{
|
|
157
164
|
id: 2,
|
|
158
|
-
name: t("export:
|
|
159
|
-
field: "
|
|
160
|
-
|
|
161
|
-
headStyle: { width: "15%" }
|
|
165
|
+
name: t("export:status"),
|
|
166
|
+
field: "status",
|
|
167
|
+
width: "120px"
|
|
162
168
|
},
|
|
163
169
|
{
|
|
164
170
|
id: 3,
|
|
165
|
-
name: t("export:
|
|
166
|
-
field: "
|
|
167
|
-
|
|
168
|
-
headStyle: { width: "15%" }
|
|
171
|
+
name: t("export:type"),
|
|
172
|
+
field: "strategy",
|
|
173
|
+
width: "150px"
|
|
169
174
|
},
|
|
170
175
|
{
|
|
171
176
|
id: 4,
|
|
172
|
-
name: t("export:
|
|
173
|
-
field: "
|
|
177
|
+
name: t("export:params"),
|
|
178
|
+
field: "params",
|
|
179
|
+
type: "key-value",
|
|
180
|
+
format: ({ row }) => {
|
|
181
|
+
const result = [];
|
|
182
|
+
Object.keys(row.params).forEach((param) => {
|
|
183
|
+
result.push({
|
|
184
|
+
key: param,
|
|
185
|
+
value: row.params[param]
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
return result;
|
|
189
|
+
}
|
|
174
190
|
},
|
|
175
191
|
{
|
|
176
192
|
id: 5,
|
|
193
|
+
name: t("export:message"),
|
|
194
|
+
field: "message",
|
|
195
|
+
width: "200px"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: 6,
|
|
177
199
|
name: t("export:log"),
|
|
178
200
|
field: "history",
|
|
179
|
-
|
|
180
|
-
headStyle: { width: "25%" }
|
|
201
|
+
width: "300px"
|
|
181
202
|
},
|
|
182
203
|
{
|
|
183
|
-
id:
|
|
204
|
+
id: 7,
|
|
184
205
|
name: t("export:file"),
|
|
185
206
|
field: "file",
|
|
186
207
|
type: "file",
|
|
187
|
-
|
|
188
|
-
headStyle: { width: "150px", textAlign: "center" }
|
|
208
|
+
width: "100px"
|
|
189
209
|
}
|
|
190
210
|
];
|
|
191
211
|
return {
|
package/dist/locales/en.d.ts
CHANGED
package/dist/typings/model.d.ts
CHANGED