c8c39562162568c38f9a6af0c6fc80e04ddff30a.svn-base 33 KB

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