6c4fddfe8a6622d543a495e7940629e61ec3cd60.svn-base 32 KB

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