lct
Your Name
2022-07-11 981a6d7d77e6465d8afa4facfbdda84546249db3
src/views/systemManage/userManage/index.vue
@@ -365,7 +365,7 @@
                                <el-option
                                    v-for="item in departmentList"
                                    :key="item.id"
                                    :value="item.department"
                                    :value="item.id"
                                    :label="item.department"
                                >
                                </el-option>
@@ -1187,23 +1187,21 @@
                    formData.append('file', files[0])
                }
                formData.append('action', 'import')
                importUser(formData)
                    .then((response) => {
                        const res = response.data
                        if (res.code == 200) {
                            _this.importDialogFormVisible = false
                            _this.$message({
                                message: '导入成功',
                                type: 'success'
                            })
                            _this.getUserList()
                        } else {
                            parseError({ error: res.message, vm: _this })
                        }
                    })
                    .catch((error) => {
                        parseError({ error: error, vm: _this })
                    })
                importUser(formData).then((response) => {
                    const res = response.data
                    if (res.code == 200) {
                        _this.importDialogFormVisible = false
                        _this.$message({
                            message: '导入成功',
                            type: 'success'
                        })
                        _this.getUserList()
                    } else {
                        parseError({ error: res.message, vm: _this })
                    }
                }).catch((error) => {
                    parseError({ error: error, vm: _this })
                })
            },
            getProvince(){
                const _this = this