rev:优化测试出现的问题

This commit is contained in:
2024-07-06 17:30:10 +08:00
parent 4f678392e0
commit d810379d1e
9 changed files with 145 additions and 63 deletions

View File

@@ -157,7 +157,7 @@
</el-table-column>
<el-table-column prop="dbr_value2">
<template slot="header">
<el-link type="primary" :underline="false" @click.native="test_read1()">测试读</el-link>
<el-link type="primary" :underline="false" @click.native="test_read2()">测试读</el-link>
</template>
<template slot-scope="scope">
<el-input v-model="data2[scope.$index].dbr_value" size="mini" class="edit-input" />
@@ -354,6 +354,15 @@ export default {
console.log(err.response.data.message)
})
},
test_read2() {
testRead(this.data2, this.opc_id).then(data => {
this.data2 = data
console.log(this.data2)
this.notify('操作成功!', 'success')
}).catch(err => {
console.log(err.response.data.message)
})
},
doSubmit() {
this.$refs['form'].validate((valid) => {
if (valid) {

View File

@@ -8,14 +8,18 @@
<!-- style="width: 200px;"-->
<!-- class="filter-item"-->
<!-- />-->
<el-input
<el-select
v-model="query.method"
clearable
filterable
size="small"
placeholder="请输入你要搜索的方法名"
style="width: 200px;"
class="filter-item"
/>
style="width: 200px"
@change="crud.toQuery"
>
<el-option v-for="item in methods" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
<el-input
v-model="query.requestparam"
clearable
@@ -104,7 +108,7 @@ export default {
queryAddressCodeList().then(data => {
this.methods = data.content
})
},
}
}
</script>