|
|
|
@ -37,7 +37,7 @@
|
|
|
|
|
<el-button type="primary" @click="tuopanReset">托盘复位</el-button>
|
|
|
|
|
<el-button type="primary" @click="tuopanOut">托盘推出</el-button>
|
|
|
|
|
<el-button type="primary" @click="removetuopan">删除托盘</el-button>
|
|
|
|
|
<el-select v-model="tuopanFloor" placeholder="去几楼" @change="toFloor">
|
|
|
|
|
<el-select v-model="tuopanFloor" placeholder="去几楼">
|
|
|
|
|
<el-option
|
|
|
|
|
label="1楼"
|
|
|
|
|
:value="1"
|
|
|
|
@ -292,9 +292,14 @@ export default {
|
|
|
|
|
tuopanModel = null
|
|
|
|
|
},
|
|
|
|
|
async addtuopan() {
|
|
|
|
|
scene.remove(tuopanModel)
|
|
|
|
|
tuopanModel = null
|
|
|
|
|
tuopanModel = await addtuopan({ scene })
|
|
|
|
|
scene.add(tuopanModel)
|
|
|
|
|
tuopanModel.position.x= storeyWidth[this.tuopanFloor]
|
|
|
|
|
tuopanLocation.floor = 1
|
|
|
|
|
tuopanModel.position.y= storeyHeight[this.tuopanFloor]
|
|
|
|
|
tuopanLocation.floor = this.tuopanFloor
|
|
|
|
|
tuopanLocation.y = storeyHeight[this.tuopanFloor]
|
|
|
|
|
tuopanLocation.x = storeyWidth[this.tuopanFloor]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|