wp1.0
fanluyan 1 year ago
parent e5bf15f4a2
commit d3ea703444

@ -308,11 +308,11 @@ export default {
index: "photoAlarm",
title: "告警处理",
},
{
icon: "el-icon-search",
index: "/realTimeSearch",
title: "历史图片",
},
// {
// icon: "el-icon-search",
// index: "/realTimeSearch",
// title: "",
// },
],
role: "",

@ -393,11 +393,11 @@ export default {
if (direction == "down") {
this.$refs.scrollBox.scrollLeft +=
(this.$refs.scrollBox.offsetWidth / this.photoNum) * 3;
(this.$refs.scrollBox.offsetWidth / this.photoNum) * 1;
}
if (direction == "up") {
this.$refs.scrollBox.scrollLeft -=
(this.$refs.scrollBox.offsetWidth / this.photoNum) * 3;
(this.$refs.scrollBox.offsetWidth / this.photoNum) * 1;
}
},
//

@ -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,20 +237,21 @@ 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");
});
this.$message({
type: "success",
message: "添加成功!",
});
this.areaData.isfavor = 1;
addFavorList({ list: [this.areaData.id], type: 1 }).then((res) => {
EventBus.$emit("treelist");
});
this.$message({
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,

@ -259,9 +259,12 @@ export default {
this.searchName = data.name + data.cmdid;
//console.log(this.searchName);
// valuedatalabel
if (this.searchName.indexOf(value) !== -1) {
return true;
}
let nowval = data[this.defaultProps.label].toUpperCase();
return nowval.indexOf(value.toUpperCase()) !== -1;
},
//
getLineTreeList() {
@ -389,6 +392,7 @@ export default {
// "equipmentType": "",
// "isfavor": 0
// }
this.currentData = {
id: 13276,
towerid: 3981,

Loading…
Cancel
Save