|
@@ -175,7 +175,7 @@ export default {
|
|
|
loading: false,
|
|
|
type: 'add',
|
|
|
tableData: [],
|
|
|
- zoneList: [],
|
|
|
+ zoneList: [],
|
|
|
tenant: this.initTenant(),
|
|
|
screenWidth: 0,
|
|
|
width: this.initWidth(),
|
|
@@ -254,6 +254,10 @@ export default {
|
|
|
res = res.data;
|
|
|
if (res.isSuccess) {
|
|
|
this.zoneList = res.data;
|
|
|
+ if(this.zoneList.length == 1){
|
|
|
+ //默认选中第一个
|
|
|
+ this.tenant.zoneId = this.zoneList[0].id
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|