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