| | |
| | | <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> |
| | |
| | | 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 |
| | | }) |