|
@@ -59,6 +59,11 @@
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>雷达目标列表</span>
|
|
|
</div>
|
|
|
+ <el-table :data="objecttable" :row-style="{ height: '20px' }" :cell-style="{ padding: '0px' }"
|
|
|
+ style="font-size: 10px;width: 100%;" border>
|
|
|
+ <el-table-column prop="platformID" label="目标ID"></el-table-column>
|
|
|
+ <el-table-column prop="platformName" label="目标名称"></el-table-column>
|
|
|
+ </el-table>
|
|
|
</el-card>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -74,7 +79,8 @@ export default {
|
|
|
'platforms',
|
|
|
'thaadInstances',
|
|
|
'thaadParams',
|
|
|
- 'platformID'
|
|
|
+ 'platformID',
|
|
|
+ 'platforms'
|
|
|
]),
|
|
|
},
|
|
|
watch: {
|
|
@@ -115,6 +121,7 @@ export default {
|
|
|
instanceID: null,
|
|
|
propertyinittable: null,
|
|
|
propertycontroltable: null,
|
|
|
+ objecttable: null,
|
|
|
options1: [{
|
|
|
value: 101,
|
|
|
label: '101'
|
|
@@ -233,13 +240,21 @@ export default {
|
|
|
},
|
|
|
instanceChange(val) {
|
|
|
this.instanceID = val.instanceID;
|
|
|
- this.$wst.send({
|
|
|
- url: 'getThaadParams',
|
|
|
- data: {
|
|
|
- InstanceID: val.instanceID,
|
|
|
- PlatformID: this.platformID
|
|
|
- }
|
|
|
- })
|
|
|
+ if (val.instanceState == "开机") {
|
|
|
+ this.objecttable = this.platforms;
|
|
|
+ this.$wst.send({
|
|
|
+ url: 'getThaadParams',
|
|
|
+ data: {
|
|
|
+ InstanceID: val.instanceID,
|
|
|
+ PlatformID: this.platformID
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.objecttable = null;
|
|
|
+ this.propertycontroltable= null;
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
workStyleChange(val) {
|
|
|
console.log(val);
|