|
@@ -174,9 +174,16 @@
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="day" label="日期"> </el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="day" label="录入日期"> </el-table-column>
|
|
<el-table-column label="操作">
|
|
<el-table-column label="操作">
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
|
+
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ @click="openQrCode(row.id)"
|
|
|
|
+ >预览</el-button
|
|
|
|
+ >
|
|
|
|
+
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
@click="lookQrCode(row.qrPath, row.fileName)"
|
|
@click="lookQrCode(row.qrPath, row.fileName)"
|
|
@@ -219,6 +226,7 @@
|
|
class="closeQrCode el-icon-circle-close"
|
|
class="closeQrCode el-icon-circle-close"
|
|
@click="qrCodeSrc = ''"
|
|
@click="qrCodeSrc = ''"
|
|
></div>
|
|
></div>
|
|
|
|
+ <!-- 中间盒子 -->
|
|
<img v-if="qrCodeSrc" :src="baseURL + qrCodeSrc" alt="" />
|
|
<img v-if="qrCodeSrc" :src="baseURL + qrCodeSrc" alt="" />
|
|
<!-- 下载二维码 -->
|
|
<!-- 下载二维码 -->
|
|
<a
|
|
<a
|
|
@@ -308,6 +316,11 @@ export default {
|
|
},
|
|
},
|
|
// 方法集合
|
|
// 方法集合
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 点击预览
|
|
|
|
+ openQrCode (id) {
|
|
|
|
+ window.open(`/web/index.html#/Model?m=${id}`)
|
|
|
|
+ },
|
|
|
|
+
|
|
// 点击二维码
|
|
// 点击二维码
|
|
lookQrCode (url, name) {
|
|
lookQrCode (url, name) {
|
|
this.qrCodeSrc = url
|
|
this.qrCodeSrc = url
|
|
@@ -535,16 +548,15 @@ export default {
|
|
height: 100vh;
|
|
height: 100vh;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
display: flex;
|
|
display: flex;
|
|
|
|
+ flex-direction: column;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
.qrCodeDown {
|
|
.qrCodeDown {
|
|
- position: absolute;
|
|
|
|
|
|
+ margin-top: 30px;
|
|
width: 120px;
|
|
width: 120px;
|
|
height: 40px;
|
|
height: 40px;
|
|
line-height: 36px;
|
|
line-height: 36px;
|
|
text-align: center;
|
|
text-align: center;
|
|
- top: 24px;
|
|
|
|
- right: 90px;
|
|
|
|
color: #fff;
|
|
color: #fff;
|
|
border-radius: 20px;
|
|
border-radius: 20px;
|
|
border: 1px solid #fff;
|
|
border: 1px solid #fff;
|