5d4005c9f2b9e86937ac34ee7899c221390e6c5e.svn-base 29 KB

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