2c43f287cff361c6e09da45fe94d26742e0d2fe7.svn-base 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <div id="dxstianbaoId">
  3. <div class="minHeight" style="display: flex;justify-content: center;margin-top: 20px;">
  4. <div>
  5. <p style="font-size:25px;padding-bottom:10px;color: #409EFF;">工作成果指导视频</p>
  6. <div style="margin-bottom:20px;width:1025px;">
  7. <video-player class="video-player vjs-custom-skin"
  8. ref="videoPlayer"
  9. :playsinline="true"
  10. :options="playerOptions"
  11. ></video-player>
  12. </div>
  13. <h2 style="padding-bottom:10px">工作成果-统计报表</h2>
  14. <el-steps direction="vertical" :active="1">
  15. <el-step title="方法/步骤 1" description="第一步:打开统计报表页面。鼠标移动至工作成果,点击统计报表,比如:水库统计报表。">
  16. </el-step>
  17. <div style="margin-bottom:20px">
  18. <img :src="gzcg_img1_src" style="width:1025px">
  19. </div>
  20. <el-step :active="2" title="方法/步骤 2" description="第二步:报表导出。
  21. 首先点击选择项目;然后点击切换页签;接着点击查询;最后点击导出。 ">
  22. </el-step>
  23. <div style="margin-bottom:20px">
  24. <img :src="gzcg_img2_src" style="width:1025px">
  25. </div>
  26. <h2 style="padding-bottom:10px">工作成果-工作报告</h2>
  27. <el-step title="方法/步骤 1" description="第一步:打开工作报告页面。鼠标移动至工作成果,点击工作报告,比如:小型水库督查工作报告。">
  28. </el-step>
  29. <div style="margin-bottom:20px">
  30. <img :src="gzcg_img4_src" style="width:1025px">
  31. </div>
  32. <el-step title="方法/步骤 2" description="第一步:打开工作报告页面。鼠标移动至工作成果,点击工作报告,比如:小型水库督查工作报告。 ">
  33. </el-step>
  34. <div style="margin-bottom:20px">
  35. <img :src="gzcg_img3_src" style="width:1025px">
  36. </div>
  37. </el-steps>
  38. </div>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. import request from "../../utils/gw_ajax_request.js";
  44. import 'video.js/dist/video-js.css';
  45. import {videoPlayer} from 'vue-video-player';
  46. import {hostUrl} from '@util/global_variable_help.js'
  47. // Similarly, you can also introduce the plugin resource pack you want to use within the component
  48. // import 'some-videojs-plugin'
  49. export default {
  50. components: {},
  51. data() {
  52. return {
  53. playerOptions: {
  54. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  55. autoplay: false, //如果true,浏览器准备好时开始回放。
  56. muted: false, // 默认情况下将会消除任何音频。
  57. loop: false, // 导致视频一结束就重新开始。
  58. preload: 'auto', // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  59. language: 'zh-CN',
  60. aspectRatio: '16:9', // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  61. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  62. sources: [{
  63. type: 'video/mp4', // 类型
  64. src: `${hostUrl}/video/gongzuochengguo.mp4`// 路径
  65. }
  66. ],
  67. // poster: "/static/images/author.jpg",
  68. poster: "../../static/images/test.jpg", //你的封面地址
  69. // width: document.documentElement.clientWidth,
  70. notSupportedMessage: '此视频暂无法播放,请稍后再试', //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  71. controlBar: {
  72. timeDivider: true,
  73. durationDisplay: true,
  74. remainingTimeDisplay: false,
  75. fullscreenToggle: true //全屏按钮
  76. }
  77. },
  78. gzcg_img1_src: require('../../assets/images_helpLink/gongzuochengguo/gzcg_img1.png'),
  79. gzcg_img2_src: require('../../assets/images_helpLink/gongzuochengguo/gzcg_img2.png'),
  80. gzcg_img3_src: require('../../assets/images_helpLink/gongzuochengguo/gzcg_img3.png'),
  81. gzcg_img4_src: require('../../assets/images_helpLink/gongzuochengguo/gzcg_img4.png'),
  82. }
  83. },
  84. mounted() {
  85. console.log('this is current player instance object', this.player)
  86. },
  87. computed: {
  88. player() {
  89. return this.$refs.videoPlayer.player
  90. },
  91. persId() {
  92. return localStorage.getItem("userid")
  93. ? localStorage.getItem("userid")
  94. : "1098101939614724096";
  95. },
  96. recPersName() {
  97. return localStorage.getItem("account") ? localStorage.getItem("account") : ''
  98. }
  99. },
  100. methods: {
  101. // listen event
  102. onPlayerPlay(player) {
  103. // console.log('player play!', player)
  104. },
  105. onPlayerPause(player) {
  106. // console.log('player pause!', player)
  107. },
  108. // ...player event
  109. // or listen state event
  110. playerStateChanged(playerCurrentState) {
  111. // console.log('player current update state', playerCurrentState)
  112. },
  113. onPlayerEnded(playerCurrentState) {
  114. console.log('player current update state', playerCurrentState)
  115. },
  116. // player is ready
  117. playerReadied(player) {
  118. console.log('the player is readied', player)
  119. // you can use it to do something...
  120. // player.[methods]
  121. }
  122. }
  123. }
  124. </script>
  125. <style lang="scss" scoped>
  126. #dxstianbaoId {
  127. background-color: #E4FDFF;
  128. height: 100%;
  129. overflow: auto;
  130. padding: 0 20px;
  131. .minHeight {
  132. width: 100%;
  133. /*overflow-y: auto;*/
  134. }
  135. }
  136. </style>
  137. <style lang="scss">
  138. .minHeight .el-step.is-vertical .el-step__title,
  139. .el-step__title.is-process,
  140. .el-step__title.is-wait {
  141. font-size: 25px;
  142. padding-bottom: 10px;
  143. padding-top: 10px;
  144. color: #409EFF;
  145. font-weight: 700;
  146. }
  147. .minHeight .el-step__icon.is-text {
  148. border-color: #409EFF;
  149. }
  150. .minHeight .el-step__icon-inner {
  151. color: #409EFF;
  152. }
  153. .minHeight .el-step__description.is-finish,
  154. .el-step__description.is-process,
  155. .el-step__description.is-wait {
  156. font-size: 20px;
  157. padding: 10px 0px;
  158. color: #409EFF;
  159. }
  160. .video-js .vjs-big-play-button {
  161. top: 265px;
  162. left: 468px;
  163. }
  164. </style>