Commit e5d1a624 authored by 李苏's avatar 李苏 💬

bug

parent 6fdd160c
...@@ -659,6 +659,7 @@ ...@@ -659,6 +659,7 @@
item.revert() item.revert()
}) })
this.jzReMaterialQue.splice(0, this.jzReMaterialQue.length) this.jzReMaterialQue.splice(0, this.jzReMaterialQue.length)
this.$post('ksh/query', this.$post('ksh/query',
params params
).then(res => { ).then(res => {
...@@ -669,12 +670,13 @@ ...@@ -669,12 +670,13 @@
this.viewer.scene.traverse((model) => { this.viewer.scene.traverse((model) => {
if (model.isMesh) { if (model.isMesh) {
if (sbxxCodeList.includes(model.name)) { if (sbxxCodeList.includes(model.name)) {
console.log(model.name,'ces')
let jzReMaterialQueItem = { let jzReMaterialQueItem = {
model, model,
material: model.material.clone(), material: model.material.clone(),
revert: function() { revert: function() {
this.model.material = this.material model.material = this.material
} }
} }
this.jzReMaterialQue.push(jzReMaterialQueItem) this.jzReMaterialQue.push(jzReMaterialQueItem)
...@@ -974,7 +976,6 @@ ...@@ -974,7 +976,6 @@
model = intersects[0].object model = intersects[0].object
} }
this.selectedModel = model this.selectedModel = model
rconsole.log('选择设备', model.name)
/* 执行并情况材料队列 */ /* 执行并情况材料队列 */
this.reMaterialQue.forEach(item => { this.reMaterialQue.forEach(item => {
item.revert() item.revert()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment