任务详情

This commit is contained in:
shijingjing
2022-06-08 17:57:19 +08:00
parent fc220c7868
commit d24898b558
6 changed files with 133 additions and 12 deletions

View File

@@ -164,7 +164,16 @@ export default {
})
}
},
close(id) {
this.$confirm('确定停播该设备?').then(() => {
this.instance.post(`/app/appdlbquipment/stop?deviceId=${id}`).then((res) => {
if (res.code == 0) {
this.$message.success('停播成功!')
this.getList()
}
})
})
},
getList() {
this.instance.post(`/app/appdlbquipment/getDlbDeviceList`, null, {
params: {

View File

@@ -1,7 +1,7 @@
<template>
<section class="taskList">
<section class="TaskList">
<ai-list>
<ai-title slot="title" title="任务列表" isShowBack isShowBottomBorder @onBackClick="cancel(false)"/>
<ai-title slot="title" title="任务列表" isShowBack isShowBottomBorder @onBackClick="cancel(true)"/>
<template #content>
<ai-search-bar bottomBorder>
<template slot="right">
@@ -26,7 +26,7 @@
<script>
export default {
name: 'taskList',
name: 'TaskList',
components: {},
props: {
dict: Object,
@@ -115,7 +115,7 @@ export default {
},
cancel(isRefresh) {
this.$emit('change', {
type: 'List',
type: 'list',
isRefresh: !!isRefresh,
})
},
@@ -124,7 +124,7 @@ export default {
</script>
<style lang="scss" scoped>
.taskList {
.TaskList {
height: 100%;
}
</style>