second commit
This commit is contained in:
@@ -90,7 +90,7 @@ import FilterCom from '@/components/Filter/index.vue'
|
||||
import { nextTick, onBeforeUnmount, onMounted, onUnmounted, reactive, ref } from 'vue'
|
||||
import TableComponent from '@/components/Table/index2.vue'
|
||||
import TitleComponent from '@/components/Title/index.vue'
|
||||
// import { videoIdentificationPage, removeVideoIdentification } from '@/api/identification.js'
|
||||
import { videoIdentificationPage, removeVideoIdentification } from '@/api/identification.js'
|
||||
import HikPlayerBackCom from '@/components/Player/HikPlayer-back.vue'
|
||||
import { dayjs, ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { useRoute } from 'vue-router'
|
||||
@@ -337,20 +337,20 @@ const edit = reactive({
|
||||
|
||||
const initData = () => {
|
||||
loading.value = true
|
||||
const params = new FormData()
|
||||
const obj = {
|
||||
...model,
|
||||
// illegalType: illegalType.value.join(','),
|
||||
illegalType: illegalType.value,
|
||||
beginTime: model.time && model.time[0] ? model.time[0] : '',
|
||||
endTime: model.time && model.time[1] ? model.time[1] : '',
|
||||
pageNo: pagination.current,
|
||||
pageSize: pagination.size
|
||||
}
|
||||
delete obj.time
|
||||
Object.keys(obj).forEach((key) => {
|
||||
params.append(key, obj[key])
|
||||
})
|
||||
// const params = new FormData()
|
||||
// const obj = {
|
||||
// ...model,
|
||||
// // illegalType: illegalType.value.join(','),
|
||||
// illegalType: illegalType.value,
|
||||
// beginTime: model.time && model.time[0] ? model.time[0] : '',
|
||||
// endTime: model.time && model.time[1] ? model.time[1] : '',
|
||||
// pageNo: pagination.current,
|
||||
// pageSize: pagination.size
|
||||
// }
|
||||
// delete obj.time
|
||||
// Object.keys(obj).forEach((key) => {
|
||||
// params.append(key, obj[key])
|
||||
// })
|
||||
// videoIdentificationPage(params).then(res => {
|
||||
// if (res.success) {
|
||||
// tableData.value = res.result.records.map(i => {
|
||||
@@ -368,7 +368,7 @@ const initData = () => {
|
||||
// // 有识别记录数据,默认查看第一条详情
|
||||
// handle('check', res.result.total > 0 ? tableData.value[0] : {})
|
||||
// } else {
|
||||
// Message.error(res.msg || '查询失败!')
|
||||
// ElMessage.error(res.msg || '查询失败!')
|
||||
// }
|
||||
// }).finally(() => {
|
||||
loading.value = false
|
||||
@@ -464,7 +464,6 @@ const handle = (type, data) => {
|
||||
}
|
||||
case 'check': {
|
||||
closeVideo()
|
||||
console.log(data, 'datatata')
|
||||
detail.data = [ { ...data,
|
||||
videoName: '',
|
||||
trackerPicPath: data.trackerPicPath.split(',')
|
||||
@@ -497,10 +496,10 @@ const handle = (type, data) => {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
// removeVideoIdentification({ id: data.id }).then(() => {
|
||||
// ElMessage.success('删除成功')
|
||||
// initData()
|
||||
// })
|
||||
removeVideoIdentification({ id: data.id }).then(() => {
|
||||
ElMessage.success('删除成功')
|
||||
initData()
|
||||
})
|
||||
})
|
||||
break
|
||||
default:
|
||||
@@ -538,6 +537,9 @@ onBeforeUnmount(() => {
|
||||
closeVideo()
|
||||
|
||||
})
|
||||
defineExpose({
|
||||
appPlayer
|
||||
})
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.content-container{
|
||||
|
||||
Reference in New Issue
Block a user