历史图片

hn2.0
fanluyan 2 years ago
parent f52d25b45f
commit 2f32262879

@ -494,13 +494,15 @@ export default {
background: #169e8ca1; background: #169e8ca1;
color: #fff; color: #fff;
height: auto; height: auto;
font-size: 14px; font-size: 12px;
left: 0; left: 0;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
text-align: center; text-align: center;
.timeinfo { p {
margin-top: 4px; margin-top: 4px;
}
.timeinfo {
margin-bottom: 4px; margin-bottom: 4px;
} }
} }

@ -308,6 +308,9 @@ export default {
statusNum: 0, // statusNum: 0, //
statusTimer: null, // statusTimer: null, //
selectDyId: "", //线
selectLineId: "",
selectTowerId: "",
}; };
}, },
watch: { watch: {
@ -463,6 +466,9 @@ export default {
this.dateValue, this.dateValue,
this.channelList[0].termId this.channelList[0].termId
); // id termid ); // id termid
this.selectDyId = res.data.dyId;
this.selectLineId = res.data.lineId;
this.selectTowerId = res.data.towerId;
}) })
.catch((err) => { .catch((err) => {
console.log(err); // console.log(err); //
@ -867,11 +873,22 @@ export default {
console.log(err); // console.log(err); //
}); });
}, },
//
handlehistoryPic() { handlehistoryPic() {
console.log(this.CurrentData); //console.log(this.CurrentData);
console.log(this.selectDyId, this.selectLineId, this.selectTowerId);
console.log(this.zzCmdid, this.selectChannelValue);
this.$router.push({ this.$router.push({
path: "/realTimeSearch", path: "/realTimeSearch",
query: { lineName: this.CurrentData }, query: {
dyId: this.selectDyId,
lineId: this.selectLineId,
towerId: this.selectTowerId,
termId: this.zztermId,
cmdId: this.zzCmdid,
channelId: this.selectChannelValue,
},
}); });
// sessionStorage.setItem("keyPath", " realTimeSearch"); // sessionStorage.setItem("keyPath", " realTimeSearch");
}, },
@ -966,7 +983,7 @@ export default {
margin-bottom: 8px; margin-bottom: 8px;
height: 20px; height: 20px;
line-height: 20px; line-height: 20px;
font-size: 14px; font-size: 12px;
.el-statistic { .el-statistic {
display: flex; display: flex;
justify-content: center; justify-content: center;

@ -159,7 +159,7 @@ export default {
background: #169e8ca1; background: #169e8ca1;
color: #fff; color: #fff;
height: auto; height: auto;
font-size: 14px; font-size: 12px;
left: 0; left: 0;
bottom: 0; bottom: 0;
width: 100%; width: 100%;

@ -10,7 +10,9 @@
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id" :value="item.id"
></el-option> >
{{ item.name }}
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="线路名称"> <el-form-item label="线路名称">
@ -61,7 +63,11 @@
<el-option <el-option
v-for="item in tdOptions" v-for="item in tdOptions"
:key="item.id" :key="item.id"
:label="item.name" :label="
item.alias !== null && item.alias !== ''
? item.alias
: item.name
"
:value="item.id" :value="item.id"
></el-option> ></el-option>
</el-select> </el-select>
@ -210,7 +216,7 @@ export default {
xlOptions: [{ id: -1, name: "全部" }], //线 xlOptions: [{ id: -1, name: "全部" }], //线
gtOptions: [{ id: -1, name: "全部" }], // gtOptions: [{ id: -1, name: "全部" }], //
zzOptions: [{ id: -1, name: "全部" }], // zzOptions: [{ id: -1, name: "全部" }], //
tdOptions: [{ id: -1, name: "全部" }], // tdOptions: [{ id: -1, name: "全部", alias: null }], //
formdata: { formdata: {
dyid: -1, dyid: -1,
lineid: -1, lineid: -1,
@ -235,7 +241,7 @@ export default {
that.onSubmit(); // that.onSubmit(); //
} }
}; };
console.log(this.$route.query);
// this.formdata.search = this.$route.query.name; // this.formdata.search = this.$route.query.name;
// console.log(this.formdata.search); // console.log(this.formdata.search);
}, },
@ -250,7 +256,18 @@ export default {
new Date(new Date().toLocaleDateString()).getTime() new Date(new Date().toLocaleDateString()).getTime()
); );
this.$set(this.formdata, "endtime", new Date().getTime()); this.$set(this.formdata, "endtime", new Date().getTime());
this.getSearchdy();
if (JSON.stringify(this.$route.query) === "{}") {
this.getSearchdy();
} else {
console.log(this.$route.query);
this.getSearchdy();
this.formdata.dyid = this.$route.query.dyId;
this.formdata.lineid = this.$route.query.lineId;
this.formdata.towerid = this.$route.query.towerId;
this.formdata.channelid = this.$route.query.channelId;
this.formdata.termid = this.$route.query.termId;
}
}, },
methods: { methods: {
// //
@ -265,7 +282,10 @@ export default {
// this.formdata.dyid = res.data.list[0].id; // this.formdata.dyid = res.data.list[0].id;
// } // }
this.dyOptions = this.dyOptions.concat(res.data.list); this.dyOptions = this.dyOptions.concat(res.data.list);
this.formdata.dyid = this.dyOptions[0].id; console.log(this.dyOptions);
//this.formdata.dyid = this.dyOptions[0].id;
this.formdata.dyid = Number(this.$route.query.dyId);
// this.$set(this.formdata, 'dyid', this.dyOptions[0].id) // this.$set(this.formdata, 'dyid', this.dyOptions[0].id)
this.getSearchxl(); this.getSearchxl();
}) })
@ -277,7 +297,8 @@ export default {
.then((res) => { .then((res) => {
this.xlOptions = [{ id: -1, name: "全部" }]; this.xlOptions = [{ id: -1, name: "全部" }];
this.xlOptions = this.xlOptions.concat(res.data.list); this.xlOptions = this.xlOptions.concat(res.data.list);
this.formdata.lineid = this.xlOptions[0].id; // this.formdata.lineid = this.xlOptions[0].id;
this.formdata.lineid = Number(this.$route.query.lineId);
this.getSearchgt(); this.getSearchgt();
}) })
.catch((err) => {}); .catch((err) => {});
@ -288,7 +309,8 @@ export default {
.then((res) => { .then((res) => {
this.gtOptions = [{ id: -1, name: "全部" }]; this.gtOptions = [{ id: -1, name: "全部" }];
this.gtOptions = this.gtOptions.concat(res.data.list); this.gtOptions = this.gtOptions.concat(res.data.list);
this.formdata.towerid = this.gtOptions[0].id; // this.formdata.towerid = this.gtOptions[0].id;
this.formdata.towerid = Number(this.$route.query.towerId);
this.getSearchzz(); this.getSearchzz();
}) })
.catch((err) => {}); .catch((err) => {});
@ -299,7 +321,8 @@ export default {
.then((res) => { .then((res) => {
this.zzOptions = [{ id: -1, name: "全部" }]; this.zzOptions = [{ id: -1, name: "全部" }];
this.zzOptions = this.zzOptions.concat(res.data.list); this.zzOptions = this.zzOptions.concat(res.data.list);
this.formdata.termid = this.zzOptions[0].id; // this.formdata.termid = this.zzOptions[0].id;
this.formdata.termid = Number(this.$route.query.termId);
this.getSearchtd(); this.getSearchtd();
}) })
.catch((err) => {}); .catch((err) => {});
@ -308,13 +331,15 @@ export default {
getSearchtd() { getSearchtd() {
getSearchInfo({ type: 5, id: this.formdata.termid }) getSearchInfo({ type: 5, id: this.formdata.termid })
.then((res) => { .then((res) => {
this.tdOptions = [{ id: -1, name: "全部" }]; this.tdOptions = [{ id: -1, name: "全部", alias: null }];
this.tdOptions = this.tdOptions.concat(res.data.list); this.tdOptions = this.tdOptions.concat(res.data.list);
this.formdata.channelid = this.tdOptions[0].id; //this.formdata.channelid = this.tdOptions[0].id;
this.formdata.channelid = Number(this.$route.query.channelId);
// if (this.signtype == 0) { // if (this.signtype == 0) {
// this.getPicData(); // this.getPicData();
// } // }
// this.signtype = 1; // this.signtype = 1;
this.getPicData();
}) })
.catch((err) => {}); .catch((err) => {});
}, },

Loading…
Cancel
Save