10ac9841fd0ea09d0d4ae04ac02cd2cb0e4e96a0.svn-base 30 KB

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