修改查询

master
fanluyan 2 years ago
parent d034007387
commit 95fe7684a9

@ -135,7 +135,7 @@ export default {
}, },
watch: { watch: {
activeIndex(newValue) { activeIndex(newValue) {
if (newValue != this.$route.path) { if (newValuer != this.$route.path) {
this.activeIndex = this.$route.path; this.activeIndex = this.$route.path;
} }
}, },

@ -39,12 +39,18 @@
></el-table-column> ></el-table-column>
<el-table-column label="状态" show-overflow-tooltip> <el-table-column label="状态" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <!-- <el-switch
v-model="scope.row.status" v-model="scope.row.status"
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
disabled disabled
></el-switch> ></el-switch> -->
<el-tag
:type="scope.row.status == 1 ? 'success' : 'info'"
effect="dark"
>
{{ scope.row.status == 1 ? "开启" : "关闭" }}</el-tag
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="200"> <el-table-column fixed="right" label="操作" width="200">

@ -19,7 +19,7 @@
v-loading="loading" v-loading="loading"
> >
<!-- <el-table-column type="selection" width="55"> </el-table-column> --> <!-- <el-table-column type="selection" width="55"> </el-table-column> -->
<el-table-column label="单位" show-overflow-tooltip> <el-table-column label="公司名称" show-overflow-tooltip>
<template slot-scope="scope">{{ <template slot-scope="scope">{{
scope.row.bsManufacturer scope.row.bsManufacturer
}}</template> }}</template>

@ -23,9 +23,10 @@
> >
<!-- <el-table-column type="index" width="55"> </el-table-column> <!-- <el-table-column type="index" width="55"> </el-table-column>
<el-table-column type="selection" width="55"> </el-table-column> --> <el-table-column type="selection" width="55"> </el-table-column> -->
<el-table-column <el-table-column
prop="id" prop="lineName"
label="杆塔编号" label="线路名称"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
@ -39,10 +40,11 @@
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="lineName" prop="id"
label="线路名称" label="杆塔编号"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column fixed="right" label="操作" width="200"> <el-table-column fixed="right" label="操作" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button

@ -43,7 +43,7 @@
</video> </video>
<p class="infoTop"> <p class="infoTop">
{{ item.channelId }}-{{ item.termId }}-{{ item.fileSize }} {{ item.linename }}-{{ item.displayname }}-{{ item.channnelname }}
</p> </p>
<p class="infoBottom"> <p class="infoBottom">
{{ $moment(item.photoTime).format("yy-MM-DD HH:mm:ss") }}  {{ $moment(item.photoTime).format("yy-MM-DD HH:mm:ss") }} 
@ -310,6 +310,7 @@ export default {
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
cursor: pointer;
} }
.infoTop { .infoTop {
position: absolute; position: absolute;

@ -102,27 +102,14 @@
<!-- <el-button type="primary" @click="handleShowErr" <!-- <el-button type="primary" @click="handleShowErr"
>声光报警</el-button >声光报警</el-button
> --> > -->
<el-button type="primary" @click="handlehistoryPic" <!-- <el-button type="primary" @click="handlehistoryPic"
>历史图片</el-button >历史图片</el-button
>
<!-- <el-button type="primary" @click="handlePanel"
>图片标记</el-button
> -->
<!-- -->
<!--
<el-button type="primary" @click="handleUpGrade"
>远程升级</el-button
> --> > -->
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<setschedule ref="setschedule_ref"></setschedule> <setschedule ref="setschedule_ref"></setschedule>
<!-- 装置升级 -->
<!-- <deviceUpgrade ref="deviceupgrade_ref"></deviceUpgrade> -->
<!-- 绘制图片 -->
<pictureTags ref="pictureTags_ref"></pictureTags>
</div> </div>
</div> </div>
</template> </template>
@ -333,10 +320,7 @@ export default {
type: "warning", type: "warning",
}); });
}, },
//
// handleUpGrade() {
// this.$refs.deviceupgrade_ref.display();
// },
//gps //gps
changeGPS(val) { changeGPS(val) {
console.log(val); console.log(val);
@ -408,20 +392,10 @@ export default {
}); });
}, },
// //
handlehistoryPic() { // handlehistoryPic() {
this.$router.push({ path: "/realTimeSearch" }); // this.$router.push({ path: "/realTimeSearch" });
// sessionStorage.setItem("keyPath", " realTimeSearch"); // // sessionStorage.setItem("keyPath", " realTimeSearch");
}, // },
//
handlePanel() {
//const nodes = this.$refs.tree.getNode(this.currentNodekey).data; //
//线
// let pannelParmas = {};
// pannelParmas.push({});
console.log(this.channelOption);
this.$refs.pictureTags_ref.display();
},
}, },
}; };
</script> </script>

