abe95fb7e58755523c67fe7f7b8aaefc682bf504.svn-base 14 KB

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