mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
添加修改头像功能
This commit is contained in:
@@ -482,9 +482,9 @@ const initFormData = () => {
|
||||
// 如果是复制,清空主键以及自动编码字段
|
||||
let clearColumnList: string[] = [];
|
||||
if (isRelation.value) {
|
||||
formData[masterTable.value.relation.variableName] = {
|
||||
...dialogParams.value.rowData,
|
||||
};
|
||||
Object.keys(dialogParams.value.rowData).forEach(key => {
|
||||
formData[masterTable.value.relation.variableName][key] = dialogParams.value.rowData[key];
|
||||
});
|
||||
clearFormData(formData[masterTable.value.relation.variableName], clearColumnList);
|
||||
resolve();
|
||||
} else {
|
||||
|
||||
@@ -144,9 +144,8 @@ export const useForm = (props: ANY_OBJECT, formRef: Ref<FormInstance> | null = n
|
||||
}
|
||||
};
|
||||
const getWidgetVisible = widget => {
|
||||
const formWidgetAuth: ANY_OBJECT | null = formAuth.value && formAuth.value.pc
|
||||
? formAuth.value.pc[widget.variableName]
|
||||
: null;
|
||||
const formWidgetAuth: ANY_OBJECT | null =
|
||||
formAuth.value && formAuth.value.pc ? formAuth.value.pc[widget.variableName] : null;
|
||||
if (formWidgetAuth && formWidgetAuth.hide) return false;
|
||||
return true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user