bding 1 anno fa
parent
commit
c81ecace2f

+ 4 - 0
src/api/modules/rai/raiApi.js

@@ -1216,6 +1216,10 @@ const raiInterface = {
   activityTripSendGroupList: (params) => {
     return http.get("/cygx/special/trip/tempMsg/sendGroupList", params);
   },
+  // 根据图片获取建会信息接口
+  activityImgToText: (params) => {
+    return http.post("/cygx/activity/imgToText", params);
+  },
 };
 
 /* 权益小程序管理 专项调研模块*/

+ 9 - 22
src/views/rai_manage/activityManage/activityManage.vue

@@ -326,29 +326,16 @@ export default {
       };
     },
     //  上传成功
-    handleUploadPosterSuccess(res, file) {
+    async handleUploadPosterSuccess(res, file) {
       if (res.Ret === 200) {
-        this.isShowImgMeetingDlg = true;
-        this.imgMeetingData = [
-          {
-            date: "2023-07-24",
-            time: "10:00",
-            name: "第一个",
-            id: 1,
-          },
-          {
-            date: "2023-07-24",
-            time: "10:00",
-            name: "第二个",
-            id: 2,
-          },
-          {
-            date: "2023-07-24",
-            time: "10:00",
-            name: "第三个",
-            id: 3,
-          },
-        ];
+        const resImg = await raiInterface.activityImgToText({
+          ImgUrl: res.Data.ResourceUrl,
+        });
+        if (resImg.Ret === 200) {
+          console.log(res, resImg);
+          this.isShowImgMeetingDlg = true;
+          this.imgMeetingData = resImg.Data.List;
+        }
       }
     },
     // 点击取消的回调事件

+ 6 - 6
src/views/rai_manage/activityManage/components/imgMeeting.vue

@@ -11,13 +11,13 @@
       </div>
       <div class="box-content" v-for="(item, index) in imgMeetingData" :key="item.id">
         <div class="box-date">
-          <el-date-picker v-model="item.date" type="date" format="yyyy年MM月dd日  (周ddd)" placeholder="选择日期" style="width: 230px"> </el-date-picker>
+          <el-date-picker v-model="item.TitmeYMD" type="date" value-format="yyyy年MM月dd日" format="yyyy年MM月dd日  (周ddd)" placeholder="选择日期" style="width: 230px"> </el-date-picker>
         </div>
         <div class="box-time">
-          <el-time-picker v-model="item.time" value-format="HH:mm" format="HH:mm A" placeholder="任意时间点" style="width: 160px"> </el-time-picker>
+          <el-time-picker v-model="item.TitmeHM" value-format="HH:mm" format="HH:mm A" placeholder="任意时间点" style="width: 160px"> </el-time-picker>
         </div>
         <div class="box-name">
-          <el-input v-model="item.name" placeholder="请输入内容" style="width: 100%" clearable></el-input>
+          <el-input v-model="item.Company" placeholder="请输入内容" style="width: 100%" clearable></el-input>
         </div>
         <div class="delete-item-icon" @click="deleteLabelItem(item, index)">
           <img src="~@/assets/img/icons/delete-Item.png" alt="" />
@@ -60,13 +60,13 @@ export default {
   methods: {
     // 确定事件
     confirmPerson() {
-      let isConfirm = this.imgMeetingData.every((item) => item.date && item.time && item.name);
+      let isConfirm = this.imgMeetingData.every((item) => item.TitmeYMD && item.TitmeHM && item.Company);
       if (!isConfirm) return this.$message.error("每格的内容都必填。");
-      console.log(isConfirm);
+     console.log( this.imgMeetingData);
     },
     handleClose() {
       this.isShowImgMeetingDlg = false;
-
+      
       this.$emit("childrenImgMeetingHandler");
     },
     deleteLabelItem(item, index) {