|
@@ -101,7 +101,7 @@
|
|
|
<el-dropdown-item command="handleOrg" size="mini" type="text"
|
|
|
icon="el-icon-circle-check">分配单位</el-dropdown-item>
|
|
|
<el-dropdown-item command="handPublish" size="mini" type="text"
|
|
|
- icon="el-icon-circle-check">{{scope.row.status==1?'发布':'已发布'}}</el-dropdown-item>
|
|
|
+ icon="el-icon-circle-check">{{ scope.row.status == 1 ? '发布' : '已发布' }}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
<el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="lookMes(scope.row)">查看详情</el-button>
|
|
@@ -188,7 +188,7 @@
|
|
|
<el-table-column label="ID" align="center" prop="id" />
|
|
|
<el-table-column label="所属会议" align="center" prop="meetingId" />
|
|
|
<el-table-column label="参会人姓名" align="center" prop="ppName" />
|
|
|
- <el-table-column label="参会人联系电话" align="center" prop="ppTel" width="200"/>
|
|
|
+ <el-table-column label="参会人联系电话" align="center" prop="ppTel" width="200" />
|
|
|
<el-table-column label="参会人单位id" align="center" prop="orgId" />
|
|
|
<el-table-column label="参会人职务" align="center" prop="ppDuty" />
|
|
|
<!-- <el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
@@ -197,13 +197,13 @@
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
<!-- <el-table-column label="状态" align="center" prop="status" /> -->
|
|
|
- <el-table-column label="操作" lalign="center" fixed="right" width="180">
|
|
|
+ <!-- <el-table-column label="操作" lalign="center" fixed="right" width="180">
|
|
|
<template v-slot="scope">
|
|
|
- <el-button type="text" plain icon="el-icon-download" size="mini" @click="handleExport"
|
|
|
- :loading="exportLoading1" >导出</el-button>
|
|
|
+
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table>
|
|
|
+ <el-button type="text" plain icon="el-icon-download" size="mini" @click="nowExcel" style="margin-left: 800px;">导出</el-button>
|
|
|
<pagination v-show="total > 0" :total="total" page.sync="1" limit.sync="10" @pagination="getList" />
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="meetPeopleModal = false">取 消</el-button>
|
|
@@ -215,7 +215,7 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import { createMeeting, updateMeeting, deleteMeeting, getMeeting, getMeetingPage, exportMeetingExcel, getmeetingorg, broadMeeting, setupMeetingOrg, getMeetPeople } from "@/api/backend/meeting"
|
|
|
+import { createMeeting, updateMeeting, deleteMeeting, getMeeting, getMeetingPage, exportMeetingExcel, getmeetingorg, broadMeeting, setupMeetingOrg, getMeetPeople, goExcel } from "@/api/backend/meeting"
|
|
|
import choiceSelect from '@/components/choiceSelect';
|
|
|
import { createMeetingParticipants, updateMeetingParticipants, deleteMeetingParticipants, getMeetingParticipants, getMeetingParticipantsPage, exportMeetingParticipantsExcel } from "@/api/backend/meetingParticipants";
|
|
|
import handleSelectedOrg from '@/components/handleSelectedOrg';
|
|
@@ -281,7 +281,7 @@ export default {
|
|
|
openSelectedOrg: false,
|
|
|
meetPeople: [],//会议所属人员
|
|
|
meetPeopleModal: false,
|
|
|
- exportLoading1: false,
|
|
|
+ meetedId: "",
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -538,6 +538,7 @@ export default {
|
|
|
},
|
|
|
lookMes(row) {
|
|
|
// console.log(row,'5');s
|
|
|
+ this.meetedId = row.id
|
|
|
getMeetPeople({
|
|
|
meetingId: row.id,
|
|
|
pageNo: 1,
|
|
@@ -557,19 +558,22 @@ export default {
|
|
|
this.total = res.data.total
|
|
|
})
|
|
|
},
|
|
|
- /** 导出按钮操作 */
|
|
|
- handleExport() {
|
|
|
- // 处理查询参数
|
|
|
- let params = { ...this.queryParams };
|
|
|
- params.pageNo = undefined;
|
|
|
- params.pageSize = undefined;
|
|
|
- this.$modal.confirm('是否确认导出所有会议参会人员明细数据项?').then(() => {
|
|
|
- this.exportLoading1 = true;
|
|
|
- return exportMeetingParticipantsExcel(params);
|
|
|
- }).then(response => {
|
|
|
- this.$download.excel(response, '会议参会人员明细.xls');
|
|
|
- this.exportLoading1 = false;
|
|
|
- }).catch(() => { });
|
|
|
+ nowExcel(row) {
|
|
|
+ // exportMeetingParticipantsExcel({ meetingId: this.meetedId }).then(res => {
|
|
|
+ // console.log(res, 'res');
|
|
|
+ // })
|
|
|
+ // 执行导出
|
|
|
+ this.$modal
|
|
|
+ .confirm("是否确认导出?")
|
|
|
+ .then(() => {
|
|
|
+ this.exportLoading = true
|
|
|
+ return exportMeetingParticipantsExcel({ meetingId: this.meetedId })
|
|
|
+ })
|
|
|
+ .then((response) => {
|
|
|
+ this.$download.excel(response, "会议信息.xls")
|
|
|
+ this.exportLoading = false
|
|
|
+ })
|
|
|
+ .catch(() => { })
|
|
|
}
|
|
|
},
|
|
|
computed: {
|