|
@ -244,7 +244,11 @@ function BusinessConf(props) { |
|
|
setGetMessage({}) |
|
|
setGetMessage({}) |
|
|
} |
|
|
} |
|
|
//编辑 |
|
|
//编辑 |
|
|
const [geteditData, setGetEditData] = useState({}) |
|
|
|
|
|
|
|
|
const [geteditData, setGetEditData] = useState({ |
|
|
|
|
|
area_id: "0", |
|
|
|
|
|
operator_id: "0", |
|
|
|
|
|
item_id: '' |
|
|
|
|
|
}) |
|
|
const CheckApplyBtn = (record) => { |
|
|
const CheckApplyBtn = (record) => { |
|
|
setGetAdminId(record) |
|
|
setGetAdminId(record) |
|
|
setEditVisible(true) |
|
|
setEditVisible(true) |
|
@ -386,8 +390,6 @@ function BusinessConf(props) { |
|
|
setGetMerchantDataName(res.data) |
|
|
setGetMerchantDataName(res.data) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
console.log(getConfiguration); |
|
|
|
|
|
console.log(getVisible); |
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
if (getConfiguration === 1 || getConfiguration === 6 || getConfiguration === 7) { |
|
|
if (getConfiguration === 1 || getConfiguration === 6 || getConfiguration === 7) { |
|
|
setGetVIsible(false) |
|
|
setGetVIsible(false) |
|
@ -835,8 +837,9 @@ function BusinessConf(props) { |
|
|
setGetMessage(option); |
|
|
setGetMessage(option); |
|
|
setGetConfiguration(v) |
|
|
setGetConfiguration(v) |
|
|
setGetEditData( |
|
|
setGetEditData( |
|
|
Object.assign({}, geteditData, { item_id: v }) |
|
|
|
|
|
|
|
|
Object.assign({}, geteditData, { item_id: v, area_id: "0", operator_id: "0" }) |
|
|
); |
|
|
); |
|
|
|
|
|
console.log(geteditData); |
|
|
}} |
|
|
}} |
|
|
fieldNames={{ |
|
|
fieldNames={{ |
|
|
label: 'type' |
|
|
label: 'type' |
|
|