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