diff --git a/public/css/iconfont/demo_index.html b/public/css/iconfont/demo_index.html
index 83eb5ca..aa55039 100644
--- a/public/css/iconfont/demo_index.html
+++ b/public/css/iconfont/demo_index.html
@@ -54,6 +54,12 @@
+ -
+
+
批量更新
+ 
+
+
-
全部
@@ -138,9 +144,9 @@
@font-face {
font-family: 'iconfont';
- src: url('iconfont.woff2?t=1698914262517') format('woff2'),
- url('iconfont.woff?t=1698914262517') format('woff'),
- url('iconfont.ttf?t=1698914262517') format('truetype');
+ src: url('iconfont.woff2?t=1701833672416') format('woff2'),
+ url('iconfont.woff?t=1701833672416') format('woff'),
+ url('iconfont.ttf?t=1701833672416') format('truetype');
}
第二步:定义使用 iconfont 的样式
@@ -166,6 +172,15 @@
+ -
+
+
+ 批量更新
+
+ .icon-pilianggengxin
+
+
+
-
@@ -292,6 +307,14 @@
+ -
+
+
批量更新
+ #icon-pilianggengxin
+
+
-
+
+
+ {i18n["批量更新"]}
+
);
};
diff --git a/src/pages/calcTable/customTableTitle.tsx b/src/pages/calcTable/customTableTitle.tsx
index 3931d39..cdcad41 100644
--- a/src/pages/calcTable/customTableTitle.tsx
+++ b/src/pages/calcTable/customTableTitle.tsx
@@ -13,20 +13,22 @@ interface OwnProps {
dataIndex?: string;
title?: string;
lockStatus?: string;
+ dataType?: string;
onHandleFormulatd?: any;
i18n?: any;
+ pattern?: number;
}
type Props = OwnProps;
const customTableTitle: FunctionComponent = (props) => {
- const { dataIndex, title, lockStatus, onHandleFormulatd, i18n = {} } = props;
+ const { dataIndex, title, lockStatus, onHandleFormulatd, i18n = {}, pattern, dataType } = props;
- const handleToggleSalaryItemVal = (salaryItemId: string, type: string) => {
+ const handleToggleSalaryItemVal = (salaryItemId: string, type: string, updateParams: any = {}) => {
window.parent.postMessage(
{
type: "turn",
- payload: { id: "LOCKING", params: { lockType: type, salaryItemId } }
+ payload: { id: "LOCKING", params: { lockType: type, salaryItemId, ...updateParams } }
},
"*"
);
@@ -42,6 +44,10 @@ const customTableTitle: FunctionComponent = (props) => {
onClick={() => handleToggleSalaryItemVal(dataIndex as string, "LOCK")}/>
handleToggleSalaryItemVal(dataIndex as string, "UNLOCK")}/>
+ handleToggleSalaryItemVal(dataIndex as string, "BATCHUPDATE", {
+ pattern, salaryItemName: title, dataType
+ })}/>
}