diff --git a/src/components/UseCouponAddEdit/index.jsx b/src/components/UseCouponAddEdit/index.jsx index e441d529..23ab3dee 100644 --- a/src/components/UseCouponAddEdit/index.jsx +++ b/src/components/UseCouponAddEdit/index.jsx @@ -217,6 +217,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => { productType: 1, checkedProduct: [], KeyPcType: sessionStorage.getItem("KeyPcType"), + isLoadingBtn: false, }); // 基础信息 @@ -602,6 +603,9 @@ const UseCouponAddEdit = forwardRef((props, ref) => { }; const onAuditSubmit = () => { + setState({ + isLoadingBtn: true, + }); // 3新增 1编辑 if (state.KeyPcType === "1") { let param = { @@ -658,6 +662,9 @@ const UseCouponAddEdit = forwardRef((props, ref) => { console.log("编辑 大提交 =>", param); editCoupon(editData.id, param).then((res) => { + setState({ + isLoadingBtn: false, + }); handelResponse( res, (req, msg) => { @@ -714,6 +721,9 @@ const UseCouponAddEdit = forwardRef((props, ref) => { }); } addCoupon(param).then((res) => { + setState({ + isLoadingBtn: false, + }); handelResponse( res, (req, msg) => { @@ -1115,6 +1125,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => {