视频播放器的问题

<template><div class="app-container"><el-form :model="queryParam" ref="queryForm" :inline="true"><el-form-item label="题目ID:"><el-input v-model="queryParam.id" clearable></el-input></el-form-item><el-form-item label="题目内容:"><el-input v-model="queryParam.content" clearable></el-input></el-form-item><el-form-item label="年级:"><el-select v-model="queryParam.level" placeholder="年级" @change="levelChange" clearable><el-option v-for="item in levelEnum" :key="item.key" :value="item.key" :label="item.value"></el-option></el-select></el-form-item><el-form-item label="学科:"><el-select v-model="queryParam.subjectId" clearable><el-option v-for="item in subjectFilter" :key="item.id" :value="item.id":label="item.name + ' ( ' + item.levelName + ' )'"></el-option></el-select></el-form-item><el-form-item label="题型:"><el-select v-model="queryParam.questionType" clearable><el-option v-for="item in questionType" :key="item.key" :value="item.key" :label="item.value"></el-option></el-select></el-form-item><el-form-item><el-button plain type="primary" @click="submitForm">查询</el-button><el-popover placement="bottom" trigger="click"><el-button plain type="warning" size="mini" v-for="item in editUrlEnum" :key="item.key"@click="$router.push({ path: item.value })">{{ item.name }}</el-button><el-button plain slot="reference" type="primary" class="link-left">添加</el-button></el-popover></el-form-item></el-form><div class="content"><muiVideo :src="mySrc" :title="myTitle" :poster="myPoster" @mpVideo="mpVideo"><div class="topicModel" v-if="showTopic"><div class="topicModel-content"><span @click="clickMe">我是视频中的弹窗,点击我触发事件</span></div></div></muiVideo></div><el-table :header-cell-style="{ background: '#eef1f6', color: '#606266' }" v-loading="listLoading" :data="tableData"border fit highlight-current-row style="width: 100%"><el-table-column prop="id" label="Id" width="90px" /><el-table-column prop="subjectId" label="学科" :formatter="subjectFormatter" width="220px" /><el-table-column prop="questionType" label="题型" :formatter="questionTypeFormatter" width="70px" /><el-table-column prop="shortTitle" label="题干" show-overflow-tooltip /><el-table-column prop="score" label="分数" width="60px" /><el-table-column prop="difficult" label="难度" width="60px" /><el-table-column prop="createTime" label="创建时间" width="160px" /><el-table-column label="操作" align="center" width="220px"><template slot-scope="{row}"><el-button plain size="mini" @click="showQuestion(row)">预览</el-button><el-button plain size="mini" @click="editQuestion(row)">编辑</el-button><el-button plain size="mini" type="danger" @click="deleteQuestion(row)" class="link-left">删除</el-button></template></el-table-column></el-table><pagination v-show="total > 0" :total="total" :page.sync="queryParam.pageIndex" :limit.sync="queryParam.pageSize"@pagination="search" /><el-dialog :visible.sync="questionShow.dialog" style="width: 100%;height: 100%"><QuestionShow :qType="questionShow.qType" :question="questionShow.question" :qLoading="questionShow.loading" /></el-dialog></div>
</template><script>
import { mapGetters, mapState, mapActions } from 'vuex'
import Pagination from '@/components/Pagination'
import QuestionShow from './components/Show'
import questionApi from '@/api/question'
import muiVideo from '@/components/muiVideo'export default {components: { Pagination, QuestionShow, muiVideo },data() {return {queryParam: {id: null,questionType: null,level: null,subjectId: null,pageIndex: 1,pageSize: 10},subjectFilter: null,listLoading: true,tableData: [],total: 0,questionShow: {qType: 0,dialog: false,question: null,loading: false},mySrc: "./demo.mp4", 	   	  //播放路径myTitle: '测试', 	  //视频左上角标题myPoster: '', 	  //视频封面showTopic: false  //默认不展示弹题模态窗}},created() {this.initSubject()this.search()let _this = this;setTimeout(function () {      //模拟3秒后弹出模态窗,实际开发中应该是随机时间弹出_this.showTopic = true;	 //展示答题模态窗setTimeout(function () { 	 //弹出模态窗后做一个延迟效果,暂停播放_video.pause();}, 500)}, 3000)},methods: {clickMe() {console.log("点到我了");this.showTopic = false; //关闭答题模态窗},mpVideo(video) {_video = video; 	     //吐出Video原生媒体实例,其他特殊功能可以使用Video来添加原生事件,例如禁用滚动条、禁用快进快退功能等等},submitForm() {this.queryParam.pageIndex = 1this.search()},search() {this.listLoading = truequestionApi.pageList(this.queryParam).then(data => {const re = data.responsethis.tableData = re.listthis.total = re.totalthis.queryParam.pageIndex = re.pageNumthis.listLoading = false})},levelChange() {this.queryParam.subjectId = nullthis.subjectFilter = this.subjects.filter(data => data.level === this.queryParam.level)},addQuestion() {this.$router.push('/exam/question/edit/singleChoice')},showQuestion(row) {let _this = thisthis.questionShow.dialog = truethis.questionShow.loading = truequestionApi.select(row.id).then(re => {_this.questionShow.qType = re.response.questionType_this.questionShow.question = re.response_this.questionShow.loading = false})},editQuestion(row) {let url = this.enumFormat(this.editUrlEnum, row.questionType)this.$router.push({ path: url, query: { id: row.id } })},deleteQuestion(row) {let _this = thisquestionApi.deleteQuestion(row.id).then(re => {if (re.code === 1) {_this.search()_this.$message.success(re.message)} else {_this.$message.error(re.message)}})},questionTypeFormatter(row, column, cellValue, index) {return this.enumFormat(this.questionType, cellValue)},subjectFormatter(row, column, cellValue, index) {return this.subjectEnumFormat(cellValue)},...mapActions('exam', { initSubject: 'initSubject' })},computed: {...mapGetters('enumItem', ['enumFormat']),...mapState('enumItem', {questionType: state => state.exam.question.typeEnum,editUrlEnum: state => state.exam.question.editUrlEnum,levelEnum: state => state.user.levelEnum}),...mapGetters('exam', ['subjectEnumFormat']),...mapState('exam', { subjects: state => state.subjects })}
}
</script>
<style lang="scss">
.content {width: 500px;height: 300px;margin: 300px auto;
}@keyframes fadeIn {0% {opacity: 0;transform: scale(1.2);}100% {opacity: 1;transform: scale(1);}
}.topicModel {padding: 0 10px;width: 100%;height: 100%;position: absolute;top: 0;left: 0;z-index: 9999;background-color: rgba(0, 0, 0, 0.3);display: flex;justify-content: center;align-items: center;animation: fadeIn 0.4s;&-content {width: 60%;height: 60%;background-color: #FFFFFF;}
}
</style>

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/376385.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

WEB07Vue+Ajax

1. Vue概述 Vue&#xff08;读音 /vjuː/, 类似于 view&#xff09;&#xff0c;是一款用于构建用户界面的渐进式的JavaScript框架&#xff08;官方网站&#xff1a;https://cn.vuejs.org&#xff09;。 在上面的这句话中呢&#xff0c;出现了三个词&#xff0c;分别是&#x…

在Linux系统实现瑞芯微RK3588部署rknntoolkit2进行模型转换

一、首先要先安装一个虚拟的环境 安装Miniconda包 Miniconda的官网链接:Minidonda官网 下载好放在要操作的linux系统,我用的是远程服务器的linux系统,我放在whl这个文件夹里面,这个文件夹是我自己创建的 运行安装 安装的操作都是yes就可以了 检查是否安装成功,输入下面…

Qt开发 | Qt绘图技术 | 常见图像绘制 | Qt移动鼠标绘制任意形状 | Qt绘制带三角形箭头的窗口

文章目录 一、基本绘图技术介绍二、常见的18种图形、路径、文字、图片绘制三、Qt移动鼠标绘制任意形状四、Qt绘制带三角形箭头的窗口 一、基本绘图技术介绍 Qt提供了绘图技术&#xff0c;程序员可以在界面上拖动鼠标&#xff0c;或者在代码里指定参数进行绘图。 Qt绘图技术介绍…

系统架构师考点--软件工程(上)

大家好。今天我来总结一下软件工程的相关考点。这部分是考试的重点。在上午场客观题、下午场案例题以及下午场论文都有可能考到&#xff0c;在上午场客观题中大约占12-15分左右。 一、软件工程概述 软件开发生命周期 软件定义时期&#xff1a;包括可行性研究和详细需求分析过…

单元测试实施最佳方案(背景、实施、覆盖率统计)

1. 什么是单元测试&#xff1f; 对于很多开发人员来说&#xff0c;单元测试一定不陌生 单元测试是白盒测试的一种形式&#xff0c;它的目标是测试软件的最小单元——函数、方法或类。单元测试的主要目的是验证代码的正确性&#xff0c;以确保每个单元按照预期执行。单元测试通…

构建高精度室内定位导航系统,从3DGIS到AI路径规划的全面解析

室内定位导航系统是一种利用多种技术实现室内精准定位和导航的智能系统&#xff0c;即便没有卫星信号&#xff0c;也能实现精准导航。维小帮室内定位导航系统是基于自研的地图引擎与先进定位技术&#xff0c;结合智能路径规划算法&#xff0c;解决了人们在大型复杂室内场所最后…

【Linux】多线程_3

文章目录 九、多线程3. C11中的多线程4. 线程的简单封装 未完待续 九、多线程 3. C11中的多线程 Linux中是根据多线程库来实现多线程的&#xff0c;C11也有自己的多线程&#xff0c;那它的多线程又是怎样的&#xff1f;我们来使用一些C11的多线程。 Makefile&#xff1a; te…

Unity基础调色

叭叭叭 最近&#xff08;*这两天&#xff09;因为想做一些Unity的调色问题&#xff0c;尝试原文翻译一下&#xff0c;其实直接原文更好&#xff01;&#xff01; Color Grading 参考了&#xff0c;某大牛的翻译&#xff0c;实在忍不住了&#xff0c;我是不知道为什么能翻译成…

Vivado 2020.1 HLS IP在BD模式无法生成问题

折腾了一周整整&#xff0c;记录一下&#xff0c;希望对大家有用。 各种找、各种操作&#xff0c;也问了FAE&#xff0c;都没搞定。 最后看到如下博文的方法3&#xff0c;管用。 vivado综合hls类ip核报错问题解决方案_vivado ip synth checkpoint mode-CSDN博客 报错描述 m…

论文翻译:Large Language Models for Education: A Survey and Outlook

https://arxiv.org/abs/2403.18105 目录 教育领域的大型语言模型&#xff1a;一项调查和展望摘要1. 引言2. 教育应用中的LLM2.1 概述2.2 学习辅助2.2.1 问题解决&#xff08;QS&#xff09; 2.2.2 错误纠正&#xff08;EC&#xff09;2.2.3 困惑助手&#xff08;CH&#xff09;…

Jenkins中Node节点与构建任务

目录 节点在 Jenkins 中的主要作用 1. 分布式构建 分布式处理 负载均衡 2. 提供不同的运行环境 多平台支持 特殊环境需求 3. 提高资源利用率 动态资源管理 云端集成 4. 提供隔离和安全性 任务隔离 权限控制 5. 提高可扩展性 横向扩展 高可用性 Jenkins 主服务…

【香菇带你学Linux】Linux环境下gcc编译安装【建议收藏】

文章目录 0. 前言1. 安装前准备工作1.1 创建weihu用户1.2 安装依赖包1.2.1 安装 GMP1.2.2 安装MPFR1.2.3 安装MPC 2. gcc10.0.1版本安装3. 报错解决3. 1. wget下载报错 4. 参考文档 0. 前言 gcc&#xff08;GNU Compiler Collection&#xff09;是GNU项目的一部分&#xff0c;…

excel 百分位函数 学习

提示&#xff1a;文章写完后&#xff0c;目录可以自动生成&#xff0c;如何生成可参考右边的帮助文档 文章目录 前言一、函数说明PERCENTILE 函数PERCENTILE.inc 函数PERCENTILE.exc 函数QUARTILE.EXC 函数 二、使用步骤总结 前言 excel 百分位函数 Excel提供了几个函数用于…

ctfshow-web入门-php特性(web100-web103)is_numeric 函数绕过

目录 1、web100 2、web101 3、web102 4、web103 1、web100 提示&#xff1a;flag in class ctfshow&#xff0c;我们只需要构造输出 ctfshow 这个类即可。 代码分析&#xff1a; $v0is_numeric($v1) and is_numeric($v2) and is_numeric($v3); if($v0){ 虽然逻辑运算符的…

Spring Boot整合Druid:轻松实现SQL监控和数据库密码加密

文章目录 1 引言1.1 简介1.2 Druid的功能1.3 竞品对比 2 准备工作2.1 项目环境 3 集成Druid3.1 添加依赖3.2 配置Druid3.3 编写测试类测试3.4 访问控制台3.5 测试SQL监控3.6 数据库密码加密3.6.1 执行命令加密数据库密码3.6.2 配置参数3.6.3 测试 4 总结 1 引言 1.1 简介 Dru…

gfast前端UI:基于Vue3与vue-next-admin适配手机、平板、pc 的后台开源模板

摘要 随着现代软件开发的高效化需求&#xff0c;一个能够快速适应不同设备、简化开发过程的前端模板变得至关重要。gfast前端UI&#xff0c;基于Vue3.x和vue-next-admin&#xff0c;致力于提供这样一个解决方案。本文将深入探讨gfast前端UI的技术栈、设计原则以及它如何适配手机…

Neo4j:图数据库的革命性力量

Neo4j 首席技术官 prathle 撰写了一篇出色的博文&#xff0c;总结最近围绕 GraphRAG 的热议、我们从一年来帮助用户使用知识图谱 LLM 构建系统中学到的东西&#xff0c;以及我们认为该领域的发展方向。Neo4j一时间又大火起来&#xff0c;本文将带你快速入门这神奇的数据库。 前…

sentinel源码分析: dashboard与微服务的交互、pull模式持久化

文章目录 原始方式微服务端规则如何保存规则如何加载进内存微服务端接收控制台请求控制台推送规则总结 pull拉模式官方demo如何整合Spring Cloud整合Spring Cloud 前置知识 SentinelResource的实现原理、SphU.entry()方法中ProcessorSlotChain链、entry.exit() 建议先会使用se…

秋招Java后端开发冲刺——MyBatisPlus总结

一、 基本知识 1. 介绍 yBatis-Plus 是一个 MyBatis 的增强工具&#xff0c;在 MyBatis 的基础上增加了大量功能和简化操作&#xff0c;以提高开发效率。 2. 特点 无侵入&#xff1a;只做增强不做改变&#xff0c;引入它不会对现有项目产生影响。依赖少&#xff1a;仅仅依赖 …

谈谈软件交互设计

谈谈软件交互设计 交互设计的由来 交互设计(Interaction Design)这一概念,最初是由IDEO创始人之一Bill.Moggridge(莫格里奇)1984年在一次会议上提出。他设计了世界上第一台笔记本电脑Compass,并写作出版了在交互设计领域影响深远的《Designing Interactions》一书,被称…