7498019f76dda1480fc71e3c0cdde4f0bd566537.svn-base 34 KB

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