shaogen1995 1 년 전
부모
커밋
2941226392

+ 1 - 1
src/pages/A4store/A3Edit/index.module.scss

@@ -1,4 +1,4 @@
-.A3Edit {
+.A4Edit {
   position: absolute;
   width: 100%;
   height: 100%;

+ 6 - 6
src/pages/A4store/A3Edit/index.tsx

@@ -23,7 +23,7 @@ type Props = {
   addTableFu: () => void;
 };
 
-function A3Edit({ editInfo, closeFu, upTableFu, addTableFu }: Props) {
+function A4Edit({ editInfo, closeFu, upTableFu, addTableFu }: Props) {
   // 表单的ref
   const FormBoxRef = useRef<FormInstance>(null);
 
@@ -82,14 +82,14 @@ function A3Edit({ editInfo, closeFu, upTableFu, addTableFu }: Props) {
       // 没有传 封面图
       if (!coverUrl1.filePath) return;
       // 发布日期
-      const releaseDate = dayjs(values.myTime).format("YYYY-MM-DD");
+      const recordDate = dayjs(values.myTime).format("YYYY-MM-DD");
 
       const rtf = ZRichTextRef.current?.fatherBtnOkFu();
 
       const obj = {
         ...values,
         id: editInfo.id > 0 ? editInfo.id : null,
-        releaseDate,
+        recordDate,
         thumb: coverUrl1.filePath,
         rtf: rtf.val,
       };
@@ -104,7 +104,7 @@ function A3Edit({ editInfo, closeFu, upTableFu, addTableFu }: Props) {
   );
 
   return (
-    <div className={styles.A3Edit}>
+    <div className={styles.A4Edit}>
       <div className="A3Emain">
         <Form
           ref={FormBoxRef}
@@ -227,6 +227,6 @@ function A3Edit({ editInfo, closeFu, upTableFu, addTableFu }: Props) {
   );
 }
 
-const MemoA3Edit = React.memo(A3Edit);
+const MemoA4Edit = React.memo(A4Edit);
 
-export default MemoA3Edit;
+export default MemoA4Edit;

+ 4 - 4
src/pages/A4store/A3set.tsx

@@ -10,7 +10,7 @@ type Props = {
   closeFu: () => void;
 };
 
-function A3set({ closeFu }: Props) {
+function A4set({ closeFu }: Props) {
   const [isEnabled, setIsEnabled] = useState(1);
   const [rtf, setRtf] = useState("");
 
@@ -39,7 +39,7 @@ function A3set({ closeFu }: Props) {
 
   return (
     <Modal
-      wrapClassName={styles.A3set}
+      wrapClassName={styles.A4set}
       open={true}
       title="商城设置"
       footer={
@@ -87,6 +87,6 @@ function A3set({ closeFu }: Props) {
   );
 }
 
-const MemoA3set = React.memo(A3set);
+const MemoA4set = React.memo(A4set);
 
-export default MemoA3set;
+export default MemoA4set;

+ 1 - 1
src/pages/A4store/index.module.scss

@@ -21,7 +21,7 @@
 }
 
 // 商城设置
-.A3set {
+.A4set {
   :global {
     .ant-modal-close {
       display: none;

+ 4 - 4
src/pages/A4store/index.tsx

@@ -8,8 +8,8 @@ import { Button } from "antd";
 import MyPopconfirm from "@/components/MyPopconfirm";
 import MyTable from "@/components/MyTable";
 import { A4tableC } from "@/utils/tableData";
-import A3set from "./A3set";
-import A3Edit from "./A3Edit";
+import A4set from "./A4set";
+import A4Edit from "./A4Edit";
 import { MessageFu } from "@/utils/message";
 function A4store() {
   const dispatch = useDispatch();
@@ -125,9 +125,9 @@ function A4store() {
       {/* 商城设置 */}
       {editInfo.id ? (
         editInfo.type === "商城设置" ? (
-          <A3set closeFu={() => setEditInfo({ id: 0, type: "" })} />
+          <A4set closeFu={() => setEditInfo({ id: 0, type: "" })} />
         ) : (
-          <A3Edit
+          <A4Edit
             editInfo={{
               id: editInfo.id,
               type: editInfo.type as "新增" | "编辑",

+ 1 - 1
src/utils/tableData.ts

@@ -63,7 +63,7 @@ export const A4tableC = [
   ["img", "封面", "thumb"],
   ["txt", "所需爱心币", "score"],
   ["txt", "库存", "stock"],
-  ["txt", "登记日期", "createTime"],
+  ["txt", "登记日期", "recordDate"],
   ["txtChange", "状态", "isEnabled", { 0: "下架", 1: "上架" }],
 ];