From b861cc66aef061f5cca28df0417556c27be48e6f Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 13 Aug 2024 14:27:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BA=A7=E5=93=81=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91:=20=E4=BF=9D=E5=AD=98=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=A4=9A=E8=AF=AD=E7=A7=8D=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Detail/ProductInfo.jsx | 3 ++- src/views/products/Detail/ProductInfoLgc.jsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/products/Detail/ProductInfo.jsx b/src/views/products/Detail/ProductInfo.jsx index 81713cd..0c1f4c1 100644 --- a/src/views/products/Detail/ProductInfo.jsx +++ b/src/views/products/Detail/ProductInfo.jsx @@ -26,8 +26,9 @@ const ProductInfo = ({ ...props }) => { const [editablePerm, setEditablePerm] = useState(false); const [infoEditable, setInfoEditable] = useState(false); const [priceEditable, setPriceEditable] = useState(false); - const topPerm = isPermitted(PERM_PRODUCTS_MANAGEMENT); // 高级权限 useEffect(() => { + const topPerm = isPermitted(PERM_PRODUCTS_MANAGEMENT); // 高级权限 + const hasHT = (editingProduct?.info?.htid || 0) > 0; // const hasAuditPer = isPermitted(PERM_PRODUCTS_OFFER_AUDIT); const hasEditPer = isPermitted(PERM_PRODUCTS_OFFER_PUT); diff --git a/src/views/products/Detail/ProductInfoLgc.jsx b/src/views/products/Detail/ProductInfoLgc.jsx index 9a8c13a..4fd4685 100644 --- a/src/views/products/Detail/ProductInfoLgc.jsx +++ b/src/views/products/Detail/ProductInfoLgc.jsx @@ -24,7 +24,7 @@ const ProductInfoLgc = ({ editable, formInstance, ...props }) => { closable: false, // isPermitted(PERM_PRODUCTS_MANAGEMENT) ? true : false, forceRender: true, children: ( - +