Commit a294f0a4 by lichengming

修改了开土制备表格编辑

parent 524eff5e
...@@ -40,7 +40,8 @@ ...@@ -40,7 +40,8 @@
<Input :value="scope.row.describeDetail" @change.native="_inputChange($event.target.value,scope.row)"></Input> <Input :value="scope.row.describeDetail" @change.native="_inputChange($event.target.value,scope.row)"></Input>
</div> </div>
<div v-else-if="item.key==='remark'" @click.stop="_handleRow(scope)"> <div v-else-if="item.key==='remark'" @click.stop="_handleRow(scope)">
<el-input v-model="scope.row.remark" @change="_remarkChange(scope.row)"></el-input> <Input :value="scope.row.remark" @change.native="_remarkChange($event.target.value,scope.row)"></Input>
<!-- <Input v-model="scope.row.remark" @change="_remarkChange(scope.row)"></Input>-->
</div> </div>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -170,10 +171,11 @@ export default { ...@@ -170,10 +171,11 @@ export default {
} }
}, },
_remarkChange: async function(info) { _remarkChange: async function(info, data) {
this.getPage.records[data.index].remark = info
const result = await soilEntrust.sampleRemarkEdit({ const result = await soilEntrust.sampleRemarkEdit({
id: info.id, id: data.id,
remark: info.remark remark: info
}) })
if (result) { if (result) {
// this._resultChange('修改成功') // this._resultChange('修改成功')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment