foreignkey 的配置

发布于 2023-06-12 18:13:28
export const product = {
  title: '项目',
  key: 'product.name',
  search: { disabled: false },
  sortable: true,
  treeNode: true,
  dict: {
    url: 'api/base_manager/Product/all',
    value: 'id', // 数据字典中value字段的属性名
    label: 'name' // 数据字典中label字段的属性名
  },
  type: 'select',
  form: {
    component: {
      props: {
        clearable: true,
        filterable: true
      },
      placeholder: '请选择项目'
    },
    itemProps: {
      class: { yxtInput: true }
    }
  }
}

在post时,期望是 product:99 ,现在是 product:{name:99},请问怎么实现?

查看更多

关注者
0
被浏览
674
0 个回答
暂无答案,快来添加答案吧

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览