| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <template>
- <div id="dxstianbaoId">
- <el-container>
- <div class="minHeight" style="display: flex;justify-content: center;margin-top: 20px;">
- <div>
- <p style="font-size:25px;padding-bottom:10px;color: #409EFF;">督查填报指导视频</p>
- <div style="margin-bottom:20px;width:1025px">
- <video-player class="video-player vjs-custom-skin"
- ref="videoPlayer"
- :playsinline="true"
- :options="playerOptions"
- ></video-player>
- </div>
- <el-steps direction="vertical" :active="1">
- <el-step title="方法/步骤 1" description="第一步:打开督查填报页面。鼠标移动至督查填报,点击需要进行填报的督查类型,比如:水库督查填报 1">
- </el-step>
- <div style="margin-bottom:20px">
- <img :src="dctb_img0_src" style="width:1025px">
- </div>
- <el-step :active="2" title="方法/步骤 2" description="第二步:督查填报。
- 首先点击选择督查计划;
- 二是设置筛选条件并点击查询;
- 三是点击【编辑】">
- </el-step>
- <div style="margin-bottom:20px">
- <img :src="dctb_img1_src" style="width:1025px">
- </div>
- <el-step title="方法/步骤 3" description=" 四是填报,可以切换填报内容、添加问题、查看问题清单等. ">
- </el-step>
- <div style="margin-bottom:20px">
- <img :src="dctb_img2_src" style="width:1025px">
- </div>
- <el-step title="方法/步骤 4" description="第三步:批量填报。点击【下载模板】——系统外编辑——点击【批量填报】——点击上传。">
- </el-step>
- <div style="margin-bottom:20px">
- <img :src="dctb_img3_src" style="width:1025px">
- </div>
- <p style="font-size:25px;margin-top:10px;color:red">注意:第二步和第三步只是督查填报的两种方式,没有先后之分。</p>
- </el-steps>
- </div>
- </div>
- </el-container>
- </div>
- </template>
- <script>
- import request from "../../utils/gw_ajax_request.js";
- import 'video.js/dist/video-js.css';
- import {videoPlayer} from 'vue-video-player';
- import {hostUrl} from '@util/global_variable_help.js'
- // Similarly, you can also introduce the plugin resource pack you want to use within the component
- // import 'some-videojs-plugin'
- export default {
- components: {},
- data() {
- return {
- playerOptions: {
- playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
- autoplay: false, //如果true,浏览器准备好时开始回放。
- muted: false, // 默认情况下将会消除任何音频。
- loop: false, // 导致视频一结束就重新开始。
- preload: 'auto', // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
- language: 'zh-CN',
- aspectRatio: '16:9', // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
- fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
- sources: [{
- type: 'video/mp4', // 类型
- src: `${hostUrl}/video/duchatianbao.mp4` // 路径
- }],
- // poster: "/static/images/author.jpg",
- poster: "../../static/images/test.jpg", //你的封面地址
- // width: document.documentElement.clientWidth,
- notSupportedMessage: '此视频暂无法播放,请稍后再试', //允许覆盖Video.js无法播放媒体源时显示的默认信息。
- controlBar: {
- timeDivider: true,
- durationDisplay: true,
- remainingTimeDisplay: false,
- fullscreenToggle: true //全屏按钮
- }
- },
- dctb_img0_src: require('../../assets/images_helpLink/duchatianbao/dctb_img0.png'),
- dctb_img1_src: require('../../assets/images_helpLink/duchatianbao/dctb_img1.png'),
- dctb_img2_src: require('../../assets/images_helpLink/duchatianbao/dctb_img2.png'),
- dctb_img3_src: require('../../assets/images_helpLink/duchatianbao/dctb_img3.png'),
- }
- },
- mounted() {
- console.log('this is current player instance object', this.player)
- },
- computed: {
- player() {
- return this.$refs.videoPlayer.player
- },
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- },
- recPersName() {
- return localStorage.getItem("account") ? localStorage.getItem("account") : ''
- }
- },
- methods: {
- // listen event
- onPlayerPlay(player) {
- // console.log('player play!', player)
- },
- onPlayerPause(player) {
- // console.log('player pause!', player)
- },
- // ...player event
- // or listen state event
- playerStateChanged(playerCurrentState) {
- // console.log('player current update state', playerCurrentState)
- },
- onPlayerEnded(playerCurrentState) {
- console.log('player current update state', playerCurrentState)
- },
- // player is ready
- playerReadied(player) {
- console.log('the player is readied', player)
- // you can use it to do something...
- // player.[methods]
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- #dxstianbaoId {
- background-color: #E4FDFF;
- overflow: auto;
- height: 100%;
- padding: 0 20px;
- .minHeight {
- width: 100%;
- }
- }
- </style>
- <style lang="scss">
- .minHeight .el-step.is-vertical .el-step__title,
- .el-step__title.is-process,
- .el-step__title.is-wait {
- font-size: 25px;
- padding-bottom: 10px;
- padding-top: 10px;
- color: #409EFF;
- font-weight: 700;
- }
- .minHeight .el-step__icon.is-text {
- border-color: #409EFF;
- }
- .minHeight .el-step__icon-inner {
- color: #409EFF;
- }
- .minHeight .el-step__description.is-finish,
- .el-step__description.is-process,
- .el-step__description.is-wait {
- font-size: 20px;
- padding: 10px 0px;
- color: #409EFF;
- }
- .video-js .vjs-big-play-button {
- top: 265px;
- left: 468px;
- }
- </style>
|