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

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

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