fix:数据采集设备添加测试按钮
This commit is contained in:
parent
d081da0d7c
commit
9d9be9b86f
|
@ -71,6 +71,7 @@
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24">
|
||||||
<el-form-item label="采集数据地址">
|
<el-form-item label="采集数据地址">
|
||||||
<el-input v-model="form.cd_req_addr" placeholder="采集数据的请求地址" />
|
<el-input v-model="form.cd_req_addr" placeholder="采集数据的请求地址" />
|
||||||
|
<el-button type="primary" @click="eqTest">测试</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :md="8" :sm="24">
|
<!-- <el-col :md="8" :sm="24">
|
||||||
|
@ -419,6 +420,17 @@ export default {
|
||||||
this.deptChange()
|
this.deptChange()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
eqTest(){
|
||||||
|
let that = this;
|
||||||
|
that.$API.em.cd.req({method:that.form.cd_req_addr}).then((res) => {
|
||||||
|
let str = JSON.stringify(res);
|
||||||
|
that.$message.success("测试成功,返回数据:"+str);
|
||||||
|
}).catch((err) => {
|
||||||
|
let str = JSON.stringify(res);
|
||||||
|
that.$message.success("测试失败,返回数据:"+str);
|
||||||
|
return err;
|
||||||
|
});
|
||||||
|
},
|
||||||
//设置过滤项
|
//设置过滤项
|
||||||
setFilters(filters) {
|
setFilters(filters) {
|
||||||
this.selectionFilters = filters;
|
this.selectionFilters = filters;
|
||||||
|
|
Loading…
Reference in New Issue