62e9b6f79e6ee9dc68c3ea6e665bf1df33b14605.svn-base 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. <template>
  2. <!-- 修改弹框 -->
  3. <el-dialog width="60%" class="outerDialog custom_dialog" title="修改督查问题" :modal=true @close="closeModal"
  4. :append-to-body=true :visible.sync="changeSupervisionVisible">
  5. <div class="scroll_wrapper">
  6. <div
  7. style="width:49%;overflow-y:auto;max-height:58vh;float:left;border:1px solid #d5d5ff;margin-right:5px;">
  8. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">基本信息</p>
  9. <el-form ref="changeSupFrom" :rules="rules1" :model="changeSupervision" label-width="120px">
  10. <el-form-item label="水毁名称" prop="nm">
  11. <el-input v-model="changeSupervision.nm" clearable :readonly="true"></el-input>
  12. </el-form-item>
  13. <el-form-item label="问题类别" prop="inspPblmsName">
  14. <el-select v-model="t1" value-key="inspPblmsName" placeholder="请选择" @change="problemListChange">
  15. <el-option v-for="(item,index) in problemList" :key="index" :label="item.inspPblmsName"
  16. :value="item">
  17. </el-option>
  18. </el-select>
  19. </el-form-item>
  20. <el-form-item label="检查项目" prop="checkPoint" style="text-align:left">
  21. <el-select v-model="t2" placeholder="请选择" value-key="checkPointName"
  22. @change="currentCheckPointListChange">
  23. <el-option v-for="(item,index) in currentCheckPointList" :key="index"
  24. :label="item.checkPointName" :value="item">
  25. </el-option>
  26. </el-select>
  27. </el-form-item>
  28. <el-form-item label="问题描述" prop="pblmDesc" style="text-align:left">
  29. <el-select v-model="t3" placeholder="请选择" value-key="pblmDesc"
  30. @change="currentProblemDescListChange" style="max-width: 500px">
  31. <el-option v-for="(item,index) in currentProblemDescList" :key="index"
  32. :label="item.pblmDesc" :value="item" :title="item.pblmDesc" style="max-width: 500px">
  33. </el-option>
  34. </el-select>
  35. </el-form-item>
  36. <el-form-item label="具体描述" prop="inspPblmDesc">
  37. <el-input type="textarea" :rows="2" v-model="changeSupervision.inspPblmDesc" clearable>
  38. </el-input>
  39. </el-form-item>
  40. <el-form-item label="严重程度:">
  41. <el-select v-model="changeSupervision.inspPblmCate" disabled clearable disable
  42. placeholder="请选择">
  43. <el-option v-for="item in supervisionState" :key="item.value" :label="item.label"
  44. :value="item.value"></el-option>
  45. </el-select>
  46. </el-form-item>
  47. <el-form-item label="是否为典型问题:">
  48. <el-select v-model="changeSupervision.ifCasePblm" clearable placeholder="请选择">
  49. <el-option v-for="item in supervision" :key="item.value" :label="item.label"
  50. :value="item.value"></el-option>
  51. </el-select>
  52. </el-form-item>
  53. <el-form-item label="建议措施" prop="note">
  54. <el-input type="textarea" :rows="2" v-model.trim="changeSupervision.note" clearable></el-input>
  55. </el-form-item>
  56. <el-form-item label="备注">
  57. <el-input type="textarea" :rows="2" v-model.trim="changeSupervision.wtdstNote" clearable>
  58. </el-input>
  59. </el-form-item>
  60. <el-form-item label="上报人" prop="persName">
  61. <el-input resize="none" type="input" :rows="3" readonly placeholder="请输入"
  62. v-model.trim="changeSupervision.persName"></el-input>
  63. </el-form-item>
  64. <el-form-item label="上报时间" prop="collTime">
  65. <el-date-picker v-model="changeSupervision.collTime" readonly type="date"></el-date-picker>
  66. </el-form-item>
  67. </el-form>
  68. </div>
  69. <div
  70. style="width: 49%;float: left;border: 1px solid rgb(213, 213, 255);margin-right: 5px;overflow-y: auto;max-height: 58vh;">
  71. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">多媒体信息</p>
  72. <el-tabs style="margin:0px 5px">
  73. <el-tab-pane :label="picturetabName">
  74. <el-row style="text-align:right;">
  75. <el-button :v-if="!addPicPanel?addPicPanel:addPicPanel" size="mini" type="text"
  76. :icon="!addPicPanel?'el-icon-circle-plus-outline':'el-icon-circle-close-outline'"
  77. @click="addPic">{{!addPicPanel?"添加":"取消"}}</el-button>
  78. </el-row>
  79. <!-- 该上传组件之前用v-if="addPicPanel 控制显示隐藏,发现在点击编辑问题时,如果不上传图片,之间点击确认时会报错 add by lch -->
  80. <el-row v-show="addPicPanel">
  81. <!-- v-if="addPicPanel" -->
  82. <upload ref="uploadFile" :url="`/pdcApi/file/insert?bizId=`"
  83. @uploadOver="removeNewSupervision"></upload>
  84. </el-row>
  85. <el-row>
  86. <div style="overflow-y:auto;overflow-x:hidden;max-height:30vh;padding:10px;">
  87. <div class="upload-container" id="imgView">
  88. <div v-for="(item, index) in pictureArray" :key="index"
  89. class="image-preview image-app-preview">
  90. <div class="image-preview-wrapper">
  91. <img :src="`${hostUrl}/${item.filePath}`">
  92. <div class="image-preview-action">
  93. <i @click="removeFile(item.id)" class="el-icon-delete"></i>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </el-row>
  100. </el-tab-pane>
  101. <el-tab-pane :label="audiotabName">
  102. <el-table border :data="audioArray" style="width: 100%;margin: 0 auto;">
  103. <el-table-column header-align="center" align="center" label="音频">
  104. <template slot-scope="scope">
  105. <elaudio style="margin-left:15%;width:100px;height:30px;"
  106. :theUrl="`${hostUrl}/${scope.row.filePath}`"></elaudio>
  107. </template>
  108. </el-table-column>
  109. <el-table-column header-align="center" align="center" label="操作">
  110. <template slot-scope="scope">
  111. <el-button size="mini" @click="removeFile(scope.row.id,scope.$index)" type="danger">
  112. 删除</el-button>
  113. </template>
  114. </el-table-column>
  115. </el-table>
  116. </el-tab-pane>
  117. <el-tab-pane :label="videotabName">
  118. <el-table border :data="videoArray" style="width: 100%;margin: 0 auto;">
  119. <el-table-column header-align="center" align="center" label="视频">
  120. <template slot-scope="scope">
  121. <video-player class="vjs-custom-skin" ref="videoPlayer" :options="scope.row"
  122. :playsinline="true"></video-player>
  123. </template>
  124. </el-table-column>
  125. <el-table-column header-align="center" align="center" label="操作">
  126. <template slot-scope="scope">
  127. <el-button size="mini" @click="removeFile(scope.row.id,scope.$index)" type="danger">
  128. 删除</el-button>
  129. </template>
  130. </el-table-column>
  131. </el-table>
  132. </el-tab-pane>
  133. <el-tab-pane :label="filetabName">
  134. <el-table border :data="fileArray" style="width: 100%;margin: 0 auto;">
  135. <el-table-column header-align="center" align="center" label="文档">
  136. <template slot-scope="scope">
  137. <p>
  138. <a :href="`${hostUrl}/${scope.row.filePath}`" target="_blank" rel="noopener noreferrer">
  139. {{ scope.row.fileName }}
  140. </a>
  141. </p>
  142. </template>
  143. </el-table-column>
  144. </el-table>
  145. </el-tab-pane>
  146. <el-tab-pane label="问题确认单">
  147. <pblmConfirmShett :openType="true" :currentObjectId="changeSupervision.objId" :key="changeSupervision.objId"></pblmConfirmShett>
  148. </el-tab-pane>
  149. </el-tabs>
  150. </div>
  151. </div>
  152. <span slot="footer">
  153. <el-button type="primary" @click="changeSupervisionInfo">保存</el-button>
  154. <el-button @click="changeSupervisionVisiblefalse">取消</el-button>
  155. </span>
  156. </el-dialog>
  157. </template>
  158. <script>
  159. import { showDetailsXq, updatelist, deleteFileById } from "../../api/duChaAPI.js";
  160. import request from "../../utils/gw_ajax_request.js";
  161. import { hostUrl } from "@util/global_variable.js";
  162. import Viewer from 'viewerjs';
  163. import 'viewerjs/dist/viewer.css';
  164. export default {
  165. props: ['editId'],
  166. data() {
  167. return {
  168. changeSupervisionVisible: true,
  169. changeSupervisionLoading: false,
  170. changeSupervision: {},
  171. rules1: {
  172. inspPblmName: [
  173. {
  174. required: true,
  175. message: "请输入问题名称",
  176. trigger: "blur"
  177. },
  178. {
  179. min: 1,
  180. max: 999,
  181. message: "不超过100字符",
  182. trigger: "blur"
  183. }
  184. ],
  185. inspPblmDesc: [
  186. {
  187. required: true,
  188. message: "请输入问题描述",
  189. trigger: "blur"
  190. }
  191. ],
  192. recPers: [
  193. {
  194. required: true,
  195. message: "请输入记录人",
  196. trigger: "blur"
  197. },
  198. {
  199. min: 1,
  200. max: 999,
  201. message: "不超过100字符",
  202. trigger: "blur"
  203. }
  204. ],
  205. objType: [
  206. {
  207. required: true,
  208. message: "请选择督查对象类型",
  209. trigger: "change"
  210. }
  211. ],
  212. objId: [
  213. {
  214. required: true,
  215. message: "请选择督查对象类型",
  216. trigger: "change"
  217. }
  218. ],
  219. inspPblmType: [
  220. {
  221. required: true,
  222. message: "请选择督查问题类型",
  223. trigger: "change"
  224. }
  225. ],
  226. dataStat: [
  227. {
  228. required: true,
  229. message: "请选择数据状态",
  230. trigger: "change"
  231. }
  232. ],
  233. collTime: [
  234. {
  235. required: true,
  236. message: "请选择采集时间",
  237. trigger: "change"
  238. }
  239. ],
  240. ifCasePblm: [
  241. {
  242. required: true,
  243. message: "请选择是否典型",
  244. trigger: "change"
  245. }
  246. ],
  247. pblmStat: [
  248. {
  249. required: true,
  250. message: "请选择问题类型",
  251. trigger: "change"
  252. }
  253. ],
  254. inspPblmCate: [
  255. {
  256. required: true,
  257. message: "请选择问题程度",
  258. trigger: "change"
  259. },
  260. {
  261. trigger: "change"
  262. }
  263. ]
  264. },
  265. supervisionState: [
  266. {
  267. value: "0",
  268. label: "一般"
  269. },
  270. {
  271. value: "1",
  272. label: "较重"
  273. },
  274. {
  275. value: "2",
  276. label: "严重"
  277. },
  278. {
  279. value: "3",
  280. label: "特别严重"
  281. }
  282. ],
  283. supervision: [
  284. {
  285. value: "1",
  286. label: "是"
  287. },
  288. {
  289. value: "0",
  290. label: "否"
  291. }
  292. ],
  293. addPicPanel: false,
  294. gwComFiles: [],
  295. picturetabName: "",
  296. audiotabName: "",
  297. videotabName: "",
  298. filetabName:"",
  299. pictureArray: [],
  300. audioArray: [],
  301. videoArray: [],
  302. fileArray: [],
  303. updateIdXiuGai: "",
  304. pblmId: "",
  305. t1: {},
  306. t2: {},
  307. t3: {},
  308. problemList: [],
  309. currentCheckPointList: [],
  310. currentProblemDescList: [],
  311. xiangqingmiaoshu: '',
  312. wenTiLeiBie: "",
  313. jianChaXiangMu: "",
  314. pguid: "03000000000000000000000000000000"
  315. }
  316. },
  317. components: {
  318. upload: resolve => {
  319. require(["../../widgets/uploadFile.vue"], resolve);
  320. },
  321. pblmConfirmShett: resolve => {
  322. require(["../duChaDuiXiang/pblmConfirmShett"], resolve);
  323. }
  324. },
  325. computed: {
  326. hostUrl() {
  327. return hostUrl
  328. },
  329. persId() {
  330. return localStorage.getItem("userid") ? localStorage.getItem("userid") : "1098101939614724096";
  331. }
  332. },
  333. mounted() {
  334. this.getproblemSmallType();
  335. },
  336. methods: {
  337. // 修改弹窗显示
  338. changeSup(id) {
  339. this.pictureArray = [];
  340. this.audioArray = [];
  341. this.videoArray = [];
  342. this.updateIdXiuGai = id;
  343. let _this = this
  344. showDetailsXq(this.updateIdXiuGai).then(res => {
  345. this.$nextTick(() => {
  346. this.changeSupervision = res.data;
  347. this.changeSupervision = res.data;
  348. this.gwComFiles = this.changeSupervision.gwComFiles;
  349. this.t1['inspPblmsName'] = this.changeSupervision.inspPblmsName
  350. this.problemList.forEach(ele => {
  351. if (ele.inspPblmsName == _this.t1.inspPblmsName) {
  352. _this.problemListChange(ele)
  353. }
  354. })
  355. this.t2['checkPointName'] = this.changeSupervision.checkPoint
  356. this.currentCheckPointList.forEach(ele => {
  357. if (ele.checkPointName == _this.t2.checkPointName) {
  358. _this.currentCheckPointListChange(ele)
  359. }
  360. })
  361. this.t3['pblmDesc'] = this.changeSupervision.pblmDesc
  362. res.data.gwComFiles.forEach(item => {
  363. if (
  364. item.fileExt == "mp3" ||
  365. item.fileExt == "MP3" ||
  366. item.fileExt == "m4a"
  367. ) {
  368. this.audioArray.push(item);
  369. } else if (
  370. item.fileExt == "jpg" ||
  371. item.fileExt == "JPG" ||
  372. item.fileExt == "png" ||
  373. item.fileExt == "PNG" ||
  374. item.fileExt == "JPEG" ||
  375. item.fileExt == "jpeg"
  376. ) {
  377. this.pictureArray.push(item);
  378. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  379. this.videoArray.push({
  380. id: item.id,
  381. bizId: item.bizId,
  382. width: "130",
  383. height: "130",
  384. autoplay: false,
  385. muted: true,
  386. language: "en",
  387. playbackRates: [0.7, 1.0, 1.5, 2.0],
  388. sources: [
  389. {
  390. type: "video/mp4",
  391. src: this.hostUrl + item.filePath
  392. }
  393. ]
  394. });
  395. }
  396. });
  397. _this.$nextTick(function(){
  398. var ViewerDom = document.getElementById('imgView');
  399. var viewer = new Viewer(ViewerDom, {})
  400. });
  401. this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  402. this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  403. this.videotabName = "视频资料(" + this.videoArray.length + ")";
  404. this.filetabName = "其他资料(" + this.fileArray.length + ")";
  405. })
  406. });
  407. },
  408. // 提交修改信息
  409. changeSupervisionInfo() {
  410. console.log(this)
  411. var _self = this;
  412. this.$refs.changeSupFrom.validate(valid => {
  413. if (valid) {
  414. _self.changeSupervisionLoading = true;
  415. _self.changeSupervision.inspPblmsName = _self.xiangqingmiaoshu
  416. _self.changeSupervision.checkPoint = _self.jianChaXiangMu
  417. _self.changeSupervision.inspPblmName = _self.wenTiLeiBie
  418. _self.changeSupervision.inspPlbmType = _self.t2.sort2;
  419. _self.changeSupervision.inspPblmCode = _self.t3.sn;
  420. _self.changeSupervision.pblmsTypeId = _self.t3.guid;
  421. let data = _self.changeSupervision;
  422. updatelist(data).then(res => {
  423. _self.pblmId = res.data.pblmId;
  424. _self.gwComFiles = res.data.gwComFiles;
  425. if (res.success) {
  426. if (_self.$refs.uploadFile.submitUpload(data.pblmId)) {
  427. _self.removeNewSupervision();
  428. _self.successInfo();
  429. _self.addPicPanel = false;
  430. _self.changeSupervisionLoading = false;
  431. }
  432. } else {
  433. _self.failInfo();
  434. _self.$emit('closeEditDialog')
  435. }
  436. });
  437. }
  438. });
  439. },
  440. removeNewSupervision(arg) {
  441. if (arg) {
  442. var args = this.gwComFiles.concat(arg);
  443. }
  444. this.changeSup(this.editId)
  445. this.gwComFiles = [];
  446. this.$emit('closeEditDialog', 'success')
  447. },
  448. changeSupervisionVisiblefalse() {
  449. this.$emit('closeEditDialog')
  450. this.$refs.uploadFile.init();
  451. this.addPicPanel = false;
  452. },
  453. addPic() {
  454. this.addPicPanel = !this.addPicPanel;
  455. },
  456. // 删除图片文件
  457. removeFile(id, index) {
  458. // this.updateIdXiuGai = this.updateIdXiuGai;
  459. var _self = this;
  460. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  461. confirmButtonText: "确定",
  462. cancelButtonText: "返回",
  463. type: "warning"
  464. }).then(
  465. res => {
  466. if (res === "confirm") {
  467. deleteFileById(id, this.persId).then(res => {
  468. if (res.success) {
  469. this.changeSupervision.gwComFiles.forEach(item => {
  470. if (
  471. item.fileExt == "mp3" ||
  472. item.fileExt == "MP3" ||
  473. item.fileExt == "m4a"
  474. ) {
  475. this.audiotabName.splice(index, 1);
  476. } else if (
  477. item.fileExt == "jpg" ||
  478. item.fileExt == "JPG" ||
  479. item.fileExt == "png" ||
  480. item.fileExt == "PNG" ||
  481. item.fileExt == "JPEG" ||
  482. item.fileExt == "jpeg"
  483. ) {
  484. this.pictureArray.splice(index, 1);
  485. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  486. this.videoArray.splice(index, 1);
  487. }
  488. });
  489. _self.changeSup(this.updateIdXiuGai);
  490. } else {
  491. this.failInfo();
  492. }
  493. });
  494. }
  495. },
  496. res => {
  497. console.log("返回");
  498. }
  499. )
  500. },
  501. // 操作成功反馈
  502. successInfo() {
  503. this.$message({
  504. type: "success",
  505. message: "操作成功!"
  506. });
  507. this.$emit('closeEditDialog')
  508. },
  509. // 操作失败反馈
  510. failInfo(val) {
  511. this.$message.error(val);
  512. },
  513. // 文件上传
  514. submitUpload() {
  515. this.$refs.upload.submit();
  516. },
  517. closeModal() {
  518. this.$emit('closeEditDialog')
  519. },
  520. getproblemSmallType() {
  521. let result = [];
  522. request.get('/dc/insp/pblms/getPblmType', {
  523. params: {
  524. type: 3,
  525. pguid: this.pguid
  526. }
  527. }).then(res => {
  528. if (res.success) {
  529. res.data.forEach((ele) => {
  530. let haveinspPblmsName = false;
  531. result.forEach((inspPblm) => {
  532. if (inspPblm['inspPblmsName'] == ele.inspPblmsName) {
  533. //
  534. let havechekPoint = false;
  535. inspPblm['checkPoints'].forEach((chekPoint) => {
  536. if (chekPoint['checkPointName'] == ele.checkPoint) {
  537. //
  538. chekPoint['pblmDescs'].push({
  539. pblmDesc: ele.pblmDesc,
  540. sn: ele.sn,
  541. guid: ele.guid,
  542. });
  543. havechekPoint = true;
  544. }
  545. });
  546. if (!havechekPoint) {
  547. let newCheckPoint = {};
  548. newCheckPoint['checkPointName'] = ele.checkPoint;
  549. newCheckPoint['sort2'] = ele.sort2;
  550. newCheckPoint['pblmDescs'] = [{
  551. pblmDesc: ele.pblmDesc,
  552. sn: ele.sn,
  553. guid: ele.guid,
  554. }]
  555. inspPblm['checkPoints'].push(newCheckPoint);
  556. }
  557. haveinspPblmsName = true;
  558. }
  559. });
  560. if (!haveinspPblmsName) {
  561. let haveinspPblmsObj = {};
  562. haveinspPblmsObj['inspPblmsName'] = ele.inspPblmsName;
  563. haveinspPblmsObj['sort1'] = ele.sort1;
  564. haveinspPblmsObj['checkPoints'] = [{
  565. checkPointName: ele.checkPoint,
  566. sort2: ele.sort2,
  567. pblmDescs: [{
  568. pblmDesc: ele.pblmDesc,
  569. sn: ele.sn,
  570. guid: ele.guid,
  571. }]
  572. }];
  573. result.push(haveinspPblmsObj);
  574. }
  575. })
  576. this.problemList = result;
  577. this.changeSup(this.editId)
  578. }
  579. })
  580. },
  581. getYanZhongChengDu() {
  582. request.post('/dc/insp/pblms/getPblmsByType', {
  583. inspPblmsName: this.wenTiLeiBie,
  584. checkPoint: this.jianChaXiangMu,
  585. pblmDesc: this.xiangqingmiaoshu,
  586. type: 3
  587. }).then(res => {
  588. if (res.success) {
  589. this.changeSupervision.inspPblmCate = res.data.inspPblmCate;
  590. }
  591. })
  592. },
  593. problemListChange: function (item) {
  594. this.t1 = item
  595. this.wenTiLeiBie = item.inspPblmsName;
  596. this.currentCheckPointList = item.checkPoints;
  597. },
  598. currentCheckPointListChange: function (item) {
  599. this.jianChaXiangMu = item.checkPointName;
  600. this.currentProblemDescList = item.pblmDescs;
  601. },
  602. currentProblemDescListChange: function (item) {
  603. this.xiangqingmiaoshu = item.pblmDesc;
  604. console.log(item);
  605. },
  606. },
  607. watch: {
  608. editId(val) {
  609. this.changeSup(val)
  610. },
  611. 't3': {
  612. handler: function (val, oldVal) {
  613. this.getYanZhongChengDu()
  614. },
  615. deep: true
  616. },
  617. }
  618. }
  619. </script>
  620. <style scoped lang="scss">
  621. .scroll_wrapper {
  622. overflow: hidden;
  623. }
  624. .scroll_wrapper .el-form {
  625. padding-top: 5px;
  626. padding-right: 5px;
  627. }
  628. .upload-container {
  629. width: 100%;
  630. position: relative;
  631. .image-uploader {
  632. width: 35%;
  633. float: left;
  634. }
  635. .image-preview {
  636. width: 200px;
  637. height: 200px;
  638. position: relative;
  639. border: 1px dashed #d9d9d9;
  640. float: left;
  641. // margin-left: 50px;
  642. .image-preview-wrapper {
  643. position: relative;
  644. width: 100%;
  645. height: 100%;
  646. img {
  647. width: 100%;
  648. height: 100%;
  649. }
  650. }
  651. .image-preview-action {
  652. position: absolute;
  653. width: 100%;
  654. height: 30px;
  655. left: 0;
  656. bottom: 0;
  657. color: #fff;
  658. opacity: 0;
  659. font-size: 20px;
  660. background-color: rgba(0, 0, 0, 0.5);
  661. transition: opacity 0.3s;
  662. cursor: pointer;
  663. text-align: center;
  664. line-height: 30px;
  665. .el-icon-delete {
  666. font-size: 25px;
  667. }
  668. }
  669. &:hover {
  670. .image-preview-action {
  671. opacity: 1;
  672. }
  673. }
  674. }
  675. .image-app-preview {
  676. margin-bottom: 10px;
  677. width: 40vh;
  678. height: 180px;
  679. position: relative;
  680. border: 1px dashed #d9d9d9;
  681. float: left;
  682. // margin-left: 50px;
  683. .app-fake-conver {
  684. height: 44px;
  685. position: absolute;
  686. width: 100%; // background: rgba(0, 0, 0, .1);
  687. text-align: center;
  688. line-height: 64px;
  689. color: #fff;
  690. }
  691. }
  692. }
  693. </style>