提交 e820e98b authored 作者: 钟是志's avatar 钟是志

优化代码

上级 f51f0bd1
...@@ -6,6 +6,8 @@ import Audit from '@/webPublic/FormInsertDiy/AffairPage/AuditPage/index.js'; // ...@@ -6,6 +6,8 @@ import Audit from '@/webPublic/FormInsertDiy/AffairPage/AuditPage/index.js'; //
import Detail from '@/webPublic/FormInsertDiy/AffairPage/Detail'; //详情 import Detail from '@/webPublic/FormInsertDiy/AffairPage/Detail'; //详情
import { Modal, message, notification, Popconfirm } from 'antd'; import { Modal, message, notification, Popconfirm } from 'antd';
import { connect } from 'dva'; import { connect } from 'dva';
import config from '@/config/config';
import { getToken } from '@/webPublic/one_stop_public/utils/getToken';
export const CreateC = createContext({ export const CreateC = createContext({
routerConfig: {}, routerConfig: {},
...@@ -49,7 +51,9 @@ function ActiveMenuComponent({ routerConfig, ...otherProps }) { ...@@ -49,7 +51,9 @@ function ActiveMenuComponent({ routerConfig, ...otherProps }) {
Res = <CheckRecord workId={appId} />; Res = <CheckRecord workId={appId} />;
break; break;
case 'Apply': // 申请类 case 'Apply': // 申请类
Res = <Apply workId={appId} {...otherProps} />; Res = <Apply workId={appId}
{...otherProps}
/>;
break; break;
case 'Audit': // 审批类 case 'Audit': // 审批类
Res = <Audit workId={appId} {...otherProps} />; Res = <Audit workId={appId} {...otherProps} />;
......
...@@ -34,6 +34,7 @@ export default function ActiveMenuComponent2({ ...@@ -34,6 +34,7 @@ export default function ActiveMenuComponent2({
case "Apply": // 申请类 case "Apply": // 申请类
return <Apply return <Apply
iframeUrlDiy={config.gateWayPort + `/portal/#/showApplyIframe?id=${appId}&hasSingle=false&token=${getToken()}`} iframeUrlDiy={config.gateWayPort + `/portal/#/showApplyIframe?id=${appId}&hasSingle=false&token=${getToken()}`}
// http://localhost:8022/portal/#/showApplyIframe?id=1557980082801213440&hasSingle=false&token=6c994ce4-e9a0-47ff-9223-21877d116265
iframeHeight={200} iframeHeight={200}
workId={appId} workId={appId}
{...otherProps} {...otherProps}
......
...@@ -11,7 +11,7 @@ import { message, Button, Modal, Icon } from 'antd'; ...@@ -11,7 +11,7 @@ import { message, Button, Modal, Icon } from 'antd';
import config from '@/webPublic/one_stop_public/config'; import config from '@/webPublic/one_stop_public/config';
import reqwest from 'reqwest'; import reqwest from 'reqwest';
import { getToken, getUserInfo } from '@/webPublic/one_stop_public/utils/token'; import { getToken, getUserInfo } from '@/webPublic/one_stop_public/utils/token';
import styles from './mobileSign.less'; import styles from './styles.less';
import { saveSign, dataURLtoBlob, blobToFile } from './Split'; import { saveSign, dataURLtoBlob, blobToFile } from './Split';
export default class Signature extends Component { export default class Signature extends Component {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论