GuLiMmo
2023-12-23 6bff19bca7c57fe7db0d62dd0f3f2e5ccd1a1608
细节修改
2 files modified
20 ■■■■■ changed files
src/views/evaluate/components/addCandidate.vue 18 ●●●●● patch | view | raw | blame | history
src/views/evaluate/components/addDialog.vue 2 ●●● patch | view | raw | blame | history
src/views/evaluate/components/addCandidate.vue
@@ -26,6 +26,11 @@
    removeCandidate
} from '@/api/evaluate/evaluateTask'
const dataSourceStatus = {
    0: '系统分配',
    1: '手动添加'
}
const config = getCurrentInstance().appContext.config.globalProperties
const $props = defineProps({
@@ -107,6 +112,16 @@
            prop: 'postName',
            type: 'input',
            disabled: true,
        },
        {
            label: '数据来源',
            prop: 'dataSource',
            type: 'input',
            display: false,
            formatter: (row) => {
                console.log(dataSourceStatus[row.dataSource]);
                return dataSourceStatus[row.dataSource] || '系统分配'
            },
        }
    ]
})
@@ -125,7 +140,8 @@
    addCandidate({
        evaluateTaskId: id,
        evaluateTaskName: taskName,
        ...row
        ...row,
        dataSource: 1
    }).then(res => {
        ElMessage.success('新增候选人成功');
        onLoad(table.page);
src/views/evaluate/components/addDialog.vue
@@ -200,7 +200,7 @@
        },
        handleSubmit() {
            this.$refs.addFormRef.validate(valid => {
                this.addForm.evaluateState = 1
                this.params.type && (this.addForm.evaluateState = 1)
                add(this.addForm).then(
                    () => {
                        this.$message({