master
fanluyan 2 years ago
parent f1a630c2a4
commit 6cd2b5826e

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

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

@ -180,6 +180,7 @@ import {
setScheduleRulel,
getScheduleRulelAccessList,
selectPhotoTimeGetJoggle,
selectPhotoTimeJoggle,
} from "@/utils/api/index";
export default {
props: {
@ -216,6 +217,7 @@ export default {
zzchannel: [], //
checkList: "", //
newcmdzzid: "",
newrequestId: "",
};
},
mounted() {},
@ -263,6 +265,8 @@ export default {
.then((res) => {
this.$message.success("查询成功");
console.log(this.shedulenr);
this.newrequestId = res.data.requestId;
this.searchRealtime();
// this.shedulenr = res.data.list.join("; ")
// this.shedulenr = res.data.list;
// this.loading = false;
@ -271,6 +275,23 @@ export default {
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() {
getScheduleRulelListJoggle({

Loading…
Cancel
Save