|
@@ -7,7 +7,7 @@ import React, {
|
|
|
} from "react";
|
|
|
import styles from "./index.module.scss";
|
|
|
import { useDispatch, useSelector } from "react-redux";
|
|
|
-import { Button, Input } from "antd";
|
|
|
+import { Button, Input, Select } from "antd";
|
|
|
import { A5_APIdel, A5_APIgetList } from "@/store/action/A5goods";
|
|
|
import { RootState } from "@/store";
|
|
|
import { A5tableType } from "@/types";
|
|
@@ -33,6 +33,7 @@ function A5goods() {
|
|
|
pageSize: 10,
|
|
|
searchKey: "",
|
|
|
dictType: "",
|
|
|
+ dictLevel: "",
|
|
|
});
|
|
|
|
|
|
const getListFu = useCallback(() => {
|
|
@@ -65,6 +66,7 @@ function A5goods() {
|
|
|
pageSize: 10,
|
|
|
searchKey: "",
|
|
|
dictType: "",
|
|
|
+ dictLevel: "",
|
|
|
});
|
|
|
}, []);
|
|
|
|
|
@@ -114,12 +116,30 @@ function A5goods() {
|
|
|
key={inputKey}
|
|
|
maxLength={50}
|
|
|
style={{ width: 300 }}
|
|
|
- placeholder="请输入名称"
|
|
|
+ placeholder="请输入名称/分类/时代"
|
|
|
allowClear
|
|
|
onChange={(e) => fromKeyChangeFu(e, "searchKey")}
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
|
+ <div>
|
|
|
+ <span>级别:</span>
|
|
|
+ <Select
|
|
|
+ placeholder="请选择"
|
|
|
+ style={{ width: 200 }}
|
|
|
+ value={fromData.dictLevel}
|
|
|
+ onChange={(e) =>
|
|
|
+ setFromData({ ...fromData, dictLevel: e, pageNum: 1 })
|
|
|
+ }
|
|
|
+ options={[
|
|
|
+ { value: "", label: "全部" },
|
|
|
+ { value: "一级", label: "一级" },
|
|
|
+ { value: "二级", label: "二级" },
|
|
|
+ { value: "三级", label: "三级" },
|
|
|
+ ]}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+
|
|
|
{/* <div>
|
|
|
<span>类别:</span>
|
|
|
<Select
|