GuLiMmo
2024-01-23 e0a2890995377b88229303939d8fa3da0b27d45e
接口更换
1 files modified
26 ■■■■■ changed files
src/views/evaluate/components/firstRoundResult.vue 26 ●●●●● patch | view | raw | blame | history
src/views/evaluate/components/firstRoundResult.vue
@@ -10,17 +10,17 @@
                <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.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.standard || '' }}</p>
                    </template>
                    <div class="introduction">
                        {{ item.category?.standard || '' }}
                        {{ item.standard || '' }}
                    </div>
                </el-tooltip>
                <div class="number">{{ item.category?.peopleNum || 0 }}人</div>
                <div class="number">{{ item.peopleNum || 0 }}人</div>
                <div class="tool">
                    <el-button type="primary" text icon="el-icon-view" @click="view(item)">查看第一轮候选结果</el-button>
                </div>
@@ -41,7 +41,7 @@
<script>
import referrerPopover from './referrerPopover.vue'
import { getFinallyResult, getCandidateResult } from '@/api/evaluate/evaluateTask'
import { getEcList, getCandidateResult } from '@/api/evaluate/evaluateTask'
import { exportBlob } from "@/api/common";
import { downloadXls } from "@/utils/util";
import { dateNow } from "@/utils/date";
@@ -159,14 +159,20 @@
                ...this.query,
                ...params
            };
            getFinallyResult(page.currentPage, page.pageSize, id).then(res => {
                const data = res.data.data;
                this.data = data || [];
            getEcList(1, 50, id).then(ecResult => {
                const { code, data: { records } } = ecResult.data
                if (code !== 200) return this.$message.error('评优类别加载失败')
                this.data = records || []
                this.loading = false;
            });
            })
            // getFinallyResult(page.currentPage, page.pageSize, id).then(res => {
            //     const data = res.data.data;
            //     this.data = data || [];
            //     this.loading = false;
            // });
        },
        view(item) {
            this.currentCategory = item.category
            this.currentCategory = item
            this.visible = true
        },
        dialogOpen() {