【issues/7203】自动生成一对多表单代码中,省市区回显问题--

This commit is contained in:
JEECG
2024-09-24 22:41:34 +08:00
parent c5fee07cba
commit e770524f3a

View File

@@ -7,6 +7,7 @@ import { JVxeRenderType } from '../types/JVxeTypes';
import { isBoolean, isFunction, isObject, isPromise } from '/@/utils/is';
import { JVxeComponent } from '../types/JVxeComponent';
import { filterDictText } from '/@/utils/dict/JDictSelectUtil';
import { getAreaTextByCode } from "@/components/Form/src/utils/Area";
export function useJVxeCompProps() {
return {
@@ -160,6 +161,14 @@ export function useJVxeComponent(props: JVxeComponent.Props) {
return;
}
// update-end--author:liaozhiyang---date:20240509---for【QQYUN-9205】一对多(jVxetable组件date)支持年,年月,年度度,年周
//update-begin---author:wangshuai---date:2024-09-18---for:【issues/7203】自动生成一对多表单代码中省市区回显问题---
if (props.type === 'pca' && props.renderType === JVxeRenderType.spaner) {
innerValue.value = getAreaTextByCode(newValue);
return;
}
//update-end---author:wangshuai---date:2024-09-18---for:【issues/7203】自动生成一对多表单代码中省市区回显问题---
// 判断是否启用翻译
if (props.renderType === JVxeRenderType.spaner && enhanced.translate.enabled === true) {
if (isFunction(enhanced.translate.handler)) {