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

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

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

@ -83,6 +83,11 @@
show-overflow-tooltip
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
prop="towerName"
@ -90,6 +95,11 @@
show-overflow-tooltip
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
prop="equipName"
@ -454,8 +464,6 @@ export default {
};
},
created() {
this.getSearchdy();
this.terminalList();
this.roleUser = localStorage.getItem("role");
console.log(this.roleUser);
var that = this;
@ -465,9 +473,31 @@ export default {
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: {
//线
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() {
getSearchInfo({ type: 1 })

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

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

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

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

Loading…
Cancel
Save