9d80658c8eb58689c7536ebef0ebbc42b297123e.svn-base 13 KB

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