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

20541 派遣管理/毕业派遣信息管理/派遣信息批量打印,2013010260 模块都勾了的 点击详情 跳转空白

上级 7477923c
......@@ -7,28 +7,28 @@ import React, { Component } from 'react';
import md5 from 'js-md5';
import FormModal from './FormModal';
import {
message,
Icon,
Input,
InputNumber,
Button,
Cascader,
Checkbox,
Col,
DatePicker,
Form,
Icon,
Input,
InputNumber,
message,
Radio,
Switch,
Row,
Col,
Select,
Form,
Switch,
Table,
Cascader,
} from 'antd';
import UUID from 'react-native-uuid';
import QRCode from 'qrcode.react';
import { EditorState, Editor } from 'draft-js';
import { Editor } from 'draft-js';
import MyBlockRenderer from '../App/MyBlockRender';
import CronEditor from 'antd-cron-editor';
import { List as MobileList, Flex, Card, Switch as MobileSwitch } from 'antd-mobile';
import { Card, Flex, List as MobileList, Switch as MobileSwitch } from 'antd-mobile';
import ReactEcharts from 'echarts-for-react';
import ZdyTable from '../Table/index';
import { connect } from 'dva';
......@@ -45,7 +45,7 @@ import router from 'umi/router';
import TableList from '../libs/TableList';
import styles from './style.less';
import config from '@/webPublic/one_stop_public/config';
import { isEmpty, isNaN, cloneDeep } from 'lodash';
import { cloneDeep, isEmpty, isNaN } from 'lodash';
import { queryApiActionPath } from '../utils/queryConfig';
import { extend } from 'umi-request';
import Highlighter from 'react-highlight-words';
......@@ -137,6 +137,7 @@ export default class tableCom extends Component {
};
this.excludeKeys = ['defaultValues', ''];
}
closeModal = (fk, callback) => {
const { dispatch } = this.props;
const x = this.props.DataColumn.isShowModal;
......@@ -903,18 +904,26 @@ export default class tableCom extends Component {
mode: 'cors',
...options,
});
if (url.indexOf('localhost') > -1) {
url = url.replace(window.location.origin, window.specialImportantSystemConfig.gateWayPort);
}
umiRequest(url, {
data: requestParams,
method: method,
requestType: 'form',
}).then((data) => {
if (!data || !Array.isArray(data)) {
data = [];
}
const { reqUrls } = this.state;
reqUrls[url].data = data;
if(reqUrls && reqUrls[url]){
reqUrls[url].data = data;
}
this.setState({ res: data, reqUrls }, () => {
if (callback) {
if (json.optionType && json.optionType == 'func') {
const res = callback(data);
// console.error(res)
if (res != null && !(typeof res === 'function')) {
this.setState({ options: res, selectDis: false }, () => {
if (orgCallback) orgCallback();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论