Browse Source

更改loading

master
wbc 3 months ago
parent
commit
b655dfa9d9
  1. 17
      src/views/projectBoard/unfinishNode/index.vue

17
src/views/projectBoard/unfinishNode/index.vue

@ -15,13 +15,7 @@
>
</div>
<div>
<a-table
:dataSource="dataSource"
:columns="columns"
bordered
:loading="tableLoading"
:pagination="false"
>
<a-table :dataSource="dataSource" :columns="columns" :loading='tableLoading' bordered :pagination="false">
<template #bodyCell="{ column, record }">
<template v-if="column && record && column.dataIndex === 'reformName'">
{{ getReformName(record.reformName) }}
@ -103,22 +97,19 @@
};
function handleProjectBoardInfo() {
btnLoading1.value = true;
downloadFile('/export/projectBoardInfo', '晾晒看报.xlsx', {});
nextTick(() => {
downloadFile('/export/projectBoardInfo', '晾晒看报.xlsx', {}).then((_) => {
btnLoading1.value = false;
});
}
function handleTimeOutInfo() {
btnLoading2.value = true;
downloadFile('/export/timeOutInfo', '评分表.xlsx', {});
nextTick(() => {
downloadFile('/export/timeOutInfo', '评分表.xlsx', {}).then((_) => {
btnLoading2.value = false;
});
}
function handleProjectResult() {
btnLoading3.value = true;
downloadFile('/export/projectResult', '项目成果.xlsx', {});
nextTick(() => {
downloadFile('/export/projectResult', '项目成果.xlsx', {}).then((_) => {
btnLoading3.value = false;
});
}

Loading…
Cancel
Save