zhgdyunapp/pages/videoManage/videoGroup.vue
2024-05-17 23:35:44 +08:00

61 lines
1.3 KiB
Vue

<template>
<view class="main-content">
<headers :showBack="true">
<view class="headerName">
视频播放列表
</view>
</headers>
<view class="content-part">
<tree-menu v-for="(item,index) in treeData" :key="item.id" :item="item" :treeIndex="treeIndex" @clickItem="clickTreeItem"></tree-menu>
</view>
</view>
</template>
<script>
import TreeMenu from '../../components/tree-node/index.vue'
export default {
name: 'Study',
components: {
TreeMenu
},
data() {
return {
treeIndex: 1, // 树形层级index
treeData: [],
projectSn: ""
}
},
onLoad() {
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;
}
</style>