Your Name
2022-06-14 e02d15e0547fbc9d485c39a8e10dcac0649c85ad
src/views/systemManage/userManage/index.vue
@@ -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