f0f5c94e by renchao@pashanhoo.com

style:材料信息

1 parent 6d1b1798
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-07 16:09:13 4 * @LastEditTime: 2023-09-12 13:58:04
5 --> 5 -->
6 <template> 6 <template>
7 <div class="rlPopup"> 7 <div class="rlPopup">
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 <div class="next handle-btn" v-if="!isScan" @click="next()"> 11 <div class="next handle-btn" v-if="!isScan" @click="next()">
12 <i class="el-icon-arrow-right"></i> 12 <i class="el-icon-arrow-right"></i>
13 </div> 13 </div>
14 <div class="img-list-wrap"> 14 <div class="img-list-wrap" v-Loading="loading">
15 <img src="http://127.0.0.1:38088/video=stream&camidx=0" v-if="isScan" alt="高拍仪"> 15 <img src="http://127.0.0.1:38088/video=stream&camidx=0" v-if="isScan" alt="高拍仪">
16 <div v-for="(img, i) in previewImg.imgList" :key="i" v-else> 16 <div v-for="(img, i) in previewImg.imgList" :key="i" v-else>
17 <photo-zoom :url="img.fjurl" :bigWidth="165" v-if="i === previewImg.index" :scale="2" 17 <photo-zoom :url="img.fjurl" :bigWidth="165" v-if="i === previewImg.index" :scale="2"
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
34 <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete" 34 <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete"
35 v-if="thumbnailImages.length>0 && ableOperation">删除</el-button> 35 v-if="thumbnailImages.length>0 && ableOperation">删除</el-button>
36 <div v-if="ableOperation" class="pl-5"> 36 <div v-if="ableOperation" class="pl-5">
37 <el-button type="primary" @click="handleOpenScan" v-if="ableOperation">{{scanTitle}}</el-button> 37 <el-button type="primary" @click="handleOpenScan" v-if="ableOperation" :loading="loading">{{scanTitle}}</el-button>
38 <el-button type="primary" @click="handleViewScan" v-if="isScan && ableOperation">拍照</el-button> 38 <el-button type="primary" @click="handleViewScan" v-if="isScan && ableOperation">拍照</el-button>
39 </div> 39 </div>
40 </div> 40 </div>
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
73 }, 73 },
74 data () { 74 data () {
75 return { 75 return {
76 loading: false,
76 key: 0, 77 key: 0,
77 isScan: false, 78 isScan: false,
78 // 打开高拍仪 79 // 打开高拍仪
...@@ -125,20 +126,22 @@ ...@@ -125,20 +126,22 @@
125 handleOpenScan () { 126 handleOpenScan () {
126 this.isScan = !this.isScan 127 this.isScan = !this.isScan
127 if (this.isScan) { 128 if (this.isScan) {
129 this.loading = true
128 this.$message({ 130 this.$message({
129 message: '正在启动程序请稍等', 131 message: '正在启动程序请稍等',
130 type: 'success' 132 type: 'success'
131 }) 133 })
132 setTimeout(() => { 134 setTimeout(() => {
133 this.scanTitle = '关闭高拍仪' 135 this.scanTitle = '关闭高拍仪'
136 this.loading = false
134 }, 4000) 137 }, 4000)
135 } else { 138 } else {
136 this.scanTitle = '打开高拍仪' 139 this.scanTitle = '打开高拍仪'
137 } 140 }
138 }, 141 },
139 // 左右移动 142 // 左右移动
140 handleMove(direction) { 143 handleMove (direction) {
141 144
142 }, 145 },
143 /** 146 /**
144 * @description: 拍照 147 * @description: 拍照
......