传参 vue 删除数组对象

@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id, HttpServletRequest request) {
return productInfoService.selectProductInfoPortalById(id,request);
}

前台
productInfoDetail(this.id,loginType).then((res) => {
this.form = res.data;
this.mainImg = this.form.lbFiles[0].filePath;
// this.form.contactNumber = this.form.contactNumber.substr(0,3)+"****"+ this.form.contactNumber.substr(7)
this.inproductInfoList();
});

//产品详情
export function productInfoDetail(id,loginType) {
return request({
url: '/portal/productInfo/' + id + "?loginType=" +loginType,
method: 'get'
})
}





let deptOptionsInsert = response.data;
let id = deptOptionsInsert[0].children.findindex(item => {
if (item.id == '33110') {
return true
}
})
deptOptionsInsert[0].children.splice(id, 1)
this.deptOptionsInsert = deptOptionsInsert;

相关文章

可以通过min-width属性来设置el-table-column的最小宽度。以...
yarn dev,当文件变动后,会自动重启。 yanr start不会自动重...
ref 用于创建一个对值的响应式引用。这个值可以是原始值(如...
通过修改 getWK005 函数来实现这一点。这里的 query 参数就是...
<el-form-item label="入库类型" ...
API 变动 样式类名变化: 一些组件的样式类名有所变动,可能需...