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