shaogen1995 1 年之前
父节点
当前提交
6160e753ab
共有 4 个文件被更改,包括 26 次插入6 次删除
  1. 1 1
      src/pages/A1video/A1add/index.tsx
  2. 2 2
      src/pages/A5goods/A5add/index.tsx
  3. 22 2
      src/pages/A5goods/index.tsx
  4. 1 1
      src/utils/tableData.ts

+ 1 - 1
src/pages/A1video/A1add/index.tsx

@@ -127,7 +127,7 @@ function A1add({ addId, closeFu, addTableFu, type }: Props) {
                 ref={ZupOneRef1}
                 isLook={false}
                 fileCheck={fileCheck}
-                size={5}
+                size={type === "video" ? 5 : 10}
                 dirCode={type === "video" ? "tab1Video" : "tab2Poster"}
                 myUrl="cms/poster/upload"
                 format={["image/jpeg", "image/png"]}

+ 2 - 2
src/pages/A5goods/A5add/index.tsx

@@ -187,7 +187,7 @@ function A5add({ addId, closeFu, addTableFu, editTableFu }: Props) {
           </Form.Item>
 
           <Form.Item
-            label="类"
+            label="类"
             name="dictType"
             getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
           >
@@ -227,7 +227,7 @@ function A5add({ addId, closeFu, addTableFu, editTableFu }: Props) {
             name="dictSize"
             getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
           >
-            <Input maxLength={30} showCount placeholder="请输入内容" />
+            <Input maxLength={50} showCount placeholder="请输入内容" />
           </Form.Item>
 
           <Form.Item label="简介" name="description">

+ 22 - 2
src/pages/A5goods/index.tsx

@@ -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

+ 1 - 1
src/utils/tableData.ts

@@ -25,7 +25,7 @@ export const A4tableC = [
 export const A5tableC = [
   ["txt", "名称", "name"],
   ["img", "封面", "thumb"],
-  ["txt", "类", "dictType"],
+  ["txt", "类", "dictType"],
   ["txt", "时代", "dictAge"],
   ["txt", "级别", "dictLevel"],
   ["txt", "尺寸", "dictSize"],