| | |
| | | addCar, |
| | | getCarList, |
| | | getUser, |
| | | getDriver, |
| | | addArea, |
| | | deleteArea, |
| | | getAreaSection, |
| | |
| | | data2: [], |
| | | data3: [], |
| | | total: 0, |
| | | |
| | | type: { |
| | | type : 1 |
| | | }, |
| | | total2: 0, |
| | | permData: [], |
| | | editRolePermId: "", |
| | |
| | | }); |
| | | }, |
| | | getAllUser(){ |
| | | getUser().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) { |