Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
周健威
rs-cloud-platform-ui
Commits
913017f5
Commit
913017f5
authored
Jan 27, 2021
by
rencs
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_ren' into 'dev'
Dev ren See merge request
!70
parents
67100be0
e4bcca46
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
archiveDataManagement.js
src/api/website/archiveDataManagement.js
+8
-0
index.vue
src/views/archiveDataManagement/dataList/index.vue
+23
-0
No files found.
src/api/website/archiveDataManagement.js
View file @
913017f5
...
...
@@ -96,3 +96,11 @@ export function updateimagePrice(obj) {
data
:
obj
});
}
// 删除数据
export
function
delObj
(
obj
)
{
return
fetch
({
url
:
'/api/datacenter/bg/imageData/completeDelete'
,
method
:
'DELETE'
,
params
:
obj
});
}
src/views/archiveDataManagement/dataList/index.vue
View file @
913017f5
...
...
@@ -74,6 +74,11 @@
</el-table-column>
<el-table-column
prop=
"dataId"
label=
"数据id"
align=
"center"
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<template
slot-scope=
"
{ row }">
<el-button
type=
"text"
@
click=
"delRow(row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align: center"
...
...
@@ -93,6 +98,7 @@ import {
getDateList
,
getResolutionAll
,
getimagePriceAll
,
delObj
,
}
from
"api/website/archiveDataManagement"
;
import
{
timestamp2DateAuto
}
from
"../../../utils/dateUtils"
;
export
default
{
...
...
@@ -114,6 +120,23 @@ export default {
this
.
getImgPrices
();
},
methods
:
{
delRow
(
row
)
{
console
.
log
(
row
);
this
.
$confirm
(
"是否确认删除该数据?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
(()
=>
{
delObj
({
id
:
row
.
id
}).
then
((
res
)
=>
{
if
(
res
.
status
==
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
warning
(
res
.
message
);
}
});
});
},
getResolutions
()
{
getResolutionAll
().
then
((
res
)
=>
{
if
(
res
.
status
==
200
)
{
...
...
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