Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动生成一对多表单代码中,省市区回显问题。 #7203

Closed
kevinchan1979 opened this issue Sep 11, 2024 · 2 comments
Closed

自动生成一对多表单代码中,省市区回显问题。 #7203

kevinchan1979 opened this issue Sep 11, 2024 · 2 comments

Comments

@kevinchan1979
Copy link

kevinchan1979 commented Sep 11, 2024

版本号:

3.7.0

问题描述:

在自动生成一对多erp表单时,BasicTable可以通过自定义回显插槽,把省市区代码转换成文字。

   <template v-slot:bodyCell="{ column, record, index, text }">
     <template v-if="column.dataIndex==='address'">
        <!-- 省市区字段回显插槽 -->  
        <div>{{ getAreaTextByCode(text) }}</div>
     </template>
   </template>

但在生成一对多默认表单时,在BasicModal中没有在找到正确回显省市区代码的方法,请教一下如何修复这个问题。

错误截图:

微信截图_20240911235053
微信截图_20240911235147

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;
@zhangdaiscott
Copy link
Member

SQ

@1298191366
Copy link

1298191366 commented Sep 19, 2024

已修复,待新版本发布,参考修改如下
useJVxeComponent.ts文件中的useJVxeComponent方法,判断当为pca省市区联动的时候,进行文本的翻译
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants