|
@@ -145,7 +145,7 @@ export default function index() {
|
|
|
)?.value;
|
|
|
const newItem = {
|
|
|
key: item.table.id,
|
|
|
- label: item.table.schemaName + `${name ? `(${name})}` : ""}`,
|
|
|
+ label: item.table.schemaName + `${name ? `(${name})` : ""}`,
|
|
|
icon: <i className="iconfont icon-biaogebeifen" />,
|
|
|
};
|
|
|
if (!item.table.parentBusinessTableId) {
|
|
@@ -369,13 +369,14 @@ export default function index() {
|
|
|
dataSource={currentTable?.table}
|
|
|
editable={{
|
|
|
onSave: async (keypath, newInfo, oriInfo) => {
|
|
|
- console.log(keypath, newInfo, oriInfo);
|
|
|
currentTable &&
|
|
|
updateTable({
|
|
|
...currentTable,
|
|
|
table: {
|
|
|
...currentTable?.table,
|
|
|
...newInfo,
|
|
|
+ langName: "",
|
|
|
+ langDescription: "",
|
|
|
},
|
|
|
});
|
|
|
return true;
|
|
@@ -387,7 +388,7 @@ export default function index() {
|
|
|
dataIndex: "type",
|
|
|
valueType: "select",
|
|
|
valueEnum: {
|
|
|
- 1: "业务表",
|
|
|
+ 3: "业务表",
|
|
|
2: "流程表",
|
|
|
},
|
|
|
editable: false,
|
|
@@ -425,7 +426,14 @@ export default function index() {
|
|
|
);
|
|
|
},
|
|
|
renderFormItem: (_schema, config, form) => {
|
|
|
- return <LangInput style={{width: 200}} onChange={(val) => form.setFieldValue("langNameList", val)}/>;
|
|
|
+ return (
|
|
|
+ <LangInput
|
|
|
+ style={{ width: 200 }}
|
|
|
+ onChange={(val) =>
|
|
|
+ form.setFieldValue("langNameList", val)
|
|
|
+ }
|
|
|
+ />
|
|
|
+ );
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -438,10 +446,17 @@ export default function index() {
|
|
|
)?.value || "-"
|
|
|
);
|
|
|
},
|
|
|
- renderFormItem: () => {
|
|
|
+ renderFormItem: (_schema, config, form) => {
|
|
|
return (
|
|
|
<>
|
|
|
- <LangInputTextarea />
|
|
|
+ <LangInputTextarea
|
|
|
+ onChange={(val) =>
|
|
|
+ form.setFieldValue(
|
|
|
+ "langDescriptionList",
|
|
|
+ val
|
|
|
+ )
|
|
|
+ }
|
|
|
+ />
|
|
|
</>
|
|
|
);
|
|
|
},
|