ae109af38d571bf2b0526bd1cd2e0959b253bdd8.svn-base 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  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" :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" @change="currentProblemDescListChange" style="max-width: 500px">
  33. <el-option v-for="(item,index) in currentProblemDescList" :key="index" :label="item.pblmDesc" :value="item" :title="item.pblmDesc" style="max-width: 500px">
  34. </el-option>
  35. </el-select>
  36. </el-form-item>
  37. <el-form-item label="详细描述" prop="inspPblmDesc">
  38. <el-input type="textarea" :rows="2" v-model="changeSupervision.inspPblmDesc" clearable></el-input>
  39. </el-form-item>
  40. <el-form-item label="是否为典型问题:">
  41. <el-select v-model="changeSupervision.ifCasePblm" clearable placeholder="请选择">
  42. <el-option
  43. v-for="item in supervision"
  44. :key="item.value"
  45. :label="item.label"
  46. :value="item.value"
  47. ></el-option>
  48. </el-select>
  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="note">
  67. <el-input type="textarea" :rows="2" v-model.trim="changeSupervision.note" clearable></el-input>
  68. </el-form-item>
  69. <el-form-item label="上报人" prop="persName">
  70. <el-input
  71. resize="none"
  72. type="input"
  73. :rows="3"
  74. readonly
  75. placeholder="请输入"
  76. v-model.trim="changeSupervision.persName"
  77. ></el-input>
  78. </el-form-item>
  79. <el-form-item label="上报时间" prop="collTime">
  80. <el-date-picker v-model="changeSupervision.collTime" readonly type="date"></el-date-picker>
  81. </el-form-item>
  82. </el-form>
  83. </div>
  84. <div
  85. style="width: 49%;float: left;border: 1px solid rgb(213, 213, 255);margin-right: 5px;overflow-y: auto;max-height: 58vh;">
  86. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">多媒体信息</p>
  87. <el-tabs style="margin:0px 5px">
  88. <el-tab-pane :label="picturetabName">
  89. <el-row style="text-align:right;">
  90. <el-button
  91. :v-if="!addPicPanel?addPicPanel:addPicPanel"
  92. size="mini"
  93. type="text"
  94. :icon="!addPicPanel?'el-icon-circle-plus-outline':'el-icon-circle-close-outline'"
  95. @click="addPic"
  96. >{{!addPicPanel?"添加":"取消"}}</el-button>
  97. </el-row>
  98. <!-- 该上传组件之前用v-if="addPicPanel 控制显示隐藏,发现在点击编辑问题时,如果不上传图片,之间点击确认时会报错 add by lch -->
  99. <el-row v-show="addPicPanel"> <!-- v-if="addPicPanel" -->
  100. <upload
  101. ref="uploadFile"
  102. :url="`/pdcApi/file/insert?bizId=`"
  103. @uploadOver="removeNewSupervision"
  104. ></upload>
  105. </el-row>
  106. <el-row>
  107. <div style="overflow-y:auto;overflow-x:hidden;max-height:30vh;padding:10px;">
  108. <div class="upload-container" id="imgView1">
  109. <div
  110. v-for="(item, index) in pictureArray"
  111. :key="index"
  112. class="image-preview image-app-preview"
  113. >
  114. <div class="image-preview-wrapper">
  115. <img :src="`${hostUrl}/${item.filePath}`">
  116. <div class="image-preview-action">
  117. <i @click="removeFile(item.id)" class="el-icon-delete"></i>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </el-row>
  124. </el-tab-pane>
  125. <el-tab-pane :label="audiotabName">
  126. <el-table border :data="audioArray" style="width: 100%;margin: 0 auto;">
  127. <el-table-column header-align="center" align="center" label="音频">
  128. <template slot-scope="scope">
  129. <elaudio
  130. style="margin-left:15%;width:100px;height:30px;"
  131. :theUrl="`${hostUrl}/${scope.row.filePath}`"
  132. ></elaudio>
  133. </template>
  134. </el-table-column>
  135. <el-table-column header-align="center" align="center" label="操作">
  136. <template slot-scope="scope">
  137. <el-button
  138. size="mini"
  139. @click="removeFile(scope.row.id,scope.$index)"
  140. type="danger"
  141. >删除</el-button>
  142. </template>
  143. </el-table-column>
  144. </el-table>
  145. </el-tab-pane>
  146. <el-tab-pane :label="videotabName">
  147. <el-table border :data="videoArray" style="width: 100%;margin: 0 auto;">
  148. <el-table-column header-align="center" align="center" label="视频">
  149. <template slot-scope="scope">
  150. <video-player
  151. class="vjs-custom-skin"
  152. ref="videoPlayer"
  153. :options="scope.row"
  154. :playsinline="true"
  155. ></video-player>
  156. </template>
  157. </el-table-column>
  158. <el-table-column header-align="center" align="center" label="操作">
  159. <template slot-scope="scope">
  160. <el-button
  161. size="mini"
  162. @click="removeFile(scope.row.id,scope.$index)"
  163. type="danger"
  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"
  175. rel="noopener noreferrer">
  176. {{scope.row.fileName}}
  177. </a>
  178. </p>
  179. </template>
  180. </el-table-column>
  181. <el-table-column header-align="center" align="center" label="操作">
  182. <template slot-scope="scope">
  183. <el-button
  184. size="mini"
  185. @click="removeFile(scope.row.id,scope.$index)"
  186. type="danger"
  187. >删除
  188. </el-button>
  189. </template>
  190. </el-table-column>
  191. </el-table>
  192. </el-tab-pane>
  193. <el-tab-pane label="问题确认单">
  194. <pblmConfirmShett :openType="true" :currentObjectId="changeSupervision.objId" :key="changeSupervision.objId"></pblmConfirmShett>
  195. </el-tab-pane>
  196. </el-tabs>
  197. </div>
  198. </div>
  199. <span slot="footer">
  200. <el-button type="primary" @click="changeSupervisionInfo" :loading="buttonLoading">保存</el-button>
  201. <el-button @click="changeSupervisionVisiblefalse">取消</el-button>
  202. </span>
  203. </el-dialog>
  204. </template>
  205. <script>
  206. import {showDetailsXq,updatelist,deleteFileById} from "@api/duChaAPI.js";
  207. import request from "@util/gw_ajax_request.js";
  208. import { hostUrl } from "@util/global_variable.js";
  209. import Viewer from 'viewerjs';
  210. import 'viewerjs/dist/viewer.css';
  211. export default {
  212. props: ['editId'],
  213. data(){
  214. return{
  215. changeSupervisionVisible: true,
  216. changeSupervision: {},
  217. rules1: {
  218. inspPblmName: [
  219. {
  220. required: true,
  221. message: "请输入问题名称",
  222. trigger: "blur"
  223. },
  224. {
  225. min: 1,
  226. max: 999,
  227. message: "不超过100字符",
  228. trigger: "blur"
  229. }
  230. ],
  231. inspPblmDesc: [
  232. {
  233. required: true,
  234. message: "请输入问题描述",
  235. trigger: "blur"
  236. }
  237. ],
  238. recPers: [
  239. {
  240. required: true,
  241. message: "请输入记录人",
  242. trigger: "blur"
  243. },
  244. {
  245. min: 1,
  246. max: 999,
  247. message: "不超过100字符",
  248. trigger: "blur"
  249. }
  250. ],
  251. objType: [
  252. {
  253. required: true,
  254. message: "请选择督查对象类型",
  255. trigger: "change"
  256. }
  257. ],
  258. objId: [
  259. {
  260. required: true,
  261. message: "请选择督查对象类型",
  262. trigger: "change"
  263. }
  264. ],
  265. inspPblmType: [
  266. {
  267. required: true,
  268. message: "请选择督查问题类型",
  269. trigger: "change"
  270. }
  271. ],
  272. dataStat: [
  273. {
  274. required: true,
  275. message: "请选择数据状态",
  276. trigger: "change"
  277. }
  278. ],
  279. collTime: [
  280. {
  281. required: true,
  282. message: "请选择采集时间",
  283. trigger: "change"
  284. }
  285. ],
  286. ifCasePblm: [
  287. {
  288. required: true,
  289. message: "请选择是否典型",
  290. trigger: "change"
  291. }
  292. ],
  293. pblmStat: [
  294. {
  295. required: true,
  296. message: "请选择问题类型",
  297. trigger: "change"
  298. }
  299. ],
  300. inspPblmCate: [
  301. {
  302. required: true,
  303. message: "请选择问题程度",
  304. trigger: "change"
  305. },
  306. {
  307. trigger: "change"
  308. }
  309. ]
  310. },
  311. supervisionState: [
  312. {
  313. value: "0",
  314. label: "一般"
  315. },
  316. {
  317. value: "1",
  318. label: "较重"
  319. },
  320. {
  321. value: "2",
  322. label: "严重"
  323. },
  324. {
  325. value: "3",
  326. label: "特别严重"
  327. }
  328. ],
  329. supervision: [
  330. {
  331. value: "1",
  332. label: "是"
  333. },
  334. {
  335. value: "0",
  336. label: "否"
  337. }
  338. ],
  339. addPicPanel: false,
  340. gwComFiles: [],
  341. picturetabName: "",
  342. audiotabName: "",
  343. videotabName: "",
  344. filetabName:"",
  345. pictureArray: [],
  346. audioArray: [],
  347. videoArray: [],
  348. fileArray: [],
  349. updateIdXiuGai: "",
  350. pblmId: "",
  351. t1: {},
  352. t2: {},
  353. t3: {},
  354. problemList: [],
  355. currentCheckPointList: [],
  356. currentProblemDescList: [],
  357. xiangqingmiaoshu: '',
  358. wenTiLeiBie:"",
  359. jianChaXiangMu:"",
  360. buttonLoading: false
  361. }
  362. },
  363. components:{
  364. upload: resolve => {
  365. require(["@widget/uploadFile.vue"], resolve);
  366. },
  367. pblmConfirmShett: resolve => {
  368. require(["../../duChaDuiXiang/pblmConfirmShett"], resolve);
  369. }
  370. },
  371. computed:{
  372. hostUrl(){
  373. return hostUrl
  374. },
  375. persId() {
  376. return localStorage.getItem("userid") ? localStorage.getItem("userid") : "1098101939614724096";
  377. }
  378. },
  379. mounted(){
  380. this.getproblemSmallType();
  381. },
  382. methods:{
  383. // 修改弹窗显示
  384. changeSup(id) {
  385. this.pictureArray = [];
  386. this.audioArray = [];
  387. this.videoArray = [];
  388. this.updateIdXiuGai = id;
  389. let _this = this
  390. showDetailsXq(this.updateIdXiuGai).then(res => {
  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.$nextTick(function(){
  443. var ViewerDom = document.getElementById('imgView1');
  444. var viewer = new Viewer(ViewerDom, {})
  445. });
  446. this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  447. this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  448. this.videotabName = "视频资料(" + this.videoArray.length + ")";
  449. this.filetabName = "其他资料(" + this.fileArray.length + ")";
  450. });
  451. },
  452. // 提交修改信息
  453. changeSupervisionInfo() {
  454. console.log(this)
  455. var _self = this;
  456. this.$refs.changeSupFrom.validate(valid => {
  457. if (valid) {
  458. this.$nextTick(()=>{
  459. this.changeSupervisionVisible = true;
  460. this.buttonLoading = true;
  461. if (_self.$refs.uploadFile.submitUpload(this.changeSupervision.pblmId)) {
  462. _self.removeNewSupervision();
  463. }
  464. setTimeout(()=>{
  465. _self.changeSupervision.inspPblmsName = _self.xiangqingmiaoshu
  466. _self.changeSupervision.checkPoint = _self.jianChaXiangMu
  467. _self.changeSupervision.inspPblmName = _self.wenTiLeiBie
  468. _self.changeSupervision.inspPlbmType = _self.t2.sort2;
  469. _self.changeSupervision.inspPblmCode = _self.t3.sn;
  470. _self.changeSupervision.pblmsTypeId = _self.t3.guid;
  471. let data = _self.changeSupervision;
  472. updatelist(data).then(res => {
  473. _self.pblmId = res.data.pblmId;
  474. _self.gwComFiles = res.data.gwComFiles;
  475. if (res.success) {
  476. _self.buttonLoading = false;
  477. _self.successInfo();
  478. _self.addPicPanel = false;
  479. } else {
  480. _self.failInfo();
  481. _self.$emit('closeEditDialog')
  482. }
  483. });
  484. },1000)
  485. })
  486. }
  487. });
  488. },
  489. removeNewSupervision(arg) {
  490. if (arg) {
  491. var args = this.gwComFiles.concat(arg);
  492. }
  493. this.gwComFiles = [];
  494. this.$emit('closeEditDialog','success')
  495. },
  496. changeSupervisionVisiblefalse() {
  497. this.$emit('closeEditDialog')
  498. this.$refs.uploadFile.init();
  499. this.addPicPanel = false;
  500. },
  501. addPic() {
  502. this.addPicPanel = !this.addPicPanel;
  503. },
  504. // 删除图片文件
  505. removeFile(id, index) {
  506. // this.updateIdXiuGai = this.updateIdXiuGai;
  507. var _self = this;
  508. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  509. confirmButtonText: "确定",
  510. cancelButtonText: "返回",
  511. type: "warning"
  512. }).then(
  513. res => {
  514. if (res === "confirm") {
  515. deleteFileById(id, this.persId).then(res => {
  516. if (res.success) {
  517. this.changeSupervision.gwComFiles.forEach(item => {
  518. if (
  519. item.fileExt == "mp3" ||
  520. item.fileExt == "MP3" ||
  521. item.fileExt == "m4a"
  522. ) {
  523. this.audiotabName.splice(index, 1);
  524. } else if (
  525. item.fileExt == "jpg" ||
  526. item.fileExt == "JPG" ||
  527. item.fileExt == "png" ||
  528. item.fileExt == "PNG" ||
  529. item.fileExt == "JPEG" ||
  530. item.fileExt == "jpeg"
  531. ) {
  532. this.pictureArray.splice(index, 1);
  533. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  534. this.videoArray.splice(index, 1);
  535. }
  536. });
  537. _self.changeSup(this.updateIdXiuGai);
  538. } else {
  539. this.failInfo();
  540. }
  541. });
  542. }
  543. },
  544. res => {
  545. console.log("返回");
  546. }
  547. )
  548. },
  549. // 操作成功反馈
  550. successInfo() {
  551. this.$message({
  552. type: "success",
  553. message: "操作成功!"
  554. });
  555. this.$emit('closeEditDialog')
  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: 6,
  573. pguid: '60000000000000000000000000000000'
  574. }
  575. }).then(res => {
  576. if (res.success) {
  577. res.data.forEach((ele) => {
  578. let haveinspPblmsName = false;
  579. result.forEach((inspPblm) => {
  580. if (inspPblm['inspPblmsName'] == ele.inspPblmsName) {
  581. //
  582. let havechekPoint = false;
  583. inspPblm['checkPoints'].forEach((chekPoint) => {
  584. if (chekPoint['checkPointName'] == ele.checkPoint) {
  585. //
  586. chekPoint['pblmDescs'].push({
  587. pblmDesc: ele.pblmDesc,
  588. sn: ele.sn,
  589. guid: ele.guid,
  590. });
  591. havechekPoint = true;
  592. }
  593. });
  594. if (!havechekPoint) {
  595. let newCheckPoint = {};
  596. newCheckPoint['checkPointName'] = ele.checkPoint;
  597. newCheckPoint['sort2'] = ele.sort2;
  598. newCheckPoint['pblmDescs'] = [{
  599. pblmDesc: ele.pblmDesc,
  600. sn: ele.sn,
  601. guid: ele.guid,
  602. }]
  603. inspPblm['checkPoints'].push(newCheckPoint);
  604. }
  605. haveinspPblmsName = true;
  606. }
  607. });
  608. if (!haveinspPblmsName) {
  609. let haveinspPblmsObj = {};
  610. haveinspPblmsObj['inspPblmsName'] = ele.inspPblmsName;
  611. haveinspPblmsObj['sort1'] = ele.sort1;
  612. haveinspPblmsObj['checkPoints'] = [{
  613. checkPointName: ele.checkPoint,
  614. sort2: ele.sort2,
  615. pblmDescs: [{
  616. pblmDesc: ele.pblmDesc,
  617. sn: ele.sn,
  618. guid: ele.guid,
  619. }]
  620. }];
  621. result.push(haveinspPblmsObj);
  622. }
  623. })
  624. this.problemList = result;
  625. this.changeSup(this.editId)
  626. }
  627. })
  628. },
  629. getYanZhongChengDu(){
  630. request.post('/dc/insp/pblms/getByPblms', {
  631. inspPblmsName:this.wenTiLeiBie,
  632. checkPoint:this.jianChaXiangMu,
  633. pblmDesc:this.xiangqingmiaoshu
  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>