| | |
| | | class="select1" |
| | | default-expand-all |
| | | v-model="value1" |
| | | placeholder="请选择内容" |
| | | placeholder="请选择辖区" |
| | | type="tree" |
| | | :dic="options1" |
| | | :props="props" |
| | |
| | | lazyTrees().then(res => { |
| | | if (res.data.code === 200) { |
| | | this.options1 = res.data.data; |
| | | this.value1 = this.options1[0] ? this.options1[0].id : ""; |
| | | // this.value1 = this.options1[0] ? this.options1[0].id : ""; |
| | | this.node = this.options1[0]; |
| | | this.getCompanys(); |
| | | } else { |
| | |
| | | getCompanys({ jurisdiction: this.value1 }).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.options2 = res.data.data; |
| | | this.value2 = this.options2[0] ? this.options2[0].departmentid : ""; |
| | | // this.value2 = this.options2[0] ? this.options2[0].departmentid : ""; |
| | | this.enterpriseName = this.options2[0] |
| | | ? this.options2[0].enterpriseName |
| | | : ""; |