GuLiMmo
2024-01-16 5f505a341057632fa496ce7bfe3e6a65c5f9fb27
更新
1 files modified
24 ■■■■ changed files
src/views/assessment/components/assessorDialog.vue 24 ●●●● patch | view | raw | blame | history
src/views/assessment/components/assessorDialog.vue
@@ -4,8 +4,18 @@
        <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" @search-change="searchChange"
            @search-reset="searchReset" @current-change="currentChange" @size-change="sizeChange"
            @refresh-change="refreshChange" @on-load="onLoad">
            <template #scoreVal="{ row }">
                <el-tag effect="dark" :type="row.scoreVal === -1 ? 'warning' : 'success'">
                    {{ row.scoreVal === -1 ? '暂未评分' : row.scoreVal }}
                </el-tag>
            </template>
            <template #weight="{ row }">
                <el-tag effect="dark" :type="row.weight === -1 ? 'warning' : 'success'">
                    {{ row.scoreVal === -1 ? '暂未设置权重' : row.scoreVal }}
                </el-tag>
            </template>
            <template #menu="{ row }">
                <el-button type="warning" icon="el-icon-warning" text @click="sendBack(row)">驳回</el-button>
                <el-button :disabled="row.scoreVal === -1" type="warning" icon="el-icon-warning" text @click="sendBack(row)">驳回</el-button>
            </template>
        </avue-crud>
    </el-dialog>
@@ -113,13 +123,15 @@
                    label: "考核分",
                    prop: "scoreVal",
                    type: "input",
                    minWidth: 70
                    slot: true,
                    minWidth: 120
                },
                {
                    label: "权值",
                    prop: "weight",
                    type: "input",
                    minWidth: 70
                    slot: true,
                    minWidth: 120
                }
            ],
            sectionColumn: [
@@ -169,13 +181,15 @@
                    label: "考核分",
                    prop: "scoreVal",
                    type: "input",
                    minWidth: 70
                    slot: true,
                    minWidth: 120
                },
                {
                    label: "权值",
                    prop: "weight",
                    type: "input",
                    minWidth: 70
                    slot: true,
                    minWidth: 120
                }
            ],
            detailParams: {}