Commit bd6984d0 authored by 涂伟's avatar 涂伟

fix: 'mobile功能配置新增角标API配置'

parent d7e3bf7e
Pipeline #86281 passed with stages
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Form, Input, Button, Row, Col } from 'antd'; import { Form, Input, Button, Row, Col, Tooltip } from 'antd';
import {
QuestionCircleOutlined
} from '@ant-design/icons';
import styles from './addForm.less'; import styles from './addForm.less';
import PicturesWall from '@/components/Upload/index'; import PicturesWall from '@/components/Upload/index';
import CheckList from './checkBox'; import CheckList from './checkBox';
...@@ -38,6 +41,13 @@ const AddForm = props => { ...@@ -38,6 +41,13 @@ const AddForm = props => {
const finish = () => { const finish = () => {
submit(); submit();
}; };
const appNumHtml = (
<div>
角标消息<Tooltip placement="top" title="路径前面不用斜杠 / ,接口api必须按照标准.net Core结构返回,返回的data数据必须是int" arrowPointAtCenter>
<span className={styles.serchIcon}><QuestionCircleOutlined /></span>
</Tooltip>
</div>
)
useEffect(() => {}, [nodeObj, addType]); useEffect(() => {}, [nodeObj, addType]);
return ( return (
<div> <div>
...@@ -183,6 +193,12 @@ const AddForm = props => { ...@@ -183,6 +193,12 @@ const AddForm = props => {
<PicturesWall picType="androidMenu" /> <PicturesWall picType="androidMenu" />
</Item> </Item>
)} )}
<Item
label={appNumHtml}
name="tipFrom"
>
<Input style={{ width: '100%' }} placeholder="请输入接口API"/>
</Item>
<Item <Item
label="功能路径" label="功能路径"
name="pageUrl" name="pageUrl"
......
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Form, Input, Button, Row, Col, notification, Checkbox } from 'antd'; import { Form, Input, Button, Row, Col, notification, Checkbox, Tooltip } from 'antd';
import classnames from 'classnames'; import classnames from 'classnames';
import styles from './addForm.less'; import styles from './addForm.less';
import PicturesWall from '@/components/Upload/index'; import PicturesWall from '@/components/Upload/index';
import ParmarModal from './ParmarModal'; import ParmarModal from './ParmarModal';
import {
QuestionCircleOutlined
} from '@ant-design/icons';
import CheckList from './checkBox'; import CheckList from './checkBox';
const { Item } = Form; const { Item } = Form;
const EditForm = props => { const EditForm = props => {
const { submitCallback, nodeType, info, inf, checkList, valueCallback = () => {} } = props; const { submitCallback, nodeType, info, inf, checkList, valueCallback = () => { } } = props;
// 处理pageUrl回显 // 处理pageUrl回显
if (info.product) { if (info.product) {
// if(info.product === 'flutter') { // if(info.product === 'flutter') {
...@@ -274,6 +277,13 @@ const EditForm = props => { ...@@ -274,6 +277,13 @@ const EditForm = props => {
} }
setPlainOptions(list); setPlainOptions(list);
}; };
const appNumHtml = (
<div>
角标消息<Tooltip placement="top" title="路径前面不用斜杠 / ,接口api必须按照标准.net Core结构返回,返回的data数据必须是int" arrowPointAtCenter>
<span className={styles.serchIcon}><QuestionCircleOutlined /></span>
</Tooltip>
</div>
)
return ( return (
<div className={classnames({ [styles.divbox]: true })}> <div className={classnames({ [styles.divbox]: true })}>
{(nodeType === 1 || nodeType === 2) && ( {(nodeType === 1 || nodeType === 2) && (
...@@ -406,6 +416,12 @@ const EditForm = props => { ...@@ -406,6 +416,12 @@ const EditForm = props => {
<PicturesWall picType="androidMenu" style={{ width: '100%' }} /> <PicturesWall picType="androidMenu" style={{ width: '100%' }} />
</Item> </Item>
)} )}
<Item
label={appNumHtml}
name="tipFrom"
>
<Input style={{ width: '100%' }} placeholder="请输入接口API"/>
</Item>
<Item <Item
name="pageUrl" name="pageUrl"
label="功能路径" label="功能路径"
......
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