6ca406c1eac40ab9e40294d298e3d858faee55ba.svn-base 13 KB

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