VUE

判断list不为空:pawnList!== undefined && pawnList!== null && pawnList.length>0

找不到vue界面:可能是自动引用的导致,删除import引用

前后台实体匹配不上:数据类型不一致

list 获取多选框选中的数据:

 <el-table-column type="selection" width="50" align="center" />
// 多选框选中数据
function handleSele(selection) {
  // ids.value = selection.map((item) => item.id)
  ids.value = selection.map((item) => {
    return {
      cId: Number(item.id),
      sId: Number(form.value.id),
      se: form.value.se
    }
  })
}

 

posted on 2022-09-07 19:07  ningmou  阅读(21)  评论(0编辑  收藏  举报