From 76ab72d2d4f443060448e20bb74230a8040b85f5 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 05 十一月 2024 11:00:33 +0800
Subject: [PATCH] 文件上传大小、工单审核后刷新

---
 src/views/tool/online/index.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/views/tool/online/index.vue b/src/views/tool/online/index.vue
index 0111d58..4ef3bda 100644
--- a/src/views/tool/online/index.vue
+++ b/src/views/tool/online/index.vue
@@ -7,21 +7,22 @@
             <el-input v-model="form.serialNumber"/>
           </el-form-item>
           <el-form-item>
-            <el-button @click="check" type="primary">妫�娴�</el-button>
+            <el-button  @click="check" type="primary">妫�娴�</el-button>
           </el-form-item>
         </el-form>
-        <div v-loading="loading" v-if="result.status">
+        <div v-loading="loading">
           <div class="row">
             <div>妫�娴嬬粨鏋滐細</div>
             <div>{{ result.status }}</div>
           </div>
-          <div style="margin-top: 100px">
+          <div style="margin-top: 100px" v-if="result.status">
             <div v-if="result.img">
               <div>鍥剧墖锛�</div>
               <div>
                 <el-image
                   style="width: 100px; height: 100px"
                   :src="result.img"
+                  :preview-src-list="[result.img]"
                   fit="fill">
                 </el-image>
               </div>
@@ -98,6 +99,9 @@
       this.form.ip = this.form.ip.replace(/^\s+|\s+$/g, '')
       this.loading = true
       check(this.form).then(res => {
+        if (res.data.img) {
+          res.data.img = this.$img + res.data.img
+        }
         this.result = res.data
         this.loading = false
       })

--
Gitblit v1.8.0