GuLiMmo
2024-01-16 9f53be1dfd7f55ca43fa4e8229c371e8ed29a5ba
src/views/evaluate/components/secondRoundResult.vue
@@ -5,23 +5,23 @@
        </div>
        <ul class="type-list">
            <li class="type-item">
                <div class="title">类别</div>
                <div class="title">奖项</div>
                <div class="introduction">认定标准</div>
                <div class="number">名额</div>
                <div class="tool">操作</div>
            </li>
            <li class="type-item" v-for="(item, index) in data" :key="index">
                <div class="title">{{ item.category.categoryName }}</div>
                <div class="title">{{ item.category?.categoryName || '' }}</div>
                <el-tooltip effect="dark" placement="top">
                    <template #content>
                        <p style="max-width: 500px;">{{ item.category.standard }}</p>
                        <p style="max-width: 500px;">{{ item.category?.standard || '' }}</p>
                    </template>
                    <div class="introduction">
                        {{ item.category.standard }}
                        {{ item.category?.standard || '' }}
                    </div>
                </el-tooltip>
                <div class="number">{{ item.category.peopleNum }}人</div>
                <div class="number">{{ item.category?.peopleNum || 0 }}人</div>
                <div class="tool">
                    <el-button type="primary" text icon="el-icon-view" @click="view(item)">查看最终结果</el-button>
                </div>
@@ -207,8 +207,9 @@
            }).then(() => {
                NProgress.start();
                const url = this.type() ? sectionDownloadUrl : downloadUrl;
                const typeName = this.type() ? '部门' : '个人'
                exportBlob(url, {}).then(res => {
                    downloadXls(res.data, `最终评优结果(${dateNow()}).xlsx`);
                    downloadXls(res.data, `${typeName}最终评优结果(${dateNow()}).xlsx`);
                    NProgress.done();
                })
            });