f209824d0bf9a49ab7dcbab76bed6e7ff2d35e4b.svn-base 34 KB

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