Commit ba6fcc25 by zhaochengxiang

smartbi增加字段选择

parent 4370fbc6
...@@ -12,7 +12,7 @@ const WorksheetModal = (props) => { ...@@ -12,7 +12,7 @@ const WorksheetModal = (props) => {
const [ form ] = Form.useForm(); const [ form ] = Form.useForm();
useEffect(() => { useEffect(() => {
if (visible && type==='tableau') { if (visible) {
form?.setFieldsValue({ tableName: metadata?.tableName, columnNames: metadata?.columnItems?.map(item => item.metadataColumnName) }); form?.setFieldsValue({ tableName: metadata?.tableName, columnNames: metadata?.columnItems?.map(item => item.metadataColumnName) });
} }
}, [visible, type]) }, [visible, type])
...@@ -105,8 +105,6 @@ const WorksheetModal = (props) => { ...@@ -105,8 +105,6 @@ const WorksheetModal = (props) => {
> >
<Input /> <Input />
</Form.Item> </Form.Item>
{
type === 'tableau' && <React.Fragment>
<Form.Item <Form.Item
label="字段" label="字段"
name="columnNames" name="columnNames"
...@@ -135,8 +133,6 @@ const WorksheetModal = (props) => { ...@@ -135,8 +133,6 @@ const WorksheetModal = (props) => {
> >
<Input /> <Input />
</Form.Item> </Form.Item>
</React.Fragment>
}
</Form> </Form>
</Modal> </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