|
@@ -319,6 +319,30 @@
|
|
|
<el-radio v-for="item in addrlist" :key="item.name" :label="item.name"></el-radio>
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="shipDiv" v-show="deviceTableShow">
|
|
|
+ <div class="shipTitle">
|
|
|
+ <span style="float:left">{{ pointDevice.name }}</span>
|
|
|
+ <i class="el-icon-close" style="font-size:9rem;margin-top:2rem;float:right" @click="deviceTableShow=false"></i>
|
|
|
+ </div>
|
|
|
+ <div style="padding—left:10rem" class="shipContent">
|
|
|
+ <el-table :header-cell-style="{ background: '#e4eafc'}" ref="singleTable" :data="pointDevice.list" height="200px" highlight-current-row style="width: 100%;" class="tableSc">
|
|
|
+ <el-table-column type="index" label="序号" width="50">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column property="monitorName" label="设备位置" width="100">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column property="name" label="设备名称" width="100">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column property="deviceType" label="设备类型" width="100">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column property="status" label="设备状态">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column property="orgName" label="管辖机构">
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -342,7 +366,7 @@ import { Feature } from "ol";
|
|
|
import { LineString, Point } from "ol/geom";
|
|
|
import { Icon, Stroke, Style } from "ol/style";
|
|
|
import { Vector as LayerVec } from "ol/layer";
|
|
|
-import { queryShipByDeviceId, queryDatabymmsi } from "@/api/data/deviceData";
|
|
|
+import { queryShipByDeviceId, queryDatabymmsi,getdeviceList } from "@/api/data/deviceData";
|
|
|
|
|
|
let ispro = process.env.NODE_ENV === "production";
|
|
|
let that = null;
|
|
@@ -368,7 +392,13 @@ export default {
|
|
|
normalCount: 1,
|
|
|
activeName: 'first',
|
|
|
tabledatas: [],
|
|
|
-
|
|
|
+ deviceTableShow:false,
|
|
|
+ pointDevice:{
|
|
|
+ name:'',
|
|
|
+ list:[],
|
|
|
+ },
|
|
|
+ // deviceList:[],
|
|
|
+
|
|
|
d_activeName: 'd_first',
|
|
|
tableData: { minor: [], main: [] },
|
|
|
addrlist: [{ name: "南京四桥", location: [1, 1] }],
|
|
@@ -377,6 +407,7 @@ export default {
|
|
|
shipdata: {},
|
|
|
};
|
|
|
},
|
|
|
+ props:['deviceList'],
|
|
|
mounted() {
|
|
|
that = this;
|
|
|
if (ispro) {
|
|
@@ -450,16 +481,17 @@ export default {
|
|
|
|
|
|
},
|
|
|
clickcg: (value) => {
|
|
|
- //
|
|
|
+ console.log(that.deviceList);
|
|
|
+ that.pointDevice.list = that.deviceList[value];
|
|
|
+ console.log(that.pointDevice);
|
|
|
+ that.deviceTableShow = true;
|
|
|
+ that.pointDevice.name = value;
|
|
|
that.addrlist.forEach(element => {
|
|
|
if (element.name == value) {
|
|
|
-
|
|
|
var lo = that.transpoints(element.location, 0)[0];
|
|
|
console.log(lo)
|
|
|
mapv.getView().setCenter(lo);
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
|
|
|
},
|