| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <template>
- <div id="dxstianbaoId">
- <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>
- <h2 style="padding-bottom:10px">工作成果-统计报表</h2>
- <el-steps direction="vertical" :active="1">
- <el-step title="方法/步骤 1" description="第一步:打开统计报表页面。鼠标移动至工作成果,点击统计报表,比如:水库统计报表。">
- </el-step>
- <div style="margin-bottom:20px">
- <img :src="gzcg_img1_src" style="width:1025px">
- </div>
- <el-step :active="2" title="方法/步骤 2" description="第二步:报表导出。
- 首先点击选择项目;然后点击切换页签;接着点击查询;最后点击导出。 ">
- </el-step>
- <div style="margin-bottom:20px">
- <img :src="gzcg_img2_src" style="width:1025px">
- </div>
- <h2 style="padding-bottom:10px">工作成果-工作报告</h2>
- <el-step title="方法/步骤 1" description="第一步:打开工作报告页面。鼠标移动至工作成果,点击工作报告,比如:小型水库督查工作报告。">
- </el-step>
- <div style="margin-bottom:20px">
- <img :src="gzcg_img4_src" style="width:1025px">
- </div>
- <el-step title="方法/步骤 2" description="第一步:打开工作报告页面。鼠标移动至工作成果,点击工作报告,比如:小型水库督查工作报告。 ">
- </el-step>
- <div style="margin-bottom:20px">
- <img :src="gzcg_img3_src" style="width:1025px">
- </div>
- </el-steps>
- </div>
- </div>
- </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/gongzuochengguo.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 //全屏按钮
- }
- },
- gzcg_img1_src: require('../../assets/images_helpLink/gongzuochengguo/gzcg_img1.png'),
- gzcg_img2_src: require('../../assets/images_helpLink/gongzuochengguo/gzcg_img2.png'),
- gzcg_img3_src: require('../../assets/images_helpLink/gongzuochengguo/gzcg_img3.png'),
- gzcg_img4_src: require('../../assets/images_helpLink/gongzuochengguo/gzcg_img4.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;
- height: 100%;
- overflow: auto;
- padding: 0 20px;
- .minHeight {
- width: 100%;
- /*overflow-y: auto;*/
- }
- }
- </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>
|