Commit ba6fcc25 by zhaochengxiang

smartbi增加字段选择

parent 4370fbc6
......@@ -12,7 +12,7 @@ const WorksheetModal = (props) => {
const [ form ] = Form.useForm();
useEffect(() => {
if (visible && type==='tableau') {
if (visible) {
form?.setFieldsValue({ tableName: metadata?.tableName, columnNames: metadata?.columnItems?.map(item => item.metadataColumnName) });
}
}, [visible, type])
......@@ -105,8 +105,6 @@ const WorksheetModal = (props) => {
>
<Input />
</Form.Item>
{
type === 'tableau' && <React.Fragment>
<Form.Item
label="字段"
name="columnNames"
......@@ -135,8 +133,6 @@ const WorksheetModal = (props) => {
>
<Input />
</Form.Item>
</React.Fragment>
}
</Form>
</Modal>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment