Kaynağa Gözat

事件管理 标题整合

shaogen1995 1 yıl önce
ebeveyn
işleme
010e5cff76
2 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. 7 0
      src/pages/A1event/A1add/index.tsx
  2. 2 1
      src/utils/tableData.ts

+ 7 - 0
src/pages/A1event/A1add/index.tsx

@@ -155,6 +155,12 @@ function A1add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
 
       if (rtf.flag) return MessageFu.warning("请输入完整正文!");
 
+      // 富文本标题集合
+      let rtfNameArr: string[] = [];
+      if (rtf.val && rtf.val.txtArr && rtf.val.txtArr.length) {
+        rtfNameArr = rtf.val.txtArr.map((v: any) => v.name);
+      }
+
       const obj = {
         ...values,
         id: editInfo.id > 0 ? editInfo.id : null,
@@ -167,6 +173,7 @@ function A1add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
         fileName: nameAudio.fileName,
         filePath: nameAudio.filePath,
         dirCode,
+        rtfTitle: JSON.stringify(rtfNameArr),
       };
 
       const res = await A1_APIsave(obj);

+ 2 - 1
src/utils/tableData.ts

@@ -19,7 +19,8 @@ import { A5topType } from "@/pages/A5publish/data";
 // };
 export const A1tableC = [
   ["txt", "标题", "name"],
-  ["img", "封面", "thumb"],
+  ["img", "PC端封面", "thumb"],
+  ["img", "移动端封面", "thumbApp"],
   ["txt", "活动日期", "activityTime"],
   ["txt", "最近编辑日期", "updateTime"],
   ["txt", "编辑人", "creatorName"],