Browse Source

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

pull/7333/head
JEECG 2 months ago
parent
commit
e770524f3a
  1. 9
      jeecgboot-vue3/src/components/jeecg/JVxeTable/src/hooks/useJVxeComponent.ts

9
jeecgboot-vue3/src/components/jeecg/JVxeTable/src/hooks/useJVxeComponent.ts

@ -7,6 +7,7 @@ import { JVxeRenderType } from '../types/JVxeTypes';
import { isBoolean, isFunction, isObject, isPromise } from '/@/utils/is'; import { isBoolean, isFunction, isObject, isPromise } from '/@/utils/is';
import { JVxeComponent } from '../types/JVxeComponent'; import { JVxeComponent } from '../types/JVxeComponent';
import { filterDictText } from '/@/utils/dict/JDictSelectUtil'; import { filterDictText } from '/@/utils/dict/JDictSelectUtil';
import { getAreaTextByCode } from "@/components/Form/src/utils/Area";
export function useJVxeCompProps() { export function useJVxeCompProps() {
return { return {
@ -160,6 +161,14 @@ export function useJVxeComponent(props: JVxeComponent.Props) {
return; return;
} }
// update-end--author:liaozhiyang---date:20240509---forQQYUN-9205(jVxetabledate) // update-end--author:liaozhiyang---date:20240509---forQQYUN-9205(jVxetabledate)
//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 (props.renderType === JVxeRenderType.spaner && enhanced.translate.enabled === true) {
if (isFunction(enhanced.translate.handler)) { if (isFunction(enhanced.translate.handler)) {

Loading…
Cancel
Save