修改按钮权限代码bug
parent
b9a2be1eb9
commit
e9114b8dc3
|
|
@ -54,7 +54,7 @@ function List(props) {
|
|||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{props.permission("xmsh-xgf-yjxmbasq-btn-xz" || props.xzbtn) && (
|
||||
{props.permission(props.xzbtn || "xmsh-xgf-yjxmbasq-btn-xz") && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={<AddIcon />}
|
||||
|
|
@ -85,7 +85,7 @@ function List(props) {
|
|||
width: 200,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("xmsh-xgf-yjxmbasq-btn-ck" || props.ckbtn) && (
|
||||
{props.permission(props.ckbtn || "xmsh-xgf-yjxmbasq-btn-ck") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -97,7 +97,7 @@ function List(props) {
|
|||
)}
|
||||
{record.projectStatus === 6 && (
|
||||
<>
|
||||
{props.permission("xmsh-xgf-yjxmbasq-btn-xg" || props.xgbtn) && (
|
||||
{props.permission(props.xgbtn || "xmsh-xgf-yjxmbasq-btn-xg") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -107,7 +107,7 @@ function List(props) {
|
|||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("xmsh-xgf-yjxmbasq-btn-ckbhyy" || props.ckbhyybtn) && (
|
||||
{props.permission(props.ckbhyybtn || "xmsh-xgf-yjxmbasq-btn-ckbhyy") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ function List(props) {
|
|||
width: 350,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("xmsh-gfd-xmbaxx-btn-ck" || props.ckbtn) && (
|
||||
{props.permission(props.ckbtn || "xmsh-gfd-xmbaxx-btn-ck") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -73,7 +73,7 @@ function List(props) {
|
|||
>
|
||||
项目人员变更
|
||||
</Button>
|
||||
{props.permission("xmsh-gfd-xmbaxx-btn-rybgjl" || props.rybgjlbtn) && (
|
||||
{props.permission(props.rybgjlbtn || "xmsh-gfd-xmbaxx-btn-rybgjl") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue