8b0a59d6258d4c9ed04d0aae42d96050d779fd67.svn-base 25 KB

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