custom/custom/鹰图软件
This commit is contained in:
parent
2f8d5cc74a
commit
99a011722d
|
|
@ -10,12 +10,12 @@
|
|||
import React, { Component } from "react";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { WeaDatePicker, WeaFormItem, WeaInputSearch, WeaLocaleProvider, WeaSelect, WeaTable, WeaTop } from "ecCom";
|
||||
import { message, Modal } from "antd";
|
||||
import HistoryVouncherDetail from "./historyVouncherDetail";
|
||||
import * as API from "../../../../apis/custom-apis/lingyue";
|
||||
import { deleteHistoryVoucher } from "../../../../apis/custom-apis/lingyue";
|
||||
import moment from "moment";
|
||||
import { commonEnumList } from "../../../../apis/ruleconfig";
|
||||
import HistoryVouncherDetail from "./historyVouncherDetail";
|
||||
import { message, Modal, Tooltip } from "antd";
|
||||
import moment from "moment";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
|
|
@ -56,7 +56,21 @@ class Index extends Component {
|
|||
this.setState({
|
||||
dataSource, pageInfo: { ...pageInfo, current, pageSize, total },
|
||||
columns: [
|
||||
...columns, {
|
||||
..._.map(columns, k => {
|
||||
if (k.dataIndex === "errorMsg") {
|
||||
return {
|
||||
...k,
|
||||
render: txt => (
|
||||
<Tooltip placement="left" title={<span dangerouslySetInnerHTML={{ __html: txt }}/>}
|
||||
overlayStyle={{ width: 250, height: 300, overflow: "auto", wordWrap: "break-word" }}>
|
||||
<span
|
||||
dangerouslySetInnerHTML={{ __html: (txt && txt.length > 300) ? txt.slice(0, 300) + "..." : txt }}/>
|
||||
</Tooltip>)
|
||||
};
|
||||
}
|
||||
return { ...k };
|
||||
}),
|
||||
{
|
||||
dataIndex: "options", title: getLabel(111, "操作"), width: 160,
|
||||
render: (__, record) => (<React.Fragment>
|
||||
<a href="javascript:void(0);" onClick={() => this.setState({
|
||||
|
|
|
|||
Loading…
Reference in New Issue