任务列表

This commit is contained in:
shijingjing
2022-06-08 17:19:32 +08:00
parent 33294ac8e7
commit fc220c7868
3 changed files with 150 additions and 16 deletions

View File

@@ -21,9 +21,10 @@
@selection-change="(v) => (ids = v.map((e) => e.id))">
<el-table-column slot="options" label="操作" align="center" width="280" fixed="right">
<template slot-scope="{ row }">
<el-button type="text" @click="close(row.id)">停播</el-button>
<!-- <el-button type="text" @click="close(row.id)">停播</el-button> -->
<el-button type="text" @click="toTaskList(row.id)">任务列表</el-button>
<el-button type="text" @click="bind(row)">绑定行政区划</el-button>
<!-- <el-button type="text" @click="locate=true">地图标绘</el-button>-->
<!-- <el-button type="text" @click="locate=true">地图标绘</el-button>-->
</template>
</el-table-column>
</ai-table>
@@ -163,16 +164,7 @@ 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: {
@@ -187,6 +179,16 @@ export default {
}
})
},
toTaskList(id) {
this.$emit('change', {
type: 'taskList',
params: {
id: id || '',
// areaId: this.areaId,
},
})
},
},
}
</script>