Commit 3231551d authored by krysent's avatar krysent

bgimg

parent 4c751087
This diff is collapsed.
...@@ -2,149 +2,19 @@ import React, { useState } from "react"; ...@@ -2,149 +2,19 @@ import React, { useState } from "react";
import AutoTable from "@/components/AutoTable"; import AutoTable from "@/components/AutoTable";
import DrawInitForm from "@/components/DrawInitForm"; import DrawInitForm from "@/components/DrawInitForm";
import { Button } from "antd"; import { Button } from "antd";
import bg from "../../public/home.jpg";
function Table({ route }) { function Table({ route }) {
const [vs, setvs] = useState(); const style = {
return ( width: "100%",
<div style={{ height: "200vh" }}> height: "100%",
首页 backgroundImage: `url(${bg})`,
{/* <AutoTable backgroundPosition: "0 0",
pagetitle={route.name} backgroundSize: "cover",
pageextra={() => <Button onClick={() => { backgroundRepeat: "no-repeat",
setvs(true) };
}}>add</Button> return <div style={style}></div>;
}
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": "roleName",
"key": "roleName"
},
{
"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; export default Table;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment