gaoluyang
5 天以前 c99b4166febfde47d5b350d30bac443a11de42f5
src/views/collaborativeApproval/notificationManagement/meetSetting/index.vue
@@ -3,10 +3,13 @@
    <!-- 页面标题 -->
    <div class="page-header">
      <h2>会议室设置</h2>
      <div>
        <el-button @click="handleExport" style="margin-right: 10px">导出</el-button>
      <el-button type="primary" @click="handleAdd">
        <el-icon><Plus /></el-icon>
        新增会议室
      </el-button>
      </div>
    </div>
    <!-- 搜索区域 -->
@@ -106,7 +109,7 @@
</template>
<script setup>
import { ref, reactive, onMounted } from 'vue'
import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Plus } from '@element-plus/icons-vue'
import Pagination from '@/components/Pagination/index.vue'
@@ -271,6 +274,12 @@
  })
}
// 导出
const { proxy } = getCurrentInstance()
const handleExport = () => {
  proxy.download('/meeting/export', { ...searchForm }, '会议室设置.xlsx')
}
// 页面加载时获取数据
onMounted(() => {
  getList()