|
|
|
@ -77,7 +77,11 @@
|
|
|
|
|
<alarmButton></alarmButton>
|
|
|
|
|
<cableButton></cableButton>
|
|
|
|
|
<gpsButton></gpsButton>
|
|
|
|
|
<el-button type="primary" @click="handlehistoryPic">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="handlehistoryPic"
|
|
|
|
|
v-if="roleUser != 4"
|
|
|
|
|
>
|
|
|
|
|
历史图片</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" @click="handleParams"> 参数配置</el-button>
|
|
|
|
@ -233,11 +237,6 @@ export default {
|
|
|
|
|
//点击收藏和取消收藏
|
|
|
|
|
addCollectClick() {
|
|
|
|
|
if (this.areaData.isfavor !== 1) {
|
|
|
|
|
this.$confirm("此操作将添加至收藏夹, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.areaData.isfavor = 1;
|
|
|
|
|
addFavorList({ list: [this.areaData.id], type: 1 }).then((res) => {
|
|
|
|
|
EventBus.$emit("treelist");
|
|
|
|
@ -246,7 +245,13 @@ export default {
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "添加成功!",
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
// this.$confirm("此操作将添加至收藏夹, 是否继续?", "提示", {
|
|
|
|
|
// confirmButtonText: "确定",
|
|
|
|
|
// cancelButtonText: "取消",
|
|
|
|
|
// type: "warning",
|
|
|
|
|
// }).then(() => {
|
|
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
} else {
|
|
|
|
|
this.$confirm("此操作将取消收藏, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
@ -305,7 +310,7 @@ export default {
|
|
|
|
|
);
|
|
|
|
|
this.selectDyId = res.data.dyId;
|
|
|
|
|
this.selectLineId = res.data.lineId;
|
|
|
|
|
this.selectTowerId = res.data.towerId;
|
|
|
|
|
//this.selectTowerId = res.data.towerId;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err); //代码错误、请求失败捕获
|
|
|
|
@ -320,6 +325,12 @@ export default {
|
|
|
|
|
//历史图片跳转
|
|
|
|
|
handlehistoryPic() {
|
|
|
|
|
console.log(this.areaData);
|
|
|
|
|
if (this.areaData.id == "13276") {
|
|
|
|
|
// "id": 13009,
|
|
|
|
|
// "towerid": 3980,
|
|
|
|
|
this.$set(this.areaData, "id", 13009);
|
|
|
|
|
this.$set(this.areaData, "towerid", 3980);
|
|
|
|
|
}
|
|
|
|
|
console.log(this.selectDyId, this.selectLineId, this.selectTowerId);
|
|
|
|
|
// console.log(this.zzCmdid, this.selectChannelValue);
|
|
|
|
|
if (typeof this.dateValue == "number") {
|
|
|
|
@ -332,7 +343,7 @@ export default {
|
|
|
|
|
query: {
|
|
|
|
|
dyId: this.selectDyId,
|
|
|
|
|
lineId: this.selectLineId,
|
|
|
|
|
towerId: this.selectTowerId,
|
|
|
|
|
towerId: this.areaData.towerid,
|
|
|
|
|
termId: this.areaData.id,
|
|
|
|
|
cmdId: this.areaData.cmdid,
|
|
|
|
|
channelId: this.selectChannelValue,
|
|
|
|
|