BUG修改

This commit is contained in:
a0049873 2022-07-05 17:12:53 +08:00
parent 3cc6bce2f8
commit a8780ed884
1 changed files with 51 additions and 10 deletions

View File

@ -111,7 +111,12 @@
<div> <div>
<span <span
@click=" @click="
showItem(item.resourceId, item.type, item.delFlag) showItem(
item.resourceId,
item.type,
item.delFlag,
item.note1
)
" "
style="cursor: pointer" style="cursor: pointer"
class="name" class="name"
@ -222,6 +227,24 @@
</div> </div>
</div> </div>
</div> </div>
<a-modal
v-model:visible="videoVisible"
title="已申请摄像头列表"
@ok="videoVisible = false"
>
<a-table
:columns="columns"
:data-source="xVideoList"
bordered
:pagination="{ defaultPageSize: 6 }"
>
<template #bodyCell="{ column, text }">
<!-- <template>
<a>{{ text }}</a>
</template> -->
</template>
</a-table>
</a-modal>
<!-- <a-pagination <!-- <a-pagination
v-model:current="pageNum" v-model:current="pageNum"
v-model:page-size="pageSize" v-model:page-size="pageSize"
@ -253,6 +276,8 @@
const pageNum = ref('1') const pageNum = ref('1')
const pageSize = ref('99999') const pageSize = ref('99999')
// const pageSizeOptions = ref(['5', '10', '20']) // const pageSizeOptions = ref(['5', '10', '20'])
const videoVisible = ref(false)
const xVideoList = ref([])
const total = ref(0) const total = ref(0)
const load = ref(0) const load = ref(0)
// //
@ -262,6 +287,12 @@
const checkAll = ref(false) const checkAll = ref(false)
const checkNum = ref(0) const checkNum = ref(0)
const showKey = ref(0) const showKey = ref(0)
const columns = ref([
{
title: '摄像头名称',
dataIndex: 'name',
},
])
// //
const name = ref('') const name = ref('')
const type = ref('') const type = ref('')
@ -720,16 +751,26 @@
// console.log(e) // console.log(e)
} }
// //
const showItem = (id, type, delFlag) => { const showItem = (id, type, delFlag, note1) => {
if (delFlag == 0) { if (type == '基础设施') {
window.sessionStorage.setItem('type', JSON.stringify('PurchaseVehicle')) console.log()
mybus.emit('tabsChange', { flag: id }) let arr = JSON.parse(note1)
router.push({ xVideoList.value = []
path: '/details', arr.map((val) => {
query: { xVideoList.value.push({ name: val.channelName, key: val.channelId })
id: id,
},
}) })
videoVisible.value = true
} else {
if (delFlag == 0) {
window.sessionStorage.setItem('type', JSON.stringify('PurchaseVehicle'))
mybus.emit('tabsChange', { flag: id })
router.push({
path: '/details',
query: {
id: id,
},
})
}
} }
} }
// //