优化通道设置

jc
fanluyan 11 months ago
parent 103c57accd
commit 807f655f27

@ -449,7 +449,7 @@ export default {
const sTime = Math.floor(this.formdata.starttime / 1000); const sTime = Math.floor(this.formdata.starttime / 1000);
const eTime = Math.floor(this.formdata.endtime / 1000); const eTime = Math.floor(this.formdata.endtime / 1000);
weatherListJoggle({ weatherListJoggle({
lineId: row.lineId, // lineId: row.lineId,
termId: row.id, termId: row.id,
towerId: row.towerId, towerId: row.towerId,
start: sTime, start: sTime,
@ -473,7 +473,7 @@ export default {
const sTime = Math.floor(this.formdata.starttime / 1000); const sTime = Math.floor(this.formdata.starttime / 1000);
const eTime = Math.floor(this.formdata.endtime / 1000); const eTime = Math.floor(this.formdata.endtime / 1000);
weatherListJoggle({ weatherListJoggle({
lineId: row.lineId, // lineId: row.lineId,
termId: row.id, termId: row.id,
towerId: row.towerId, towerId: row.towerId,
start: sTime, start: sTime,

@ -27,20 +27,6 @@
</div> </div>
<div class="paramsDate"> <div class="paramsDate">
<h3>通道监拍点</h3> <h3>通道监拍点</h3>
<!-- <el-radio-group v-model="selectChannelValue" @input="changeChannelId">
<el-radio-button
v-for="item in channelListOption"
:key="item.channelid"
:value="item.channelid"
:label="item.channelid"
>
{{
item.alias !== null && item.alias !== ""
? item.alias
: item.channelname
}}</el-radio-button
>
</el-radio-group> -->
<el-select <el-select
v-model="selectChannelValue" v-model="selectChannelValue"
placeholder="请选择通道" placeholder="请选择通道"
@ -68,7 +54,10 @@
<div class="paramsDate setTimebtn"> <div class="paramsDate setTimebtn">
<h3>操作项</h3> <h3>操作项</h3>
<div class="buttonGroup"> <div class="buttonGroup">
<takePicButton v-if="showButton('pzShowBtn')" ref="takepicRef"></takePicButton> <takePicButton
v-if="showButton('pzShowBtn')"
ref="takepicRef"
></takePicButton>
<takeVideoButton v-if="showButton('spShowBtn')"></takeVideoButton> <takeVideoButton v-if="showButton('spShowBtn')"></takeVideoButton>
<deviceInfoButton></deviceInfoButton> <deviceInfoButton></deviceInfoButton>
<scheduleButton v-if="showButton('pztimeShowBtn')"></scheduleButton> <scheduleButton v-if="showButton('pztimeShowBtn')"></scheduleButton>
@ -184,7 +173,8 @@
<script> <script>
import EventBus from "@/utils/event-bus"; import EventBus from "@/utils/event-bus";
import takePicButton from "./takePicButton.vue"; import takePicButton from "./takePicButton.vue";
import setChannelButton from "./setChannelButton.vue"; // import setChannelButton from "./setChannelButton.vue";
import setChannelButton from "../components/setChannel/setChannelButton";
import takeTimePicButton from "./takeTimePicButton.vue"; import takeTimePicButton from "./takeTimePicButton.vue";
import takeVideoButton from "./takeVideoButton.vue"; import takeVideoButton from "./takeVideoButton.vue";
import deviceInfoButton from "./deviceInfoButton.vue"; import deviceInfoButton from "./deviceInfoButton.vue";
@ -293,7 +283,7 @@ export default {
}, },
methods: { methods: {
takepicFun() { takepicFun() {
console.log("点击了我自己,准备取消轮巡") console.log("点击了我自己,准备取消轮巡");
this.$refs.takepicRef.clearFn(); this.$refs.takepicRef.clearFn();
}, },
// //
@ -401,8 +391,14 @@ export default {
this.channelListOption = this.channelListOption.concat(res.data.list); this.channelListOption = this.channelListOption.concat(res.data.list);
console.log(this.channelListOption); console.log(this.channelListOption);
this.channelfocalOpyion = res.data.list; // this.channelfocalOpyion = res.data.list; //
console.log("我是获取通道接口之后的通道",this.channelListOption[0].channelid) console.log(
this.selectChannelValue = Number(localStorage.getItem("channelId"))==0?-1:Number(localStorage.getItem("channelId")); //; "我是获取通道接口之后的通道",
this.channelListOption[0].channelid
);
this.selectChannelValue =
Number(localStorage.getItem("channelId")) == 0
? -1
: Number(localStorage.getItem("channelId")); //;
this.$store.commit("channelId", this.selectChannelValue); //vuex this.$store.commit("channelId", this.selectChannelValue); //vuex
this.$store.commit("channelIdList", res.data.list); //vuex this.$store.commit("channelIdList", res.data.list); //vuex
this.$parent.getPhotoList( this.$parent.getPhotoList(

@ -0,0 +1,34 @@
<template>
<div class="buttonBox">
<el-button type="primary" @click="handleSetChannel"> </el-button>
<setChannelDialog ref="setChannelDialog_ref"></setChannelDialog>
</div>
</template>
<script>
import {} from "@/utils/api/index";
import setChannelDialog from "./setChannelDialog.vue";
export default {
components: { setChannelDialog },
data() {
return {};
},
watch: {},
mounted() {},
computed: {
termId() {
return this.$store.state.termId;
},
channelIdList() {
return this.$store.state.channelIdList;
},
},
methods: {
handleSetChannel() {
this.$refs.setChannelDialog_ref.display();
},
},
destroyed() {},
beforeRouteLeave(to, from, next) {},
};
</script>
Loading…
Cancel
Save