c5dcd8c9ae1be7d7c7839c5ef323a01e6895e1d9.svn-base 33 KB

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