c5de6ebfa8a30bcfa30fa3d1c094f4081581c560.svn-base 28 KB

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