|
|
|
@ -100,7 +100,7 @@
|
|
|
|
|
>修改</el-button
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<el-button type="text">装置复位</el-button>
|
|
|
|
|
<el-button type="text" @click.native.stop="handleDeviceReset(scope.row)">装置复位</el-button>
|
|
|
|
|
<el-button type="text">远程升级</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
@ -131,7 +131,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { getTerminalJoggle, deleteTerminalJoggle } from "@/utils/api/index";
|
|
|
|
|
import { getTerminalJoggle, deleteTerminalJoggle, resetTerminalApi } from "@/utils/api/index";
|
|
|
|
|
import moment from "moment";
|
|
|
|
|
import addPhotoDialog from "./components/addPhotoDialog.vue";
|
|
|
|
|
export default {
|
|
|
|
@ -191,16 +191,24 @@ export default {
|
|
|
|
|
handleAddPhoto() {
|
|
|
|
|
this.photoDialogTitle = "新增";
|
|
|
|
|
this.$refs.addPhotoDialogref.display();
|
|
|
|
|
//this.$refs.addlineDialogref.getdataform(null);
|
|
|
|
|
this.$refs.addPhotoDialogref.getdataform(null);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//handleResive 修改线路数据
|
|
|
|
|
handleRevisePhoto(data) {
|
|
|
|
|
this.photoDialogTitle = "修改";
|
|
|
|
|
this.$refs.addPhotoDialogref.display();
|
|
|
|
|
console.log(data);
|
|
|
|
|
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) => {});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// //新建弹窗handleAddPhoto
|
|
|
|
|
// handleAddPhoto() {
|
|
|
|
|