|
@@ -813,6 +813,7 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
setTree(data){
|
|
setTree(data){
|
|
|
|
+ this.tree.data = []
|
|
this.tree.info.xdname = data.xdname
|
|
this.tree.info.xdname = data.xdname
|
|
this.tree.info.type = data.type
|
|
this.tree.info.type = data.type
|
|
this.tree.info.createtime = data.createtime
|
|
this.tree.info.createtime = data.createtime
|
|
@@ -1738,13 +1739,14 @@ this.$data._viewer3D.entities.values.forEach(entity => {
|
|
modelUrl = [radarModel2,radarModel3]
|
|
modelUrl = [radarModel2,radarModel3]
|
|
let fire_number = 0
|
|
let fire_number = 0
|
|
for(let i = 0;i<this.jsonData.blueunit.length;i++){
|
|
for(let i = 0;i<this.jsonData.blueunit.length;i++){
|
|
- if(name === this.jsonData.blueunit[i].name){
|
|
|
|
- fire_number = this.jsonData.blueunit[i].fire_number
|
|
|
|
|
|
+ if(name === this.jsonData.blueunit[i].components_json.name){
|
|
|
|
+ console.log("666")
|
|
|
|
+ fire_number = this.jsonData.blueunit[i].components_json[this.jsonData.blueunit[i].components_json.name].fire_number
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
this.thaadList[name] = {
|
|
this.thaadList[name] = {
|
|
- range: 300000.0,
|
|
|
|
|
|
+ range: 1500000.0,
|
|
health: 100.0,
|
|
health: 100.0,
|
|
id: this.id,
|
|
id: this.id,
|
|
fire_number: fire_number,
|
|
fire_number: fire_number,
|
|
@@ -1773,7 +1775,7 @@ this.$data._viewer3D.entities.values.forEach(entity => {
|
|
//加载模型
|
|
//加载模型
|
|
if (type == 'blue') {
|
|
if (type == 'blue') {
|
|
console.log(' radar!!!');
|
|
console.log(' radar!!!');
|
|
- const range = 300000;
|
|
|
|
|
|
+ const range = 1500000;
|
|
let entity2 = this.$data._viewer2D.entities.add({
|
|
let entity2 = this.$data._viewer2D.entities.add({
|
|
id: this.id,
|
|
id: this.id,
|
|
position: position,
|
|
position: position,
|
|
@@ -2381,7 +2383,12 @@ this.$data._viewer3D.entities.values.forEach(entity => {
|
|
order: this.order++,
|
|
order: this.order++,
|
|
time: time,
|
|
time: time,
|
|
context: '导弹' + key + '被雷达' + item + '拦截!!!'
|
|
context: '导弹' + key + '被雷达' + item + '拦截!!!'
|
|
- })
|
|
|
|
|
|
+ })
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: "战况",
|
|
|
|
+ message: '导弹' + key + '被雷达' + item + '拦截!!!',
|
|
|
|
+ type: 'info'
|
|
|
|
+ });
|
|
this.missileFailed++
|
|
this.missileFailed++
|
|
this.thaadList[item].fire_number = 0
|
|
this.thaadList[item].fire_number = 0
|
|
viewer.entities.remove(missile)
|
|
viewer.entities.remove(missile)
|