杆塔线路装置关联点击链接

hn2.0
fanluyan 2 years ago
parent 94f4de263d
commit 75339c763a

@ -399,6 +399,15 @@ export default {
current: 0, current: 0,
}; };
}, },
created() {
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key === 13) {
that.onSubmit(); //
}
};
},
mounted() { mounted() {
// this.$set(this.formdata, "timeVal", [ // this.$set(this.formdata, "timeVal", [
// new Date(new Date().toLocaleDateString()).getTime(), // new Date(new Date().toLocaleDateString()).getTime(),

@ -83,6 +83,11 @@
show-overflow-tooltip show-overflow-tooltip
min-width="120" min-width="120"
> >
<template slot-scope="scope">
<el-link @click="handleLineLink(scope.row)">{{
scope.row.lineName
}}</el-link>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="towerName" prop="towerName"
@ -90,6 +95,11 @@
show-overflow-tooltip show-overflow-tooltip
min-width="150" min-width="150"
> >
<template slot-scope="scope">
<el-link @click="handletowerLink(scope.row)">{{
scope.row.towerName
}}</el-link>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="equipName" prop="equipName"
@ -454,8 +464,6 @@ export default {
}; };
}, },
created() { created() {
this.getSearchdy();
this.terminalList();
this.roleUser = localStorage.getItem("role"); this.roleUser = localStorage.getItem("role");
console.log(this.roleUser); console.log(this.roleUser);
var that = this; var that = this;
@ -465,9 +473,31 @@ export default {
that.onSubmit(); // that.onSubmit(); //
} }
}; };
console.log(this.$route.query);
this.formdata.search = this.$route.query.name;
console.log(this.formdata.search);
},
mounted() {
this.getSearchdy();
this.terminalList();
}, },
methods: { methods: {
//线
handleLineLink(val) {
console.log(val);
this.$router.push({
path: "/lineInformation",
query: { lineName: val.lineName, name: val.towerName },
});
},
//
handletowerLink(val) {
console.log(val);
this.$router.push({
path: "/towerInformation",
query: { lineName: val.lineName, name: val.towerName },
});
},
// //
getSearchdy() { getSearchdy() {
getSearchInfo({ type: 1 }) getSearchInfo({ type: 1 })

@ -139,6 +139,9 @@ export default {
that.onSubmit(); // that.onSubmit(); //
} }
}; };
console.log(this.$route.query);
this.formdata.search = this.$route.query.lineName;
console.log(this.formdata.search);
}, },
mounted() { mounted() {
this.lineList(); this.lineList();
@ -186,6 +189,7 @@ export default {
//handleResive 线 //handleResive 线
handleResive(data) { handleResive(data) {
console.log(data);
this.lineDialogTitle = "修改"; this.lineDialogTitle = "修改";
this.$refs.addlineDialogref.display(); this.$refs.addlineDialogref.display();
this.$refs.addlineDialogref.getdataform(data); this.$refs.addlineDialogref.getdataform(data);

@ -45,17 +45,25 @@
prop="lineName" prop="lineName"
label="线路名称" label="线路名称"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> >
<template slot-scope="scope">
<el-link @click="handleLineLink(scope.row)">{{
scope.row.lineName
}}</el-link>
</template>
</el-table-column>
<!-- <el-table-column <!-- <el-table-column
prop="lineId" prop="lineId"
label="线路编号" label="线路编号"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> --> ></el-table-column> -->
<el-table-column <el-table-column prop="name" label="杆塔名称" show-overflow-tooltip>
prop="name" <template slot-scope="scope">
label="杆塔名称" <el-link @click="handletowerLink(scope.row)">{{
show-overflow-tooltip scope.row.name
></el-table-column> }}</el-link>
</template></el-table-column
>
<el-table-column <el-table-column
prop="address" prop="address"
label="杆塔地址" label="杆塔地址"
@ -133,12 +141,31 @@ export default {
that.onSubmit(); // that.onSubmit(); //
} }
}; };
console.log(this.$route.query);
this.formdata.search = this.$route.query.name;
console.log(this.formdata.search);
}, },
mounted() { mounted() {
this.deviceList(); this.deviceList();
}, },
methods: { methods: {
//线
handleLineLink(val) {
console.log(val);
this.$router.push({
path: "/lineInformation",
query: { lineName: val.lineName, name: val.name },
});
},
//线
handletowerLink(val) {
console.log(val);
this.$router.push({
path: "/photographicDevice",
query: { lineName: val.lineName, name: val.name },
});
},
// //
onSubmit() { onSubmit() {
this.page = 1; this.page = 1;

@ -64,15 +64,16 @@
<img src="../../assets/img/nopic.jpg" /> <img src="../../assets/img/nopic.jpg" />
</div> </div>
<p class="infoTop"> <p class="infoTop">
{{ item.linename }}-{{ {{ item.linename }}-{{ item.towername }}-{{
item.displayname !== null && item.displayname !== ""
? item.displayname
: item.cmdid
}}-{{
item.alias !== null && item.alias !== "" item.alias !== null && item.alias !== ""
? item.alias ? item.alias
: item.channnelname : item.channnelname
}} }}
<!-- {{
item.displayname !== null && item.displayname !== ""
? item.displayname
: item.cmdid
}}- -->
</p> </p>
<p class="infoBottom" v-if="item.photoTime !== null"> <p class="infoBottom" v-if="item.photoTime !== null">
{{ $moment(item.photoTime).format("yy-MM-DD HH:mm:ss") }}  {{ $moment(item.photoTime).format("yy-MM-DD HH:mm:ss") }} 

@ -608,7 +608,6 @@ export default {
console.log(res); console.log(res);
if (res.data.isonline) { if (res.data.isonline) {
this.btnpicloading = true; this.btnpicloading = true;
getLatestPhotoJoggle({ getLatestPhotoJoggle({
captureType: 0, captureType: 0,
channel: command, channel: command,
@ -628,7 +627,6 @@ export default {
this.newPicData = res.data; this.newPicData = res.data;
console.log(this.newPicData); console.log(this.newPicData);
console.log(this.newTermId); console.log(this.newTermId);
this.timer = window.setInterval(() => { this.timer = window.setInterval(() => {
this.newPicApi(); this.newPicApi();
this.i++; this.i++;

Loading…
Cancel
Save