|
@@ -69,6 +69,14 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="exportExcel"
|
|
|
|
+ :loading="exportLoading"
|
|
|
|
+ v-hasPermi="['system:user:exportStudentUnPassedExcel']"
|
|
|
|
+ >
|
|
|
|
+ 批量导出
|
|
|
|
+ </el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</ContentWrap>
|
|
</ContentWrap>
|
|
@@ -143,6 +151,7 @@ import {studentSelectSupervisorRecordApi, studentSelectSupervisorRecordVO} from
|
|
import {studentSelectionProjectApi, studentSelectionProjectVO} from "@/api/system/studentSelectionProject"
|
|
import {studentSelectionProjectApi, studentSelectionProjectVO} from "@/api/system/studentSelectionProject"
|
|
import * as UserApi from '@/api/system/user'
|
|
import * as UserApi from '@/api/system/user'
|
|
import studentSelectSupervisorRecordForm from '../studentSelectSupervisorRecord/studentSelectSupervisorRecordForm.vue'
|
|
import studentSelectSupervisorRecordForm from '../studentSelectSupervisorRecord/studentSelectSupervisorRecordForm.vue'
|
|
|
|
+import download from '@/utils/download'
|
|
|
|
|
|
defineOptions({ name: 'StudentSelectionWait' })
|
|
defineOptions({ name: 'StudentSelectionWait' })
|
|
|
|
|
|
@@ -245,6 +254,21 @@ const handleDownload = (row) => {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const exportLoading = ref(false) // 导出的加载中
|
|
|
|
+const exportExcel = async () => {
|
|
|
|
+ try {
|
|
|
|
+ // 导出的二次确认
|
|
|
|
+ await message.exportConfirm()
|
|
|
|
+ // 发起导出
|
|
|
|
+ exportLoading.value = true
|
|
|
|
+ const data = await UserApi.exportStudentUnPassedExcel(queryForm)
|
|
|
|
+ download.excel(data, '未分配学生名单.xls')
|
|
|
|
+ } catch {
|
|
|
|
+ } finally {
|
|
|
|
+ exportLoading.value = false
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getUnPassList()
|
|
getUnPassList()
|
|
getSupervisor()
|
|
getSupervisor()
|