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>
<span
@click="
showItem(item.resourceId, item.type, item.delFlag)
showItem(
item.resourceId,
item.type,
item.delFlag,
item.note1
)
"
style="cursor: pointer"
class="name"
@ -222,6 +227,24 @@
</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
v-model:current="pageNum"
v-model:page-size="pageSize"
@ -253,6 +276,8 @@
const pageNum = ref('1')
const pageSize = ref('99999')
// const pageSizeOptions = ref(['5', '10', '20'])
const videoVisible = ref(false)
const xVideoList = ref([])
const total = ref(0)
const load = ref(0)
//
@ -262,6 +287,12 @@
const checkAll = ref(false)
const checkNum = ref(0)
const showKey = ref(0)
const columns = ref([
{
title: '摄像头名称',
dataIndex: 'name',
},
])
//
const name = ref('')
const type = ref('')
@ -720,7 +751,16 @@
// console.log(e)
}
//
const showItem = (id, type, delFlag) => {
const showItem = (id, type, delFlag, note1) => {
if (type == '基础设施') {
console.log()
let arr = JSON.parse(note1)
xVideoList.value = []
arr.map((val) => {
xVideoList.value.push({ name: val.channelName, key: val.channelId })
})
videoVisible.value = true
} else {
if (delFlag == 0) {
window.sessionStorage.setItem('type', JSON.stringify('PurchaseVehicle'))
mybus.emit('tabsChange', { flag: id })
@ -732,6 +772,7 @@
})
}
}
}
//
const apply = () => {
// list.value.forEach((val) => {