custom/custom/鹰图软件

This commit is contained in:
黎永顺 2024-10-12 17:22:15 +08:00
parent 2f8d5cc74a
commit 99a011722d
1 changed files with 18 additions and 4 deletions

View File

@ -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({