任务列表

This commit is contained in:
shijingjing
2022-06-11 13:16:21 +08:00
parent ca02cfc24e
commit 231717f862
3 changed files with 54 additions and 36 deletions

View File

@@ -22,7 +22,7 @@
<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="toTaskList(row.id)">任务列表</el-button>
<el-button type="text" @click="toTaskList(row.deviceId)">任务列表</el-button>
<el-button type="text" @click="bind(row)">绑定行政区划</el-button>
<!-- <el-button type="text" @click="locate=true">地图标绘</el-button>-->
</template>
@@ -73,13 +73,15 @@ export default {
ids: [],
colConfigs: [
{
prop: 'deviceName',
prop: 'name',
label: '设备名称',
width: '200',
},
{
prop: 'areaName',
label: '所属行政区划',
align: 'center',
width: '200',
},
{
prop: 'serialNo',
@@ -89,7 +91,7 @@ export default {
{
prop: 'devStatus',
label: '设备状态',
width: '100',
width: '200',
align: 'center',
render: (h, {row}) => {
return h('span', null, this.dict.getLabel('dlbDevStatus', row.devStatus))
@@ -98,10 +100,9 @@ export default {
{
prop: 'bind',
label: '是否绑定区划',
width: '120',
align: 'center',
render: (h, {row}) => {
return h('span', null, this.dict.getLabel('yesOrNo', row.bind))
return h('span', null, (row.areaId? '是': '否'))
},
},
{
@@ -175,7 +176,7 @@ export default {
})
},
getList() {
this.instance.post(`/app/appdlbquipment/getDlbDeviceList`, null, {
this.instance.post(`/app/appdlbquipment/list`, null, {
params: {
...this.page,
...this.search,