Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
wanli
evm-store
Commits
51fbe51a
Commit
51fbe51a
authored
Mar 24, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
19e3c344
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
frontend/src/api/app-store.js
frontend/src/api/app-store.js
+5
-6
frontend/src/views/app-store/device.vue
frontend/src/views/app-store/device.vue
+2
-1
No files found.
frontend/src/api/app-store.js
View file @
51fbe51a
...
...
@@ -125,11 +125,10 @@ export function addDevice(params) {
});
}
export
function
deleteDevice
(
params
)
{
export
function
deleteDevice
(
id
)
{
return
request
({
url
:
"
/api/v1/evm_store/device/delete
"
,
method
:
"
post
"
,
data
:
params
,
url
:
`/api/v1/evm_store/device/delete/
${
id
}
`
,
method
:
"
post
"
});
}
...
...
@@ -141,9 +140,9 @@ export function getDeviceList(params) {
});
}
export
function
updateDevice
(
params
)
{
export
function
updateDevice
(
id
,
params
)
{
return
request
({
url
:
"
/api/v1/evm_store/device/update
"
,
url
:
`/api/v1/evm_store/device/update/
${
id
}
`
,
method
:
"
post
"
,
data
:
params
,
});
...
...
frontend/src/views/app-store/device.vue
View file @
51fbe51a
...
...
@@ -118,6 +118,7 @@ export default {
this
.
post
.
name
=
row
.
name
this
.
post
.
imei
=
row
.
imei
this
.
post
.
desc
=
row
.
desc
this
.
currentValue
=
row
this
.
dialogTitle
=
"
编辑
"
this
.
dialogVisible
=
true
},
...
...
@@ -148,7 +149,7 @@ export default {
}).
catch
(
err
=>
{
this
.
$message
.
error
(
err
.
message
)
})
else
if
(
this
.
dialogTitle
===
'
编辑
'
)
updateDevice
(
this
.
currentValue
.
id
,
compareObjectDiff
(
this
.
post
,
this
.
currentValue
)).
then
(
res
=>
{
else
if
(
this
.
dialogTitle
===
'
编辑
'
)
updateDevice
(
this
.
currentValue
.
uu
id
,
compareObjectDiff
(
this
.
post
,
this
.
currentValue
)).
then
(
res
=>
{
console
.
log
(
res
)
// this.$set(this.list, this.currentIndex, Object.assign(this.currentValue, tmp))
this
.
$message
({
type
:
'
success
'
,
message
:
'
更新成功
'
})
...
...
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