fbea7e13bec41f67c4aa6c4899eb812799fcef79.svn-base 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  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="详情" style="text-align:left">
  38. <el-input type="textarea" :rows="2" placeholder="" v-model="xiangqingmiaoshu" readonly>
  39. </el-input>
  40. </el-form-item>
  41. <el-form-item label="典型问题" style="text-align:left">
  42. <el-radio v-model="changeSupervision.ifCasePblm" label="1">是</el-radio>
  43. <el-radio v-model="changeSupervision.ifCasePblm" label="0">否</el-radio>
  44. </el-form-item>
  45. <el-form-item label="问题等级:">
  46. <el-select
  47. v-model="changeSupervision.inspPblmCate"
  48. clearable
  49. placeholder="请选择"
  50. >
  51. <el-option
  52. v-for="item in supervisionState"
  53. :key="item.value"
  54. :label="item.label"
  55. :value="item.value"
  56. ></el-option>
  57. </el-select>
  58. </el-form-item>
  59. <el-form-item label="详细描述" prop="inspPblmDesc">
  60. <el-input type="textarea" :rows="2" v-model="changeSupervision.inspPblmDesc" clearable></el-input>
  61. </el-form-item>
  62. <el-form-item label="责任单位" prop="inspPblmOrgName">
  63. <el-input type="textarea" :rows="2" v-model="changeSupervision.inspPblmOrgName" clearable></el-input>
  64. </el-form-item>
  65. <el-form-item label="问题原因分析" prop="pblmReason">
  66. <el-input type="textarea" :rows="2" v-model="changeSupervision.pblmReason" clearable></el-input>
  67. </el-form-item>
  68. <el-form-item label="整改意见" prop="pblmReason">
  69. <el-input type="textarea" :rows="2" v-model="changeSupervision.pblmSggtn" clearable></el-input>
  70. </el-form-item>
  71. <el-form-item label="备注" prop="note">
  72. <el-input type="textarea" :rows="2" v-model.trim="changeSupervision.note" clearable></el-input>
  73. </el-form-item>
  74. <el-form-item label="上报人" prop="persName">
  75. <el-input
  76. resize="none"
  77. type="input"
  78. :rows="3"
  79. readonly
  80. placeholder="请输入"
  81. v-model.trim="changeSupervision.persName"
  82. ></el-input>
  83. </el-form-item>
  84. <el-form-item label="检查日期" prop="wtdstNote">
  85. <el-date-picker v-model="changeSupervision.wtdstNote" type="date"
  86. value-format="yyyy-MM-dd"></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" id="imgView">
  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>
  190. </el-tab-pane>
  191. <el-tab-pane label="问题确认单">
  192. <pblmConfirmShett :openType="true" :currentObjectId="changeSupervision.objId" :key="changeSupervision.objId"></pblmConfirmShett>
  193. </el-tab-pane>
  194. </el-tabs>
  195. </div>
  196. </div>
  197. <span slot="footer">
  198. <el-button type="primary" @click="changeSupervisionInfo" :loading="buttonLoading">保存</el-button>
  199. <el-button @click="changeSupervisionVisiblefalse">取消</el-button>
  200. </span>
  201. </el-dialog>
  202. </template>
  203. <script>
  204. import {deleteFileById, showDetailsXq, updatelist} from "@api/duChaAPI.js";
  205. import request from "@util/gw_ajax_request.js";
  206. import { hostUrl } from "@util/global_variable.js";
  207. import Viewer from 'viewerjs';
  208. import 'viewerjs/dist/viewer.css';
  209. export default {
  210. props: ['editId', 'pblmNameBz'],
  211. data() {
  212. return {
  213. changeSupervisionVisible: true,
  214. changeSupervision: {},
  215. rules1: {
  216. inspPblmName: [
  217. {
  218. required: true,
  219. message: "请输入问题名称",
  220. trigger: "blur"
  221. },
  222. {
  223. min: 1,
  224. max: 999,
  225. message: "不超过100字符",
  226. trigger: "blur"
  227. }
  228. ],
  229. inspPblmDesc: [
  230. {
  231. required: true,
  232. message: "请输入问题描述",
  233. trigger: "blur"
  234. }
  235. ],
  236. recPers: [
  237. {
  238. required: true,
  239. message: "请输入记录人",
  240. trigger: "blur"
  241. },
  242. {
  243. min: 1,
  244. max: 999,
  245. message: "不超过100字符",
  246. trigger: "blur"
  247. }
  248. ],
  249. objType: [
  250. {
  251. required: true,
  252. message: "请选择督查对象类型",
  253. trigger: "change"
  254. }
  255. ],
  256. objId: [
  257. {
  258. required: true,
  259. message: "请选择督查对象类型",
  260. trigger: "change"
  261. }
  262. ],
  263. inspPblmType: [
  264. {
  265. required: true,
  266. message: "请选择督查问题类型",
  267. trigger: "change"
  268. }
  269. ],
  270. dataStat: [
  271. {
  272. required: true,
  273. message: "请选择数据状态",
  274. trigger: "change"
  275. }
  276. ],
  277. wtdstNote: [
  278. {
  279. required: true,
  280. message: "请选择检查日期",
  281. trigger: "change"
  282. }
  283. ],
  284. pblmStat: [
  285. {
  286. required: true,
  287. message: "请选择问题类型",
  288. trigger: "change"
  289. }
  290. ],
  291. },
  292. supervisionState: [
  293. {
  294. value: "0",
  295. label: "一般"
  296. },
  297. {
  298. value: "1",
  299. label: "较重"
  300. },
  301. {
  302. value: "2",
  303. label: "严重"
  304. },
  305. {
  306. value: "3",
  307. label: "特别严重"
  308. }
  309. ],
  310. supervision: [
  311. {
  312. value: "1",
  313. label: "是"
  314. },
  315. {
  316. value: "0",
  317. label: "否"
  318. }
  319. ],
  320. addPicPanel: false,
  321. gwComFiles: [],
  322. picturetabName: "",
  323. audiotabName: "",
  324. videotabName: "",
  325. filetabName:"",
  326. pictureArray: [],
  327. audioArray: [],
  328. videoArray: [],
  329. fileArray: [],
  330. updateIdXiuGai: "",
  331. pblmId: "",
  332. t1: {},
  333. t2: {},
  334. t3: {},
  335. problemList: [],
  336. currentCheckPointList: [],
  337. currentProblemDescList: [],
  338. xiangqingmiaoshu: '',
  339. wenTiLeiBie: "",
  340. jianChaXiangMu: "",
  341. buttonLoading: false,
  342. duchaTypeList: [
  343. {inspPblmsName: '实地查看', value: 'fldWk'},
  344. {inspPblmsName: '电话询问', value: 'calls'},
  345. {inspPblmsName: '影像核实', value: 'imgVfct'},
  346. {inspPblmsName: '视频连线', value: 'vdoCnnt'}
  347. ],
  348. duChaType: ''
  349. }
  350. },
  351. components: {
  352. upload: resolve => {
  353. require(["@widget/uploadFile.vue"], resolve);
  354. },
  355. pblmConfirmShett: resolve => {
  356. require(["../../duChaDuiXiang/pblmConfirmShett"], resolve);
  357. }
  358. },
  359. computed: {
  360. hostUrl() {
  361. return hostUrl
  362. },
  363. persId() {
  364. return localStorage.getItem("userid") ? localStorage.getItem("userid") : "1098101939614724096";
  365. }
  366. },
  367. mounted() {
  368. this.getproblemSmallType();
  369. },
  370. methods: {
  371. // 修改弹窗显示
  372. changeSup(id) {
  373. this.pictureArray = [];
  374. this.audioArray = [];
  375. this.videoArray = [];
  376. this.updateIdXiuGai = id;
  377. let _this = this
  378. showDetailsXq(this.updateIdXiuGai).then(res => {
  379. // if(this.usersId==)
  380. this.changeSupervision = res.data;
  381. this.duChaType = this.changeSupervision.inspType;//水库防洪调度 督查方式字段 为inspType add by thy
  382. this.xiangqingmiaoshu = this.changeSupervision.pblmDesc
  383. this.t1['inspPblmsName'] = this.changeSupervision.inspPblmsName
  384. this.problemList.forEach(ele => {
  385. if (ele.inspPblmsName == _this.t1.inspPblmsName) {
  386. _this.problemListChange(ele)
  387. }
  388. })
  389. this.t2['checkPointName'] = this.changeSupervision.checkPoint
  390. this.currentCheckPointList.forEach(ele => {
  391. if (ele.checkPointName == _this.t2.checkPointName) {
  392. _this.currentCheckPointListChange(ele)
  393. }
  394. })
  395. this.t3['pblmDesc'] = this.changeSupervision.pblmDesc
  396. res.data.gwComFiles.forEach(item => {
  397. if (
  398. item.fileExt == "mp3" ||
  399. item.fileExt == "MP3" ||
  400. item.fileExt == "m4a"
  401. ) {
  402. this.audioArray.push(item);
  403. } else if (
  404. item.fileExt == "jpg" ||
  405. item.fileExt == "JPG" ||
  406. item.fileExt == "png" ||
  407. item.fileExt == "PNG" ||
  408. item.fileExt == "JPEG" ||
  409. item.fileExt == "jpeg"
  410. ) {
  411. this.pictureArray.push(item);
  412. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  413. this.videoArray.push({
  414. id: item.id,
  415. bizId: item.bizId,
  416. width: "130",
  417. height: "130",
  418. autoplay: false,
  419. muted: true,
  420. language: "en",
  421. playbackRates: [0.7, 1.0, 1.5, 2.0],
  422. sources: [
  423. {
  424. type: "video/mp4",
  425. src: this.hostUrl + item.filePath
  426. }
  427. ]
  428. });
  429. }
  430. });
  431. _this.$nextTick(function(){
  432. var ViewerDom = document.getElementById('imgView');
  433. var viewer = new Viewer(ViewerDom, {})
  434. });
  435. this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  436. this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  437. this.videotabName = "视频资料(" + this.videoArray.length + ")";
  438. this.filetabName = "其他资料(" + this.fileArray.length + ")";
  439. });
  440. },
  441. // 提交修改信息
  442. changeSupervisionInfo() {
  443. console.log(this)
  444. var _self = this;
  445. this.$refs.changeSupFrom.validate(valid => {
  446. if (valid) {
  447. this.$nextTick(() => {
  448. this.buttonLoading = true;
  449. if (_self.$refs.uploadFile.submitUpload(this.changeSupervision.pblmId)) {
  450. _self.removeNewSupervision();
  451. }
  452. // 为什么要用setTimeout呢? 会影响到数据的绑定 (by wby)
  453. // setTimeout(()=>{
  454. _self.changeSupervision.inspPblmsName = _self.duChaType
  455. _self.changeSupervision.checkPoint = _self.jianChaXiangMu
  456. _self.changeSupervision.inspPblmName = _self.wenTiLeiBie
  457. _self.changeSupervision.inspPlbmType = _self.t2.sort2;
  458. _self.changeSupervision.inspPblmCode = _self.t3.sn;
  459. _self.changeSupervision.pblmsTypeId = _self.t3.guid;
  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. // },500)
  474. })
  475. }
  476. });
  477. },
  478. removeNewSupervision(arg) {
  479. if (arg) {
  480. var args = this.gwComFiles.concat(arg);
  481. }
  482. this.changeSup(this.editId)
  483. this.gwComFiles = [];
  484. this.$emit('closeEditDialog', 'success')
  485. },
  486. changeSupervisionVisiblefalse() {
  487. this.$emit('closeEditDialog')
  488. this.$refs.uploadFile.init();
  489. this.addPicPanel = false;
  490. },
  491. addPic() {
  492. this.addPicPanel = !this.addPicPanel;
  493. },
  494. // 删除图片文件
  495. removeFile(id, index) {
  496. // this.updateIdXiuGai = this.updateIdXiuGai;
  497. var _self = this;
  498. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  499. confirmButtonText: "确定",
  500. cancelButtonText: "返回",
  501. type: "warning"
  502. }).then(
  503. res => {
  504. if (res === "confirm") {
  505. deleteFileById(id, this.persId).then(res => {
  506. if (res.success) {
  507. this.changeSupervision.gwComFiles.forEach(item => {
  508. if (
  509. item.fileExt == "mp3" ||
  510. item.fileExt == "MP3" ||
  511. item.fileExt == "m4a"
  512. ) {
  513. this.audiotabName.splice(index, 1);
  514. } else if (
  515. item.fileExt == "jpg" ||
  516. item.fileExt == "JPG" ||
  517. item.fileExt == "png" ||
  518. item.fileExt == "PNG" ||
  519. item.fileExt == "JPEG" ||
  520. item.fileExt == "jpeg"
  521. ) {
  522. this.pictureArray.splice(index, 1);
  523. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  524. this.videoArray.splice(index, 1);
  525. }
  526. });
  527. _self.changeSup(this.updateIdXiuGai);
  528. } else {
  529. this.failInfo();
  530. }
  531. });
  532. }
  533. },
  534. res => {
  535. console.log("返回");
  536. }
  537. )
  538. },
  539. // 操作成功反馈
  540. successInfo() {
  541. this.$message({
  542. type: "success",
  543. message: "操作成功!"
  544. });
  545. this.$emit('closeEditDialog')
  546. },
  547. // 操作失败反馈
  548. failInfo(val) {
  549. this.$message.error(val);
  550. },
  551. // 文件上传
  552. submitUpload() {
  553. this.$refs.upload.submit();
  554. },
  555. closeModal() {
  556. this.$emit('closeEditDialog')
  557. },
  558. getproblemSmallType() {
  559. let result = [];
  560. request.get('/dc/insp/pblms/getPblmType', {
  561. params: {
  562. type: 26,
  563. pguid: '26000000000000000000000000000000'
  564. }
  565. }).then(res => {
  566. if (res.success) {
  567. res.data.forEach((ele) => {
  568. let haveinspPblmsName = false;
  569. result.forEach((inspPblm) => {
  570. if (inspPblm['inspPblmsName'] == ele.inspPblmsName) {
  571. //
  572. let havechekPoint = false;
  573. inspPblm['checkPoints'].forEach((chekPoint) => {
  574. if (chekPoint['checkPointName'] == ele.checkPoint) {
  575. //
  576. chekPoint['pblmDescs'].push({
  577. pblmDesc: ele.pblmDesc,
  578. sn: ele.sn,
  579. guid: ele.guid,
  580. });
  581. havechekPoint = true;
  582. }
  583. });
  584. if (!havechekPoint) {
  585. let newCheckPoint = {};
  586. newCheckPoint['checkPointName'] = ele.checkPoint;
  587. newCheckPoint['sort2'] = ele.sort2;
  588. newCheckPoint['pblmDescs'] = [{
  589. pblmDesc: ele.pblmDesc,
  590. sn: ele.sn,
  591. guid: ele.guid,
  592. }]
  593. inspPblm['checkPoints'].push(newCheckPoint);
  594. }
  595. haveinspPblmsName = true;
  596. }
  597. });
  598. if (!haveinspPblmsName) {
  599. let haveinspPblmsObj = {};
  600. haveinspPblmsObj['inspPblmsName'] = ele.inspPblmsName;
  601. haveinspPblmsObj['sort1'] = ele.sort1;
  602. haveinspPblmsObj['checkPoints'] = [{
  603. checkPointName: ele.checkPoint,
  604. sort2: ele.sort2,
  605. pblmDescs: [{
  606. pblmDesc: ele.pblmDesc,
  607. sn: ele.sn,
  608. guid: ele.guid,
  609. }]
  610. }];
  611. result.push(haveinspPblmsObj);
  612. }
  613. })
  614. console.log(result)
  615. this.problemList = result;
  616. this.changeSup(this.editId)
  617. }
  618. })
  619. },
  620. problemListChange: function (item) {
  621. this.t1 = item
  622. this.wenTiLeiBie = item.inspPblmsName;
  623. if (this.problemList.length) {
  624. this.problemList.forEach(ele => {
  625. this.currentCheckPointList = this.currentCheckPointList.concat(ele.checkPoints)
  626. })
  627. }
  628. // this.currentCheckPointList = item.checkPoints;
  629. },
  630. currentCheckPointListChange: function (item) {
  631. this.jianChaXiangMu = item.checkPointName;
  632. this.currentProblemDescList = item.pblmDescs;
  633. },
  634. currentProblemDescListChange: function (item) {
  635. this.xiangqingmiaoshu = item.pblmDesc;
  636. console.log(item);
  637. },
  638. },
  639. watch: {
  640. editId(val) {
  641. this.changeSup(val)
  642. },
  643. 't3': {
  644. handler: function (val, oldVal) {
  645. },
  646. deep: true
  647. },
  648. }
  649. }
  650. </script>
  651. <style scoped lang="scss">
  652. .scroll_wrapper {
  653. overflow: hidden;
  654. }
  655. .scroll_wrapper .el-form {
  656. padding-top: 5px;
  657. padding-right: 5px;
  658. }
  659. .upload-container {
  660. width: 100%;
  661. position: relative;
  662. .image-uploader {
  663. width: 35%;
  664. float: left;
  665. }
  666. .image-preview {
  667. width: 200px;
  668. height: 200px;
  669. position: relative;
  670. border: 1px dashed #d9d9d9;
  671. float: left;
  672. // margin-left: 50px;
  673. .image-preview-wrapper {
  674. position: relative;
  675. width: 100%;
  676. height: 100%;
  677. img {
  678. width: 100%;
  679. height: 100%;
  680. }
  681. }
  682. .image-preview-action {
  683. position: absolute;
  684. width: 100%;
  685. height: 30px;
  686. left: 0;
  687. bottom: 0;
  688. color: #fff;
  689. opacity: 0;
  690. font-size: 20px;
  691. background-color: rgba(0, 0, 0, 0.5);
  692. transition: opacity 0.3s;
  693. cursor: pointer;
  694. text-align: center;
  695. line-height: 30px;
  696. .el-icon-delete {
  697. font-size: 25px;
  698. }
  699. }
  700. &:hover {
  701. .image-preview-action {
  702. opacity: 1;
  703. }
  704. }
  705. }
  706. .image-app-preview {
  707. margin-bottom: 10px;
  708. width: 40vh;
  709. height: 180px;
  710. position: relative;
  711. border: 1px dashed #d9d9d9;
  712. float: left;
  713. // margin-left: 50px;
  714. .app-fake-conver {
  715. height: 44px;
  716. position: absolute;
  717. width: 100%; // background: rgba(0, 0, 0, .1);
  718. text-align: center;
  719. line-height: 64px;
  720. color: #fff;
  721. }
  722. }
  723. }
  724. </style>