2a178a595e94706b1dc2a231b42714ae90bfb7b4.svn-base 32 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.pnm" 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="备注" prop="note">
  40. <el-input type="textarea" :rows="2" v-model.trim="changeSupervision.note" clearable></el-input>
  41. </el-form-item>
  42. <!-- <el-form-item label="严重程度:">
  43. <el-select v-model="changeSupervision.inspPblmCate" disabled placeholder="请选择">
  44. <el-option
  45. v-for="item in supervisionState"
  46. :key="item.value"
  47. :label="item.label"
  48. :value="item.value"
  49. ></el-option>
  50. </el-select>
  51. </el-form-item> -->
  52. <!--<el-form-item label="是否为典型问题:">-->
  53. <!--<el-select v-model="changeSupervision.ifCasePblm" clearable placeholder="请选择">-->
  54. <!--<el-option-->
  55. <!--v-for="item in supervision"-->
  56. <!--:key="item.value"-->
  57. <!--:label="item.label"-->
  58. <!--:value="item.value"-->
  59. <!--&gt;</el-option>-->
  60. <!--</el-select>-->
  61. <!--</el-form-item>-->
  62. <el-form-item label="上报人" prop="persName">
  63. <el-input
  64. resize="none"
  65. type="input"
  66. :rows="3"
  67. readonly
  68. placeholder="请输入"
  69. v-model.trim="changeSupervision.persName"
  70. ></el-input>
  71. </el-form-item>
  72. <el-form-item label="上报时间" prop="collTime">
  73. <el-date-picker v-model="changeSupervision.collTime" readonly type="date"></el-date-picker>
  74. </el-form-item>
  75. </el-form>
  76. </div>
  77. <div
  78. style="width: 49%;float: left;border: 1px solid rgb(213, 213, 255);margin-right: 5px;overflow-y: auto;max-height: 58vh;">
  79. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">多媒体信息</p>
  80. <el-tabs style="margin:0px 5px">
  81. <el-tab-pane :label="picturetabName">
  82. <el-row style="text-align:right;">
  83. <el-button
  84. :v-if="!addPicPanel?addPicPanel:addPicPanel"
  85. size="mini"
  86. type="text"
  87. :icon="!addPicPanel?'el-icon-circle-plus-outline':'el-icon-circle-close-outline'"
  88. @click="addPic"
  89. >{{!addPicPanel?"添加":"取消"}}</el-button>
  90. </el-row>
  91. <el-row v-show="addPicPanel">
  92. <upload
  93. ref="uploadFile"
  94. :url="`/pdcApi/file/insert?bizId=`"
  95. @uploadOver="removeNewSupervision"
  96. ></upload>
  97. </el-row>
  98. <el-row>
  99. <div style="overflow-y:auto;overflow-x:hidden;max-height:30vh;padding:10px;">
  100. <div class="upload-container" id="imgView">
  101. <div
  102. v-for="(item, index) in pictureArray"
  103. :key="index"
  104. class="image-preview image-app-preview"
  105. >
  106. <div class="image-preview-wrapper">
  107. <img :src="`${hostUrl}/${item.filePath}`">
  108. <div class="image-preview-action">
  109. <i @click="removeFile(item.id)" class="el-icon-delete"></i>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </el-row>
  116. </el-tab-pane>
  117. <el-tab-pane :label="audiotabName">
  118. <el-table border :data="audioArray" style="width: 100%;margin: 0 auto;">
  119. <el-table-column header-align="center" align="center" label="音频">
  120. <template slot-scope="scope">
  121. <elaudio
  122. style="margin-left:15%;width:100px;height:30px;"
  123. :theUrl="`${hostUrl}/${scope.row.filePath}`"
  124. ></elaudio>
  125. </template>
  126. </el-table-column>
  127. <el-table-column header-align="center" align="center" label="操作">
  128. <template slot-scope="scope">
  129. <el-button
  130. size="mini"
  131. @click="removeFile(scope.row.id,scope.$index)"
  132. type="danger"
  133. >删除</el-button>
  134. </template>
  135. </el-table-column>
  136. </el-table>
  137. </el-tab-pane>
  138. <el-tab-pane :label="videotabName">
  139. <el-table border :data="videoArray" style="width: 100%;margin: 0 auto;">
  140. <el-table-column header-align="center" align="center" label="视频">
  141. <template slot-scope="scope">
  142. <video-player
  143. class="vjs-custom-skin"
  144. ref="videoPlayer"
  145. :options="scope.row"
  146. :playsinline="true"
  147. ></video-player>
  148. </template>
  149. </el-table-column>
  150. <el-table-column header-align="center" align="center" label="操作">
  151. <template slot-scope="scope">
  152. <el-button
  153. size="mini"
  154. @click="removeFile(scope.row.id,scope.$index)"
  155. type="danger"
  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">保存</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 "@util/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'],
  200. data(){
  201. return{
  202. changeSupervisionVisible: true,
  203. changeSupervisionLoading: false,
  204. changeSupervision: {},
  205. rules1: {
  206. inspPblmName: [
  207. {
  208. required: true,
  209. message: "请输入问题名称",
  210. trigger: "blur"
  211. },
  212. {
  213. min: 1,
  214. max: 999,
  215. message: "不超过100字符",
  216. trigger: "blur"
  217. }
  218. ],
  219. inspPblmDesc: [
  220. {
  221. required: true,
  222. message: "请输入问题描述",
  223. trigger: "blur"
  224. }
  225. ],
  226. recPers: [
  227. {
  228. required: true,
  229. message: "请输入记录人",
  230. trigger: "blur"
  231. },
  232. {
  233. min: 1,
  234. max: 999,
  235. message: "不超过100字符",
  236. trigger: "blur"
  237. }
  238. ],
  239. objType: [
  240. {
  241. required: true,
  242. message: "请选择督查对象类型",
  243. trigger: "change"
  244. }
  245. ],
  246. objId: [
  247. {
  248. required: true,
  249. message: "请选择督查对象类型",
  250. trigger: "change"
  251. }
  252. ],
  253. inspPblmType: [
  254. {
  255. required: true,
  256. message: "请选择督查问题类型",
  257. trigger: "change"
  258. }
  259. ],
  260. dataStat: [
  261. {
  262. required: true,
  263. message: "请选择数据状态",
  264. trigger: "change"
  265. }
  266. ],
  267. collTime: [
  268. {
  269. required: true,
  270. message: "请选择采集时间",
  271. trigger: "change"
  272. }
  273. ],
  274. // ifCasePblm: [
  275. // {
  276. // required: true,
  277. // message: "请选择是否典型",
  278. // trigger: "change"
  279. // }
  280. // ],
  281. pblmStat: [
  282. {
  283. required: true,
  284. message: "请选择问题类型",
  285. trigger: "change"
  286. }
  287. ],
  288. inspPblmCate: [
  289. {
  290. required: true,
  291. message: "请选择问题程度",
  292. trigger: "change"
  293. },
  294. {
  295. trigger: "change"
  296. }
  297. ]
  298. },
  299. supervision: [
  300. {
  301. value: "1",
  302. label: "是"
  303. },
  304. {
  305. value: "0",
  306. label: "否"
  307. }
  308. ],
  309. supervisionState: [
  310. {
  311. value: "0",
  312. label: "一般"
  313. },
  314. {
  315. value: "1",
  316. label: "较重"
  317. },
  318. {
  319. value: "2",
  320. label: "严重"
  321. },
  322. {
  323. value: "3",
  324. label: "特别严重"
  325. }
  326. ],
  327. addPicPanel: false,
  328. gwComFiles: [],
  329. picturetabName: "",
  330. audiotabName: "",
  331. videotabName: "",
  332. filetabName: "",
  333. pictureArray: [],
  334. audioArray: [],
  335. videoArray: [],
  336. fileArray:[],
  337. updateIdXiuGai: "",
  338. pblmId: "",
  339. t1: {},
  340. t2: {},
  341. t3: {},
  342. problemList: [],
  343. currentCheckPointList: [],
  344. currentProblemDescList: [],
  345. xiangqingmiaoshu: '',
  346. wenTiLeiBie:"",
  347. jianChaXiangMu:"",
  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.fileArray = [];
  373. this.updateIdXiuGai = id;
  374. let _this = this
  375. request.get(`/dc/insp/pblm/${this.updateIdXiuGai}`).then(res => {
  376. // if(this.usersId==)
  377. this.changeSupervision = res.data;
  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. this.$refs.changeSupFrom.validate(valid => {
  441. if (valid) {
  442. this.changeSupervisionLoading = true;
  443. this.changeSupervision.inspPblmName = this.wenTiLeiBie;
  444. this.changeSupervision.checkPoint = this.jianChaXiangMu;
  445. // this.changeSupervision.inspPblmDesc = this.xiangqingmiaoshu;
  446. this.changeSupervision.inspPlbmType = this.t2.sort2;
  447. this.changeSupervision.inspPblmCode = this.t3.sn;
  448. this.changeSupervision.pblmsTypeId = this.t3.guid;
  449. let data = this.changeSupervision;
  450. updatelist(data).then(res => {
  451. this.pblmId = res.data.pblmId;
  452. this.gwComFiles = res.data.gwComFiles;
  453. if (res.success) {
  454. if (this.$refs.uploadFile.submitUpload(data.pblmId)) {
  455. this.removeNewSupervision();
  456. this.successInfo();
  457. this.addPicPanel = false;
  458. this.changeSupervisionLoading = false;
  459. }
  460. } else {
  461. this.failInfo();
  462. this.$emit('closeEditDialog')
  463. }
  464. });
  465. }
  466. });
  467. },
  468. removeNewSupervision(arg) {
  469. if (arg) {
  470. var args = this.gwComFiles.concat(arg);
  471. }
  472. this.changeSup(this.editId)
  473. this.gwComFiles = [];
  474. this.$emit('closeEditDialog')
  475. },
  476. changeSupervisionVisiblefalse() {
  477. this.$emit('closeEditDialog')
  478. this.$refs.uploadFile.init();
  479. this.addPicPanel = false;
  480. },
  481. addPic() {
  482. this.addPicPanel = !this.addPicPanel;
  483. },
  484. // 删除图片文件
  485. removeFile(id, index) {
  486. // this.updateIdXiuGai = this.updateIdXiuGai;
  487. var _self = this;
  488. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  489. confirmButtonText: "确定",
  490. cancelButtonText: "返回",
  491. type: "warning"
  492. }).then(
  493. res => {
  494. if (res === "confirm") {
  495. deleteFileById(id, this.persId).then(res => {
  496. if (res.success) {
  497. this.changeSupervision.gwComFiles.forEach(item => {
  498. if (
  499. item.fileExt == "mp3" ||
  500. item.fileExt == "MP3" ||
  501. item.fileExt == "m4a"
  502. ) {
  503. this.audiotabName.splice(index, 1);
  504. } else if (
  505. item.fileExt == "jpg" ||
  506. item.fileExt == "JPG" ||
  507. item.fileExt == "png" ||
  508. item.fileExt == "PNG" ||
  509. item.fileExt == "JPEG" ||
  510. item.fileExt == "jpeg"
  511. ) {
  512. this.pictureArray.splice(index, 1);
  513. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  514. this.videoArray.splice(index, 1);
  515. }
  516. });
  517. _self.changeSup(this.updateIdXiuGai);
  518. } else {
  519. this.failInfo();
  520. }
  521. });
  522. }
  523. },
  524. res => {
  525. console.log("返回");
  526. }
  527. )
  528. },
  529. // 操作成功反馈
  530. successInfo() {
  531. this.$message({
  532. type: "success",
  533. message: "操作成功!"
  534. });
  535. },
  536. // 操作失败反馈
  537. failInfo(val) {
  538. this.$message.error(val);
  539. },
  540. // 文件上传
  541. submitUpload() {
  542. this.$refs.upload.submit();
  543. },
  544. closeModal(){
  545. this.$emit('closeEditDialog')
  546. },
  547. getproblemSmallType() {
  548. let result = [];
  549. request.get('/dc/insp/pblms/getPblmType', {
  550. params: {
  551. type: '70',
  552. pguid: '70000000000000000000000000000000'
  553. }
  554. }).then(res => {
  555. if (res.success) {
  556. res.data.forEach((ele) => {
  557. let haveinspPblmsName = false;
  558. result.forEach((inspPblm) => {
  559. if (inspPblm['inspPblmsName'] == ele.inspPblmsName) {
  560. //
  561. let havechekPoint = false;
  562. inspPblm['checkPoints'].forEach((chekPoint) => {
  563. if (chekPoint['checkPointName'] == ele.checkPoint) {
  564. //
  565. chekPoint['pblmDescs'].push({
  566. pblmDesc: ele.pblmDesc,
  567. sn: ele.sn,
  568. guid: ele.guid,
  569. });
  570. havechekPoint = true;
  571. }
  572. });
  573. if (!havechekPoint) {
  574. let newCheckPoint = {};
  575. newCheckPoint['checkPointName'] = ele.checkPoint;
  576. newCheckPoint['sort2'] = ele.sort2;
  577. newCheckPoint['pblmDescs'] = [{
  578. pblmDesc: ele.pblmDesc,
  579. sn: ele.sn,
  580. guid: ele.guid,
  581. }]
  582. inspPblm['checkPoints'].push(newCheckPoint);
  583. }
  584. haveinspPblmsName = true;
  585. }
  586. });
  587. if (!haveinspPblmsName) {
  588. let haveinspPblmsObj = {};
  589. haveinspPblmsObj['inspPblmsName'] = ele.inspPblmsName;
  590. haveinspPblmsObj['sort1'] = ele.sort1;
  591. haveinspPblmsObj['checkPoints'] = [{
  592. checkPointName: ele.checkPoint,
  593. sort2: ele.sort2,
  594. pblmDescs: [{
  595. pblmDesc: ele.pblmDesc,
  596. sn: ele.sn,
  597. guid: ele.guid,
  598. }]
  599. }];
  600. result.push(haveinspPblmsObj);
  601. }
  602. })
  603. this.problemList = result;
  604. this.changeSup(this.editId)
  605. }
  606. })
  607. },
  608. getYanZhongChengDu(){
  609. request.post('/dc/insp/pblms/getByPblms', {
  610. inspPblmsName:this.wenTiLeiBie,
  611. checkPoint:this.jianChaXiangMu,
  612. pblmDesc:this.xiangqingmiaoshu
  613. }).then(res => {
  614. if (res.success) {
  615. this.changeSupervision.inspPblmCate=res.data.inspPblmCate;
  616. }
  617. })
  618. },
  619. problemListChange: function (item) {
  620. this.t1 = item
  621. this.wenTiLeiBie = item.inspPblmsName;
  622. this.currentCheckPointList = item.checkPoints;
  623. },
  624. currentCheckPointListChange: function (item) {
  625. this.jianChaXiangMu = item.checkPointName;
  626. this.currentProblemDescList = item.pblmDescs;
  627. },
  628. currentProblemDescListChange: function (item) {
  629. this.xiangqingmiaoshu = item.pblmDesc;
  630. console.log(item);
  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>