2ff669a4d1bceb0bda009165c043eca24355722d.svn-base 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  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. clearable
  54. disable
  55. placeholder="请选择"
  56. >
  57. <el-option
  58. v-for="item in supervisionState"
  59. :key="item.value"
  60. :label="item.label"
  61. :value="item.value"
  62. ></el-option>
  63. </el-select>
  64. </el-form-item>
  65. <el-form-item label="是否为典型问题:">
  66. <el-select v-model="changeSupervision.ifCasePblm" clearable placeholder="请选择">
  67. <el-option
  68. v-for="item in supervision"
  69. :key="item.value"
  70. :label="item.label"
  71. :value="item.value"
  72. ></el-option>
  73. </el-select>
  74. </el-form-item>
  75. <el-form-item label="上报人" prop="persName">
  76. <el-input
  77. resize="none"
  78. type="input"
  79. :rows="3"
  80. readonly
  81. placeholder="请输入"
  82. v-model.trim="changeSupervision.persName"
  83. ></el-input>
  84. </el-form-item>
  85. <el-form-item label="上报时间" prop="collTime">
  86. <el-date-picker v-model="changeSupervision.collTime" readonly type="date"></el-date-picker>
  87. </el-form-item>
  88. </el-form>
  89. </div>
  90. <div
  91. style="width: 49%;float: left;border: 1px solid rgb(213, 213, 255);margin-right: 5px;overflow-y: auto;max-height: 58vh;">
  92. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">多媒体信息</p>
  93. <el-tabs style="margin:0px 5px">
  94. <el-tab-pane :label="picturetabName">
  95. <el-row style="text-align:right;">
  96. <el-button
  97. :v-if="!addPicPanel?addPicPanel:addPicPanel"
  98. size="mini"
  99. type="text"
  100. :icon="!addPicPanel?'el-icon-circle-plus-outline':'el-icon-circle-close-outline'"
  101. @click="addPic"
  102. >{{!addPicPanel?"添加":"取消"}}
  103. </el-button>
  104. </el-row>
  105. <!-- 该上传组件之前用v-if="addPicPanel 控制显示隐藏,发现在点击编辑问题时,如果不上传图片,之间点击确认时会报错 add by lch -->
  106. <el-row v-show="addPicPanel"> <!-- v-if="addPicPanel" -->
  107. <upload
  108. ref="uploadFile"
  109. :url="`/pdcApi/file/insert?bizId=`"
  110. @uploadOver="removeNewSupervision"
  111. ></upload>
  112. </el-row>
  113. <el-row>
  114. <div style="overflow-y:auto;overflow-x:hidden;max-height:30vh;padding:10px;">
  115. <div class="upload-container">
  116. <div
  117. v-for="(item, index) in pictureArray"
  118. :key="index"
  119. class="image-preview image-app-preview"
  120. >
  121. <div class="image-preview-wrapper">
  122. <img :src="`${hostUrl}/${item.filePath}`">
  123. <div class="image-preview-action">
  124. <i @click="removeFile(item.id)" class="el-icon-delete"></i>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </el-row>
  131. </el-tab-pane>
  132. <el-tab-pane :label="audiotabName">
  133. <el-table border :data="audioArray" style="width: 100%;margin: 0 auto;">
  134. <el-table-column header-align="center" align="center" label="音频">
  135. <template slot-scope="scope">
  136. <elaudio
  137. style="margin-left:15%;width:100px;height:30px;"
  138. :theUrl="`${hostUrl}/${scope.row.filePath}`"
  139. ></elaudio>
  140. </template>
  141. </el-table-column>
  142. <el-table-column header-align="center" align="center" label="操作">
  143. <template slot-scope="scope">
  144. <el-button
  145. size="mini"
  146. @click="removeFile(scope.row.id,scope.$index)"
  147. type="danger"
  148. >删除
  149. </el-button>
  150. </template>
  151. </el-table-column>
  152. </el-table>
  153. </el-tab-pane>
  154. <el-tab-pane :label="videotabName">
  155. <el-table border :data="videoArray" style="width: 100%;margin: 0 auto;">
  156. <el-table-column header-align="center" align="center" label="视频">
  157. <template slot-scope="scope">
  158. <video-player
  159. class="vjs-custom-skin"
  160. ref="videoPlayer"
  161. :options="scope.row"
  162. :playsinline="true"
  163. ></video-player>
  164. </template>
  165. </el-table-column>
  166. <el-table-column header-align="center" align="center" label="操作">
  167. <template slot-scope="scope">
  168. <el-button
  169. size="mini"
  170. @click="removeFile(scope.row.id,scope.$index)"
  171. type="danger"
  172. >删除
  173. </el-button>
  174. </template>
  175. </el-table-column>
  176. </el-table>
  177. </el-tab-pane>
  178. <el-tab-pane :label="filetabName">
  179. <el-table border :data="fileArray" style="width: 100%;margin: 0 auto;">
  180. <el-table-column header-align="center" align="center" label="文档">
  181. <template slot-scope="scope">
  182. <p>
  183. <a :href="`${hostUrl}/${scope.row.filePath}`" target="_blank" rel="noopener noreferrer">
  184. {{scope.row.fileName}}
  185. </a>
  186. </p>
  187. </template>
  188. </el-table-column>
  189. <el-table-column header-align="center" align="center" label="操作">
  190. <template slot-scope="scope">
  191. <el-button
  192. size="mini"
  193. @click="removeFile(scope.row.id,scope.$index)"
  194. type="danger"
  195. >删除</el-button>
  196. </template>
  197. </el-table-column>
  198. </el-table>
  199. </el-tab-pane>
  200. </el-tabs>
  201. </div>
  202. </div>
  203. <span slot="footer">
  204. <el-button type="primary" @click="changeSupervisionInfo" :loading="buttonLoading">保存</el-button>
  205. <el-button @click="changeSupervisionVisiblefalse">取消</el-button>
  206. </span>
  207. </el-dialog>
  208. </template>
  209. <script>
  210. import {showDetailsXq, updatelist, deleteFileById} from "../../api/duChaAPI.js";
  211. import request from "../../utils/gw_ajax_request.js";
  212. import { hostUrl } from "@util/global_variable.js";
  213. export default {
  214. props: ['editId','pType'],
  215. data() {
  216. return {
  217. changeSupervisionVisible: true,
  218. changeSupervision: {},
  219. rules1: {
  220. inspPblmName: [
  221. {
  222. required: true,
  223. message: "请输入问题名称",
  224. trigger: "blur"
  225. },
  226. {
  227. min: 1,
  228. max: 999,
  229. message: "不超过100字符",
  230. trigger: "blur"
  231. }
  232. ],
  233. inspPblmDesc: [
  234. {
  235. required: true,
  236. message: "请输入问题描述",
  237. trigger: "blur"
  238. }
  239. ],
  240. recPers: [
  241. {
  242. required: true,
  243. message: "请输入记录人",
  244. trigger: "blur"
  245. },
  246. {
  247. min: 1,
  248. max: 999,
  249. message: "不超过100字符",
  250. trigger: "blur"
  251. }
  252. ],
  253. objType: [
  254. {
  255. required: true,
  256. message: "请选择督查对象类型",
  257. trigger: "change"
  258. }
  259. ],
  260. objId: [
  261. {
  262. required: true,
  263. message: "请选择督查对象类型",
  264. trigger: "change"
  265. }
  266. ],
  267. inspPblmType: [
  268. {
  269. required: true,
  270. message: "请选择督查问题类型",
  271. trigger: "change"
  272. }
  273. ],
  274. dataStat: [
  275. {
  276. required: true,
  277. message: "请选择数据状态",
  278. trigger: "change"
  279. }
  280. ],
  281. collTime: [
  282. {
  283. required: true,
  284. message: "请选择采集时间",
  285. trigger: "change"
  286. }
  287. ],
  288. ifCasePblm: [
  289. {
  290. required: true,
  291. message: "请选择是否典型",
  292. trigger: "change"
  293. }
  294. ],
  295. pblmStat: [
  296. {
  297. required: true,
  298. message: "请选择问题类型",
  299. trigger: "change"
  300. }
  301. ],
  302. inspPblmCate: [
  303. {
  304. required: true,
  305. message: "请选择问题程度",
  306. trigger: "change"
  307. },
  308. {
  309. trigger: "change"
  310. }
  311. ]
  312. },
  313. supervisionState: [
  314. {
  315. value: "0",
  316. label: "一般"
  317. },
  318. {
  319. value: "1",
  320. label: "较重"
  321. },
  322. {
  323. value: "2",
  324. label: "严重"
  325. },
  326. {
  327. value: "3",
  328. label: "特别严重"
  329. }
  330. ],
  331. supervision: [
  332. {
  333. value: "1",
  334. label: "是"
  335. },
  336. {
  337. value: "0",
  338. label: "否"
  339. }
  340. ],
  341. addPicPanel: false,
  342. gwComFiles: [],
  343. picturetabName: "",
  344. audiotabName: "",
  345. videotabName: "",
  346. pictureArray: [],
  347. audioArray: [],
  348. videoArray: [],
  349. filetabName: "",
  350. fileArray: [],
  351. updateIdXiuGai: "",
  352. pblmId: "",
  353. t1: {},
  354. t2: {},
  355. t3: {},
  356. problemList: [],
  357. currentCheckPointList: [],
  358. currentProblemDescList: [],
  359. xiangqingmiaoshu: '',
  360. wenTiLeiBie: "",
  361. jianChaXiangMu: "",
  362. buttonLoading: false
  363. }
  364. },
  365. components: {
  366. upload: resolve => {
  367. require(["../../widgets/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) {
  384. this.pictureArray = [];
  385. this.audioArray = [];
  386. this.videoArray = [];
  387. this.updateIdXiuGai = id;
  388. let _this = this
  389. showDetailsXq(this.updateIdXiuGai).then(res => {
  390. // if(this.usersId==)
  391. this.changeSupervision = res.data;
  392. this.gwComFiles = this.changeSupervision.gwComFiles;
  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. res.data.gwComFiles.forEach(item => {
  407. if (
  408. item.fileExt == "mp3" ||
  409. item.fileExt == "MP3" ||
  410. item.fileExt == "m4a"
  411. ) {
  412. this.audioArray.push(item);
  413. } else if (
  414. item.fileExt == "jpg" ||
  415. item.fileExt == "JPG" ||
  416. item.fileExt == "png" ||
  417. item.fileExt == "PNG" ||
  418. item.fileExt == "JPEG" ||
  419. item.fileExt == "jpeg"
  420. ) {
  421. this.pictureArray.push(item);
  422. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  423. this.videoArray.push({
  424. id: item.id,
  425. bizId: item.bizId,
  426. width: "130",
  427. height: "130",
  428. autoplay: false,
  429. muted: true,
  430. language: "en",
  431. playbackRates: [0.7, 1.0, 1.5, 2.0],
  432. sources: [
  433. {
  434. type: "video/mp4",
  435. src: this.hostUrl + item.filePath
  436. }
  437. ]
  438. });
  439. } else {
  440. this.fileArray.push(item);
  441. }
  442. });
  443. this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  444. this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  445. this.videotabName = "视频资料(" + this.videoArray.length + ")";
  446. this.filetabName = "其它资料(" + this.fileArray.length + ")";
  447. });
  448. },
  449. // 提交修改信息
  450. changeSupervisionInfo() {
  451. console.log(this)
  452. var _self = this;
  453. this.$refs.changeSupFrom.validate(valid => {
  454. if (valid) {
  455. this.$nextTick(() => {
  456. this.changeSupervisionVisible = true;
  457. this.buttonLoading = true;
  458. if (_self.$refs.uploadFile.submitUpload(this.changeSupervision.pblmId)) {
  459. _self.removeNewSupervision();
  460. }
  461. setTimeout(() => {
  462. _self.changeSupervision.inspPblmsName = _self.xiangqingmiaoshu
  463. _self.changeSupervision.checkPoint = _self.jianChaXiangMu
  464. _self.changeSupervision.inspPblmName = _self.wenTiLeiBie
  465. _self.changeSupervision.inspPlbmType = _self.t2.sort2;
  466. _self.changeSupervision.inspPblmCode = _self.t3.sn;
  467. _self.changeSupervision.pblmsTypeId = _self.t3.guid;
  468. _self.changeSupervision.gwComFiles = _self.gwComFiles;
  469. let data = _self.changeSupervision;
  470. updatelist(data).then(res => {
  471. _self.pblmId = res.data.pblmId;
  472. _self.gwComFiles = res.data.gwComFiles;
  473. if (res.success) {
  474. _self.buttonLoading = false;
  475. _self.successInfo();
  476. _self.addPicPanel = false;
  477. } else {
  478. _self.failInfo();
  479. _self.$emit('closeEditDialog')
  480. }
  481. });
  482. }, 1000)
  483. })
  484. }
  485. });
  486. },
  487. removeNewSupervision(arg) {
  488. if (arg) {
  489. var args = this.gwComFiles.concat(arg);
  490. this.gwComFiles = args;
  491. return;
  492. }
  493. },
  494. changeSupervisionVisiblefalse() {
  495. this.$emit('closeEditDialog')
  496. this.$refs.uploadFile.init();
  497. this.addPicPanel = false;
  498. },
  499. addPic() {
  500. this.addPicPanel = !this.addPicPanel;
  501. },
  502. // 删除图片文件
  503. removeFile(id, index) {
  504. // this.updateIdXiuGai = this.updateIdXiuGai;
  505. var _self = this;
  506. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  507. confirmButtonText: "确定",
  508. cancelButtonText: "返回",
  509. type: "warning"
  510. }).then(
  511. res => {
  512. if (res === "confirm") {
  513. deleteFileById(id, this.persId).then(res => {
  514. if (res.success) {
  515. this.changeSupervision.gwComFiles.forEach(item => {
  516. if (
  517. item.fileExt == "mp3" ||
  518. item.fileExt == "MP3" ||
  519. item.fileExt == "m4a"
  520. ) {
  521. this.audiotabName.splice(index, 1);
  522. } else if (
  523. item.fileExt == "jpg" ||
  524. item.fileExt == "JPG" ||
  525. item.fileExt == "png" ||
  526. item.fileExt == "PNG" ||
  527. item.fileExt == "JPEG" ||
  528. item.fileExt == "jpeg"
  529. ) {
  530. this.pictureArray.splice(index, 1);
  531. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  532. this.videoArray.splice(index, 1);
  533. }else{
  534. this.fileArray.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: this.pType,
  573. pguid: '00000000000000000000000000000000'
  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/getPblmsByType', {
  631. inspPblmsName: this.wenTiLeiBie,
  632. checkPoint: this.jianChaXiangMu,
  633. pblmDesc: this.xiangqingmiaoshu,
  634. type: "29"
  635. }).then(res => {
  636. if (res.success) {
  637. this.changeSupervision.inspPblmCate = res.data.inspPblmCate;
  638. }
  639. })
  640. },
  641. problemListChange: function (item) {
  642. this.t1 = item
  643. this.wenTiLeiBie = item.inspPblmsName;
  644. this.currentCheckPointList = item.checkPoints;
  645. },
  646. currentCheckPointListChange: function (item) {
  647. this.jianChaXiangMu = item.checkPointName;
  648. this.currentProblemDescList = item.pblmDescs;
  649. },
  650. currentProblemDescListChange: function (item) {
  651. this.xiangqingmiaoshu = item.pblmDesc;
  652. console.log(item);
  653. },
  654. },
  655. watch: {
  656. editId(val) {
  657. this.changeSup(val)
  658. },
  659. // 't1': {
  660. // handler: function (val, oldVal) {
  661. // this.getYanZhongChengDu()
  662. // },
  663. // deep: true
  664. // },
  665. // 't2': {
  666. // handler: function (val, oldVal) {
  667. // this.getYanZhongChengDu()
  668. // },
  669. // deep: true
  670. // },
  671. 't3': {
  672. handler: function (val, oldVal) {
  673. this.getYanZhongChengDu()
  674. },
  675. deep: true
  676. },
  677. }
  678. }
  679. </script>
  680. <style scoped lang="scss">
  681. .scroll_wrapper {
  682. overflow: hidden;
  683. }
  684. .scroll_wrapper .el-form {
  685. padding-top: 5px;
  686. padding-right: 5px;
  687. }
  688. .upload-container {
  689. width: 100%;
  690. position: relative;
  691. .image-uploader {
  692. width: 35%;
  693. float: left;
  694. }
  695. .image-preview {
  696. width: 200px;
  697. height: 200px;
  698. position: relative;
  699. border: 1px dashed #d9d9d9;
  700. float: left;
  701. // margin-left: 50px;
  702. .image-preview-wrapper {
  703. position: relative;
  704. width: 100%;
  705. height: 100%;
  706. img {
  707. width: 100%;
  708. height: 100%;
  709. }
  710. }
  711. .image-preview-action {
  712. position: absolute;
  713. width: 100%;
  714. height: 100%;
  715. left: 0;
  716. top: 0;
  717. color: #fff;
  718. opacity: 0;
  719. font-size: 20px;
  720. background-color: rgba(0, 0, 0, 0.5);
  721. transition: opacity 0.3s;
  722. cursor: pointer;
  723. text-align: center;
  724. line-height: 200px;
  725. .el-icon-delete {
  726. font-size: 36px;
  727. }
  728. }
  729. &:hover {
  730. .image-preview-action {
  731. opacity: 1;
  732. }
  733. }
  734. }
  735. .image-app-preview {
  736. margin-bottom: 10px;
  737. width: 40vh;
  738. height: 180px;
  739. position: relative;
  740. border: 1px dashed #d9d9d9;
  741. float: left;
  742. // margin-left: 50px;
  743. .app-fake-conver {
  744. height: 44px;
  745. position: absolute;
  746. width: 100%; // background: rgba(0, 0, 0, .1);
  747. text-align: center;
  748. line-height: 64px;
  749. color: #fff;
  750. }
  751. }
  752. }
  753. </style>