GuLiMmo
2024-01-16 3eb204290442d50aa18eb4a5b93b605b9314aeb0
更新
2 files modified
304 ■■■■■ changed files
src/views/assessment/components/assessorDetails.vue 99 ●●●●● patch | view | raw | blame | history
src/views/assessment/components/assessorDialog.vue 205 ●●●●● patch | view | raw | blame | history
src/views/assessment/components/assessorDetails.vue
@@ -56,45 +56,74 @@
                viewBtn: false,
                menuWidth: 150,
                dialogClickModal: false,
                column: [
                    {
                        label: "工号",
                        prop: 'code',
                        type: "input",
                    },
                    {
                        label: "被考核人",
                        prop: "userName",
                        type: "input",
                        search: true,
                    },
                    {
                        label: "部门",
                        prop: "deptName",
                        type: "select",
                        dicUrl: '/api/blade-system/dept/lazy-list?parentId=1737282385453543425',
                        search: true,
                        props: {
                            label: 'deptName',
                            value: 'fullName'
                        },
                        overHidden: true
                    },
                    {
                        label: "职务",
                        prop: "postName",
                        type: "input",
                    },
                    {
                        label: "考核分",
                        prop: "scoreVal",
                        type: "input",
                    }
                ]
                column: []
            },
            defaultColumn: [
                {
                    label: "工号",
                    prop: 'code',
                    type: "input",
                },
                {
                    label: "被考核人",
                    prop: "userName",
                    type: "input",
                    search: true,
                },
                {
                    label: "部门",
                    prop: "deptName",
                    type: "select",
                    dicUrl: '/api/blade-system/dept/lazy-list?parentId=1737282385453543425',
                    search: true,
                    props: {
                        label: 'deptName',
                        value: 'fullName'
                    },
                    overHidden: true
                },
                {
                    label: "职务",
                    prop: "postName",
                    type: "input",
                },
                {
                    label: "考核分",
                    prop: "scoreVal",
                    type: "input",
                }
            ],
            sectionColumn: [
                {
                    label: "被考核部门",
                    prop: "deptName",
                    type: "select",
                    dicUrl: '/api/blade-system/dept/lazy-list?parentId=1737282385453543425',
                    search: true,
                    props: {
                        label: 'deptName',
                        value: 'fullName'
                    },
                    overHidden: true
                },
                {
                    label: "考核分",
                    prop: "scoreVal",
                    type: "input",
                }
            ],
            detailParams: {}
        }
    },
    watch: {
        'params.visible': {
            handler() {
                const { type } = this.params.data
                !type ? (this.option.column = this.defaultColumn) : (this.option.column = this.sectionColumn)
            },
            deep: true
        }
    },
    methods: {
        searchReset() {
            this.query = {};
src/views/assessment/components/assessorDialog.vue
@@ -51,79 +51,146 @@
                viewBtn: false,
                menuWidth: 150,
                dialogClickModal: false,
                column: [
                    {
                        label: "考核人",
                        prop: "scoreUserName",
                        type: "input",
                        search: true,
                        minWidth: 100
                    },
                    {
                        label: "部门",
                        prop: "scoreDeptName",
                        type: "select",
                        // dicUrl: '/api/blade-system/dept/lazy-list?parentId=1737282385453543425',
                        // search: true,
                        // props: {
                        //     label: 'deptName',
                        //     value: 'fullName'
                        // },
                        overHidden: true,
                        minWidth: 120
                    },
                    {
                        label: "职务",
                        prop: "scorePostName",
                        type: "input",
                        overHidden: true,
                        minWidth: 120
                    },
                    {
                        label: "被考核人",
                        prop: "userName",
                        search: true,
                        type: "input",
                        minWidth: 100
                    },
                    {
                        label: "被考核人部门",
                        prop: "deptName",
                        dicUrl: '/api/blade-system/dept/lazy-list?parentId=1737282385453543425',
                        search: true,
                        props: {
                            label: 'deptName',
                            value: 'fullName'
                        },
                        type: "select",
                        searchLabelWidth: 120,
                        overHidden: true,
                        minWidth: 120
                    },
                    {
                        label: "被考核人职位",
                        prop: "postName",
                        type: "input",
                        overHidden: true,
                        minWidth: 120
                    },
                    {
                        label: "考核分",
                        prop: "scoreVal",
                        type: "input",
                        minWidth: 70
                    },
                    {
                        label: "权值",
                        prop: "weight",
                        type: "input",
                        minWidth: 70
                    }
                ]
                column: []
            },
            defaultColumn: [
                {
                    label: "考核人",
                    prop: "scoreUserName",
                    type: "input",
                    search: true,
                    minWidth: 100
                },
                {
                    label: "部门",
                    prop: "scoreDeptName",
                    type: "select",
                    // dicUrl: '/api/blade-system/dept/lazy-list?parentId=1737282385453543425',
                    // search: true,
                    // props: {
                    //     label: 'deptName',
                    //     value: 'fullName'
                    // },
                    overHidden: true,
                    minWidth: 120
                },
                {
                    label: "职务",
                    prop: "scorePostName",
                    type: "input",
                    overHidden: true,
                    minWidth: 120
                },
                {
                    label: "被考核人",
                    prop: "userName",
                    search: true,
                    type: "input",
                    minWidth: 100
                },
                {
                    label: "被考核人部门",
                    prop: "deptName",
                    dicUrl: '/api/blade-system/dept/lazy-list?parentId=1737282385453543425',
                    search: true,
                    props: {
                        label: 'deptName',
                        value: 'fullName'
                    },
                    type: "select",
                    searchLabelWidth: 120,
                    overHidden: true,
                    minWidth: 120
                },
                {
                    label: "被考核人职位",
                    prop: "postName",
                    type: "input",
                    overHidden: true,
                    minWidth: 120
                },
                {
                    label: "考核分",
                    prop: "scoreVal",
                    type: "input",
                    minWidth: 70
                },
                {
                    label: "权值",
                    prop: "weight",
                    type: "input",
                    minWidth: 70
                }
            ],
            sectionColumn: [
                {
                    label: "考核人",
                    prop: "scoreUserName",
                    type: "input",
                    search: true,
                    minWidth: 100
                },
                {
                    label: "部门",
                    prop: "scoreDeptName",
                    type: "select",
                    // dicUrl: '/api/blade-system/dept/lazy-list?parentId=1737282385453543425',
                    // search: true,
                    // props: {
                    //     label: 'deptName',
                    //     value: 'fullName'
                    // },
                    overHidden: true,
                    minWidth: 120
                },
                {
                    label: "职务",
                    prop: "scorePostName",
                    type: "input",
                    overHidden: true,
                    minWidth: 120
                },
                {
                    label: "被考核部门",
                    prop: "deptName",
                    dicUrl: '/api/blade-system/dept/lazy-list?parentId=1737282385453543425',
                    search: true,
                    props: {
                        label: 'deptName',
                        value: 'fullName'
                    },
                    type: "select",
                    searchLabelWidth: 120,
                    overHidden: true,
                    minWidth: 120
                },
                {
                    label: "考核分",
                    prop: "scoreVal",
                    type: "input",
                    minWidth: 70
                },
                {
                    label: "权值",
                    prop: "weight",
                    type: "input",
                    minWidth: 70
                }
            ],
            detailParams: {}
        }
    },
    watch: {
        'params.visible': {
            handler() {
                const { type } = this.params.data
                !type ? (this.option.column = this.defaultColumn) : (this.option.column = this.sectionColumn)
                console.log(type);
            },
            deep: true
        }
    },
    methods: {
        searchReset() {
            this.query = {};