Welcome.jsx 3.52 KB
Newer Older
wuhao's avatar
wuhao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
import React, { useState } from "react";
import AutoTable from "@/components/AutoTable";
import DrawInitForm from "@/components/DrawInitForm";
import { Button } from "antd";

function Table({ route }) {
  const [vs, setvs] = useState();
  return (
    <div style={{ height: "200vh" }}>
      {/* <AutoTable
        pagetitle={route.name}
        pageextra={() => <Button onClick={() => {
          setvs(true)
        }}>add</Button>
        }
        columns={[
          {
            "title": "姓名",
            "dataIndex": "userName",
            "key": "userName"
          },
          {
            "title": "用户名",
            "dataIndex": "accountName",
            "key": "accountName"
          },
          {
            "title": "性别1:男;2:女",
            "dataIndex": "gender",
            "key": "gender",
            "valueType": "select",
            "request": [
              {
                "label": "男",
                "value": "1"
              },
              {
                "label": "女",
                "value": "2"
              }
            ],
            "fftype": 0
          },
          {
            "title": "电话",
            "dataIndex": "telephone",
            "key": "telephone"
          },
          {
            "title": "邮箱",
            "dataIndex": "mailNo",
            "key": "mailNo",
            "search": false
          },
          {
            "title": "部门名称",
            "dataIndex": "departmentName",
            "key": "departmentName"
          },
          {
            "title": "工厂名称",
            "dataIndex": "factoryName",
            "key": "factoryName"
          },
          {
            "title": "车间名称",
            "dataIndex": "shopNames",
            "key": "shopNames"
          },
          {
            "title": "工段",
            "dataIndex": "sectionNames",
            "key": "sectionNames"
          },
          {
            "title": "产线",
            "dataIndex": "productionLines",
            "key": "productionLines"
          },
          {
            "title": "分组",
            "dataIndex": "groupNames",
            "key": "groupNames"
          },
          {
            "title": "角色",
            "dataIndex": "roleNames",
            "key": "roleNames"
          },
          {
            "title": "直属领导",
            "dataIndex": "parentName",
            "key": "parentName"
          },
          {
            "title": "学历",
            "dataIndex": "academicCareer",
            "key": "academicCareer",
            "search": false
          },
          {
            "title": "毕业院校",
            "dataIndex": "university",
            "key": "university",
            "search": false
          },
          {
            "title": "专业",
            "dataIndex": "major",
            "key": "major",
            "search": false
          },
          {
            "title": "备注",
            "dataIndex": "remarks",
            "key": "remarks",
            "search": false
          }
        ]}
        path="/ngic-auth/sysUser/query/page"
      >

      </AutoTable>
      <DrawInitForm
        title="Basic Drawer"
        onClose={() => {
          setvs(false)
        }}
        visible={vs}
        fields={{
          "a": {
            "value": null,
            "type": "input",
            "title": "b",
            "name": [
              "a"
            ],
            "required": true
          }
        }}

      >

      </DrawInitForm> */}
    </div>
  );
}

export default Table;