|
|
|
@ -57,32 +57,32 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="equipName" label="装置名称"> </el-table-column>
|
|
|
|
|
<el-table-column prop="model" label="装置型号"> </el-table-column>
|
|
|
|
|
<el-table-column label="经维度">
|
|
|
|
|
<!-- <el-table-column label="经维度">
|
|
|
|
|
<template slot-scope="scope" v-if="scope.row.longitude">
|
|
|
|
|
<span>({{ scope.row.longitude }},</span>
|
|
|
|
|
<span>{{ scope.row.latitude }})</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="orgId" label="原始ID"> </el-table-column>
|
|
|
|
|
<!-- <el-table-column prop="orgId" label="原始ID"> </el-table-column> -->
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="essentialInfoVersion"
|
|
|
|
|
label="装置基本信息版本号"
|
|
|
|
|
width="140px"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="出厂编号">
|
|
|
|
|
<!-- <el-table-column label="出厂编号">
|
|
|
|
|
<template slot-scope="scope">{{ scope.row.bsIdentifier }}</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="bsManufacturer" label="生产厂家">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
<!-- <el-table-column prop="bsManufacturer" label="生产厂家">
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
<!-- <el-table-column
|
|
|
|
|
prop="bsProductionDate"
|
|
|
|
|
label="生产日期"
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
:formatter="dateFormat"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="createTime"
|
|
|
|
@ -92,7 +92,7 @@
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="290">
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="520">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
@click.native.stop="handleRevisePhoto(scope.row)"
|
|
|
|
@ -100,9 +100,19 @@
|
|
|
|
|
>修改</el-button
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<el-button type="text" @click.native.stop="handleDeviceReset(scope.row)">装置复位</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
@click.native.stop="handleDeviceReset(scope.row)"
|
|
|
|
|
>装置复位</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="text">远程升级</el-button>
|
|
|
|
|
<el-button type="text" @click.native.stop="handleImageCapture(scope.row)">图像采集</el-button>
|
|
|
|
|
<el-button type="text">获取GPS位置</el-button>
|
|
|
|
|
<el-button type="text">GPS开关</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
@click.native.stop="handleImageCapture(scope.row)"
|
|
|
|
|
>图像采集装置</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
class="deleteText"
|
|
|
|
@ -133,14 +143,18 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { getTerminalJoggle, deleteTerminalJoggle, resetTerminalApi } from "@/utils/api/index";
|
|
|
|
|
import {
|
|
|
|
|
getTerminalJoggle,
|
|
|
|
|
deleteTerminalJoggle,
|
|
|
|
|
resetTerminalApi,
|
|
|
|
|
} from "@/utils/api/index";
|
|
|
|
|
import moment from "moment";
|
|
|
|
|
import addPhotoDialog from "./components/addPhotoDialog.vue";
|
|
|
|
|
import imageCapture from "./components/imageCapture.vue";
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
addPhotoDialog,
|
|
|
|
|
imageCapture
|
|
|
|
|
imageCapture,
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -203,20 +217,22 @@ export default {
|
|
|
|
|
this.$refs.addPhotoDialogref.getdataform(data);
|
|
|
|
|
},
|
|
|
|
|
//装置复位
|
|
|
|
|
handleDeviceReset(data){
|
|
|
|
|
resetTerminalApi({ cmId: data.cmdid }).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message({ message: "装置已复位", type: "success" });
|
|
|
|
|
}else{
|
|
|
|
|
this.$message({ message: res.msg, type: "error" });
|
|
|
|
|
}
|
|
|
|
|
}).catch((err) => {});
|
|
|
|
|
handleDeviceReset(data) {
|
|
|
|
|
resetTerminalApi({ cmId: data.cmdid })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message({ message: "装置已复位", type: "success" });
|
|
|
|
|
} else {
|
|
|
|
|
this.$message({ message: res.msg, type: "error" });
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
//图像采集参数
|
|
|
|
|
handleImageCapture(data){
|
|
|
|
|
this.$refs.imageCaptureref.display()
|
|
|
|
|
this.$refs.imageCaptureref.getSingleAccess(data)
|
|
|
|
|
this.$refs.imageCaptureref.getRatio()
|
|
|
|
|
handleImageCapture(data) {
|
|
|
|
|
this.$refs.imageCaptureref.display();
|
|
|
|
|
this.$refs.imageCaptureref.getSingleAccess(data);
|
|
|
|
|
this.$refs.imageCaptureref.getRatio();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// //新建弹窗handleAddPhoto
|
|
|
|
|