<el-table-column prop="scope" label="修改后">
<template slot-scope="scope">
<span
v-for="item in scope.row.attributes"
:key="item.attributeID">
{{
rouleshowattributes.attrID == item.attributeID
? item.newvalue
: ''
}}
</span>
</template>
</el-table-column>
that.$set(item, "newvalue", value)
通过循环判断使用$set,newvalue是不更新
还需要更新table 整列 row,
that.$set(this.tableData[0].attributes,index,item)
this.tableData[0].attributes.forEach((item, index) => {
if(item.attributeID==that.truealltypeRule[0].attrID){
that.$set(item, "newvalue", value)
that.$set(this.tableData[0].attributes,index,item)
}
})