release/2.19.1.2503.01-业务线个税
This commit is contained in:
parent
5f95bab79d
commit
ec76b9cdca
|
|
@ -69,7 +69,7 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
|
|||
width: 185,
|
||||
fixed: "right",
|
||||
render: (__: string, record: any) => {
|
||||
const { billStatus, customOptAuth } = record;
|
||||
const { billStatus, customOptAuth, qzOpts = [] } = record;
|
||||
const items: MenuProps["items"] = [
|
||||
{
|
||||
key: "DeleteList",
|
||||
|
|
@ -134,6 +134,7 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
|
|||
<Dropdown
|
||||
menu={{
|
||||
items: [
|
||||
..._.map(qzOpts, (o) => ({ ...o, onClick: () => postMessageToParent(o.key, record) })),
|
||||
{
|
||||
key: "Log",
|
||||
label: i18n?.["操作日志"],
|
||||
|
|
@ -517,4 +518,4 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
|
|||
|
||||
const postMessageToParent = (type: string, params: any) => {
|
||||
window.parent.postMessage({ type: "turn", payload: { id: type, params } }, "*");
|
||||
};
|
||||
};
|
||||
Loading…
Reference in New Issue