Showing
1 changed file
with
0 additions
and
62 deletions
| ... | @@ -18,65 +18,3 @@ export const tableAttr = { | ... | @@ -18,65 +18,3 @@ export const tableAttr = { |
| 18 | ], | 18 | ], |
| 19 | }, | 19 | }, |
| 20 | }; | 20 | }; |
| 21 | - | ||
| 22 | -export const columnHeader = (deleteRow) => [ | ||
| 23 | - { | ||
| 24 | - label: "航班号", | ||
| 25 | - prop: "flightNo", | ||
| 26 | - align: "center", | ||
| 27 | - minWidth: 100, | ||
| 28 | - }, | ||
| 29 | - { | ||
| 30 | - label: "航班日期", | ||
| 31 | - prop: "calculateDay", | ||
| 32 | - align: "center", | ||
| 33 | - minWidth: 100, | ||
| 34 | - // sortable: true, | ||
| 35 | - // "sort-method": (a, b) => b.updateTime - a.updateTime, | ||
| 36 | - }, | ||
| 37 | - { | ||
| 38 | - label: "航线", | ||
| 39 | - prop: "flightRoute", | ||
| 40 | - align: "center", | ||
| 41 | - minWidth: 100, | ||
| 42 | - }, | ||
| 43 | - { | ||
| 44 | - label: "爆仓是否继续配舱", | ||
| 45 | - prop: "permitOverweight", | ||
| 46 | - align: "center", | ||
| 47 | - minWidth: 100, | ||
| 48 | - render: (h, params) => { | ||
| 49 | - const { row } = params; | ||
| 50 | - console.log(345678, row); | ||
| 51 | - // return h("div", `状态-${row.id}`); | ||
| 52 | - }, | ||
| 53 | - }, | ||
| 54 | - { | ||
| 55 | - label: "操作", | ||
| 56 | - align: "center", | ||
| 57 | - minWidth: 120, | ||
| 58 | - render: (h, params) => { | ||
| 59 | - return h("div", [ | ||
| 60 | - h( | ||
| 61 | - "el-button", | ||
| 62 | - { | ||
| 63 | - style: { | ||
| 64 | - color: "#ff4949", | ||
| 65 | - }, | ||
| 66 | - props: { | ||
| 67 | - type: "text", | ||
| 68 | - size: "mini", | ||
| 69 | - icon: "el-icon-delete", | ||
| 70 | - }, | ||
| 71 | - on: { | ||
| 72 | - click() { | ||
| 73 | - deleteRow(params); | ||
| 74 | - }, | ||
| 75 | - }, | ||
| 76 | - }, | ||
| 77 | - "删除" | ||
| 78 | - ), | ||
| 79 | - ]); | ||
| 80 | - }, | ||
| 81 | - }, | ||
| 82 | -]; | ... | ... |
-
Please register or login to post a comment