赞
踩
- // 获取勾选内容
- handleSelectionChange(val) { //当前选中勾选的数组对象
- console.log(val) // 数组对象
- // eslint-disable-next-line no-unused-vars
- let arrCode = []; //定义数组
- val
- .map((item) => { //遍历当前的数组对象
- arrCode.push(item.productPushCode); //将当前某个值productPushCode取出来放入数组中
- return item.productPushCode;
- })
- .join(',')
- .split(',');
-
- this.productCodeList = arrCode; // 定义当前获取出来的数组的值 == this.productCodeList
- console.log(this.productCodeList); // 将当前值传入后台
- },

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。