fix
zhoucong
2022-05-16 036f7be38aaa641f5f20d39eaea77a560ecdd93f
src/views/systemManage/userManage/index.vue
@@ -676,6 +676,7 @@
                    idcard:'',
                    email:'',
                    company:'',
                    companyid:'',
                    department:'',
                    job:'',
                    type:'',
@@ -764,6 +765,7 @@
            },
            companyChange(val){
                this.dataForm.company = val.company
                this.dataForm.companyid = val.id
                if (val.ismain === 1) {
                    this.isMain = true;
                }else{
@@ -796,8 +798,14 @@
                        _this.pageTotal = computePageCount(result.totalCount, result.pageSize)
                        _this.currentPage = result.pageIndex
                        _this.userData = result.result
                    } else {
                        parseError({ error: res.data.message, vm: _this })
                    }else if(res.code === '100'){
                            this.$store.dispatch('LogOut').then(() => {
                            location.reload()// In order to re-instantiate the vue-router object to avoid bugs
                            parseError({ error: res.message, vm: _this })
                        })
                    }
                     else {
                        parseError({ error: res.message, vm: _this })
                    }
                    _this.listLoading = false
                }).catch(error => {
@@ -866,7 +874,7 @@
                        })
                        _this.getUserList()
                    } else {
                        parseError({ error: res.data.message, vm: _this })
                        parseError({ error: res.message, vm: _this })
                    }
                }).catch(error => {
                    parseError({ error: error, vm: _this })
@@ -1022,6 +1030,7 @@
                this.resetDataForm()
                this.dataForm = row
                this.dataForm.password = null
                this.dataForm.companyid = row.companyInfo.id
                this.dialogStatus = 'update'
                this.dialogFormVisible = true
                let ismain = this.companyList.find(item=>item.company === row.company).ismain