@ -33,7 +33,7 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="通道监拍点"> <el-form-item label="通道">
<el-select v-model="formdata.channelid"> <el-select v-model="formdata.channelid">
<el-option <el-option
v-for="item in tdOptions" v-for="item in tdOptions"
@ -146,8 +146,15 @@ export default {
this.loadingSearch = true; this.loadingSearch = true;
getSearchInfo({ type: 1 }) getSearchInfo({ type: 1 })
.then((res) => { .then((res) => {
this.dyOptions = res.data.list; if (res.data.list.length == 0) {
this.formdata.dyid = res.data.list == [] ? "" : res.data.list[0].id; this.dyOptions = [];
this.formdata.dyid = "";
} else {
this.dyOptions = res.data.list;
this.formdata.dyid = res.data.list[0].id;
}
// this.dyOptions = res.data.list;
// this.formdata.dyid = res.data.list == [] ? "" : res.data.list[0].id;
this.getSearchxl(); this.getSearchxl();
}) })
.catch((err) => {}); .catch((err) => {});
@ -156,8 +163,15 @@ export default {
getSearchxl() { getSearchxl() {
getSearchInfo({ type: 2, id: this.formdata.dyid }) getSearchInfo({ type: 2, id: this.formdata.dyid })
.then((res) => { .then((res) => {
this.xlOptions = res.data.list; if (res.data.list.length == 0) {
this.formdata.lineid = res.data.list == [] ? "" : res.data.list[0].id; this.xlOptions = [];
this.formdata.lineid = "";
} else {
this.xlOptions = res.data.list;
this.formdata.lineid = res.data.list[0].id;
}
// this.xlOptions = res.data.list;
// this.formdata.lineid = res.data.list == [] ? "" : res.data.list[0].id;
this.getSearchgt(); this.getSearchgt();
}) })
.catch((err) => {}); .catch((err) => {});
@ -166,9 +180,16 @@ export default {
getSearchgt() { getSearchgt() {
getSearchInfo({ type: 3, id: this.formdata.lineid }) getSearchInfo({ type: 3, id: this.formdata.lineid })
.then((res) => { .then((res) => {
this.gtOptions = res.data.list; if (res.data.list.length == 0) {
this.formdata.towerid = this.gtOptions = [];
res.data.list == [] ? "" : res.data.list[0].id; this.formdata.towerid = "";
} else {
this.gtOptions = res.data.list;
this.formdata.towerid = res.data.list[0].id;
}
// this.gtOptions = res.data.list;
// this.formdata.towerid =
// res.data.list == [] ? "" : res.data.list[0].id;
this.getSearchtd(); this.getSearchtd();
}) })
.catch((err) => {}); .catch((err) => {});
@ -177,9 +198,16 @@ export default {
getSearchtd() { getSearchtd() {
getSearchInfo({ type: 4, id: this.formdata.towerid }) getSearchInfo({ type: 4, id: this.formdata.towerid })
.then((res) => { .then((res) => {
this.tdOptions = res.data.list; if (res.data.list.length == 0) {
this.formdata.channelid = this.tdOptions = [];
res.data.list == [] ? "" : res.data.list[0].id; this.formdata.channelid = "";
} else {
this.tdOptions = res.data.list;
this.formdata.channelid = res.data.list[0].id;
}
// this.tdOptions = res.data.list;
// this.formdata.channelid =
// res.data.list == [] ? "" : res.data.list[0].id;
if (this.signtype == 0) { if (this.signtype == 0) {
this.getPicData(); this.getPicData();
} }

Loading…
Cancel
Save