GuLiMmo
2024-01-06 5f725eb707564039ecf07fa77273d210c2e88448
src/views/evaluate/components/IndividualTaskPublic.vue
@@ -5,7 +5,7 @@
                <el-form-item prop="categoryEntities">
                    <template #label>
                        评优类别
                        <el-button type="primary" icon="el-icon-view" text>查看第一轮候选结果</el-button>
                        <el-button type="primary" icon="el-icon-view" text @click="viewCandidateResult">查看第一轮候选结果</el-button>
                    </template>
                    <ul class="type-list">
                        <li class="type-item">
@@ -56,6 +56,9 @@
            <el-button @click="() => params.visible = false">取消</el-button>
            <el-button type="primary" @click="taskPublic">确认发布</el-button>
        </template>
        <!-- 查看第一轮候选结果 -->
        <candidateResult :params="candidateResultParams" />
        <!-- 添加评优种类候选人 -->
        <addEcCandidate :params="addEcCandidateParams" />
    </el-dialog>
</template>
@@ -65,10 +68,12 @@
import { getDict } from '@/api/dict'
import { update, getEcList } from '@/api/evaluate/evaluateTask'
import addEcCandidate from './addEcCandidate.vue';
import candidateResult from './candidateResult.vue';
export default {
    components: {
        addEcCandidate
        addEcCandidate,
        candidateResult
    },
    props: {
        params: {
@@ -109,7 +114,8 @@
                size: 100,
                total: 0
            },
            addEcCandidateParams: {}
            addEcCandidateParams: {},
            candidateResultParams: {}
        }
    },
    methods: {
@@ -157,6 +163,12 @@
                visible: true,
                data: row
            }
        },
        viewCandidateResult() {
            this.candidateResultParams = {
                visible: true,
                data: this.params.data
            }
        }
    }
};