960 Star 5.1K Fork 1.6K

GVPsmallwei / Avue

 / 详情

多级联动导出的时候第二级select框导出的是数值,不是名称

已完成
创建于  
2021-01-02 13:44

我用了两个select,第二个select是关联第一个select的,第二个select资源区域请求的链接以第一个select云服务商的cloudId做为参数,,tableOption如下:

column: [
{
type: 'select',
label: '云服务商',
prop: 'cloudId',
span: 12,
cascaderItem: ['regionId'],
display: true,
props: {
label: 'name',
value: 'cloudId'
},
dataType: 'number',
dicUrl: '/resourcecloud/list',
dicMethod: 'get',
required: true,
search: true,
rules: [
{
required: true,
message: '请选择云服务商',
trigger: 'blur'
}
],
filterable: true,
sortable: true,
},
{
type: 'select',
label: '资源区域',
prop: 'regionId',
span: 12,
display: true,
props: {
label: 'name',
value: 'id'
},
cascaderIndex: 0,
dataType: 'number',
dicUrl: '/resourceregion/list?cloudId={{cloudId}}',
dicMethod: 'get',
required: true,
search: true,
rules: [
{
required: true,
message: '请选择资源区域'
}
],
filterable: true,
sortable: true,
}
]

导出excel的信息如下:
输入图片说明
excel导出的时候第二列资源区域没有显示名称,而是显示id~

评论 (4)

hourglass1016 创建了任务
hourglass1016 关联仓库设置为smallwei/Avue
展开全部操作日志

多级联动没发导出翻译

smallwei 任务状态待办的 修改为已完成
smallwei 任务状态已完成 修改为待办的

哦哦,好哒,这个后续会支持不?

关注官网日志吧 看看最新动态

smallwei 任务状态待办的 修改为已完成
smallwei 里程碑设置为v2.7.7

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
632261 smallweigit 1588214431 368422 1109391515 1601180803
JavaScript
1
https://gitee.com/smallweigit/avue.git
git@gitee.com:smallweigit/avue.git
smallweigit
avue
Avue

搜索帮助