master
fanluyan 2 years ago
parent f1a630c2a4
commit 6cd2b5826e

@ -445,3 +445,11 @@ export function selectPhotoTimeGetJoggle(data) {
data, data,
}); });
} }
//拍照时间表查询
export function selectPhotoTimeJoggle(data) {
return request({
url: "/api/selectPhotoTime",
method: "post",
data,
});
}

@ -15,7 +15,11 @@
:model="formInfo" :model="formInfo"
> >
<el-form-item label="线路" prop="lineVal"> <el-form-item label="线路" prop="lineVal">
<el-select v-model="formInfo.lineVal" placeholder="请选择"> <el-select
v-model="formInfo.lineVal"
placeholder="请选择"
@change="getTower"
>
<el-option <el-option
v-for="item in lineOptions" v-for="item in lineOptions"
:key="item.id" :key="item.id"
@ -135,11 +139,11 @@ export default {
}); });
} }
this.formInfo = val; this.formInfo = val;
let channelnr = [] let channelnr = [];
val.list.forEach(item => { val.list.forEach((item) => {
channelnr.push(item.id) channelnr.push(item.id);
}); });
this.$set(this.formInfo,'channelVal',channelnr) this.$set(this.formInfo, "channelVal", channelnr);
}, },
// //
submitForm() { submitForm() {
@ -173,7 +177,7 @@ export default {
sim: this.formInfo.simCard, sim: this.formInfo.simCard,
displayName: this.formInfo.cmdid, displayName: this.formInfo.cmdid,
towerid: this.formInfo.towerVal, towerid: this.formInfo.towerVal,
id: this.formInfo.id id: this.formInfo.id,
}; };
updateTerminalJoggle(this.formInfo) updateTerminalJoggle(this.formInfo)
.then((res) => { .then((res) => {
@ -200,7 +204,8 @@ export default {
this.formInfo.lineVal = ""; this.formInfo.lineVal = "";
} else { } else {
this.lineOptions = res.data.list; this.lineOptions = res.data.list;
this.formInfo.lineVal = res.data.list[0].id; // this.formInfo.lineVal = res.data.list[0].id;
this.$set(this.formInfo, "lineVal", res.data.list[0].id);
} }
// this.dyOptions = res.data.list; // this.dyOptions = res.data.list;
// this.formdata.dyid = res.data.list == [] ? "" : res.data.list[0].id; // this.formdata.dyid = res.data.list == [] ? "" : res.data.list[0].id;
@ -216,7 +221,8 @@ export default {
this.formInfo.towerVal = ""; this.formInfo.towerVal = "";
} else { } else {
this.toweridOptions = res.data.list; this.toweridOptions = res.data.list;
this.formInfo.towerVal = res.data.list[0].id; // this.formInfo.towerVal = res.data.list[0].id;
this.$set(this.formInfo, "towerVal", res.data.list[0].id);
} }
}) })
.catch((err) => {}); .catch((err) => {});
@ -227,8 +233,7 @@ export default {
.then((res) => { .then((res) => {
this.channelOptions = res.data.list; this.channelOptions = res.data.list;
}) })
.catch((err) => { .catch((err) => {});
});
}, },
display() { display() {
this.isShow = true; this.isShow = true;
@ -238,8 +243,8 @@ export default {
}, },
handleclose() { handleclose() {
this.$parent.terminalList(); this.$parent.terminalList();
} },
} },
}; };
</script> </script>
<style lang="less"> <style lang="less">

@ -180,6 +180,7 @@ import {
setScheduleRulel, setScheduleRulel,
getScheduleRulelAccessList, getScheduleRulelAccessList,
selectPhotoTimeGetJoggle, selectPhotoTimeGetJoggle,
selectPhotoTimeJoggle,
} from "@/utils/api/index"; } from "@/utils/api/index";
export default { export default {
props: { props: {
@ -216,6 +217,7 @@ export default {
zzchannel: [], // zzchannel: [], //
checkList: "", // checkList: "", //
newcmdzzid: "", newcmdzzid: "",
newrequestId: "",
}; };
}, },
mounted() {}, mounted() {},
@ -263,6 +265,8 @@ export default {
.then((res) => { .then((res) => {
this.$message.success("查询成功"); this.$message.success("查询成功");
console.log(this.shedulenr); console.log(this.shedulenr);
this.newrequestId = res.data.requestId;
this.searchRealtime();
// this.shedulenr = res.data.list.join("; ") // this.shedulenr = res.data.list.join("; ")
// this.shedulenr = res.data.list; // this.shedulenr = res.data.list;
// this.loading = false; // this.loading = false;
@ -271,6 +275,23 @@ export default {
this.$message.error("查询失败"); this.$message.error("查询失败");
}); });
}, },
searchRealtime() {
selectPhotoTimeJoggle({
channel: this.selaccess,
termId: this.selfacilityId,
cmdId: this.newcmdzzid,
requestId: this.newrequestId,
}).then((res) => {
console.log(res);
if (res.data.isNew) {
console.log(res.data.list);
} else {
//timer = setInterval(this.searchRealtime, 3000);
// this.searchRealtime();
}
});
},
//线 //线
deviceList() { deviceList() {
getScheduleRulelListJoggle({ getScheduleRulelListJoggle({

Loading…
Cancel
Save