35332bd87d3fb616eda928cde7fd18579652f8c8.svn-base 16 KB

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