Merge branch 'master' into custom/鲁控数字-薪资核算列表页面批量编辑
This commit is contained in:
commit
e944adbe0d
|
|
@ -54,6 +54,12 @@
|
|||
<div class="content unicode" style="display: block;">
|
||||
<ul class="icon_lists dib-box">
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont"></span>
|
||||
<div class="name">批量更新</div>
|
||||
<div class="code-name">&#xe696;</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont"></span>
|
||||
<div class="name">全部</div>
|
||||
|
|
@ -138,9 +144,9 @@
|
|||
<pre><code class="language-css"
|
||||
>@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');
|
||||
}
|
||||
</code></pre>
|
||||
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
|
||||
|
|
@ -166,6 +172,15 @@
|
|||
<div class="content font-class">
|
||||
<ul class="icon_lists dib-box">
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont icon-pilianggengxin"></span>
|
||||
<div class="name">
|
||||
批量更新
|
||||
</div>
|
||||
<div class="code-name">.icon-pilianggengxin
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont icon-quanbu"></span>
|
||||
<div class="name">
|
||||
|
|
@ -292,6 +307,14 @@
|
|||
<div class="content symbol">
|
||||
<ul class="icon_lists dib-box">
|
||||
|
||||
<li class="dib">
|
||||
<svg class="icon svg-icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-pilianggengxin"></use>
|
||||
</svg>
|
||||
<div class="name">批量更新</div>
|
||||
<div class="code-name">#icon-pilianggengxin</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<svg class="icon svg-icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-quanbu"></use>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
@font-face {
|
||||
font-family: "iconfont"; /* Project id 4257468 */
|
||||
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 {
|
||||
|
|
@ -13,6 +13,10 @@
|
|||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-pilianggengxin:before {
|
||||
content: "\e696";
|
||||
}
|
||||
|
||||
.icon-quanbu:before {
|
||||
content: "\e603";
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -5,6 +5,13 @@
|
|||
"css_prefix_text": "icon-",
|
||||
"description": "",
|
||||
"glyphs": [
|
||||
{
|
||||
"icon_id": "2442443",
|
||||
"name": "批量更新",
|
||||
"font_class": "pilianggengxin",
|
||||
"unicode": "e696",
|
||||
"unicode_decimal": 59030
|
||||
},
|
||||
{
|
||||
"icon_id": "5925304",
|
||||
"name": "全部",
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -86,7 +86,7 @@
|
|||
|
||||
.expand-th:hover {
|
||||
.toogle-lock-tool {
|
||||
width: 30%;
|
||||
width: 37%;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -118,7 +118,7 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
& > :first-child {
|
||||
& > :not(:last-child) {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,10 @@ const CalcExplainFooter: FunctionComponent<Props> = (props) => {
|
|||
<UnlockOutlined/>
|
||||
<span>{i18n["当前状态未锁定,点击锁定"]}</span>
|
||||
</div>
|
||||
<div className={styles["icon-item"]}>
|
||||
<Icon type="icon-pilianggengxin"/>
|
||||
<span>{i18n["批量更新"]}</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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> = (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> = (props) => {
|
|||
onClick={() => handleToggleSalaryItemVal(dataIndex as string, "LOCK")}/>
|
||||
<Icon type="icon-piliangjiesuo" title={i18n["点击解锁所有锁定的项目值"]}
|
||||
onClick={() => handleToggleSalaryItemVal(dataIndex as string, "UNLOCK")}/>
|
||||
<Icon type="icon-pilianggengxin" title={i18n["批量更新"]}
|
||||
onClick={() => handleToggleSalaryItemVal(dataIndex as string, "BATCHUPDATE", {
|
||||
pattern, salaryItemName: title, dataType
|
||||
})}/>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue