d0778024d7a461bcdbcf4ad83fc52df3e672773a.svn-base 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <template>
  2. <div id="eventDetailBody" style="padding: 3px;" :style="{'height':testHeight+'px',}">
  3. <div :style="{'height':testHeight+'px',}" style="width:46%;float:left;border:1px solid #d5d5ff;margin-right:5px;">
  4. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">基本信息</p>
  5. <el-form label-position="right" label-width="120px" :style="{'max-height':testHeight-30+'px',}" style="overflow-y: auto;height:100%;margin:5px;" :model="problemDetail">
  6. <!-- <el-form-item label="工程名称:">
  7. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);min-height: 24px;">{{problemDetail.nm}}</p>
  8. </el-form-item> -->
  9. <el-form-item label="整改情况:">
  10. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);min-height: 24px;">{{problemDetail.rectConc == '0' ? '未整改' : problemDetail.rectConc == '1' ? '整改中' : problemDetail.rectConc == '2' ? '已整改' : ''}}</p>
  11. <!-- <el-input v-model="problemDetail.pblmDesc"></el-input> -->
  12. </el-form-item>
  13. <el-form-item label="整改详细情况:">
  14. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);min-height: 24px;">{{problemDetail.rectMeas}}</p>
  15. <!-- <el-input v-model="problemDetail.note"></el-input> -->
  16. </el-form-item>
  17. </el-form>
  18. </div>
  19. <div :style="{'height':testHeight+'px',}" style="width:50%;float:left;border:1px solid #d5d5ff;">
  20. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">多媒体信息</p>
  21. <el-tabs style="overflow-y: auto;margin:5px;" :style="{'max-height':testHeight-40 +'px',}">
  22. <el-tab-pane :label="picturetabName" style="height: 350px;">
  23. <el-carousel :interval="4000" height="350px">
  24. <el-carousel-item v-for="(item,index) in pictureArray" :key="index" >
  25. <a :href="`${hostUrl}${item.filePath}`" target="_blank">
  26. <img style="height:100%;" :src="`${hostUrl}${item.filePath}`" alt>
  27. </a>
  28. </el-carousel-item>
  29. <el-carousel-item v-if="pictureArray.length==0">
  30. <p>暂无图片信息</p>
  31. </el-carousel-item>
  32. </el-carousel>
  33. </el-tab-pane>
  34. <el-tab-pane :label="audiotabName">
  35. <elaudio v-for="(audio,index) in audioArray" :key="index" style="margin-left:15%" :theUrl="`${hostUrl}${audio.filePath}`"></elaudio>
  36. <p v-if="audioArray.length==0">暂无音频信息</p>
  37. </el-tab-pane>
  38. <el-tab-pane :label="videotabName">
  39. <el-carousel :interval="4000" height="350px">
  40. <el-carousel-item v-for="(item,index) in videoArray" :key="index" >
  41. <video-player class="vjs-custom-skin"
  42. ref="videoPlayer"
  43. :options="item"
  44. :playsinline="true"
  45. >
  46. </video-player>
  47. </el-carousel-item>
  48. <el-carousel-item v-if="videoArray.length==0">
  49. <p>暂无视频信息</p>
  50. </el-carousel-item>
  51. </el-carousel>
  52. </el-tab-pane>
  53. <el-tab-pane :label="filetabName">
  54. <el-table border :data="fileArray" style="width: 100%;margin: 0 auto;">
  55. <el-table-column header-align="center" align="center" label="文档">
  56. <template slot-scope="scope">
  57. <p>
  58. <a :href="`${hostUrl}/${scope.row.filePath}`" target="_blank" rel="noopener noreferrer">
  59. {{scope.row.fileName}}
  60. </a>
  61. </p>
  62. </template>
  63. </el-table-column>
  64. </el-table>
  65. </el-tab-pane>
  66. </el-tabs>
  67. </div>
  68. </div>
  69. </template>
  70. <script>
  71. import {
  72. showDetailsXq,
  73. } from "../../../api/duChaAPI.js";
  74. import request from '../../../utils/gw_ajax_request.js'
  75. import {hostUrl} from "@util/global_variable.js";
  76. // import elaudio from '../widgets/elAudio.vue'
  77. export default {
  78. props: ["rectifyId"],
  79. components: {
  80. elaudio: resolve => {
  81. require(["../../../widgets/elAudio.vue"], resolve);
  82. },
  83. },
  84. data() {
  85. return {
  86. testHeight: window.innerHeight * 0.6,
  87. activeName: "0",
  88. superviseinspect: {},
  89. fileList: [],
  90. groupingList: [],
  91. fileListloading: false,
  92. groupListloading: false,
  93. problemDetail:{
  94. collTime:'',
  95. gwComFiles:'',
  96. nm:'',
  97. persName:'',
  98. rectConc:'',
  99. rectMeas: ''
  100. },
  101. pictureArray:[],
  102. audioArray:[],
  103. videoArray:[],
  104. fileArray: [],
  105. audiotabName: "",
  106. videotabName: "",
  107. picturetabName: "",
  108. filetabName: "",
  109. playerOptions: {
  110. height: '120',
  111. autoplay: true,
  112. muted: true,
  113. language: 'en',
  114. playbackRates: [0.7, 1.0, 1.5, 2.0],
  115. sources: [{
  116. type: "video/mp4",
  117. // mp4
  118. src: "http://vjs.zencdn.net/v/oceans.mp4",
  119. // webm
  120. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  121. },
  122. {
  123. type: "video/mp4",
  124. // mp4
  125. src: "http://vjs.zencdn.net/v/oceans.mp4",
  126. // webm
  127. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  128. },
  129. {
  130. type: "video/mp4",
  131. // mp4
  132. src: "http://vjs.zencdn.net/v/oceans.mp4",
  133. // webm
  134. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  135. },
  136. {
  137. type: "video/mp4",
  138. // mp4
  139. src: "http://vjs.zencdn.net/v/oceans.mp4",
  140. // webm
  141. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  142. }],
  143. },
  144. };
  145. },
  146. computed:{
  147. hostUrl(){
  148. return hostUrl
  149. }
  150. },
  151. mounted:function(){
  152. this.problemDetail = {};
  153. this.pictureArray = [];
  154. this.audioArray = [];
  155. this.videoArray = [];
  156. this.fileArray = [];
  157. this.showDetails();
  158. },
  159. watch:{
  160. rectifyId:function(){
  161. this.problemDetail = {};
  162. this.pictureArray = [];
  163. this.audioArray = [];
  164. this.videoArray = [];
  165. this.fileArray = [];
  166. this.showDetails();
  167. }
  168. },
  169. methods: {
  170. init() {
  171. this.activeName = "0";
  172. },
  173. showDetails() {
  174. request.get(`/dc/insp/rectFdbk/${this.rectifyId}`).then(res => {
  175. this.problemDetail = res.data;
  176. // pictureArray
  177. // audioArray
  178. // videoArray
  179. res.data.gwComFiles.forEach(
  180. (item) =>{
  181. if(item.fileExt == 'mp3'||item.fileExt == 'MP3'||item.fileExt == 'm4a'){
  182. this.audioArray.push(item);
  183. }else if(item.fileExt == 'jpg' || item.fileExt == 'JPEG' || item.fileExt == 'jpeg' || item.fileExt == 'JPG' || item.fileExt == 'png' || item.fileExt == 'PNG'){
  184. this.pictureArray.push(item);
  185. }else if(item.fileExt == 'mp4'||item.fileExt == 'MP4'){
  186. this.videoArray.push(
  187. {
  188. height: '350',
  189. autoplay: false,
  190. muted: true,
  191. language: 'en',
  192. playbackRates: [0.7, 1.0, 1.5, 2.0],
  193. sources: [{
  194. type: "video/mp4",
  195. // mp4
  196. src: `${this.hostUrl}/${item.filePath}`,
  197. // webm
  198. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  199. }],
  200. },
  201. );
  202. } else {
  203. this.fileArray.push(item);
  204. }
  205. }
  206. );
  207. this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  208. this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  209. this.videotabName = "视频资料(" + this.videoArray.length + ")";
  210. this.filetabName = "其它资料(" + this.fileArray.length + ")";
  211. });
  212. },
  213. }
  214. };
  215. </script>
  216. <style scoped>
  217. .name {
  218. background-color: #ebf8ff;
  219. }
  220. .details>>>.el-tabs__content {
  221. height: 360px;
  222. overflow-y: auto;
  223. }
  224. .flexbody>div {
  225. display: flex;
  226. align-items: flex-start;
  227. line-height: 30px;
  228. }
  229. .flexbody div span:first-child {
  230. width: 100px;
  231. flex-shrink: 0;
  232. }
  233. .flexbody div span:first-child {
  234. color: blue;
  235. }
  236. .fileList span {
  237. margin-right: 10px;
  238. cursor: pointer;
  239. }
  240. .fileList span:hover {
  241. color: blueviolet;
  242. }
  243. .el-form-item {
  244. width: 100%;
  245. margin-bottom: 0;
  246. }
  247. </style>