flame-plus 0.1.19 → 0.1.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flame-plus",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "private": false,
5
5
  "description": "基于 element-plus 的组件库",
6
6
  "main": "packages/index.ts",
@@ -294,6 +294,21 @@ const pageDefaultEvent: Record<string, (event?: any) => void> = {
294
294
  pageDefaultEvent.closeAddDialog()
295
295
  })
296
296
  },
297
+ // 页面导出
298
+ pageExport:() => {
299
+ request.flameApi.exportFile({
300
+ tableName: safeTableName.value,
301
+ data: {
302
+ conditions: searchParams.value,
303
+ ref_level: 1,
304
+ order_by: "flame_id DESC"
305
+ }
306
+ })
307
+ .then(({ items }: any) => {
308
+ window.open(items.download_url)
309
+ ElMessage.success('导出成功')
310
+ })
311
+ },
297
312
  // 页面删除
298
313
  pageDelete:(scope: any) => {
299
314
  ElMessageBox.confirm(
@@ -1,4 +1,12 @@
1
- import { FormConfig } from '@/model/flmComponentConfig'
1
+ /*
2
+ * @Author: 关羽 xiaobing525@163.com
3
+ * @Date: 2023-01-04 22:32:16
4
+ * @LastEditors: 关羽 xiaobing525@163.com
5
+ * @LastEditTime: 2023-01-05 19:54:43
6
+ * @FilePath: /flame-components/packages/model/flmComponentConfig/complex/flmSearch.ts
7
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+ */
9
+ import { FormConfig } from '../../../model/flmComponentConfig'
2
10
 
3
11
  export interface SearchConfig extends FormConfig {
4
12
  maxFormItem?: number
@@ -1,5 +1,14 @@
1
+ /*
2
+ * @Author: 关羽 xiaobing525@163.com
3
+ * @Date: 2023-01-04 22:32:16
4
+ * @LastEditors: 关羽 xiaobing525@163.com
5
+ * @LastEditTime: 2023-01-11 21:37:39
6
+ * @FilePath: /flame-components/packages/model/flmComponentConfig/page/flmReportPage.ts
7
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+ */
1
9
  import {
2
10
  FormConfig,
11
+ SearchConfig,
3
12
  ToolbarConfig,
4
13
  TableConfig,
5
14
  PaginationConfig,
@@ -8,7 +17,7 @@ import {
8
17
 
9
18
  // 报表页面设置
10
19
  export interface ReportPageSetting {
11
- 'search': FormConfig
20
+ 'search': SearchConfig
12
21
  'toolbar': ToolbarConfig
13
22
  'table': TableConfig
14
23
  'tableAction': ToolbarConfig