wp1.0
fanluyan 1 year ago
parent e5bf15f4a2
commit d3ea703444

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

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

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

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

Loading…
Cancel
Save