zhgdyunapp/pages/videoManage/videoGroup.vue

73 lines
1.8 KiB
Vue
Raw Normal View History

2024-05-17 23:35:44 +08:00
<template>
<view class="main-content">
2024-06-11 18:46:40 +08:00
<headers style="position: fixed; top: 0; left: 0; width: 100%; z-index: 10;" :showBack="true">
2024-05-17 23:35:44 +08:00
<view class="headerName">
视频播放列表
</view>
</headers>
2024-06-12 14:57:29 +08:00
<view class="content-part" :style="{ 'padding-top': statusBarHeight + 45 + 'px' }">
2024-05-17 23:35:44 +08:00
<tree-menu v-for="(item,index) in treeData" :key="item.id" :item="item" :treeIndex="treeIndex" @clickItem="clickTreeItem"></tree-menu>
</view>
2024-05-23 20:06:14 +08:00
<levitatedsphere :x="100" :y="80"></levitatedsphere>
2024-05-17 23:35:44 +08:00
</view>
</template>
<script>
2024-05-23 20:06:14 +08:00
import levitatedsphere from "@/components/levitatedsphere/levitatedsphere.vue"
2024-05-17 23:35:44 +08:00
import TreeMenu from '../../components/tree-node/index.vue'
export default {
name: 'Study',
components: {
TreeMenu
},
data() {
return {
treeIndex: 1, // 树形层级index
treeData: [],
2024-06-12 14:57:29 +08:00
projectSn: "",
statusBarHeight: 0,
2024-05-17 23:35:44 +08:00
}
},
onLoad() {
2024-06-12 14:57:29 +08:00
this.statusBarHeight = uni.getStorageSync('systemInfo').statusBarHeight;
2024-05-17 23:35:44 +08:00
this.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn;
this.getVideoGroup();
},
methods: {
clickTreeItem(item){
console.log(item,777888)
uni.navigateTo({
url: './videoList?obj=' + JSON.stringify(item)
})
},
getVideoGroup(){
var that = this
let requestData = {
projectSn: this.projectSn
}
this.sendRequest({
url: "xmgl/videoGroup/tree/list",
data: requestData,
success(res){
console.log('视频分组列表',res)
that.treeData = res.result;
}
})
}
}
}
</script>
<style scoped lang="scss">
.main-content {
background: #F4F5FD;
height: 100vh;
2024-05-18 20:26:34 +08:00
.content-part{
.tree-content-compontent:nth-child(2n -1){
background: #F5F5F5;
}
.tree-content-compontent:nth-child(2n){
background: #FFFFFF;
}
}
2024-05-17 23:35:44 +08:00
}
</style>