cb7357b5a073fefdb4b0fbea5ae1cac8a6d61a4f.svn-base 28 KB

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