<el-table-column prop="createTime" label="编辑店铺分类">
<template slot-scope="scope">
<el-cascader
ref="cascader"
v-model="scope.row.shoptypeone"
:options="commoditylist"
placeholder="请选择商品分类"
@change="shoptypeoneChange(scope.row, $event)"
></el-cascader>
</template>
</el-table-column>
shoptypeoneChange(row,selectedNodes) {
console.log(row,)
// let nodesObj = this.$refs['cascader'].getCheckedNodes()
// console.log('===>val', val)
console.log('===>val', selectedNodes)
// let parmas={
// proId:val.id,
// oneTypeId:1
// }
// updateElectronicProductOneSelfType().then(({ code, data }) => {
// if (code !== 200) return;
// this.commoditylist=data
// });
// this.shopinfo.oneTypeId=value[0]
// this.shopinfo.twoTypeId=value[1]
},
效果: