hn2.0
fanluyan 2 years ago
parent e0ce6b9956
commit 9823dd3fe0

@ -209,18 +209,17 @@
v-if="selectRow.path !== '' && tableData.length !== 0" v-if="selectRow.path !== '' && tableData.length !== 0"
> >
<!-- v-viewer="OptionssalseImg" --> <!-- v-viewer="OptionssalseImg" -->
<img <img ref="picJpg" class="animImg" :src="photoPic + '!1366x768'" />
ref="picJpg"
class="animImg"
@load="imgOnload"
:src="photoPic + '!1366x768'"
/>
<canvas id="myCanvas" class="myCanvas" ref="myCanvas"></canvas> <canvas id="myCanvas" class="myCanvas" ref="myCanvas"></canvas>
</div> </div>
<img <img
ref="picJpg" ref="picJpg"
src="../../assets/img/nopic.jpg" src="../../assets/img/nopic.jpg"
v-if="selectRow.path == '' || tableData.length == 0" v-if="
selectRow.path == '' ||
selectRow.path == null ||
tableData.length == 0
"
/> />
</div> </div>
<div class="editorBtn"> <div class="editorBtn">
@ -233,7 +232,7 @@
> >
<el-button <el-button
type="primary" type="primary"
@click="handleHistory" @click="handleHistory(selectRow)"
:disabled="tableData.length == 0" :disabled="tableData.length == 0"
>历史图片</el-button >历史图片</el-button
> >
@ -265,6 +264,11 @@
</div> </div>
<div class="picshow" @click="handlePicAlarm(item)"> <div class="picshow" @click="handlePicAlarm(item)">
<img <img
v-if="item.path == '' || null"
src="../../assets/img/nodatapic2.jpg"
/>
<img
v-else
:id="'img' + index" :id="'img' + index"
:ref="'imgref' + index" :ref="'imgref' + index"
:src="item.path + '!1366x768'" :src="item.path + '!1366x768'"
@ -759,8 +763,10 @@ export default {
//this.$refs.multipleTable.toggleRowSelection(row); //this.$refs.multipleTable.toggleRowSelection(row);
console.log(this.$refs.picJpg.complete); console.log(this.$refs.picJpg.complete);
this.alarmLoading = true; this.alarmLoading = true;
if (row.path == "" || row.path == null) {
this.alarmLoading = false;
}
this.photoPic = row.path; this.photoPic = row.path;
this.selectRow = row; this.selectRow = row;
// //
if (row.isread == 0) { if (row.isread == 0) {

Loading…
Cancel
Save