From dfad5868528f14df5d341611922624962cd1fb2d Mon Sep 17 00:00:00 2001 From: luobisheng <727299681@qq.com> Date: 星期五, 25 十一月 2022 17:10:45 +0800 Subject: [PATCH] 上传处置结果 --- src/views/video/index.vue | 165 +++++++++++++++++-------------------------------------- 1 files changed, 51 insertions(+), 114 deletions(-) diff --git a/src/views/video/index.vue b/src/views/video/index.vue index d8df6dc..5f2e1c6 100644 --- a/src/views/video/index.vue +++ b/src/views/video/index.vue @@ -25,13 +25,11 @@ </el-header> <el-main style="display:flex;flex-wrap: wrap;overflow-y: scroll;"> - <div v-for="item in videoDate " style="height: 240px ;width: 210px; position: relative;margin-left:20px ;"> - <div - style="color:rgb(75, 155, 183); font-size: 11px;line-height: 18px; position: absolute; z-index: 1;left: 50px;"> - {{ item.steert }}{{ item.community }}</div> - <video id="my-video" class="video-js" controls preload="auto" width="210px" height="150px" - :poster="item.imageUrl" data-setup="{}"> - <source :src="item.videoUrl" type="video/mp4" /> + <div v-for="item in videoData " style="height: 240px ;width: 210px; position: relative;margin-left:20px ;"> + <div style="color:rgb(75, 155, 183); font-size: 11px;line-height: 18px; position: absolute; z-index: 1;left: 50px;"> + {{ item.name }}{{ item.community }} + </div> + <video id="my-video" class="video-js" controls preload="auto" width="210px" height="150px" :src="item.urlAddress" type="video/mp4"> </video> <div class="bottonOne" @click="">鏌ョ湅瑙嗛</div> <div class="bottonTwo">瑙嗛涓婃姤</div> @@ -40,14 +38,56 @@ </el-main> <el-footer> <div style="margin-bottom:0;"> - <el-pagination layout="prev, pager, next" :total="totalNum" - :page-size="pageSize"> - </el-pagination> + <el-pagination layout="prev, pager, next" @current-change="currentPageChange" :total="totalNum" :page-size="pageSize"></el-pagination> </div> </el-footer> </el-container> </el-container> </template> +<script> +import departmentAside from "@/views/operate/fivepack/threepack/components/aside"; +import videoPoint from "@/api/system/videoPoint"; + +export default { + components: { departmentAside }, + created() { + this.getVideoPointList(); + }, + data() { + return { + currentPage: 1, + totalNum: 7, + pageSize: 10, + videoData: [], + value: null + }; + }, + methods: { + getVideoPointList(data) { + let communityId, streetId; + if (data) { + communityId = data.parentId; + streetId = data.id; + } + videoPoint.getVideoPointList({ current: this.currentPage, size: this.pageSize, communityId, streetId }) + .then(({ records, total }) => { + this.videoData = records; + this.totalNum = total; + }) + .catch(err => this.$message.error(err)) + }, + selectedDepartment(data) { + if (!data.children) { + this.getVideoPointList(data); + } + }, + currentPageChange(page) { + this.currentPage = page; + this.getVideoPointList(); + } + } +}; +</script> <style lang="scss" scoped> .button-one { height: 40px; @@ -146,107 +186,4 @@ font-size: 14px; color: rgb(75, 155, 183); } -</style> -<script> -import departmentAside from "@/views/operate/fivepack/threepack/components/aside"; - - export default { - components: { departmentAside }, - data() { - return { - totalNum:7, - pageSize:10, - videoDate:[ - { - id:12, - steert:"xx琛楅亾", - community:"xxx绀惧尯", - imageUrl:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.zhimg.com%2Fv2-f596f7046869736314107eed4003ce88_r.jpg&refer=http%3A%2F%2Fpic1.zhimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669953324&t=319eaeb3617f2bd98a0d5b845b35a537", - videoUrl:"http://vali-g1.cp31.ott.cibntv.net/youku/65730720cb94e7220271a3c96/0300080100632D30A3E43019FD116537F5162F-1035-48AC-BE1B-602DF0E92893.mp4?sid=166729534400010004780_00_Bda935cf9a33346c593fc27da8e694df3&sign=db39289573d143cf6e1ad8d8dff36682&ctype=50&si=183&psid=c732c4364319e7ef4685d8f1a568015941346" - }, - { - id:12, - steert:"xx琛楅亾", - community:"xxx绀惧尯", - imageUrl:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.zhimg.com%2Fv2-f596f7046869736314107eed4003ce88_r.jpg&refer=http%3A%2F%2Fpic1.zhimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669953324&t=319eaeb3617f2bd98a0d5b845b35a537", - videoUrl:"http://vali-g1.cp31.ott.cibntv.net/youku/65730720cb94e7220271a3c96/0300080100632D30A3E43019FD116537F5162F-1035-48AC-BE1B-602DF0E92893.mp4?sid=166729534400010004780_00_Bda935cf9a33346c593fc27da8e694df3&sign=db39289573d143cf6e1ad8d8dff36682&ctype=50&si=183&psid=c732c4364319e7ef4685d8f1a568015941346" - }, - { - id:12, - steert:"xx琛楅亾", - community:"xxx绀惧尯", - imageUrl:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.zhimg.com%2Fv2-f596f7046869736314107eed4003ce88_r.jpg&refer=http%3A%2F%2Fpic1.zhimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669953324&t=319eaeb3617f2bd98a0d5b845b35a537", - videoUrl:"http://vali-g1.cp31.ott.cibntv.net/youku/65730720cb94e7220271a3c96/0300080100632D30A3E43019FD116537F5162F-1035-48AC-BE1B-602DF0E92893.mp4?sid=166729534400010004780_00_Bda935cf9a33346c593fc27da8e694df3&sign=db39289573d143cf6e1ad8d8dff36682&ctype=50&si=183&psid=c732c4364319e7ef4685d8f1a568015941346" - } - , - { - id:12, - steert:"xx琛楅亾", - community:"xxx绀惧尯", - imageUrl:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.zhimg.com%2Fv2-f596f7046869736314107eed4003ce88_r.jpg&refer=http%3A%2F%2Fpic1.zhimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669953324&t=319eaeb3617f2bd98a0d5b845b35a537", - videoUrl:"http://vali-g1.cp31.ott.cibntv.net/youku/65730720cb94e7220271a3c96/0300080100632D30A3E43019FD116537F5162F-1035-48AC-BE1B-602DF0E92893.mp4?sid=166729534400010004780_00_Bda935cf9a33346c593fc27da8e694df3&sign=db39289573d143cf6e1ad8d8dff36682&ctype=50&si=183&psid=c732c4364319e7ef4685d8f1a568015941346" - }, - { - id:12, - steert:"xx琛楅亾", - community:"xxx绀惧尯", - imageUrl:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.zhimg.com%2Fv2-f596f7046869736314107eed4003ce88_r.jpg&refer=http%3A%2F%2Fpic1.zhimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669953324&t=319eaeb3617f2bd98a0d5b845b35a537", - videoUrl:"http://vali-g1.cp31.ott.cibntv.net/youku/65730720cb94e7220271a3c96/0300080100632D30A3E43019FD116537F5162F-1035-48AC-BE1B-602DF0E92893.mp4?sid=166729534400010004780_00_Bda935cf9a33346c593fc27da8e694df3&sign=db39289573d143cf6e1ad8d8dff36682&ctype=50&si=183&psid=c732c4364319e7ef4685d8f1a568015941346" - } - , - { - id:12, - steert:"xx琛楅亾", - community:"xxx绀惧尯", - imageUrl:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.zhimg.com%2Fv2-f596f7046869736314107eed4003ce88_r.jpg&refer=http%3A%2F%2Fpic1.zhimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669953324&t=319eaeb3617f2bd98a0d5b845b35a537", - videoUrl:"http://vali-g1.cp31.ott.cibntv.net/youku/65730720cb94e7220271a3c96/0300080100632D30A3E43019FD116537F5162F-1035-48AC-BE1B-602DF0E92893.mp4?sid=166729534400010004780_00_Bda935cf9a33346c593fc27da8e694df3&sign=db39289573d143cf6e1ad8d8dff36682&ctype=50&si=183&psid=c732c4364319e7ef4685d8f1a568015941346" - } - ], - treedata: [{ - label: '濡欓珮琛楅亾', - children: [{ - label: '涓滆', - children: [{ - label: '铻鸿洺鍨�' - }] - }] - }, { - label: '浜戝嘲琛楅亾', - children: [{ - label: '涓滀涵', - children: [{ - label: '闅旀邯' - }] - }, { - label: '椹ご', - children: [{ - label: '榫欏彛' - }] - }] - }, { - label: '鏂拌矾婀鹃晣', - children: [{ - label: '鏂拌矾婀鹃晣', - children: [{ - label: '鏂拌矾婀鹃晣' - }] - }, { - label: '鏂拌矾婀鹃晣', - children: [{ - label: '鏂拌矾婀鹃晣' - }] - }] - }], - defaultProps: { - children: 'children', - label: 'label' - }, - value:'' - }; - }, - methods: { - handleNodeClick(data) { - } - } - }; -</script> \ No newline at end of file +</style> \ No newline at end of file -- Gitblit v1.8.0