master
fanluyan 2 years ago
parent a2e657f64c
commit 2fdd507d3c

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

Loading…
Cancel
Save