diff --git a/src/pages/SystemMgm/BusinessConfig/BusinessConf/loadable.jsx b/src/pages/SystemMgm/BusinessConfig/BusinessConf/loadable.jsx index 1a5bc30..7a09e39 100644 --- a/src/pages/SystemMgm/BusinessConfig/BusinessConf/loadable.jsx +++ b/src/pages/SystemMgm/BusinessConfig/BusinessConf/loadable.jsx @@ -67,7 +67,7 @@ function BusinessConf(props) { setGetMessage(option); setGetConfiguration(v) setAddManage({ - ...addManage, item_name: v , + ...addManage, item_name: v, area_name: '0', operator_name: "0", }) @@ -139,7 +139,7 @@ function BusinessConf(props) { }) getData(formData) setGetConfiguration(0) - }else{ + } else { message.error(res.message) } }) @@ -244,7 +244,11 @@ function BusinessConf(props) { setGetMessage({}) } //编辑 - const [geteditData, setGetEditData] = useState({}) + const [geteditData, setGetEditData] = useState({ + area_id: "0", + operator_id: "0", + item_id: '' + }) const CheckApplyBtn = (record) => { setGetAdminId(record) setEditVisible(true) @@ -386,8 +390,6 @@ function BusinessConf(props) { setGetMerchantDataName(res.data) }) } - console.log(getConfiguration); - console.log(getVisible); useEffect(() => { if (getConfiguration === 1 || getConfiguration === 6 || getConfiguration === 7) { setGetVIsible(false) @@ -588,7 +590,7 @@ function BusinessConf(props) { : '' } -
+
{/* {getMessage.message} */}
@@ -776,7 +778,7 @@ function BusinessConf(props) { : '' } -
+
{/* {getMessage.message} */}
@@ -835,8 +837,9 @@ function BusinessConf(props) { setGetMessage(option); setGetConfiguration(v) setGetEditData( - Object.assign({}, geteditData, { item_id: v }) + Object.assign({}, geteditData, { item_id: v, area_id: "0", operator_id: "0" }) ); + console.log(geteditData); }} fieldNames={{ label: 'type' @@ -954,7 +957,7 @@ function BusinessConf(props) { : '' } -
+
{/* {getMessage.message} */}