Commit 24ed46c3 by tdgiang

update code

parent 6898a96c
......@@ -40,7 +40,10 @@ const ToolNotificate = (props) => {
const handeChangeActive = async (id, status_id) => {
props.showLoading()
const res = await changeStatusGasStation({ idGuid: id, status_id })
const res = await changeStatusGasStation({
idGuid: id,
status: status_id,
})
props.hideLoading()
if (res.data.code == 200) {
getData()
......@@ -142,12 +145,12 @@ const ToolNotificate = (props) => {
if (item.status == 1) {
res = await changeStatusStore({
id: item.id,
status_id: 5,
status: 5,
})
} else {
res = await changeStatusStore({
id: item.id,
status_id: 1,
status: 1,
})
}
......
......@@ -162,7 +162,7 @@ const SimpleForm = (props) => {
props.showLoading()
const res = await changeStatusStore({
id: location.state,
status_id: status,
status: status,
})
props.hideLoading()
if (res.data.code == 200) {
......@@ -192,7 +192,7 @@ const SimpleForm = (props) => {
props.showLoading()
const res = await changeStatusStore({
id: location.state,
status_id: 1,
status: 1,
expired: forever ? null : convertDate(date),
})
props.hideLoading()
......@@ -213,7 +213,7 @@ const SimpleForm = (props) => {
props.showLoading()
const res = await changeStatusStore({
id: location.state,
status_id: 4,
status: 4,
reason: reason,
})
props.hideLoading()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment