mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 10:36:31 +08:00
修复bug
This commit is contained in:
@@ -145,7 +145,6 @@ function showDialog(title: string, params?: ANY_OBJECT, options?: ANY_OBJECT) {
|
|||||||
dialogKey;
|
dialogKey;
|
||||||
|
|
||||||
dlgUrl += '&thirdParamsString=' + encodeURIComponent(JSON.stringify(paramsCopy));
|
dlgUrl += '&thirdParamsString=' + encodeURIComponent(JSON.stringify(paramsCopy));
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
title: title,
|
title: title,
|
||||||
dlgFullScreen: options.fullscreen,
|
dlgFullScreen: options.fullscreen,
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ const emitChange = (info: ANY_OBJECT) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const handlerEditOperate = (row: ANY_OBJECT | null, res: ANY_OBJECT) => {
|
const handlerEditOperate = (row: ANY_OBJECT | null, res: ANY_OBJECT) => {
|
||||||
|
if (res == null) return;
|
||||||
if (!row) {
|
if (!row) {
|
||||||
emitChange({
|
emitChange({
|
||||||
dictId: props.value.dictId,
|
dictId: props.value.dictId,
|
||||||
|
|||||||
@@ -151,7 +151,6 @@ export const useForm = (props: ANY_OBJECT, formRef: Ref<FormInstance> | null = n
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
const onValueChange = (widget: ANY_OBJECT, value: ANY_OBJECT) => {
|
const onValueChange = (widget: ANY_OBJECT, value: ANY_OBJECT) => {
|
||||||
console.log('useForm.onValueChange', widget, value);
|
|
||||||
if (props.isEdit || !isReady.value) return;
|
if (props.isEdit || !isReady.value) return;
|
||||||
if (widget.bindData.dataType === SysCustomWidgetBindDataType.Column && widget.column) {
|
if (widget.bindData.dataType === SysCustomWidgetBindDataType.Column && widget.column) {
|
||||||
// 绑定从表字段
|
// 绑定从表字段
|
||||||
@@ -169,7 +168,6 @@ export const useForm = (props: ANY_OBJECT, formRef: Ref<FormInstance> | null = n
|
|||||||
) {
|
) {
|
||||||
formData.customField[widget.bindData.formFieldName] = value;
|
formData.customField[widget.bindData.formFieldName] = value;
|
||||||
}
|
}
|
||||||
console.log('useForm.onValueChange formData', formData);
|
|
||||||
};
|
};
|
||||||
const onWidgetValueChange = (
|
const onWidgetValueChange = (
|
||||||
widget: ANY_OBJECT,
|
widget: ANY_OBJECT,
|
||||||
|
|||||||
Reference in New Issue
Block a user