Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CmsPetrolPay
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
11
Issues
11
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giang Tran
CmsPetrolPay
Commits
24ed46c3
Commit
24ed46c3
authored
Aug 23, 2024
by
tdgiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
6898a96c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
Index.js
src/app/views/GasStation/Index.js
+6
-3
detail.js
src/app/views/GasStation/detail.js
+3
-3
No files found.
src/app/views/GasStation/Index.js
View file @
24ed46c3
...
...
@@ -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,
})
}
...
...
src/app/views/GasStation/detail.js
View file @
24ed46c3
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment