5af39123cb08b594474b0bcee593acec2deaed9b.svn-base 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. <template>
  2. <el-dialog
  3. class="custom_dialog"
  4. title="问题整改复查情况"
  5. width="60%"
  6. append-to-body
  7. :close-on-click-modal="false"
  8. :visible.sync="supervisionDetailsVisible"
  9. @close="cancelHandler">
  10. <div class="wtzgfc_view_pblm" style="padding: 3px;" :style="{'height':testHeight+'px',}">
  11. <div :style="{'height':testHeight+'px',}"
  12. style="width:46%;float:left;border:1px solid #d5d5ff;margin-right:5px;">
  13. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">基本信息</p>
  14. <el-form label-position="right" label-width="140px" :style="{'max-height':testHeight-30+'px',}"
  15. style="overflow-y: auto;height:100%;margin:5px;" :model="problemDetail" ref="problemDetail"
  16. :rules="rules">
  17. <p class="p_title">问题整改情况</p>
  18. <el-form-item label="问题类别:">
  19. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);">
  20. {{problemDetail.pblmType}}</p>
  21. </el-form-item>
  22. <el-form-item label="检查项目:">
  23. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);">
  24. {{problemDetail.pblmOption}}</p>
  25. </el-form-item>
  26. <el-form-item label="问题描述:">
  27. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);">
  28. {{problemDetail.pblmDesc}}</p>
  29. </el-form-item>
  30. <el-form-item label="问题等级:">
  31. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);">
  32. {{problemDetail.pblmLevl == 0 ?
  33. "一般" : problemDetail.pblmLevl == 1 ? "较重" : problemDetail.pblmLevl == 2 ? "严重" :
  34. problemDetail.pblmLevl ==
  35. 3 ? "特别严重" : ""}}</p>
  36. </el-form-item>
  37. <el-form-item label="整改状态:">
  38. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);">
  39. {{problemDetail.rectConc == 0 ?
  40. "未填写" : problemDetail.rectConc == 1 ? "未整改" : problemDetail.rectConc == 2 ? "正在整改" :
  41. problemDetail.rectConc == 3 ? "已整改" : ""}}</p>
  42. </el-form-item>
  43. <el-form-item label="整改措施:">
  44. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);;">
  45. {{problemDetail.rectMsrs}}</p>
  46. </el-form-item>
  47. <el-form-item label="审核状态:">
  48. <p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);">
  49. {{problemDetail.auditConc == 1 ?
  50. "审核已整改" : problemDetail.auditConc == 2 ? "审核未整改" : problemDetail.auditConc == 3 ? "未审核" :
  51. problemDetail.auditConc == 4 ? "审核正在整改" : ""}}</p>
  52. </el-form-item>
  53. <!--<el-form-item label="上报人:">-->
  54. <!--<p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);;">-->
  55. <!--{{problemDetail.persName}}</p>-->
  56. <!--</el-form-item>-->
  57. <!--<el-form-item label="上报时间:">-->
  58. <!--<p style="font-weight: bold;border-bottom:1px dashed rgb(198, 226, 255);;">-->
  59. <!--{{problemDetail.persName}}</p>-->
  60. <!--</el-form-item>-->
  61. <p class="p_title">复核情况</p>
  62. <el-form-item label="整改状态:" style="text-align:left">
  63. <el-radio-group v-model="problemDetail.revwRectConc">
  64. <el-radio label="1">未整改</el-radio>
  65. <el-radio label="2">正在整改</el-radio>
  66. <el-radio label="3">整改完成</el-radio>
  67. <br/>
  68. <br/>
  69. <el-radio label="4">整改不到位</el-radio>
  70. <el-radio label="5">上报整改情况与实际不符</el-radio>
  71. </el-radio-group>
  72. </el-form-item>
  73. <el-form-item
  74. :label="problemDetail.revwRectConc == 3 ? '实际整改完成时间' : problemDetail.revwRectConc == 2 ? '计划整改完成时间': ''"
  75. style="text-align:left"
  76. v-if="(Number(problemDetail.revwRectConc) === 2 || Number(problemDetail.revwRectConc) === 3) && problemDetail.revwRectConc">
  77. <el-date-picker v-model="problemDetail.realPlanDt" type="date" value-format="yyyy-MM-dd"
  78. placeholder="选择日期" class="w30"
  79. v-if="(Number(problemDetail.revwRectConc) === 2 || Number(problemDetail.revwRectConc) === 3) && problemDetail.revwRectConc"></el-date-picker>
  80. </el-form-item>
  81. <div>
  82. <el-form-item label="备注" v-if="problemDetail.revwRectConc != 3">
  83. <el-input
  84. type="textarea"
  85. :rows="4"
  86. placeholder="请输入"
  87. v-model="problemDetail.revwRectPblm"
  88. class="w30">
  89. </el-input>
  90. </el-form-item>
  91. <el-form-item label="备注" prop="revwRectPblm" v-else key="revwRectPblm">
  92. <el-input
  93. type="textarea"
  94. :rows="4"
  95. placeholder="请输入"
  96. v-model="problemDetail.revwRectPblm"
  97. class="w30">
  98. </el-input>
  99. </el-form-item>
  100. </div>
  101. </el-form>
  102. </div>
  103. <div
  104. style="width: 49%;float: left;border: 1px solid rgb(213, 213, 255);margin-right: 5px;overflow-y: auto;max-height: 58vh;">
  105. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">多媒体信息</p>
  106. <el-tabs style="margin:0px 5px">
  107. <el-tab-pane :label="picturetabName">
  108. <el-row style="text-align:right;" v-if="!ifView">
  109. <el-button
  110. :v-if="!addPicPanel?addPicPanel:addPicPanel"
  111. size="mini"
  112. type="text"
  113. :icon="!addPicPanel?'el-icon-circle-plus-outline':'el-icon-circle-close-outline'"
  114. @click="addPic"
  115. >{{!addPicPanel?"添加":"取消"}}
  116. </el-button>
  117. </el-row>
  118. <!-- 该上传组件之前用v-if="addPicPanel 控制显示隐藏,发现在点击编辑问题时,如果不上传图片,之间点击确认时会报错 add by lch -->
  119. <el-row v-show="addPicPanel"> <!-- v-if="addPicPanel" -->
  120. <upload
  121. ref="uploadFile"
  122. :url="`/pdcApi/file/insert?bizType=MEND_EXTRA&bizId=`"
  123. @uploadOver="removeNewSupervision"
  124. ></upload>
  125. </el-row>
  126. <el-row>
  127. <div style="overflow-y:auto;overflow-x:hidden;max-height:30vh;padding:10px;">
  128. <div class="upload-container" id="imgView">
  129. <div
  130. v-for="(item, index) in pictureArray"
  131. :key="index"
  132. class="image-preview image-app-preview"
  133. >
  134. <div class="image-preview-wrapper">
  135. <img :src="`${hostUrl}/${item.filePath}`">
  136. <div class="image-preview-action">
  137. <i @click="removeFile(item.id)" class="el-icon-delete"
  138. v-if="!ifView"></i>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </el-row>
  145. </el-tab-pane>
  146. <el-tab-pane :label="audiotabName">
  147. <el-table border :data="audioArray" style="width: 100%;margin: 0 auto;">
  148. <el-table-column header-align="center" align="center" label="音频">
  149. <template slot-scope="scope">
  150. <elaudio
  151. style="margin-left:15%;width:100px;height:30px;"
  152. :theUrl="`${hostUrl}/${scope.row.filePath}`"
  153. ></elaudio>
  154. </template>
  155. </el-table-column>
  156. <el-table-column header-align="center" align="center" label="操作">
  157. <template slot-scope="scope">
  158. <el-button
  159. size="mini"
  160. @click="removeFile(scope.row.id,scope.$index)"
  161. type="danger"
  162. v-if="!ifView"
  163. >删除
  164. </el-button>
  165. </template>
  166. </el-table-column>
  167. </el-table>
  168. </el-tab-pane>
  169. <el-tab-pane :label="videotabName">
  170. <el-table border :data="videoArray" style="width: 100%;margin: 0 auto;">
  171. <el-table-column header-align="center" align="center" label="视频">
  172. <template slot-scope="scope">
  173. <video-player
  174. class="vjs-custom-skin"
  175. ref="videoPlayer"
  176. :options="scope.row"
  177. :playsinline="true"
  178. ></video-player>
  179. </template>
  180. </el-table-column>
  181. <el-table-column header-align="center" align="center" label="操作">
  182. <template slot-scope="scope">
  183. <el-button
  184. size="mini"
  185. @click="removeFile(scope.row.item.id,scope.$index)"
  186. type="danger"
  187. v-if="!ifView"
  188. >删除
  189. </el-button>
  190. </template>
  191. </el-table-column>
  192. </el-table>
  193. </el-tab-pane>
  194. <el-tab-pane :label="filetabName">
  195. <el-table border :data="fileArray" style="width: 100%;margin: 0 auto;">
  196. <el-table-column header-align="center" align="center" label="文档">
  197. <template slot-scope="scope">
  198. <p>
  199. <a :href="`${hostUrl}/${scope.row.filePath}`" target="_blank"
  200. rel="noopener noreferrer">
  201. {{scope.row.fileName}}
  202. </a>
  203. </p>
  204. </template>
  205. </el-table-column>
  206. <el-table-column header-align="center" align="center" label="操作">
  207. <template slot-scope="scope">
  208. <el-button
  209. size="mini"
  210. @click="removeFile(scope.row.id,scope.$index)"
  211. type="danger"
  212. v-if="!ifView"
  213. >删除
  214. </el-button>
  215. </template>
  216. </el-table-column>
  217. </el-table>
  218. </el-tab-pane>
  219. </el-tabs>
  220. </div>
  221. </div>
  222. <span slot="footer">
  223. <el-button type="primary" @click="problemDetailInfo('problemDetail')" :loading="buttonLoading"
  224. v-if="!ifView">保存</el-button>
  225. <el-button @click="cancelHandler">取消</el-button>
  226. </span>
  227. </el-dialog>
  228. </template>
  229. <script>
  230. // import {getsuperviseinspect,} from "@api/duChaAPI.js";
  231. import {dateFormat} from "../../../utils/gw_date.js"
  232. import request from '@util/gw_ajax_request'
  233. import {deleteFileById} from "@api/duChaAPI.js";
  234. import {hostUrl} from "@util/global_variable.js";
  235. import Viewer from 'viewerjs';
  236. import 'viewerjs/dist/viewer.css';
  237. export default {
  238. props: ["details", 'problemId', 'objType', 'ifView'],
  239. components: {
  240. upload: resolve => {
  241. require(["@widget/uploadFile.vue"], resolve);
  242. },
  243. elaudio: resolve => {
  244. require(["../../../widgets/elAudio.vue"], resolve);
  245. },
  246. },
  247. data() {
  248. return {
  249. testHeight: window.innerHeight * 0.6,
  250. activeName: "0",
  251. superviseinspect: {},
  252. fileList: [],
  253. groupingList: [],
  254. fileListloading: false,
  255. groupListloading: false,
  256. problemDetail: {
  257. pblmDesc: '',//问题描述 ,
  258. pblmLevl: '',//问题等级 ,
  259. pblmOption: '',//检查项目 ,
  260. pblmSn: '',//问题序号 ,
  261. pblmType: '',//问题类别 ,
  262. proName: '',//省 ,
  263. realPlanDt: '',//实际/计划整改完成时间 ,
  264. rectConc: '',//整改状态(1:未整改;2:正在整改;3:已整改) ,
  265. rectMsrs: '',//整改措施 ,
  266. revwInfo: '',//复核情况 ,
  267. revwRectConc: '',//复核整改状态(1:未整改;2:正在整改;3:整改完成;4:整改不到位;5:上报整改情况与实际不符) ,
  268. revwRectPblm: '',//复核整改问题 ,
  269. revwState: '',//复核填报状态(0:未填报;1:填报中;2:已填报) ,
  270. rgstrId: '',//登记表ID ,
  271. rsCode: '',//水库编码 ,
  272. rsName: '',//水库名称 ,
  273. safeComment: '',//工况总体评价 ,
  274. unit: '',//管理单位 ,
  275. uptm: '',//修改时间 ,
  276. year: '',//年度
  277. gwComFiles: []
  278. },
  279. rules: {
  280. revwRectPblm: [{
  281. required: true,
  282. message: '请填写备注',
  283. trigger: 'blur'
  284. }],
  285. },
  286. pictureArray: [],
  287. audioArray: [],
  288. videoArray: [],
  289. fileArray: [],
  290. audiotabName: "",
  291. videotabName: "",
  292. picturetabName: "",
  293. filetabName: "",
  294. playerOptions: {
  295. height: '120',
  296. autoplay: true,
  297. muted: true,
  298. language: 'en',
  299. playbackRates: [0.7, 1.0, 1.5, 2.0],
  300. labelName: '',
  301. sources: [{
  302. type: "video/mp4",
  303. // mp4
  304. src: "http://vjs.zencdn.net/v/oceans.mp4",
  305. // webm
  306. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  307. },
  308. {
  309. type: "video/mp4",
  310. // mp4
  311. src: "http://vjs.zencdn.net/v/oceans.mp4",
  312. // webm
  313. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  314. },
  315. {
  316. type: "video/mp4",
  317. // mp4
  318. src: "http://vjs.zencdn.net/v/oceans.mp4",
  319. // webm
  320. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  321. },
  322. {
  323. type: "video/mp4",
  324. // mp4
  325. src: "http://vjs.zencdn.net/v/oceans.mp4",
  326. // webm
  327. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  328. }],
  329. },
  330. buttonLoading: false,
  331. supervisionDetailsVisible: true,
  332. addPicPanel: false,
  333. gwComFiles: []
  334. };
  335. },
  336. computed: {
  337. hostUrl() {
  338. return hostUrl
  339. },
  340. },
  341. mounted: function () {
  342. this.problemDetail = {};
  343. this.pictureArray = [];
  344. this.audioArray = [];
  345. this.videoArray = [];
  346. this.fileArray = [];
  347. this.showDetails();
  348. },
  349. watch: {
  350. problemId: function () {
  351. this.problemDetail = {};
  352. this.pictureArray = [];
  353. this.audioArray = [];
  354. this.videoArray = [];
  355. this.fileArray = [];
  356. this.showDetails();
  357. }
  358. },
  359. methods: {
  360. init() {
  361. this.activeName = "0";
  362. },
  363. showDetails() {
  364. let obj = {id: this.problemId, bizId: this.problemId}
  365. var _this = this;
  366. request.post(`bis/insp/rsvr/pblm/mend/getWithExtras`, obj).then(res => {
  367. this.problemDetail = res.data;
  368. this.problemDetail.realPlanDt = res.data.realPlanDt ? dateFormat(res.data.realPlanDt, 'yyyy-MM-dd') : '';
  369. this.gwComFiles = this.problemDetail.gwComFiles;
  370. console.log(this.hostUrl);
  371. if (res.data.gwComFiles) {
  372. res.data.gwComFiles.forEach(
  373. (item) => {
  374. if (item.fileExt == 'mp3' || item.fileExt == 'MP3' || item.fileExt == 'm4a') {
  375. this.audioArray.push(item);
  376. } else if (item.fileExt == 'jpg' || item.fileExt == 'JPEG' || item.fileExt == 'jpeg' || item.fileExt == 'JPG' || item.fileExt == 'png' || item.fileExt == 'PNG') {
  377. this.pictureArray.push(item);
  378. } else if (item.fileExt == 'mp4' || item.fileExt == 'MP4') {
  379. this.videoArray.push(
  380. {
  381. height: '350',
  382. autoplay: false,
  383. muted: true,
  384. language: 'en',
  385. playbackRates: [0.7, 1.0, 1.5, 2.0],
  386. sources: [{
  387. type: "video/mp4",
  388. // mp4
  389. src: `${this.hostUrl}/${item.filePath}`
  390. }],
  391. item: item
  392. },
  393. );
  394. } else {
  395. this.fileArray.push(item);
  396. }
  397. }
  398. );
  399. }
  400. _this.$nextTick(function(){
  401. var ViewerDom = document.getElementById('imgView');
  402. var viewer = new Viewer(ViewerDom, {})
  403. });
  404. this.filetabName = this.fileArray.length ? "佐证材料(" + this.fileArray.length + ")" : "佐证材料";
  405. this.picturetabName = this.pictureArray.length ? "图片资料(" + this.pictureArray.length + ")" : "图片资料";
  406. this.audiotabName = this.pictureArray.length ? "音频资料(" + this.audioArray.length + ")" : "音频资料";
  407. this.videotabName = this.videoArray.length ? "视频资料(" + this.videoArray.length + ")" : "视频资料";
  408. });
  409. },
  410. // 提交修改信息
  411. problemDetailInfo(problemDetail) {
  412. this.$refs[problemDetail].validate((valid) => {
  413. if (valid) {
  414. this.buttonLoading = true;
  415. this.$nextTick(() => {
  416. if (this.$refs.uploadFile.submitUpload(this.problemDetail.id)) {
  417. this.removeNewSupervision();
  418. }
  419. setTimeout(() => {
  420. this.problemDetail.gwComFiles = this.gwComFiles;
  421. request.post(`bis/insp/rsvr/pblm/mend/2021/update`, this.problemDetail)
  422. .then(res => {
  423. if (res.success) {
  424. this.$message.success('保存成功');
  425. this.buttonLoading = false;
  426. this.$emit('cancelHandler', true);
  427. } else {
  428. this.buttonLoading = false;
  429. this.$message.warning(res.message);
  430. }
  431. })
  432. .catch(err => {
  433. this.buttonLoading = false;
  434. console.log(err);
  435. })
  436. }, 1000)
  437. })
  438. } else {
  439. console.log('error submit!!');
  440. return false;
  441. }
  442. });
  443. },
  444. cancelHandler() {
  445. this.$emit('cancelHandler');
  446. this.$refs.uploadFile.init();
  447. this.addPicPanel = false;
  448. },
  449. timestampToTime(detail) {
  450. if (detail) {
  451. var date = new Date(detail);
  452. var Y = date.getFullYear() + "-";
  453. var M =
  454. (date.getMonth() + 1 < 10 ?
  455. "0" + (date.getMonth() + 1) :
  456. date.getMonth() + 1) + "-";
  457. var D =
  458. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  459. var h =
  460. (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":";
  461. var m =
  462. date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
  463. return Y + M + D + h + m;
  464. } else {
  465. return "";
  466. }
  467. },
  468. removeNewSupervision(arg) {
  469. if (arg) {
  470. var args = this.gwComFiles.concat(arg);
  471. this.gwComFiles = args;
  472. return;
  473. }
  474. // this.gwComFiles = [];
  475. },
  476. addPic() {
  477. this.addPicPanel = !this.addPicPanel;
  478. },
  479. // 删除图片文件
  480. removeFile(id, index) {
  481. var _self = this;
  482. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  483. confirmButtonText: "确定",
  484. cancelButtonText: "返回",
  485. type: "warning"
  486. }).then(
  487. res => {
  488. if (res === "confirm") {
  489. deleteFileById(id, this.persId).then(res => {
  490. if (res.success) {
  491. this.problemDetail.gwComFiles.forEach(item => {
  492. if (
  493. item.fileExt == "mp3" ||
  494. item.fileExt == "MP3" ||
  495. item.fileExt == "m4a"
  496. ) {
  497. this.audiotabName.splice(index, 1);
  498. } else if (
  499. item.fileExt == "jpg" ||
  500. item.fileExt == "JPG" ||
  501. item.fileExt == "png" ||
  502. item.fileExt == "PNG" ||
  503. item.fileExt == "JPEG" ||
  504. item.fileExt == "jpeg"
  505. ) {
  506. this.pictureArray.splice(index, 1);
  507. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  508. this.videoArray.splice(index, 1);
  509. } else {
  510. this.fileArray.splice(index, 1);
  511. }
  512. });
  513. _self.showDetails();
  514. } else {
  515. this.$message.error(res.message);
  516. }
  517. });
  518. }
  519. },
  520. res => {
  521. console.log("返回");
  522. }
  523. )
  524. },
  525. },
  526. filters: {
  527. zgqk(val) {
  528. switch (val) {
  529. case '0':
  530. return '未整改';
  531. case '1':
  532. return '整改中';
  533. case '2':
  534. return '已整改';
  535. }
  536. },
  537. inspPblmCate(val) {
  538. if (!val || val == '') {
  539. return ''
  540. }
  541. if (val == '0') {
  542. return '一般'
  543. } else if (val == '1') {
  544. return '较重'
  545. } else if (val == '2') {
  546. return '严重'
  547. } else {
  548. return val
  549. }
  550. },
  551. }
  552. };
  553. </script>
  554. <style lang="scss" scoped>
  555. .wtzgfc_view_pblm {
  556. .el-form-item {
  557. width: 100%;
  558. margin-bottom: 0;
  559. }
  560. p.p_title {
  561. text-align: left;
  562. font-weight: bold;
  563. }
  564. .el-radio {
  565. margin-bottom: 15px;
  566. }
  567. .upload-container {
  568. width: 100%;
  569. position: relative;
  570. .image-uploader {
  571. width: 35%;
  572. float: left;
  573. }
  574. .image-preview {
  575. width: 200px;
  576. height: 200px;
  577. position: relative;
  578. border: 1px dashed #d9d9d9;
  579. float: left;
  580. // margin-left: 50px;
  581. .image-preview-wrapper {
  582. position: relative;
  583. width: 100%;
  584. height: 100%;
  585. img {
  586. width: 100%;
  587. height: 100%;
  588. }
  589. }
  590. .image-preview-action {
  591. position: absolute;
  592. width: 100%;
  593. height: 30px;
  594. left: 0;
  595. bottom: 0;
  596. color: #fff;
  597. opacity: 0;
  598. font-size: 20px;
  599. background-color: rgba(0, 0, 0, 0.5);
  600. transition: opacity 0.3s;
  601. cursor: pointer;
  602. text-align: center;
  603. line-height: 30px;
  604. .el-icon-delete {
  605. font-size: 25px;
  606. }
  607. }
  608. &:hover {
  609. .image-preview-action {
  610. opacity: 1;
  611. }
  612. }
  613. }
  614. .image-app-preview {
  615. margin-bottom: 10px;
  616. width: 40vh;
  617. height: 180px;
  618. position: relative;
  619. border: 1px dashed #d9d9d9;
  620. float: left;
  621. // margin-left: 50px;
  622. .app-fake-conver {
  623. height: 44px;
  624. position: absolute;
  625. width: 100%; // background: rgba(0, 0, 0, .1);
  626. text-align: center;
  627. line-height: 64px;
  628. color: #fff;
  629. }
  630. }
  631. }
  632. }
  633. </style>