更新
This commit is contained in:
@@ -221,6 +221,14 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="dbr_value2">
|
||||||
|
<template slot="header">
|
||||||
|
<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" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="dbw_value">
|
<el-table-column prop="dbw_value">
|
||||||
<template slot="header">
|
<template slot="header">
|
||||||
<el-link type="primary" :underline="false" @click.native="test_write1()">测试写</el-link>
|
<el-link type="primary" :underline="false" @click.native="test_write1()">测试写</el-link>
|
||||||
@@ -432,6 +440,15 @@ export default {
|
|||||||
console.log(err.response.data.message)
|
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)
|
||||||
|
})
|
||||||
|
},
|
||||||
test_write1() {
|
test_write1() {
|
||||||
testwrite(this.data2, this.opc_id).then(data => {
|
testwrite(this.data2, this.opc_id).then(data => {
|
||||||
this.notify('操作成功!', 'success')
|
this.notify('操作成功!', 'success')
|
||||||
|
|||||||
Reference in New Issue
Block a user