| | |
| | | // } |
| | | // t.form.province = t.findNodeByCode(t.areaData,code.substr(0,2)).name |
| | | // t.form.town = '' |
| | | t.form.company = label[0] + '自然灾害综合预警监测中心' |
| | | t.form.company = label[0] + '自然灾害综合监测预警中心' |
| | | } |
| | | }, |
| | | |
| | |
| | | if(res.data.code == 100){ |
| | | this.$message.success('新增用户成功') |
| | | this.$emit('refresh') |
| | | this.visible = false |
| | | }else{ |
| | | this.$message.error(res.data.msg) |
| | | } |
| | |
| | | if(res.data.code == 100){ |
| | | this.$message.success('修改用户成功') |
| | | this.$emit('refresh') |
| | | this.visible = false |
| | | }else{ |
| | | this.$message.error(res.data.msg) |
| | | } |
| | | }) |
| | | } |
| | | this.visible = false |
| | | } else { |
| | | console.log('error submit!!'); |
| | | return false; |