fuliqi
2024-11-05 76ab72d2d4f443060448e20bb74230a8040b85f5
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
      })