|
@@ -79,8 +79,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 查看二维码 -->
|
|
|
- <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogForUrl" width="400px" :center="true" :destroy-on-close="true">
|
|
|
- <div ref="qrcodeContainer" class="qrcode" style="margin-left:13%;margin-top:-3%" />
|
|
|
+ <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogForUrl" width="400px" :center="true" :destroy-on-close="true" @close="closeDialog">
|
|
|
+ <div v-if="data_close" ref="qrcodeContainer" class="qrcode" style="margin-left:13%;margin-top:-3%" />
|
|
|
<div style="font-size:16px;margin-left:32%;margin-top:5%;height:25px">
|
|
|
车辆ID:{{ urlData.vehicleId }}
|
|
|
</div>
|
|
@@ -255,7 +255,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ data_close: false,
|
|
|
dialogFormVisible: false,
|
|
|
dialogDetailVisible: false,
|
|
|
dialogUpdateVisible: false,
|
|
@@ -359,6 +359,12 @@ export default {
|
|
|
this.dialogStatus = 'create'
|
|
|
this.$refs.addDeviceForms.resetFields()
|
|
|
},
|
|
|
+
|
|
|
+ // 关闭弹框的事件
|
|
|
+ closeDialog() {
|
|
|
+ this.data_close = false // 清空数据
|
|
|
+ },
|
|
|
+
|
|
|
// 查看设备详情
|
|
|
deviceDetails(vel) {
|
|
|
this.dialogStatus = 'details'
|
|
@@ -384,6 +390,7 @@ export default {
|
|
|
// 查看二维码
|
|
|
checkUrl(ele) {
|
|
|
this.dialogForUrl = true
|
|
|
+ this.data_close = true
|
|
|
this.dialogStatus = 'url'
|
|
|
this.urlData = ele
|
|
|
this.$nextTick(() => {
|