71e1dd73e1acaedd50b23d7564cfdcd9cb94ba0d.svn-base 29 KB

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