|
|
@@ -57,6 +57,15 @@
|
|
|
prop="uniqueKey"
|
|
|
label="唯一标识">
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="type"
|
|
|
+ label="设备类型">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.type === 1">手持设备</span>
|
|
|
+ <span v-else-if="scope.row.type === 2">闸机</span>
|
|
|
+ <span v-else>{{ scope.row.type }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="status"
|
|
|
label="状态">
|
|
|
@@ -404,11 +413,13 @@ export default {
|
|
|
scenicIdList: item.scenicList.map(item => item.scenicId)
|
|
|
}
|
|
|
this.dialogVisible = true
|
|
|
+ this.updateSceneList()
|
|
|
},
|
|
|
|
|
|
// 打开配置弹框
|
|
|
openConfigDialog (item) {
|
|
|
this.configDialogVisible = true
|
|
|
+ this.updateSceneList()
|
|
|
},
|
|
|
deleteChecker (data, index) {
|
|
|
this.$confirm('确定删除吗?', '提示', {
|
|
|
@@ -422,10 +433,14 @@ export default {
|
|
|
})
|
|
|
}).catch(() => {})
|
|
|
},
|
|
|
+ updateSceneList () {
|
|
|
+ this.$store.dispatch('getScenicList')
|
|
|
+ },
|
|
|
setBatchScenic () {
|
|
|
this.batchUpdateDialogVisible = true
|
|
|
this.batchUpdateInfo.scenicIdList = []
|
|
|
this.batchUpdateInfo.checkerIdList = []
|
|
|
+ this.updateSceneList()
|
|
|
},
|
|
|
updateBatchScenic () {
|
|
|
batchUpdateDeviceScene(this.batchUpdateInfo).then(res => {
|