2aa68b872a3dee8663f3de61dfad4ad62e49ab6d.svn-base 34 KB

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