961 Star 5.1K Fork 1.6K

GVPsmallwei/Avue

 / 详情

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

Done
Opened this issue  
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~

Comments (4)

hourglass1016 created任务
hourglass1016 set related repository to smallwei/Avue
Expand operation logs

多级联动没发导出翻译

smallwei changed issue state from 待办的 to 已完成
smallwei changed issue state from 已完成 to 待办的

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

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

smallwei changed issue state from 待办的 to 已完成
smallwei set milestone to v2.7.7

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
632261 smallweigit 1588214431 368422 1109391515 1601180803
JavaScript
1
https://gitee.com/smallweigit/avue.git
git@gitee.com:smallweigit/avue.git
smallweigit
avue
Avue

Search