Skip to content

Commit

Permalink
feat:页面字段完善
Browse files Browse the repository at this point in the history
  • Loading branch information
winyh committed Nov 13, 2024
1 parent 32d736e commit 67cc401
Show file tree
Hide file tree
Showing 2 changed files with 252 additions and 71 deletions.
114 changes: 86 additions & 28 deletions src/page/basic/icon/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
Card,
Table,
Select,
InputNumber,
} from "antd";

import { SearchOutlined, RedoOutlined } from "@ant-design/icons";
Expand Down Expand Up @@ -76,34 +77,34 @@ const Corn = () => {

const columns = [
{
title: "任务编号",
dataIndex: "corn_no",
key: "corn_no",
title: "图标名称",
dataIndex: "name",
key: "name",
},
{
title: "任务名称",
dataIndex: "corn_name",
key: "corn_name",
title: "图标URL",
dataIndex: "url",
key: "url",
},
{
title: "描述",
title: "图标描述",
dataIndex: "description",
key: "description",
},
{
title: "任务分类",
dataIndex: "group",
key: "group",
title: "图标类型",
dataIndex: "type",
key: "type",
},
{
title: "调用模板字符串",
dataIndex: "template",
key: "template",
title: "排序",
dataIndex: "sort",
key: "sort",
},
{
title: "corn表达式",
dataIndex: "expression",
key: "expression", // CRON: 0 0 3 * * ?
title: "状态",
dataIndex: "status",
key: "status",
},
{
title: "创建时间",
Expand All @@ -112,9 +113,10 @@ const Corn = () => {
render: () => dayjs().format("YYYY-MM-DD HH:mm:ss"),
},
{
title: "状态",
dataIndex: "status",
key: "status",
title: "更新时间",
dataIndex: "updated_at",
key: "updated_at",
render: () => dayjs().format("YYYY-MM-DD HH:mm:ss"),
},
];

Expand Down Expand Up @@ -197,8 +199,8 @@ const Corn = () => {
span: 6,
}}
>
<Form.Item name="username" label="任务名称">
<Input placeholder="请输入任务名称" />
<Form.Item name="name" label="图标名称">
<Input placeholder="请输入图标名称" />
</Form.Item>
</Col>
<Col
Expand All @@ -221,8 +223,8 @@ const Corn = () => {
span: 6,
}}
>
<Form.Item name="mobile" label="描述">
<Input placeholder="请输入描述" />
<Form.Item name="url" label="图标URL">
<Input placeholder="请输入图标URL" />
</Form.Item>
</Col>
<Col
Expand All @@ -245,8 +247,8 @@ const Corn = () => {
span: 6,
}}
>
<Form.Item name="company" label="任务分类">
<Select placeholder="请输入任务分类" />
<Form.Item name="description" label="图标描述">
<Input placeholder="请输入图标描述" />
</Form.Item>
</Col>
<Col
Expand All @@ -269,11 +271,67 @@ const Corn = () => {
span: 6,
}}
>
<Form.Item name="industry" label="调用模板">
<Input placeholder="请输入调用模板" />
<Form.Item name="type" label="图标类型">
<Select placeholder="请选择图标类型">
<Option value="custom">自定义上传</Option>
<Option value="iconfont">iconfont引入</Option>
</Select>
</Form.Item>
</Col>
<Col
xs={{
span: 24,
}}
sm={{
span: 24,
}}
md={{
span: 12,
}}
lg={{
span: 6,
}}
xl={{
span: 6,
}}
xxl={{
span: 6,
}}
>
<Form.Item name="sort" label="排序">
<InputNumber
placeholder="请输入排序"
style={{ width: "100%" }}
/>
</Form.Item>
</Col>
<Col
xs={{
span: 24,
}}
sm={{
span: 24,
}}
md={{
span: 12,
}}
lg={{
span: 6,
}}
xl={{
span: 6,
}}
xxl={{
span: 6,
}}
>
<Form.Item name="status" label="状态">
<Select placeholder="请选择状态">
<Option value="0">禁用</Option>
<Option value="1">启用</Option>
</Select>
</Form.Item>
</Col>

<Col
xs={{
span: 24,
Expand Down
Loading

0 comments on commit 67cc401

Please sign in to comment.