| | |
| | | this.title = title |
| | | this.visible = true |
| | | this.getProject() |
| | | this.buildList = [] |
| | | this.floorList = [] |
| | | // 新建组织 |
| | | if (target == null) { |
| | | this.$nextTick(() => { |
| | |
| | | this.getDetail(target.id) |
| | | }) |
| | | }, |
| | | confirm () { |
| | | if(!this.form.feeArea){ |
| | | confirm() { |
| | | if (!this.form.feeArea) { |
| | | this.form.feeArea = this.form.rentArea |
| | | } |
| | | if (this.form.id == null || this.form.id === '') { |
| | |
| | | getProject() { |
| | | getProjectList({}).then(res => { |
| | | this.projectList = res || [] |
| | | if (this.projectList.length > 0) { |
| | | this.$set(this.form, 'projectId', this.projectList[0].id) |
| | | this.changeProject(this.projectList[0].id) |
| | | } |
| | | }) |
| | | |
| | | }, |
| | |
| | | this.form.buildingId = '' |
| | | getBuildList({ projectId: e }).then(res => { |
| | | this.buildList = res || [] |
| | | // if(this.buildList.length > 0){ |
| | | // this.form.buildingId = this.buildList[0].id |
| | | // } |
| | | }) |
| | | }, |
| | | changeBuild(e) { |