|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
:style="
|
|
|
|
|
bigPicPath ? 'backgroundImage:url(' + bigPicPath + '!128x72)' : ''
|
|
|
|
|
"
|
|
|
|
|
@click="handleBigPic(bigPicPath)"
|
|
|
|
|
@click="handleBigPicbox(bigPicPath)"
|
|
|
|
|
>
|
|
|
|
|
<img ref="picJpg" class="animImg" :src="bigPicPath + '!1280x720'" />
|
|
|
|
|
|
|
|
|
@ -153,6 +153,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getCoordinate } from "@/utils/api/index";
|
|
|
|
|
export default {
|
|
|
|
|
components: {},
|
|
|
|
|
props: {
|
|
|
|
@ -199,16 +200,18 @@ export default {
|
|
|
|
|
this.fiveList = this.terminalPhoto.slice(this.page - 1, this.pagesize);
|
|
|
|
|
this.total = this.terminalPhoto.length / this.pagesize;
|
|
|
|
|
console.log(this.fiveList);
|
|
|
|
|
|
|
|
|
|
this.localPoints = this.terminalPhoto[0].list;
|
|
|
|
|
console.log("111111111111111111111");
|
|
|
|
|
console.log(this.localPoints);
|
|
|
|
|
if (this.localPoints == undefined) {
|
|
|
|
|
console.log("无数据");
|
|
|
|
|
return;
|
|
|
|
|
} else if (this.localPoints) {
|
|
|
|
|
//获取points
|
|
|
|
|
getCoordinate({
|
|
|
|
|
channelId: this.fiveList[0].channelId,
|
|
|
|
|
needPic: "0",
|
|
|
|
|
termId: this.fiveList[0].termId,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.localPoints = res.data.list;
|
|
|
|
|
this.drawline();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
terminalPhoto: function (newVal, oldVal) {
|
|
|
|
@ -219,7 +222,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
|
methods: {
|
|
|
|
|
handleBigPic() {
|
|
|
|
|
handleBigPicbox() {
|
|
|
|
|
this.showBigpic = true;
|
|
|
|
|
},
|
|
|
|
|
closePic() {
|
|
|
|
@ -277,8 +280,18 @@ export default {
|
|
|
|
|
this.activeSmall = 4;
|
|
|
|
|
this.smallLeftClick();
|
|
|
|
|
}
|
|
|
|
|
this.localPoints = this.terminalPhoto[this.bigNum].list;
|
|
|
|
|
console.log(this.terminalPhoto[this.bigNum]);
|
|
|
|
|
getCoordinate({
|
|
|
|
|
channelId: this.terminalPhoto[this.bigNum].channelId,
|
|
|
|
|
needPic: "1",
|
|
|
|
|
termId: this.terminalPhoto[this.bigNum].termId,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.localPoints = res.data.list;
|
|
|
|
|
this.drawline();
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
//点击右侧切换图片
|
|
|
|
|
rightClick() {
|
|
|
|
@ -291,8 +304,17 @@ export default {
|
|
|
|
|
console.log(this.activeSmall);
|
|
|
|
|
this.smallRightClick();
|
|
|
|
|
}
|
|
|
|
|
this.localPoints = this.terminalPhoto[this.bigNum].list;
|
|
|
|
|
getCoordinate({
|
|
|
|
|
channelId: this.terminalPhoto[this.bigNum].channelId,
|
|
|
|
|
needPic: "1",
|
|
|
|
|
termId: this.terminalPhoto[this.bigNum].termId,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.localPoints = res.data.list;
|
|
|
|
|
this.drawline();
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
//点击小图变成大图
|
|
|
|
|
handleBigpic(row, index) {
|
|
|
|
@ -300,8 +322,17 @@ export default {
|
|
|
|
|
console.log();
|
|
|
|
|
this.activeSmall = index;
|
|
|
|
|
this.bigPicPath = row.path;
|
|
|
|
|
this.localPoints = row.list;
|
|
|
|
|
getCoordinate({
|
|
|
|
|
channelId: row.channelId,
|
|
|
|
|
needPic: "1",
|
|
|
|
|
termId: row.termId,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.localPoints = res.data.list;
|
|
|
|
|
this.drawline();
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
//点击小图切换左侧
|
|
|
|
|
smallLeftClick() {
|
|
|
|
@ -316,6 +347,18 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
console.log(this.page);
|
|
|
|
|
console.log(this.fiveList);
|
|
|
|
|
//获取points
|
|
|
|
|
getCoordinate({
|
|
|
|
|
channelId: this.fiveList[0].channelId,
|
|
|
|
|
needPic: "0",
|
|
|
|
|
termId: this.fiveList[0].termId,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.localPoints = res.data.list;
|
|
|
|
|
this.drawline();
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
//点击小图切换右侧
|
|
|
|
|
smallRightClick() {
|
|
|
|
@ -325,6 +368,18 @@ export default {
|
|
|
|
|
this.page++;
|
|
|
|
|
this.getphotoList();
|
|
|
|
|
console.log(this.fiveList);
|
|
|
|
|
//获取points
|
|
|
|
|
getCoordinate({
|
|
|
|
|
channelId: this.fiveList[0].channelId,
|
|
|
|
|
needPic: "0",
|
|
|
|
|
termId: this.fiveList[0].termId,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.localPoints = res.data.list;
|
|
|
|
|
this.drawline();
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|