c0700a97dc4f643d765fa99f7e29e5438f28fc9f.svn-base 29 KB

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