| | |
| | | }); |
| | | }, |
| | | getAllUser(){ |
| | | getDriver(this.type).then((res)=>{ |
| | | getDriver({type:1}).then((res)=>{ |
| | | if (res.success){ |
| | | this.userList=res.result; |
| | | } |
| | |
| | | this.$Message.success("操作成功"); |
| | | this.getDataList(); |
| | | this.roleModalVisible = false; |
| | | this.areaForm={}; |
| | | } |
| | | }); |
| | | } else { |
| | | this.submitLoading = true; |
| | | this.$delete(this.areaForm,'children') |
| | | addArea(this.areaForm).then((res) => { |
| | | this.submitLoading = false; |
| | | if (res.success) { |
| | | this.$Message.success("操作成功"); |
| | | this.getDataList(); |
| | | this.roleModalVisible = false; |
| | | this.areaForm={}; |
| | | } |
| | | }); |
| | | } |
| | |
| | | let str = JSON.stringify(v); |
| | | let roleInfo = JSON.parse(str); |
| | | this.areaForm = roleInfo; |
| | | console.log(this.areaForm); |
| | | this.roleModalVisible = true; |
| | | }, |
| | | editEquipment(v) { |