GuLiMmo
2024-01-15 9fc6db6472b1b8a5e8b78849b9a363d2cb5eb0ee
src/views/assessment/components/resultDetail.vue
@@ -1,6 +1,9 @@
<template>
    <el-dialog title="详情" v-model="params.visible" width="60%" destroy-on-close>
        <avue-crud :data="data" v-model:page="page" :option="option" @on-load="onLoad" >
            <!-- <template #menu="{row}">
                <el-button type="warning" icon="el-icon-info-filled" text @click="sendBack(row)">驳回</el-button>
            </template> -->
        </avue-crud>
    </el-dialog>
</template>
@@ -23,40 +26,49 @@
    menu: false,
    menuLeft: false,
    header: false,
    menuWidth: 120,
    column: [
        {
            label: '参与考核人',
            type: 'input',
            prop: 'scoreUserName'
            prop: 'scoreUserName',
            minWidth: 100
        },
        {
            label: '职务',
            type: 'input',
            prop: 'scorePostName'
            prop: 'scorePostName',
            minWidth: 100
        },
        {
            label: '部门',
            type: 'input',
            prop: 'scoreDeptName'
            prop: 'scoreDeptName',
            minWidth: 130
        },
        {
            label: '权值',
            type: 'input',
            prop: 'weight'
            prop: 'weight',
            minWidth: 100
        },
        {
            label: '考核分数',
            type: 'input',
            prop: 'scoreVal'
            prop: 'scoreVal',
            minWidth: 100
        },
        {
            label: '考核评语',
            type: 'input',
            prop: 'remark'
            prop: 'remark',
            overHidden: true,
            minWidth: 100
        },
        {
            label: '考核状态',
            type: 'input',
            minWidth: 100,
            formatter: () => {
                return '评分完成'
            }
@@ -78,17 +90,20 @@
        default: () => {
            return {
                visible: false,
                isSendBack: false
            }
        }
    }
})
const sendBack = (row) => {
    console.log(row);
}
const onLoad = () => {
    const { beId, assessmentTaskId, visible } = $props.params
    visible && getDetailList(beId, assessmentTaskId).then(res => {
        data.value = res.data.data.records
        console.log(res.data.data);
    })
}