Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mineTools
Project
Project
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
zhanglw
mineTools
Commits
f90ac9c6
Commit
f90ac9c6
authored
Oct 07, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ds
parent
c2b9f592
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
common.js
src/api/common.js
+9
-0
index.vue
src/views/backstage/appletMgt/applet/index.vue
+8
-8
No files found.
src/api/common.js
View file @
f90ac9c6
...
...
@@ -20,6 +20,15 @@ export const HttpReq = {
method
:
'
get
'
})
},
updateIfUp
:
function
(
data
)
{
return
request
({
url
:
'
apps/updateIfUp
'
,
method
:
'
post
'
,
data
:
data
}).
then
((
res
)
=>
{
return
res
})
},
api
:
null
},
// web端接口列表
...
...
src/views/backstage/appletMgt/applet/index.vue
View file @
f90ac9c6
...
...
@@ -25,8 +25,8 @@
</div>
<div
class=
"toolbar"
>
<div>
<el-button
type=
"danger"
icon=
"el-icon-download"
:disabled=
"!multipleSelection.length"
@
click=
"batchOperate(
0
, null)"
>
下架
</el-button>
<el-button
type=
"success"
icon=
"el-icon-finished"
:disabled=
"!multipleSelection.length"
@
click=
"batchOperate(
1
, null)"
>
上架
</el-button>
<el-button
type=
"danger"
icon=
"el-icon-download"
:disabled=
"!multipleSelection.length"
@
click=
"batchOperate(
1
, null)"
>
下架
</el-button>
<el-button
type=
"success"
icon=
"el-icon-finished"
:disabled=
"!multipleSelection.length"
@
click=
"batchOperate(
0
, null)"
>
上架
</el-button>
</div>
<div
style=
"text-align: right"
>
<el-button
type=
"primary"
icon=
"el-icon-upload2"
@
click=
"toAdd"
>
上传app
</el-button>
...
...
@@ -52,8 +52,8 @@
<el-table-column
prop=
"uploadtime"
label=
"最后维护日期"
align=
"center"
width=
"180"
/>
<el-table-column
label=
"操作"
align=
"center"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
content=
"下架"
><el-button
round
plain
type=
"danger"
icon=
"el-icon-download"
@
click=
"batchOperate(
0
, scope.row)"
/></el-tooltip>
<el-tooltip
content=
"上架"
><el-button
round
plain
type=
"success"
icon=
"el-icon-finished"
@
click=
"batchOperate(
1
, scope.row)"
/></el-tooltip>
<el-tooltip
content=
"下架"
><el-button
round
plain
type=
"danger"
icon=
"el-icon-download"
@
click=
"batchOperate(
1
, scope.row)"
/></el-tooltip>
<el-tooltip
content=
"上架"
><el-button
round
plain
type=
"success"
icon=
"el-icon-finished"
@
click=
"batchOperate(
0
, scope.row)"
/></el-tooltip>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -118,12 +118,12 @@ export default {
type
:
'
info
'
})
}
HttpReq
.
backstageApi
.
batchReleaseAndRecovery
({
ids
:
row
?
[
row
.
productId
]
:
this
.
multipleSelection
.
map
(
item
=>
{
return
item
.
productI
d
}),
type
:
type
HttpReq
.
backstageApi
.
updateIfUp
({
ids
:
row
?
[
row
.
id
]
:
this
.
multipleSelection
.
map
(
item
=>
{
return
item
.
i
d
}),
ifUp
:
type
}).
then
((
res
)
=>
{
this
.
$notify
({
title
:
res
.
m
sg
,
title
:
res
.
m
essage
,
type
:
res
.
code
===
200
?
'
success
'
:
'
error
'
,
duration
:
2500
})
...
...
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