From 99a011722d9a88494afd63e720095b9dd2a8a8c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Sat, 12 Oct 2024 17:22:15 +0800
Subject: [PATCH] =?UTF-8?q?custom/custom/=E9=B9=B0=E5=9B=BE=E8=BD=AF?=
=?UTF-8?q?=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../lingyue/historyVouncherSummary/index.js | 22 +++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/custom-pages/lingyue/historyVouncherSummary/index.js b/pc4mobx/hrmSalary/pages/custom-pages/lingyue/historyVouncherSummary/index.js
index 657e1bf2..bf91c023 100644
--- a/pc4mobx/hrmSalary/pages/custom-pages/lingyue/historyVouncherSummary/index.js
+++ b/pc4mobx/hrmSalary/pages/custom-pages/lingyue/historyVouncherSummary/index.js
@@ -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 => (
+ }
+ overlayStyle={{ width: 250, height: 300, overflow: "auto", wordWrap: "break-word" }}>
+ 300) ? txt.slice(0, 300) + "..." : txt }}/>
+ )
+ };
+ }
+ return { ...k };
+ }),
+ {
dataIndex: "options", title: getLabel(111, "操作"), width: 160,
render: (__, record) => (
this.setState({