|
|
|
@ -61,9 +61,6 @@
|
|
|
|
|
:terminalPhoto="terminalPhoto"
|
|
|
|
|
v-if="terminalPhoto.length > 0"
|
|
|
|
|
></carouselChart>
|
|
|
|
|
<!-- <div class="totalPic" v-if="totalPic !== 0">
|
|
|
|
|
图片总数:{{ totalPic }}张
|
|
|
|
|
</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="parameterArea">
|
|
|
|
|
<div class="zzbox">
|
|
|
|
@ -182,12 +179,31 @@
|
|
|
|
|
<el-dropdown-item command="close">关闭</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
<!-- 获取gps位置 -->
|
|
|
|
|
<el-button type="primary" @click.native.stop="handleShowGPS()"
|
|
|
|
|
>获取GPS位置</el-button
|
|
|
|
|
>
|
|
|
|
|
<!-- gps开关 -->
|
|
|
|
|
<el-dropdown
|
|
|
|
|
class="dropgps"
|
|
|
|
|
trigger="click"
|
|
|
|
|
@command="handleCommandGps"
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary">
|
|
|
|
|
GPS开关<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-dropdown-menu slot="dropdown" class="gpsdropStyle">
|
|
|
|
|
<el-dropdown-item command="open">开启GPS</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<setschedule ref="setschedule_ref"></setschedule>
|
|
|
|
|
<info-dialog ref="infodialog_ref"></info-dialog>
|
|
|
|
|
<gps-position ref="gpsdialog_ref"></gps-position>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -201,18 +217,21 @@ import {
|
|
|
|
|
getReturnedPhotoJoggle,
|
|
|
|
|
alarmMarkJoggle,
|
|
|
|
|
getTermStatus,
|
|
|
|
|
setTermGPSJoggle,
|
|
|
|
|
} from "@/utils/api/index";
|
|
|
|
|
import { mapState } from "vuex";
|
|
|
|
|
import carouselChart from "../components/carouselChart.vue";
|
|
|
|
|
import setschedule from "./components/setschedule.vue";
|
|
|
|
|
import deviceUpgrade from "./components/deviceUpgrade.vue";
|
|
|
|
|
import infoDialog from "./components/infoDialog.vue";
|
|
|
|
|
import gpsPosition from "./components/gpsPosition.vue";
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
carouselChart,
|
|
|
|
|
setschedule,
|
|
|
|
|
deviceUpgrade,
|
|
|
|
|
infoDialog,
|
|
|
|
|
gpsPosition,
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -493,6 +512,7 @@ export default {
|
|
|
|
|
this.$refs.setschedule_ref.getSingleAccess(this.channelId, this.cmdid);
|
|
|
|
|
this.$refs.setschedule_ref.deviceList();
|
|
|
|
|
},
|
|
|
|
|
//声光报警开启关闭
|
|
|
|
|
handleCommandWarn(command) {
|
|
|
|
|
switch (command) {
|
|
|
|
|
case "open": //开启
|
|
|
|
@ -731,6 +751,51 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//获取GPS位置
|
|
|
|
|
|
|
|
|
|
handleShowGPS() {
|
|
|
|
|
this.$refs.gpsdialog_ref.display();
|
|
|
|
|
this.$refs.gpsdialog_ref.getgpsData(this.cmdid, this.newTermId);
|
|
|
|
|
console.log(this.cmdid, this.newTermId);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//切换gps开启关闭
|
|
|
|
|
handleCommandGps(command) {
|
|
|
|
|
switch (command) {
|
|
|
|
|
case "open": //开启
|
|
|
|
|
this.changeGPS(1, this.cmdid);
|
|
|
|
|
break;
|
|
|
|
|
case "close": //关闭
|
|
|
|
|
this.changeGPS(0, this.cmdid);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
changeGPS(val, cmdid) {
|
|
|
|
|
console.log(val, cmdid);
|
|
|
|
|
setTermGPSJoggle({ gpsstatus: val, cmdId: cmdid })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (val == 0) {
|
|
|
|
|
this.$message({
|
|
|
|
|
duration: 1500,
|
|
|
|
|
message: "关闭GPS",
|
|
|
|
|
type: "success",
|
|
|
|
|
showClose: true,
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$message({
|
|
|
|
|
duration: 1500,
|
|
|
|
|
message: "成功开启GPS",
|
|
|
|
|
type: "success",
|
|
|
|
|
showClose: true,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err); //代码错误、请求失败捕获
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//历史图片
|
|
|
|
|
// handlehistoryPic() {
|
|
|
|
|
// this.$router.push({ path: "/realTimeSearch" });
|
|
|
|
|