Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
seeta-device
/
deviceManage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0165f96d
authored
Aug 31, 2021
by
温丽香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主应用的设置和取消
1 parent
45b75887
Pipeline
#3890
passed
in 1 minute 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
src/views/Apply/index.vue
src/views/Apply/index.vue
View file @
0165f96
...
...
@@ -24,8 +24,8 @@
<i
class=
"el-icon-view eye-btn"
@
mousedown=
"showSecret = row.appid"
@
mouseup=
"showSecret = ''"
></i>
</div>
<div
slot=
"operate"
slot-scope=
"row"
>
<span
class=
"operate"
v-if=
"row.
number === 1
"
@
click=
"setHostApp(row)"
>
设置为主应用
</span>
<span
class=
"operate"
v-else
@
click=
"
set
HostApp(row)"
>
取消设置为主应用
</span>
<span
class=
"operate"
v-if=
"row.
ismainapp === 0
"
@
click=
"setHostApp(row)"
>
设置为主应用
</span>
<span
class=
"operate"
v-else
@
click=
"
cancel
HostApp(row)"
>
取消设置为主应用
</span>
<span
class=
"operate operate-delete"
@
click=
"handleDelete(row)"
>
删除
</span>
</div>
</st-table>
...
...
@@ -154,7 +154,13 @@ export default {
this
.
getData
()
}
},
cancelHostApp
()
{}
async
cancelHostApp
(
row
)
{
const
res
=
await
setApp
({
appid
:
row
.
appid
,
mainapp
:
0
,
username
:
'test'
})
if
(
res
&&
res
.
data
&&
res
.
data
.
code
===
0
)
{
Toast
.
success
(
'操作成功'
)
this
.
getData
()
}
}
}
}
</
script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment