瀏覽代碼

增加会议通知导出api

humingbo 1 年之前
父節點
當前提交
c5b1ac60e0
共有 2 個文件被更改,包括 11 次插入3 次删除
  1. 3 2
      src/api/meeting/meeting.js
  2. 8 1
      src/views/meeting/meeting.vue

+ 3 - 2
src/api/meeting/meeting.js

@@ -276,8 +276,9 @@ export function getMeetingContentsByMeetingId(id){
  * @param id
  */
 export function exportOutMeetingNotice(id){
-  return request({
+  return download({
     url: '/meeting/exportOutMeetingNotice?meetingId='+id,
-    method: 'get'
+    method: 'get',
+    responseType: 'blob',
   })
 }

+ 8 - 1
src/views/meeting/meeting.vue

@@ -54,6 +54,9 @@
       <el-table-column type="index" label="序号" width="60" fixed>
       </el-table-column>
       <el-table-column label="会议主题" prop="meetingName">
+        <template slot-scope="scope">
+          {{scope.row.meetingName}}(<span style="color: blue;cursor:pointer" slot="reference" @click="exportOutMeetingNotices(scope.row)">会议通知</span>)
+        </template>
       </el-table-column>
       <el-table-column label="会议地点" prop="meetingPlace" width="150" :show-overflow-tooltip="true">
       </el-table-column>
@@ -461,7 +464,7 @@ import {
   startMeetingById,
   meetingAuthById,
   meetingDeleteAuth,
-  endMeeting, editMeetingContent, getMeetingContentsByMeetingId
+  endMeeting, editMeetingContent, getMeetingContentsByMeetingId, exportOutMeetingNotice
 } from '@/api/meeting/meeting'
 import {getDeptUserTree} from '@/api/system/user'
 import {getProjectList} from "@/api/task/project";
@@ -1155,6 +1158,10 @@ export default {
         let contents=res.data
         this.meetingContents=contents
       })
+    },
+    exportOutMeetingNotices(row){
+      let id=row.id
+      exportOutMeetingNotice(id);
     }
   }