Commit 24ed46c3 by tdgiang

update code

parent 6898a96c
...@@ -40,7 +40,10 @@ const ToolNotificate = (props) => { ...@@ -40,7 +40,10 @@ const ToolNotificate = (props) => {
const handeChangeActive = async (id, status_id) => { const handeChangeActive = async (id, status_id) => {
props.showLoading() props.showLoading()
const res = await changeStatusGasStation({ idGuid: id, status_id }) const res = await changeStatusGasStation({
idGuid: id,
status: status_id,
})
props.hideLoading() props.hideLoading()
if (res.data.code == 200) { if (res.data.code == 200) {
getData() getData()
...@@ -142,12 +145,12 @@ const ToolNotificate = (props) => { ...@@ -142,12 +145,12 @@ const ToolNotificate = (props) => {
if (item.status == 1) { if (item.status == 1) {
res = await changeStatusStore({ res = await changeStatusStore({
id: item.id, id: item.id,
status_id: 5, status: 5,
}) })
} else { } else {
res = await changeStatusStore({ res = await changeStatusStore({
id: item.id, id: item.id,
status_id: 1, status: 1,
}) })
} }
......
...@@ -162,7 +162,7 @@ const SimpleForm = (props) => { ...@@ -162,7 +162,7 @@ const SimpleForm = (props) => {
props.showLoading() props.showLoading()
const res = await changeStatusStore({ const res = await changeStatusStore({
id: location.state, id: location.state,
status_id: status, status: status,
}) })
props.hideLoading() props.hideLoading()
if (res.data.code == 200) { if (res.data.code == 200) {
...@@ -192,7 +192,7 @@ const SimpleForm = (props) => { ...@@ -192,7 +192,7 @@ const SimpleForm = (props) => {
props.showLoading() props.showLoading()
const res = await changeStatusStore({ const res = await changeStatusStore({
id: location.state, id: location.state,
status_id: 1, status: 1,
expired: forever ? null : convertDate(date), expired: forever ? null : convertDate(date),
}) })
props.hideLoading() props.hideLoading()
...@@ -213,7 +213,7 @@ const SimpleForm = (props) => { ...@@ -213,7 +213,7 @@ const SimpleForm = (props) => {
props.showLoading() props.showLoading()
const res = await changeStatusStore({ const res = await changeStatusStore({
id: location.state, id: location.state,
status_id: 4, status: 4,
reason: reason, reason: reason,
}) })
props.hideLoading() 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