|
@@ -18,9 +18,13 @@
|
|
@click="deleteZone(item.RoomID)"></i>
|
|
@click="deleteZone(item.RoomID)"></i>
|
|
</div>
|
|
</div>
|
|
<div class="zone-item" style="border:none;border-left:-4px;width:auto;">
|
|
<div class="zone-item" style="border:none;border-left:-4px;width:auto;">
|
|
- <el-cascader :props="zoneCascader" :show-all-levels="false" v-model="zoneCa" @change="changeCascader" filterable style="float:left;">
|
|
|
|
|
|
+ <el-cascader v-show="plusZone" :props="zoneCascader" :show-all-levels="false" v-model="zoneCa" @change="changeCascader" filterable
|
|
|
|
+ style="float:left;">
|
|
</el-cascader>
|
|
</el-cascader>
|
|
- <el-button type="primary" icon="el-icon-plus" circle style="float:right;margin:2px 10px;" size="mini" @click="addZone"></el-button>
|
|
|
|
|
|
+ <el-button v-show="plusZone" type="success" icon="el-icon-check" circle style="float:right;margin:2px 10px;" size="mini" @click="addZone">
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button v-show="!plusZone" type="primary" icon="el-icon-plus" circle style="float:left;margin:2px 0;" size="mini"
|
|
|
|
+ @click="plusZone=true"></el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="item">
|
|
<div class="item">
|
|
@@ -51,7 +55,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
newZoneObj: {},//当前新建业务空间
|
|
newZoneObj: {},//当前新建业务空间
|
|
- zoneCa: []
|
|
|
|
|
|
+ zoneCa: [],
|
|
|
|
+ plusZone: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -189,6 +194,7 @@ export default {
|
|
addZone() {
|
|
addZone() {
|
|
if (this.newZoneObj.RoomID && this.zoneList.findIndex((item) => (item.RoomID == this.newZoneObj.RoomID)) == -1) {
|
|
if (this.newZoneObj.RoomID && this.zoneList.findIndex((item) => (item.RoomID == this.newZoneObj.RoomID)) == -1) {
|
|
this.zoneList.push(this.newZoneObj)
|
|
this.zoneList.push(this.newZoneObj)
|
|
|
|
+ this.plusZone = false;
|
|
}
|
|
}
|
|
else if (!this.newZoneObj.RoomID) {
|
|
else if (!this.newZoneObj.RoomID) {
|
|
this.$message("请选择业务空间后添加")
|
|
this.$message("请选择业务空间后添加")
|
|
@@ -197,7 +203,7 @@ export default {
|
|
this.$message("已有业务空间,请重新选择");
|
|
this.$message("已有业务空间,请重新选择");
|
|
}
|
|
}
|
|
this.zoneCa = [];
|
|
this.zoneCa = [];
|
|
- this.newZoneObj = {}
|
|
|
|
|
|
+ this.newZoneObj = {};
|
|
},
|
|
},
|
|
//选择业务空间
|
|
//选择业务空间
|
|
changeCascader(val) {
|
|
changeCascader(val) {
|