bcafecdaf94c0c5b26555809eb6a989021908e60.svn-base 9.3 KB

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