389c41d9f90dc42528165ced7a407033e58dceea.svn-base 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. <template>
  2. <div id="eventDetailBody" style="padding: 3px;" :style="{'height':testHeight+'px',}" class="problem_detail_wrapper">
  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);">{{problemDetail.aUnit}}</p>
  8. </el-form-item>
  9. <el-form-item label="创建时间">
  10. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);">{{timestampToTime(problemDetail.inTm)}}</p>
  11. </el-form-item>
  12. <!--<el-form-item label="问题信息">-->
  13. <!--<p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);">{{problemDetail.pblmDesc}}</p>-->
  14. <!--</el-form-item>-->
  15. <el-form-item label="调查核实情况">
  16. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);">{{problemDetail.pblmIsTrue | dchs}}</p>
  17. </el-form-item>
  18. <!--<el-form-item label="整改情况">-->
  19. <!--<p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);">{{problemDetail.rectConc | zgqk}}</p>-->
  20. <!--</el-form-item>-->
  21. <!--<el-form-item label="rectLead :">-->
  22. <!--<span v-if="problemDetail.rectLead == 1">典型</span>-->
  23. <!--<span v-if="problemDetail.ifCasePblm == 0">非典型</span>-->
  24. <!--</el-form-item>-->
  25. <!--<el-form-item label="严重程度:">-->
  26. <!--<span-->
  27. <!--style="padding: 3px 10px;background:#27C19F;border-radius:15px;color:rgba(255,255,255,1)"-->
  28. <!--v-if="problemDetail.inspPblmCate == 0"-->
  29. <!--&gt;一般</span>-->
  30. <!--<span-->
  31. <!--style="padding: 3px 10px;background:#E6A23C;border-radius:15px;color:rgba(255,255,255,1)"-->
  32. <!--v-if="problemDetail.inspPblmCate == 1"-->
  33. <!--&gt;较重</span>-->
  34. <!--<span-->
  35. <!--style="padding: 3px 10px;background:#F56C6C;border-radius:15px;color:rgba(255,255,255,1)"-->
  36. <!--v-if="problemDetail.inspPblmCate == 2"-->
  37. <!--&gt;严重</span>-->
  38. <!--<span-->
  39. <!--style="padding: 3px 10px;background:#F56C6C;border-radius:15px;color:rgba(255,255,255,1)"-->
  40. <!--v-if="problemDetail.inspPblmCate == 3"-->
  41. <!--&gt;特别严重</span>-->
  42. <!--&lt;!&ndash; <el-input v-model="problemDetail.inspPblmCate"></el-input> &ndash;&gt;-->
  43. <!--</el-form-item>-->
  44. <!--<el-form-item label="处理状态:">-->
  45. <!--<span v-if="problemDetail.pblmStat == 1">已上报</span>-->
  46. <!--<span v-else-if="problemDetail.pblmStat == 0">未上报</span>-->
  47. <!--</el-form-item>-->
  48. <el-form-item label="复查组长">
  49. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);;">{{problemDetail.rectLead}}</p>
  50. </el-form-item>
  51. <el-form-item label="整改详细情况">
  52. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);;">{{problemDetail.rectMeas}}</p>
  53. </el-form-item>
  54. <el-form-item label="复查时间">
  55. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);;">{{timestampToTime(problemDetail.rectTm)}}</p>
  56. </el-form-item>
  57. <el-form-item label="修改时间">
  58. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);;">{{timestampToTime(problemDetail.upTm)}}</p>
  59. </el-form-item>
  60. <el-form-item label="备注">
  61. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);;">{{problemDetail.note}}</p>
  62. </el-form-item>
  63. <el-form-item label="上报人">
  64. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);;">{{problemDetail.persName}}</p>
  65. </el-form-item>
  66. </el-form>
  67. </div>
  68. <div :style="{'height':testHeight+'px',}" style="width:50%;float:left;border:1px solid #d5d5ff;">
  69. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">多媒体信息</p>
  70. <el-tabs style="overflow-y: auto;margin:5px;" :style="{'max-height':testHeight-40 +'px',}">
  71. <el-tab-pane :label="picturetabName" style="height: 350px;">
  72. <el-carousel :interval="4000" height="350px" id="detailImg">
  73. <el-carousel-item v-for="(item,index) in pictureArray" :key="index" >
  74. <!-- <a :href="`${hostUrl}/${item.filePath}`" target="_blank">-->
  75. <img style="height:100%;" :src="`${hostUrl}/${item.filePath}`" alt>
  76. <!-- </a>-->
  77. </el-carousel-item>
  78. <el-carousel-item v-if="pictureArray.length==0">
  79. <p>暂无图片信息</p>
  80. </el-carousel-item>
  81. </el-carousel>
  82. </el-tab-pane>
  83. <el-tab-pane :label="audiotabName">
  84. <elaudio v-for="(audio,index) in audioArray" :key="index" style="margin-left:15%" :theUrl="`${hostUrl}/${audio.filePath}`"></elaudio>
  85. <p v-if="audioArray.length==0">暂无音频信息</p>
  86. </el-tab-pane>
  87. <el-tab-pane :label="videotabName">
  88. <el-carousel :interval="4000" height="350px">
  89. <el-carousel-item v-for="(item,index) in videoArray" :key="index" >
  90. <video-player class="vjs-custom-skin"
  91. ref="videoPlayer"
  92. :options="item"
  93. :playsinline="true"
  94. >
  95. </video-player>
  96. </el-carousel-item>
  97. <el-carousel-item v-if="videoArray.length==0">
  98. <p>暂无视频信息</p>
  99. </el-carousel-item>
  100. </el-carousel>
  101. </el-tab-pane>
  102. <el-tab-pane :label="filetabName">
  103. <el-table border :data="fileArray" style="width: 100%;margin: 0 auto;">
  104. <el-table-column header-align="center" align="center" label="文档">
  105. <template slot-scope="scope">
  106. <p>
  107. <a :href="`${hostUrl}/${scope.row.filePath}`" target="_blank" rel="noopener noreferrer">
  108. {{scope.row.fileName}}
  109. </a>
  110. </p>
  111. </template>
  112. </el-table-column>
  113. </el-table>
  114. </el-tab-pane>
  115. </el-tabs>
  116. </div>
  117. </div>
  118. </template>
  119. <script>
  120. import Viewer from 'viewerjs';
  121. import 'viewerjs/dist/viewer.css';
  122. import {
  123. deleteFileById,
  124. getsuperviseinspect,
  125. getFileByBiz,
  126. getSuperviseGroup,
  127. showDetailsXq,
  128. } from "../../api/duChaAPI.js";
  129. // import elaudio from '../widgets/elAudio.vue'
  130. import request from '../../utils/gw_ajax_request'
  131. import { hostUrl } from "@util/global_variable.js";
  132. export default {
  133. props: ["details",'problemId','objType'],
  134. components: {
  135. elaudio: resolve => {
  136. require(["../../widgets/elAudio.vue"], resolve);
  137. },
  138. },
  139. data() {
  140. return {
  141. testHeight: window.innerHeight * 0.6,
  142. activeName: "0",
  143. superviseinspect: {},
  144. fileList: [],
  145. groupingList: [],
  146. fileListloading: false,
  147. groupListloading: false,
  148. problemDetail:{
  149. checkPoint:'',
  150. collTime:'',
  151. commonFileIds:'',
  152. cwsCode:'',
  153. cwsName:'',
  154. dataStat:'',
  155. endTime:'',
  156. fileNo:'',
  157. fileNoNumber:'',
  158. gwComFiles:'',
  159. ifCasePblm:'',
  160. inspAddDesc:'',
  161. inspGroupId:'',
  162. inspPblmCate:'',
  163. inspPblmCode:'',
  164. inspPblmDesc:'',
  165. inspPblmName:'',
  166. inspPblmOrgName:'',
  167. inspPblmType:'',
  168. inspPblmsName:'',
  169. nm:'',
  170. note:'',
  171. objId:'',
  172. objNm:'',
  173. objType:'',
  174. pblmDesc:'',
  175. pblmId:'',
  176. pblmLat:'',
  177. pblmLong:'',
  178. pblmPersName:'',
  179. pblmStat:'',
  180. pblmsId:'',
  181. pblmsTypeId:'',
  182. persName:'',
  183. pguid:'',
  184. recPers:'',
  185. regid:'',
  186. reviConc:'',
  187. reviOpin:'',
  188. reviOrgGuid:'',
  189. srcDesc:'',
  190. startTime:'',
  191. state:'',
  192. villType:'',
  193. villageCode:'',
  194. },
  195. pictureArray:[],
  196. audioArray:[],
  197. videoArray:[],
  198. fileArray: [],
  199. audiotabName: "",
  200. videotabName: "",
  201. picturetabName: "",
  202. filetabName: "",
  203. playerOptions: {
  204. height: '120',
  205. autoplay: true,
  206. muted: true,
  207. language: 'en',
  208. playbackRates: [0.7, 1.0, 1.5, 2.0],
  209. labelName:'',
  210. sources: [{
  211. type: "video/mp4",
  212. // mp4
  213. src: "http://vjs.zencdn.net/v/oceans.mp4",
  214. // webm
  215. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  216. },
  217. {
  218. type: "video/mp4",
  219. // mp4
  220. src: "http://vjs.zencdn.net/v/oceans.mp4",
  221. // webm
  222. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  223. },
  224. {
  225. type: "video/mp4",
  226. // mp4
  227. src: "http://vjs.zencdn.net/v/oceans.mp4",
  228. // webm
  229. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  230. },
  231. {
  232. type: "video/mp4",
  233. // mp4
  234. src: "http://vjs.zencdn.net/v/oceans.mp4",
  235. // webm
  236. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  237. }],
  238. },
  239. };
  240. },
  241. computed:{
  242. hostUrl(){
  243. return hostUrl
  244. }
  245. },
  246. mounted:function(){
  247. this.problemDetail = {};
  248. this.pictureArray = [];
  249. this.audioArray = [];
  250. this.videoArray = [];
  251. this.fileArray = [];
  252. this.showDetails();
  253. },
  254. watch:{
  255. problemId:function(){
  256. this.problemDetail = {};
  257. this.pictureArray = [];
  258. this.audioArray = [];
  259. this.videoArray = [];
  260. this.fileArray = [];
  261. this.showDetails();
  262. }
  263. },
  264. methods: {
  265. init() {
  266. this.activeName = "0";
  267. },
  268. showDetails() {
  269. // showDetailsXq(this.problemId).then(res => {
  270. request.get(`/bis/insp/other/pblm/${this.problemId}`).then(res =>{
  271. this.problemDetail = res.data
  272. this.problemDetail.inTm = res.data.inTm
  273. console.log(this.hostUrl);
  274. res.data.gwComFiles.forEach(
  275. (item) =>{
  276. if(item.fileExt == 'mp3'||item.fileExt == 'MP3'||item.fileExt == 'm4a'){
  277. this.audioArray.push(item);
  278. }else if(item.fileExt == 'jpg' || item.fileExt == 'JPEG' || item.fileExt == 'jpeg' || item.fileExt == 'JPG' || item.fileExt == 'png' || item.fileExt == 'PNG'){
  279. this.pictureArray.push(item);
  280. this.$nextTick(function(){
  281. var ViewerDom = document.getElementById('detailImg');
  282. var viewer = new Viewer(ViewerDom, {
  283. // hide:function(){ //在图片消失的时候销毁viewer
  284. // viewer.destroy();
  285. // }
  286. })
  287. });
  288. }else if(item.fileExt == 'mp4'||item.fileExt == 'MP4'){
  289. this.videoArray.push(
  290. {
  291. height: '350',
  292. autoplay: false,
  293. muted: true,
  294. language: 'en',
  295. playbackRates: [0.7, 1.0, 1.5, 2.0],
  296. sources: [{
  297. type: "video/mp4",
  298. // mp4
  299. src: `${this.hostUrl}/${item.filePath}`,
  300. // webm
  301. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  302. }],
  303. },
  304. );
  305. } else {
  306. this.fileArray.push(item);
  307. }
  308. }
  309. );
  310. this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  311. this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  312. this.videotabName = "视频资料(" + this.videoArray.length + ")";
  313. this.filetabName = "其它资料(" + this.fileArray.length + ")";
  314. });
  315. },
  316. timestampToTime(detail) {
  317. if(detail){
  318. var date = new Date(detail);
  319. var Y = date.getFullYear() + "-";
  320. var M =
  321. (date.getMonth() + 1 < 10 ?
  322. "0" + (date.getMonth() + 1) :
  323. date.getMonth() + 1) + "-";
  324. var D =
  325. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  326. var h =
  327. (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":";
  328. var m =
  329. date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
  330. return Y + M + D + h + m;
  331. }else{
  332. return "";
  333. }
  334. }
  335. },
  336. filters:{
  337. zgqk(val){
  338. switch(val){
  339. case '0':
  340. return '未整改';
  341. case '1':
  342. return '整改中';
  343. case '2':
  344. return '已整改';
  345. }
  346. },
  347. dchs(val){
  348. switch(val){
  349. case '0':
  350. return '不属实';
  351. case '1':
  352. return '部分属实';
  353. case '2':
  354. return '属实';
  355. }
  356. }
  357. }
  358. };
  359. </script>
  360. <style scoped>
  361. @import '../../assets/style/global.css';
  362. .el-form-item {
  363. width: 100%;
  364. margin-bottom: 0;
  365. }
  366. </style>