2026-09-28 14:07
return {
initOption() { //表格显示前执行
//设置岗位字段格式化
useFun.setPropConfig('location_id', {
props: { label: 'name', value: 'id' },
dicFormatter: (res) => {
console.log(res)
return res.records
}
})
//监听部门变化
useFun.setPropConfig('warehouse_id', {
change: ({ value }) => {
console.log(value)
//重新设置请求url
useFun.setPropConfig('location_id', {
dicUrl: '/jeelowcode/dbform-data/list/2010608703107035137',
dicMethod: 'post',
dicQuery: { warehouse_id: value }
})
//更新岗位字典
setTimeout(() => {
crudRef.value.updateDic('location_id')
}, 30)
}
})
}
}
我删除之后,还是显示无数据
